From fd724f4022b2c701730ebe886fb25d3acf7aef43 Mon Sep 17 00:00:00 2001 From: snowykami Date: Sat, 5 Oct 2024 04:43:34 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BC=98=E5=8C=96UI=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=88=AA=E5=9B=BE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=92=8C=E5=82=A8=E5=AD=98=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/frontend/web/assets/index-AX8fTS7t.js | 101 +++++++++++++++++++++ api/frontend/web/assets/index-Box2hhZm.css | 1 - api/frontend/web/assets/index-Btb24tzF.css | 1 + api/frontend/web/assets/index-CjDL14HW.js | 80 ---------------- api/frontend/web/index.html | 4 +- api/frontend/web/svg/label.svg | 1 + api/frontend/web/svg/screenshots.svg | 1 + api/frontend/web/svg/timezone.svg | 1 + 8 files changed, 107 insertions(+), 83 deletions(-) create mode 100644 api/frontend/web/assets/index-AX8fTS7t.js delete mode 100644 api/frontend/web/assets/index-Box2hhZm.css create mode 100644 api/frontend/web/assets/index-Btb24tzF.css delete mode 100644 api/frontend/web/assets/index-CjDL14HW.js create mode 100644 api/frontend/web/svg/label.svg create mode 100644 api/frontend/web/svg/screenshots.svg create mode 100644 api/frontend/web/svg/timezone.svg diff --git a/api/frontend/web/assets/index-AX8fTS7t.js b/api/frontend/web/assets/index-AX8fTS7t.js new file mode 100644 index 0000000..2e54b0e --- /dev/null +++ b/api/frontend/web/assets/index-AX8fTS7t.js @@ -0,0 +1,101 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const A of i.addedNodes)A.tagName==="LINK"&&A.rel==="modulepreload"&&n(A)}).observe(document,{childList:!0,subtree:!0});function e(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=e(a);fetch(a.href,i)}})();/** +* @vue/shared v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function uB(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const he={},ms=[],sa=()=>{},tk=()=>!1,Bd=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),fB=r=>r.startsWith("onUpdate:"),Ze=Object.assign,cB=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},ek=Object.prototype.hasOwnProperty,re=(r,t)=>ek.call(r,t),Ot=Array.isArray,ws=r=>_d(r)==="[object Map]",JD=r=>_d(r)==="[object Set]",kt=r=>typeof r=="function",De=r=>typeof r=="string",ji=r=>typeof r=="symbol",ge=r=>r!==null&&typeof r=="object",qD=r=>(ge(r)||kt(r))&&kt(r.then)&&kt(r.catch),jD=Object.prototype.toString,_d=r=>jD.call(r),rk=r=>_d(r).slice(8,-1),tQ=r=>_d(r)==="[object Object]",hB=r=>De(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,vu=uB(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cd=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},nk=/-(\w)/g,pn=Cd(r=>r.replace(nk,(t,e)=>e?e.toUpperCase():"")),ak=/\B([A-Z])/g,wo=Cd(r=>r.replace(ak,"-$1").toLowerCase()),Sd=Cd(r=>r.charAt(0).toUpperCase()+r.slice(1)),Dp=Cd(r=>r?`on${Sd(r)}`:""),Gi=(r,t)=>!Object.is(r,t),Qp=(r,...t)=>{for(let e=0;e{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},ik=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let qC;const rQ=()=>qC||(qC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ga(r){if(Ot(r)){const t={};for(let e=0;e{if(e){const n=e.split(ok);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function vB(r){let t="";if(De(r))t=r;else if(Ot(r))for(let e=0;e!!(r&&r.__v_isRef===!0),ze=r=>De(r)?r:r==null?"":Ot(r)||ge(r)&&(r.toString===jD||!kt(r.toString))?aQ(r)?ze(r.value):JSON.stringify(r,iQ,2):String(r),iQ=(r,t)=>aQ(t)?iQ(r,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,a],i)=>(e[Lp(n,i)+" =>"]=a,e),{})}:JD(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Lp(e))}:ji(t)?Lp(t):ge(t)&&!Ot(t)&&!tQ(t)?String(t):t,Lp=(r,t="")=>{var e;return ji(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/** +* @vue/reactivity v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Nr;class ck{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Nr,!t&&Nr&&(this.index=(Nr.scopes||(Nr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t0)return;let r;for(;hs;){let t=hs,e;for(;t;)t.flags&1||(t.flags&=-9),t=t.next;for(t=hs,hs=void 0;t;){if(e=t.next,t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){r||(r=n)}t=e}}if(r)throw r}function lQ(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function uQ(r){let t,e=r.depsTail,n=e;for(;n;){const a=n.prevDep;n.version===-1?(n===e&&(e=a),gB(n),vk(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=a}r.deps=t,r.depsTail=e}function Pm(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fQ(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function fQ(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===Vu))return;r.globalVersion=Vu;const t=r.dep;if(r.flags|=2,t.version>0&&!r.isSSR&&r.deps&&!Pm(r)){r.flags&=-3;return}const e=ce,n=Qn;ce=r,Qn=!0;try{lQ(r);const a=r.fn(r._value);(t.version===0||Gi(a,r._value))&&(r._value=a,t.version++)}catch(a){throw t.version++,a}finally{ce=e,Qn=n,uQ(r),r.flags&=-3}}function gB(r,t=!1){const{dep:e,prevSub:n,nextSub:a}=r;if(n&&(n.nextSub=a,r.prevSub=void 0),a&&(a.prevSub=n,r.nextSub=void 0),e.subs===r&&(e.subs=n),!e.subs&&e.computed){e.computed.flags&=-5;for(let i=e.computed.deps;i;i=i.nextDep)gB(i,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function vk(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let Qn=!0;const cQ=[];function tA(){cQ.push(Qn),Qn=!1}function eA(){const r=cQ.pop();Qn=r===void 0?!0:r}function jC(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=ce;ce=void 0;try{t()}finally{ce=e}}}let Vu=0;class dk{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class yB{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ce||!Qn||ce===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==ce)e=this.activeLink=new dk(ce,this),ce.deps?(e.prevDep=ce.depsTail,ce.depsTail.nextDep=e,ce.depsTail=e):ce.deps=ce.depsTail=e,hQ(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=ce.depsTail,e.nextDep=void 0,ce.depsTail.nextDep=e,ce.depsTail=e,ce.deps===e&&(ce.deps=n)}return e}trigger(t){this.version++,Vu++,this.notify(t)}notify(t){dB();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{pB()}}}function hQ(r){if(r.dep.sc++,r.sub.flags&4){const t=r.dep.computed;if(t&&!r.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)hQ(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const Rm=new WeakMap,qA=Symbol(""),Hm=Symbol(""),Gu=Symbol("");function or(r,t,e){if(Qn&&ce){let n=Rm.get(r);n||Rm.set(r,n=new Map);let a=n.get(e);a||(n.set(e,a=new yB),a.target=r,a.map=n,a.key=e),a.track()}}function Ua(r,t,e,n,a,i){const A=Rm.get(r);if(!A){Vu++;return}const o=s=>{s&&s.trigger()};if(dB(),t==="clear")A.forEach(o);else{const s=Ot(r),l=s&&hB(e);if(s&&e==="length"){const u=Number(n);A.forEach((f,c)=>{(c==="length"||c===Gu||!ji(c)&&c>=u)&&o(f)})}else switch(e!==void 0&&o(A.get(e)),l&&o(A.get(Gu)),t){case"add":s?l&&o(A.get("length")):(o(A.get(qA)),ws(r)&&o(A.get(Hm)));break;case"delete":s||(o(A.get(qA)),ws(r)&&o(A.get(Hm)));break;case"set":ws(r)&&o(A.get(qA));break}}pB()}function Eo(r){const t=ne(r);return t===r?t:(or(t,"iterate",Gu),vn(r)?t:t.map(ar))}function xd(r){return or(r=ne(r),"iterate",Gu),r}const pk={__proto__:null,[Symbol.iterator](){return Up(this,Symbol.iterator,ar)},concat(...r){return Eo(this).concat(...r.map(t=>Ot(t)?Eo(t):t))},entries(){return Up(this,"entries",r=>(r[1]=ar(r[1]),r))},every(r,t){return Ca(this,"every",r,t,void 0,arguments)},filter(r,t){return Ca(this,"filter",r,t,e=>e.map(ar),arguments)},find(r,t){return Ca(this,"find",r,t,ar,arguments)},findIndex(r,t){return Ca(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return Ca(this,"findLast",r,t,ar,arguments)},findLastIndex(r,t){return Ca(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return Ca(this,"forEach",r,t,void 0,arguments)},includes(...r){return Pp(this,"includes",r)},indexOf(...r){return Pp(this,"indexOf",r)},join(r){return Eo(this).join(r)},lastIndexOf(...r){return Pp(this,"lastIndexOf",r)},map(r,t){return Ca(this,"map",r,t,void 0,arguments)},pop(){return cl(this,"pop")},push(...r){return cl(this,"push",r)},reduce(r,...t){return t1(this,"reduce",r,t)},reduceRight(r,...t){return t1(this,"reduceRight",r,t)},shift(){return cl(this,"shift")},some(r,t){return Ca(this,"some",r,t,void 0,arguments)},splice(...r){return cl(this,"splice",r)},toReversed(){return Eo(this).toReversed()},toSorted(r){return Eo(this).toSorted(r)},toSpliced(...r){return Eo(this).toSpliced(...r)},unshift(...r){return cl(this,"unshift",r)},values(){return Up(this,"values",ar)}};function Up(r,t,e){const n=xd(r),a=n[t]();return n!==r&&!vn(r)&&(a._next=a.next,a.next=()=>{const i=a._next();return i.value&&(i.value=e(i.value)),i}),a}const gk=Array.prototype;function Ca(r,t,e,n,a,i){const A=xd(r),o=A!==r&&!vn(r),s=A[t];if(s!==gk[t]){const f=s.apply(r,i);return o?ar(f):f}let l=e;A!==r&&(o?l=function(f,c){return e.call(this,ar(f),c,r)}:e.length>2&&(l=function(f,c){return e.call(this,f,c,r)}));const u=s.call(A,l,n);return o&&a?a(u):u}function t1(r,t,e,n){const a=xd(r);let i=e;return a!==r&&(vn(r)?e.length>3&&(i=function(A,o,s){return e.call(this,A,o,s,r)}):i=function(A,o,s){return e.call(this,A,ar(o),s,r)}),a[t](i,...n)}function Pp(r,t,e){const n=ne(r);or(n,"iterate",Gu);const a=n[t](...e);return(a===-1||a===!1)&&_B(e[0])?(e[0]=ne(e[0]),n[t](...e)):a}function cl(r,t,e=[]){tA(),dB();const n=ne(r)[t].apply(r,e);return pB(),eA(),n}const yk=uB("__proto__,__v_isRef,__isVue"),vQ=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(ji));function mk(r){ji(r)||(r=String(r));const t=ne(this);return or(t,"has",r),t.hasOwnProperty(r)}class dQ{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const a=this._isReadonly,i=this._isShallow;if(e==="__v_isReactive")return!a;if(e==="__v_isReadonly")return a;if(e==="__v_isShallow")return i;if(e==="__v_raw")return n===(a?i?Qk:mQ:i?yQ:gQ).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const A=Ot(t);if(!a){let s;if(A&&(s=pk[e]))return s;if(e==="hasOwnProperty")return mk}const o=Reflect.get(t,e,Ar(t)?t:n);return(ji(e)?vQ.has(e):yk(e))||(a||or(t,"get",e),i)?o:Ar(o)?A&&hB(e)?o:o.value:ge(o)?a?BQ(o):Td(o):o}}class pQ extends dQ{constructor(t=!1){super(!1,t)}set(t,e,n,a){let i=t[e];if(!this._isShallow){const s=uo(i);if(!vn(n)&&!uo(n)&&(i=ne(i),n=ne(n)),!Ot(t)&&Ar(i)&&!Ar(n))return s?!1:(i.value=n,!0)}const A=Ot(t)&&hB(e)?Number(e)r,bd=r=>Reflect.getPrototypeOf(r);function jf(r,t,e=!1,n=!1){r=r.__v_raw;const a=ne(r),i=ne(t);e||(Gi(t,i)&&or(a,"get",t),or(a,"get",i));const{has:A}=bd(a),o=n?mB:e?CB:ar;if(A.call(a,t))return o(r.get(t));if(A.call(a,i))return o(r.get(i));r!==a&&r.get(t)}function tc(r,t=!1){const e=this.__v_raw,n=ne(e),a=ne(r);return t||(Gi(r,a)&&or(n,"has",r),or(n,"has",a)),r===a?e.has(r):e.has(r)||e.has(a)}function ec(r,t=!1){return r=r.__v_raw,!t&&or(ne(r),"iterate",qA),Reflect.get(r,"size",r)}function e1(r,t=!1){!t&&!vn(r)&&!uo(r)&&(r=ne(r));const e=ne(this);return bd(e).has.call(e,r)||(e.add(r),Ua(e,"add",r,r)),this}function r1(r,t,e=!1){!e&&!vn(t)&&!uo(t)&&(t=ne(t));const n=ne(this),{has:a,get:i}=bd(n);let A=a.call(n,r);A||(r=ne(r),A=a.call(n,r));const o=i.call(n,r);return n.set(r,t),A?Gi(t,o)&&Ua(n,"set",r,t):Ua(n,"add",r,t),this}function n1(r){const t=ne(this),{has:e,get:n}=bd(t);let a=e.call(t,r);a||(r=ne(r),a=e.call(t,r)),n&&n.call(t,r);const i=t.delete(r);return a&&Ua(t,"delete",r,void 0),i}function a1(){const r=ne(this),t=r.size!==0,e=r.clear();return t&&Ua(r,"clear",void 0,void 0),e}function rc(r,t){return function(n,a){const i=this,A=i.__v_raw,o=ne(A),s=t?mB:r?CB:ar;return!r&&or(o,"iterate",qA),A.forEach((l,u)=>n.call(a,s(l),s(u),i))}}function nc(r,t,e){return function(...n){const a=this.__v_raw,i=ne(a),A=ws(i),o=r==="entries"||r===Symbol.iterator&&A,s=r==="keys"&&A,l=a[r](...n),u=e?mB:t?CB:ar;return!t&&or(i,"iterate",s?Hm:qA),{next(){const{value:f,done:c}=l.next();return c?{value:f,done:c}:{value:o?[u(f[0]),u(f[1])]:u(f),done:c}},[Symbol.iterator](){return this}}}}function ni(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function Sk(){const r={get(i){return jf(this,i)},get size(){return ec(this)},has:tc,add:e1,set:r1,delete:n1,clear:a1,forEach:rc(!1,!1)},t={get(i){return jf(this,i,!1,!0)},get size(){return ec(this)},has:tc,add(i){return e1.call(this,i,!0)},set(i,A){return r1.call(this,i,A,!0)},delete:n1,clear:a1,forEach:rc(!1,!0)},e={get(i){return jf(this,i,!0)},get size(){return ec(this,!0)},has(i){return tc.call(this,i,!0)},add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear"),forEach:rc(!0,!1)},n={get(i){return jf(this,i,!0,!0)},get size(){return ec(this,!0)},has(i){return tc.call(this,i,!0)},add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear"),forEach:rc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=nc(i,!1,!1),e[i]=nc(i,!0,!1),t[i]=nc(i,!1,!0),n[i]=nc(i,!0,!0)}),[r,e,t,n]}const[xk,bk,Tk,Ik]=Sk();function wB(r,t){const e=t?r?Ik:Tk:r?bk:xk;return(n,a,i)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(re(e,a)&&a in n?e:n,a,i)}const Fk={get:wB(!1,!1)},Ek={get:wB(!1,!0)},Dk={get:wB(!0,!1)};const gQ=new WeakMap,yQ=new WeakMap,mQ=new WeakMap,Qk=new WeakMap;function Lk(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mk(r){return r.__v_skip||!Object.isExtensible(r)?0:Lk(rk(r))}function Td(r){return uo(r)?r:BB(r,!1,Bk,Fk,gQ)}function wQ(r){return BB(r,!1,Ck,Ek,yQ)}function BQ(r){return BB(r,!0,_k,Dk,mQ)}function BB(r,t,e,n,a){if(!ge(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const i=a.get(r);if(i)return i;const A=Mk(r);if(A===0)return r;const o=new Proxy(r,A===2?n:e);return a.set(r,o),o}function Bs(r){return uo(r)?Bs(r.__v_raw):!!(r&&r.__v_isReactive)}function uo(r){return!!(r&&r.__v_isReadonly)}function vn(r){return!!(r&&r.__v_isShallow)}function _B(r){return r?!!r.__v_raw:!1}function ne(r){const t=r&&r.__v_raw;return t?ne(t):r}function Uk(r){return!re(r,"__v_skip")&&Object.isExtensible(r)&&eQ(r,"__v_skip",!0),r}const ar=r=>ge(r)?Td(r):r,CB=r=>ge(r)?BQ(r):r;function Ar(r){return r?r.__v_isRef===!0:!1}function qn(r){return _Q(r,!1)}function Pk(r){return _Q(r,!0)}function _Q(r,t){return Ar(r)?r:new Rk(r,t)}class Rk{constructor(t,e){this.dep=new yB,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:ne(t),this._value=e?t:ar(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||vn(t)||uo(t);t=n?t:ne(t),Gi(t,e)&&(this._rawValue=t,this._value=n?t:ar(t),this.dep.trigger())}}function la(r){return Ar(r)?r.value:r}const Hk={get:(r,t,e)=>t==="__v_raw"?r:la(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const a=r[t];return Ar(a)&&!Ar(e)?(a.value=e,!0):Reflect.set(r,t,e,n)}};function CQ(r){return Bs(r)?r:new Proxy(r,Hk)}class Ok{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new yB(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ce!==this)return sQ(this),!0}get value(){const t=this.dep.track();return fQ(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function kk(r,t,e=!1){let n,a;return kt(r)?n=r:(n=r.get,a=r.set),new Ok(n,a,e)}const ac={},uv=new WeakMap;let DA;function Nk(r,t=!1,e=DA){if(e){let n=uv.get(e);n||uv.set(e,n=[]),n.push(r)}}function Vk(r,t,e=he){const{immediate:n,deep:a,once:i,scheduler:A,augmentJob:o,call:s}=e,l=w=>a?w:vn(w)||a===!1||a===0?Si(w,1):Si(w);let u,f,c,h,v=!1,d=!1;if(Ar(r)?(f=()=>r.value,v=vn(r)):Bs(r)?(f=()=>l(r),v=!0):Ot(r)?(d=!0,v=r.some(w=>Bs(w)||vn(w)),f=()=>r.map(w=>{if(Ar(w))return w.value;if(Bs(w))return l(w);if(kt(w))return s?s(w,2):w()})):kt(r)?t?f=s?()=>s(r,2):r:f=()=>{if(c){tA();try{c()}finally{eA()}}const w=DA;DA=u;try{return s?s(r,3,[h]):r(h)}finally{DA=w}}:f=sa,t&&a){const w=f,_=a===!0?1/0:a;f=()=>Si(w(),_)}const p=hk(),g=()=>{u.stop(),p&&cB(p.effects,u)};if(i&&t){const w=t;t=(..._)=>{w(..._),g()}}let y=d?new Array(r.length).fill(ac):ac;const m=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(t){const _=u.run();if(a||v||(d?_.some((B,C)=>Gi(B,y[C])):Gi(_,y))){c&&c();const B=DA;DA=u;try{const C=[_,y===ac?void 0:d&&y[0]===ac?[]:y,h];s?s(t,3,C):t(...C),y=_}finally{DA=B}}}else u.run()};return o&&o(m),u=new AQ(f),u.scheduler=A?()=>A(m,!1):m,h=w=>Nk(w,!1,u),c=u.onStop=()=>{const w=uv.get(u);if(w){if(s)s(w,4);else for(const _ of w)_();uv.delete(u)}},t?n?m(!0):y=u.run():A?A(m.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function Si(r,t=1/0,e){if(t<=0||!ge(r)||r.__v_skip||(e=e||new Set,e.has(r)))return r;if(e.add(r),t--,Ar(r))Si(r.value,t,e);else if(Ot(r))for(let n=0;n{Si(n,t,e)});else if(tQ(r)){for(const n in r)Si(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&Si(r[n],t,e)}return r}/** +* @vue/runtime-core v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Tf(r,t,e,n){try{return n?r(...n):r()}catch(a){Id(a,t,e)}}function ca(r,t,e,n){if(kt(r)){const a=Tf(r,t,e,n);return a&&qD(a)&&a.catch(i=>{Id(i,t,e)}),a}if(Ot(r)){const a=[];for(let i=0;i>>1,a=gr[n],i=zu(a);i=zu(e)?gr.push(r):gr.splice(Kk(t),0,r),r.flags|=1,bQ()}}function bQ(){!Ku&&!Om&&(Om=!0,SB=SQ.then(IQ))}function zk(r){Ot(r)?_s.push(...r):yi&&r.id===-1?yi.splice(as+1,0,r):r.flags&1||(_s.push(r),r.flags|=1),bQ()}function i1(r,t,e=Ku?Jn+1:0){for(;ezu(e)-zu(n));if(_s.length=0,yi){yi.push(...t);return}for(yi=t,as=0;asr.id==null?r.flags&2?-1:1/0:r.id;function IQ(r){Om=!1,Ku=!0;try{for(Jn=0;Jn{n._d&&v1(-1);const i=fv(t);let A;try{A=r(...a)}finally{fv(i),n._d&&v1(1)}return A};return n._n=!0,n._c=!0,n._d=!0,n}function aA(r,t,e,n){const a=r.dirs,i=t&&t.dirs;for(let A=0;Ar.__isTeleport;function bB(r,t){r.shapeFlag&6&&r.component?(r.transition=t,bB(r.component.subTree,t)):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Bo(r,t){return kt(r)?Ze({name:r.name},t,{setup:r}):r}function EQ(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function km(r,t,e,n,a=!1){if(Ot(r)){r.forEach((v,d)=>km(v,t&&(Ot(t)?t[d]:t),e,n,a));return}if(du(n)&&!a)return;const i=n.shapeFlag&4?LB(n.component):n.el,A=a?null:i,{i:o,r:s}=r,l=t&&t.r,u=o.refs===he?o.refs={}:o.refs,f=o.setupState,c=ne(f),h=f===he?()=>!1:v=>re(c,v);if(l!=null&&l!==s&&(De(l)?(u[l]=null,h(l)&&(f[l]=null)):Ar(l)&&(l.value=null)),kt(s))Tf(s,o,12,[A,u]);else{const v=De(s),d=Ar(s);if(v||d){const p=()=>{if(r.f){const g=v?h(s)?f[s]:u[s]:s.value;a?Ot(g)&&cB(g,i):Ot(g)?g.includes(i)||g.push(i):v?(u[s]=[i],h(s)&&(f[s]=u[s])):(s.value=[i],r.k&&(u[r.k]=s.value))}else v?(u[s]=A,h(s)&&(f[s]=A)):d&&(s.value=A,r.k&&(u[r.k]=A))};A?(p.id=-1,kr(p,e)):p()}}}const du=r=>!!r.type.__asyncLoader,DQ=r=>r.type.__isKeepAlive;function Zk(r,t){QQ(r,"a",t)}function $k(r,t){QQ(r,"da",t)}function QQ(r,t,e=ir){const n=r.__wdc||(r.__wdc=()=>{let a=e;for(;a;){if(a.isDeactivated)return;a=a.parent}return r()});if(Fd(t,n,e),e){let a=e.parent;for(;a&&a.parent;)DQ(a.parent.vnode)&&Jk(n,t,e,a),a=a.parent}}function Jk(r,t,e,n){const a=Fd(t,r,n,!0);IB(()=>{cB(n[t],a)},e)}function Fd(r,t,e=ir,n=!1){if(e){const a=e[r]||(e[r]=[]),i=t.__weh||(t.__weh=(...A)=>{tA();const o=If(e),s=ca(t,e,r,A);return o(),eA(),s});return n?a.unshift(i):a.push(i),i}}const ja=r=>(t,e=ir)=>{(!Qd||r==="sp")&&Fd(r,(...n)=>t(...n),e)},qk=ja("bm"),TB=ja("m"),jk=ja("bu"),tN=ja("u"),eN=ja("bum"),IB=ja("um"),rN=ja("sp"),nN=ja("rtg"),aN=ja("rtc");function iN(r,t=ir){Fd("ec",r,t)}const AN="components";function oN(r,t){return lN(AN,r,!0,t)||r}const sN=Symbol.for("v-ndc");function lN(r,t,e=!0,n=!1){const a=Fn||ir;if(a){const i=a.type;{const o=$N(i,!1);if(o&&(o===t||o===pn(t)||o===Sd(pn(t))))return i}const A=A1(a[r]||i[r],t)||A1(a.appContext[r],t);return!A&&n?i:A}}function A1(r,t){return r&&(r[t]||r[pn(t)]||r[Sd(pn(t))])}function Nm(r,t,e,n){let a;const i=e,A=Ot(r);if(A||De(r)){const o=A&&Bs(r);let s=!1;o&&(s=!vn(r),r=xd(r)),a=new Array(r.length);for(let l=0,u=r.length;lt(o,s,void 0,i));else{const o=Object.keys(r);a=new Array(o.length);for(let s=0,l=o.length;sr?qQ(r)?LB(r):Vm(r.parent):null,pu=Ze(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>Vm(r.parent),$root:r=>Vm(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>FB(r),$forceUpdate:r=>r.f||(r.f=()=>{xB(r.update)}),$nextTick:r=>r.n||(r.n=xQ.bind(r.proxy)),$watch:r=>EN.bind(r)}),Rp=(r,t)=>r!==he&&!r.__isScriptSetup&&re(r,t),uN={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:a,props:i,accessCache:A,type:o,appContext:s}=r;let l;if(t[0]!=="$"){const h=A[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return a[t];case 4:return e[t];case 3:return i[t]}else{if(Rp(n,t))return A[t]=1,n[t];if(a!==he&&re(a,t))return A[t]=2,a[t];if((l=r.propsOptions[0])&&re(l,t))return A[t]=3,i[t];if(e!==he&&re(e,t))return A[t]=4,e[t];Gm&&(A[t]=0)}}const u=pu[t];let f,c;if(u)return t==="$attrs"&&or(r.attrs,"get",""),u(r);if((f=o.__cssModules)&&(f=f[t]))return f;if(e!==he&&re(e,t))return A[t]=4,e[t];if(c=s.config.globalProperties,re(c,t))return c[t]},set({_:r},t,e){const{data:n,setupState:a,ctx:i}=r;return Rp(a,t)?(a[t]=e,!0):n!==he&&re(n,t)?(n[t]=e,!0):re(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(i[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:a,propsOptions:i}},A){let o;return!!e[A]||r!==he&&re(r,A)||Rp(t,A)||(o=i[0])&&re(o,A)||re(n,A)||re(pu,A)||re(a.config.globalProperties,A)},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:re(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function o1(r){return Ot(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let Gm=!0;function fN(r){const t=FB(r),e=r.proxy,n=r.ctx;Gm=!1,t.beforeCreate&&s1(t.beforeCreate,r,"bc");const{data:a,computed:i,methods:A,watch:o,provide:s,inject:l,created:u,beforeMount:f,mounted:c,beforeUpdate:h,updated:v,activated:d,deactivated:p,beforeDestroy:g,beforeUnmount:y,destroyed:m,unmounted:w,render:_,renderTracked:B,renderTriggered:C,errorCaptured:S,serverPrefetch:x,expose:b,inheritAttrs:I,components:F,directives:E,filters:D}=t;if(l&&cN(l,n,null),A)for(const R in A){const P=A[R];kt(P)&&(n[R]=P.bind(e))}if(a){const R=a.call(e,e);ge(R)&&(r.data=Td(R))}if(Gm=!0,i)for(const R in i){const P=i[R],O=kt(P)?P.bind(e,e):kt(P.get)?P.get.bind(e,e):sa,G=!kt(P)&&kt(P.set)?P.set.bind(e):sa,X=xe({get:O,set:G});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>X.value,set:J=>X.value=J})}if(o)for(const R in o)LQ(o[R],n,e,R);if(s){const R=kt(s)?s.call(e):s;Reflect.ownKeys(R).forEach(P=>{Lh(P,R[P])})}u&&s1(u,r,"c");function M(R,P){Ot(P)?P.forEach(O=>R(O.bind(e))):P&&R(P.bind(e))}if(M(qk,f),M(TB,c),M(jk,h),M(tN,v),M(Zk,d),M($k,p),M(iN,S),M(aN,B),M(nN,C),M(eN,y),M(IB,w),M(rN,x),Ot(b))if(b.length){const R=r.exposed||(r.exposed={});b.forEach(P=>{Object.defineProperty(R,P,{get:()=>e[P],set:O=>e[P]=O})})}else r.exposed||(r.exposed={});_&&r.render===sa&&(r.render=_),I!=null&&(r.inheritAttrs=I),F&&(r.components=F),E&&(r.directives=E),x&&EQ(r)}function cN(r,t,e=sa){Ot(r)&&(r=Km(r));for(const n in r){const a=r[n];let i;ge(a)?"default"in a?i=Pa(a.from||n,a.default,!0):i=Pa(a.from||n):i=Pa(a),Ar(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:A=>i.value=A}):t[n]=i}}function s1(r,t,e){ca(Ot(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function LQ(r,t,e,n){let a=n.includes(".")?XQ(e,n):()=>e[n];if(De(r)){const i=t[r];kt(i)&&gu(a,i)}else if(kt(r))gu(a,r.bind(e));else if(ge(r))if(Ot(r))r.forEach(i=>LQ(i,t,e,n));else{const i=kt(r.handler)?r.handler.bind(e):t[r.handler];kt(i)&&gu(a,i,r)}}function FB(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:A}}=r.appContext,o=i.get(t);let s;return o?s=o:!a.length&&!e&&!n?s=t:(s={},a.length&&a.forEach(l=>cv(s,l,A,!0)),cv(s,t,A)),ge(t)&&i.set(t,s),s}function cv(r,t,e,n=!1){const{mixins:a,extends:i}=t;i&&cv(r,i,e,!0),a&&a.forEach(A=>cv(r,A,e,!0));for(const A in t)if(!(n&&A==="expose")){const o=hN[A]||e&&e[A];r[A]=o?o(r[A],t[A]):t[A]}return r}const hN={data:l1,props:u1,emits:u1,methods:Yl,computed:Yl,beforeCreate:fr,created:fr,beforeMount:fr,mounted:fr,beforeUpdate:fr,updated:fr,beforeDestroy:fr,beforeUnmount:fr,destroyed:fr,unmounted:fr,activated:fr,deactivated:fr,errorCaptured:fr,serverPrefetch:fr,components:Yl,directives:Yl,watch:dN,provide:l1,inject:vN};function l1(r,t){return t?r?function(){return Ze(kt(r)?r.call(this,this):r,kt(t)?t.call(this,this):t)}:t:r}function vN(r,t){return Yl(Km(r),Km(t))}function Km(r){if(Ot(r)){const t={};for(let e=0;e1)return e&&kt(t)?t.call(n&&n.proxy):t}}const UQ={},PQ=()=>Object.create(UQ),RQ=r=>Object.getPrototypeOf(r)===UQ;function yN(r,t,e,n=!1){const a={},i=PQ();r.propsDefaults=Object.create(null),HQ(r,t,a,i);for(const A in r.propsOptions[0])A in a||(a[A]=void 0);e?r.props=n?a:wQ(a):r.type.props?r.props=a:r.props=i,r.attrs=i}function mN(r,t,e,n){const{props:a,attrs:i,vnode:{patchFlag:A}}=r,o=ne(a),[s]=r.propsOptions;let l=!1;if((n||A>0)&&!(A&16)){if(A&8){const u=r.vnode.dynamicProps;for(let f=0;f{s=!0;const[c,h]=OQ(f,t,!0);Ze(A,c),h&&o.push(...h)};!e&&t.mixins.length&&t.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}if(!i&&!s)return ge(r)&&n.set(r,ms),ms;if(Ot(i))for(let u=0;ur[0]==="_"||r==="$stable",EB=r=>Ot(r)?r.map(ta):[ta(r)],BN=(r,t,e)=>{if(t._n)return t;const n=Wk((...a)=>EB(t(...a)),e);return n._c=!1,n},NQ=(r,t,e)=>{const n=r._ctx;for(const a in r){if(kQ(a))continue;const i=r[a];if(kt(i))t[a]=BN(a,i,n);else if(i!=null){const A=EB(i);t[a]=()=>A}}},VQ=(r,t)=>{const e=EB(t);r.slots.default=()=>e},GQ=(r,t,e)=>{for(const n in t)(e||n!=="_")&&(r[n]=t[n])},_N=(r,t,e)=>{const n=r.slots=PQ();if(r.vnode.shapeFlag&32){const a=t._;a?(GQ(n,t,e),e&&eQ(n,"_",a,!0)):NQ(t,n)}else t&&VQ(r,t)},CN=(r,t,e)=>{const{vnode:n,slots:a}=r;let i=!0,A=he;if(n.shapeFlag&32){const o=t._;o?e&&o===1?i=!1:GQ(a,t,e):(i=!t.$stable,NQ(t,a)),A=t}else t&&(VQ(r,t),A={default:1});if(i)for(const o in a)!kQ(o)&&A[o]==null&&delete a[o]},kr=RN;function SN(r){return xN(r)}function xN(r,t){const e=rQ();e.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:A,createText:o,createComment:s,setText:l,setElementText:u,parentNode:f,nextSibling:c,setScopeId:h=sa,insertStaticContent:v}=r,d=(L,U,k,Z=null,W=null,tt=null,ot=void 0,ut=null,at=!!U.dynamicChildren)=>{if(L===U)return;L&&!hl(L,U)&&(Z=N(L),J(L,W,tt,!0),L=null),U.patchFlag===-2&&(at=!1,U.dynamicChildren=null);const{type:rt,ref:It,shapeFlag:dt}=U;switch(rt){case Dd:p(L,U,k,Z);break;case fo:g(L,U,k,Z);break;case kp:L==null&&y(U,k,Z,ot);break;case Fr:F(L,U,k,Z,W,tt,ot,ut,at);break;default:dt&1?_(L,U,k,Z,W,tt,ot,ut,at):dt&6?E(L,U,k,Z,W,tt,ot,ut,at):(dt&64||dt&128)&&rt.process(L,U,k,Z,W,tt,ot,ut,at,q)}It!=null&&W&&km(It,L&&L.ref,tt,U||L,!U)},p=(L,U,k,Z)=>{if(L==null)n(U.el=o(U.children),k,Z);else{const W=U.el=L.el;U.children!==L.children&&l(W,U.children)}},g=(L,U,k,Z)=>{L==null?n(U.el=s(U.children||""),k,Z):U.el=L.el},y=(L,U,k,Z)=>{[L.el,L.anchor]=v(L.children,U,k,Z,L.el,L.anchor)},m=({el:L,anchor:U},k,Z)=>{let W;for(;L&&L!==U;)W=c(L),n(L,k,Z),L=W;n(U,k,Z)},w=({el:L,anchor:U})=>{let k;for(;L&&L!==U;)k=c(L),a(L),L=k;a(U)},_=(L,U,k,Z,W,tt,ot,ut,at)=>{U.type==="svg"?ot="svg":U.type==="math"&&(ot="mathml"),L==null?B(U,k,Z,W,tt,ot,ut,at):x(L,U,W,tt,ot,ut,at)},B=(L,U,k,Z,W,tt,ot,ut)=>{let at,rt;const{props:It,shapeFlag:dt,transition:bt,dirs:Pt}=L;if(at=L.el=A(L.type,tt,It&&It.is,It),dt&8?u(at,L.children):dt&16&&S(L.children,at,null,Z,W,Hp(L,tt),ot,ut),Pt&&aA(L,null,Z,"created"),C(at,L,L.scopeId,ot,Z),It){for(const fe in It)fe!=="value"&&!vu(fe)&&i(at,fe,null,It[fe],tt,Z);"value"in It&&i(at,"value",null,It.value,tt),(rt=It.onVnodeBeforeMount)&&Vn(rt,Z,L)}Pt&&aA(L,null,Z,"beforeMount");const Zt=bN(W,bt);Zt&&bt.beforeEnter(at),n(at,U,k),((rt=It&&It.onVnodeMounted)||Zt||Pt)&&kr(()=>{rt&&Vn(rt,Z,L),Zt&&bt.enter(at),Pt&&aA(L,null,Z,"mounted")},W)},C=(L,U,k,Z,W)=>{if(k&&h(L,k),Z)for(let tt=0;tt{for(let rt=at;rt{const ut=U.el=L.el;let{patchFlag:at,dynamicChildren:rt,dirs:It}=U;at|=L.patchFlag&16;const dt=L.props||he,bt=U.props||he;let Pt;if(k&&iA(k,!1),(Pt=bt.onVnodeBeforeUpdate)&&Vn(Pt,k,U,L),It&&aA(U,L,k,"beforeUpdate"),k&&iA(k,!0),(dt.innerHTML&&bt.innerHTML==null||dt.textContent&&bt.textContent==null)&&u(ut,""),rt?b(L.dynamicChildren,rt,ut,k,Z,Hp(U,W),tt):ot||P(L,U,ut,null,k,Z,Hp(U,W),tt,!1),at>0){if(at&16)I(ut,dt,bt,k,W);else if(at&2&&dt.class!==bt.class&&i(ut,"class",null,bt.class,W),at&4&&i(ut,"style",dt.style,bt.style,W),at&8){const Zt=U.dynamicProps;for(let fe=0;fe{Pt&&Vn(Pt,k,U,L),It&&aA(U,L,k,"updated")},Z)},b=(L,U,k,Z,W,tt,ot)=>{for(let ut=0;ut{if(U!==k){if(U!==he)for(const tt in U)!vu(tt)&&!(tt in k)&&i(L,tt,U[tt],null,W,Z);for(const tt in k){if(vu(tt))continue;const ot=k[tt],ut=U[tt];ot!==ut&&tt!=="value"&&i(L,tt,ut,ot,W,Z)}"value"in k&&i(L,"value",U.value,k.value,W)}},F=(L,U,k,Z,W,tt,ot,ut,at)=>{const rt=U.el=L?L.el:o(""),It=U.anchor=L?L.anchor:o("");let{patchFlag:dt,dynamicChildren:bt,slotScopeIds:Pt}=U;Pt&&(ut=ut?ut.concat(Pt):Pt),L==null?(n(rt,k,Z),n(It,k,Z),S(U.children||[],k,It,W,tt,ot,ut,at)):dt>0&&dt&64&&bt&&L.dynamicChildren?(b(L.dynamicChildren,bt,k,W,tt,ot,ut),(U.key!=null||W&&U===W.subTree)&&KQ(L,U,!0)):P(L,U,k,It,W,tt,ot,ut,at)},E=(L,U,k,Z,W,tt,ot,ut,at)=>{U.slotScopeIds=ut,L==null?U.shapeFlag&512?W.ctx.activate(U,k,Z,ot,at):D(U,k,Z,W,tt,ot,at):Q(L,U,at)},D=(L,U,k,Z,W,tt,ot)=>{const ut=L.component=zN(L,Z,W);if(DQ(L)&&(ut.ctx.renderer=q),WN(ut,!1,ot),ut.asyncDep){if(W&&W.registerDep(ut,M,ot),!L.el){const at=ut.subTree=yr(fo);g(null,at,U,k)}}else M(ut,L,U,k,W,tt,ot)},Q=(L,U,k)=>{const Z=U.component=L.component;if(UN(L,U,k))if(Z.asyncDep&&!Z.asyncResolved){R(Z,U,k);return}else Z.next=U,Z.update();else U.el=L.el,Z.vnode=U},M=(L,U,k,Z,W,tt,ot)=>{const ut=()=>{if(L.isMounted){let{next:dt,bu:bt,u:Pt,parent:Zt,vnode:fe}=L;{const Pr=zQ(L);if(Pr){dt&&(dt.el=fe.el,R(L,dt,ot)),Pr.asyncDep.then(()=>{L.isUnmounted||ut()});return}}let ae=dt,Ur;iA(L,!1),dt?(dt.el=fe.el,R(L,dt,ot)):dt=fe,bt&&Qp(bt),(Ur=dt.props&&dt.props.onVnodeBeforeUpdate)&&Vn(Ur,Zt,dt,fe),iA(L,!0);const qe=Op(L),Bn=L.subTree;L.subTree=qe,d(Bn,qe,f(Bn.el),N(Bn),L,W,tt),dt.el=qe.el,ae===null&&PN(L,qe.el),Pt&&kr(Pt,W),(Ur=dt.props&&dt.props.onVnodeUpdated)&&kr(()=>Vn(Ur,Zt,dt,fe),W)}else{let dt;const{el:bt,props:Pt}=U,{bm:Zt,m:fe,parent:ae,root:Ur,type:qe}=L,Bn=du(U);if(iA(L,!1),Zt&&Qp(Zt),!Bn&&(dt=Pt&&Pt.onVnodeBeforeMount)&&Vn(dt,ae,U),iA(L,!0),bt&&ct){const Pr=()=>{L.subTree=Op(L),ct(bt,L.subTree,L,W,null)};Bn&&qe.__asyncHydrate?qe.__asyncHydrate(bt,L,Pr):Pr()}else{Ur.ce&&Ur.ce._injectChildStyle(qe);const Pr=L.subTree=Op(L);d(null,Pr,k,Z,L,W,tt),U.el=Pr.el}if(fe&&kr(fe,W),!Bn&&(dt=Pt&&Pt.onVnodeMounted)){const Pr=U;kr(()=>Vn(dt,ae,Pr),W)}(U.shapeFlag&256||ae&&du(ae.vnode)&&ae.vnode.shapeFlag&256)&&L.a&&kr(L.a,W),L.isMounted=!0,U=k=Z=null}};L.scope.on();const at=L.effect=new AQ(ut);L.scope.off();const rt=L.update=at.run.bind(at),It=L.job=at.runIfDirty.bind(at);It.i=L,It.id=L.uid,at.scheduler=()=>xB(It),iA(L,!0),rt()},R=(L,U,k)=>{U.component=L;const Z=L.vnode.props;L.vnode=U,L.next=null,mN(L,U.props,Z,k),CN(L,U.children,k),tA(),i1(L),eA()},P=(L,U,k,Z,W,tt,ot,ut,at=!1)=>{const rt=L&&L.children,It=L?L.shapeFlag:0,dt=U.children,{patchFlag:bt,shapeFlag:Pt}=U;if(bt>0){if(bt&128){G(rt,dt,k,Z,W,tt,ot,ut,at);return}else if(bt&256){O(rt,dt,k,Z,W,tt,ot,ut,at);return}}Pt&8?(It&16&&Bt(rt,W,tt),dt!==rt&&u(k,dt)):It&16?Pt&16?G(rt,dt,k,Z,W,tt,ot,ut,at):Bt(rt,W,tt,!0):(It&8&&u(k,""),Pt&16&&S(dt,k,Z,W,tt,ot,ut,at))},O=(L,U,k,Z,W,tt,ot,ut,at)=>{L=L||ms,U=U||ms;const rt=L.length,It=U.length,dt=Math.min(rt,It);let bt;for(bt=0;btIt?Bt(L,W,tt,!0,!1,dt):S(U,k,Z,W,tt,ot,ut,at,dt)},G=(L,U,k,Z,W,tt,ot,ut,at)=>{let rt=0;const It=U.length;let dt=L.length-1,bt=It-1;for(;rt<=dt&&rt<=bt;){const Pt=L[rt],Zt=U[rt]=at?mi(U[rt]):ta(U[rt]);if(hl(Pt,Zt))d(Pt,Zt,k,null,W,tt,ot,ut,at);else break;rt++}for(;rt<=dt&&rt<=bt;){const Pt=L[dt],Zt=U[bt]=at?mi(U[bt]):ta(U[bt]);if(hl(Pt,Zt))d(Pt,Zt,k,null,W,tt,ot,ut,at);else break;dt--,bt--}if(rt>dt){if(rt<=bt){const Pt=bt+1,Zt=Ptbt)for(;rt<=dt;)J(L[rt],W,tt,!0),rt++;else{const Pt=rt,Zt=rt,fe=new Map;for(rt=Zt;rt<=bt;rt++){const Rr=U[rt]=at?mi(U[rt]):ta(U[rt]);Rr.key!=null&&fe.set(Rr.key,rt)}let ae,Ur=0;const qe=bt-Zt+1;let Bn=!1,Pr=0;const fl=new Array(qe);for(rt=0;rt=qe){J(Rr,W,tt,!0);continue}let Nn;if(Rr.key!=null)Nn=fe.get(Rr.key);else for(ae=Zt;ae<=bt;ae++)if(fl[ae-Zt]===0&&hl(Rr,U[ae])){Nn=ae;break}Nn===void 0?J(Rr,W,tt,!0):(fl[Nn-Zt]=rt+1,Nn>=Pr?Pr=Nn:Bn=!0,d(Rr,U[Nn],k,null,W,tt,ot,ut,at),Ur++)}const $C=Bn?TN(fl):ms;for(ae=$C.length-1,rt=qe-1;rt>=0;rt--){const Rr=Zt+rt,Nn=U[Rr],JC=Rr+1{const{el:tt,type:ot,transition:ut,children:at,shapeFlag:rt}=L;if(rt&6){X(L.component.subTree,U,k,Z);return}if(rt&128){L.suspense.move(U,k,Z);return}if(rt&64){ot.move(L,U,k,q);return}if(ot===Fr){n(tt,U,k);for(let dt=0;dtut.enter(tt),W);else{const{leave:dt,delayLeave:bt,afterLeave:Pt}=ut,Zt=()=>n(tt,U,k),fe=()=>{dt(tt,()=>{Zt(),Pt&&Pt()})};bt?bt(tt,Zt,fe):fe()}else n(tt,U,k)},J=(L,U,k,Z=!1,W=!1)=>{const{type:tt,props:ot,ref:ut,children:at,dynamicChildren:rt,shapeFlag:It,patchFlag:dt,dirs:bt,cacheIndex:Pt}=L;if(dt===-2&&(W=!1),ut!=null&&km(ut,null,k,L,!0),Pt!=null&&(U.renderCache[Pt]=void 0),It&256){U.ctx.deactivate(L);return}const Zt=It&1&&bt,fe=!du(L);let ae;if(fe&&(ae=ot&&ot.onVnodeBeforeUnmount)&&Vn(ae,U,L),It&6)wt(L.component,k,Z);else{if(It&128){L.suspense.unmount(k,Z);return}Zt&&aA(L,null,U,"beforeUnmount"),It&64?L.type.remove(L,U,k,q,Z):rt&&!rt.hasOnce&&(tt!==Fr||dt>0&&dt&64)?Bt(rt,U,k,!1,!0):(tt===Fr&&dt&384||!W&&It&16)&&Bt(at,U,k),Z&&At(L)}(fe&&(ae=ot&&ot.onVnodeUnmounted)||Zt)&&kr(()=>{ae&&Vn(ae,U,L),Zt&&aA(L,null,U,"unmounted")},k)},At=L=>{const{type:U,el:k,anchor:Z,transition:W}=L;if(U===Fr){lt(k,Z);return}if(U===kp){w(L);return}const tt=()=>{a(k),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(L.shapeFlag&1&&W&&!W.persisted){const{leave:ot,delayLeave:ut}=W,at=()=>ot(k,tt);ut?ut(L.el,tt,at):at()}else tt()},lt=(L,U)=>{let k;for(;L!==U;)k=c(L),a(L),L=k;a(U)},wt=(L,U,k)=>{const{bum:Z,scope:W,job:tt,subTree:ot,um:ut,m:at,a:rt}=L;c1(at),c1(rt),Z&&Qp(Z),W.stop(),tt&&(tt.flags|=8,J(ot,L,U,k)),ut&&kr(ut,U),kr(()=>{L.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},Bt=(L,U,k,Z=!1,W=!1,tt=0)=>{for(let ot=tt;ot{if(L.shapeFlag&6)return N(L.component.subTree);if(L.shapeFlag&128)return L.suspense.next();const U=c(L.anchor||L.el),k=U&&U[Xk];return k?c(k):U};let z=!1;const $=(L,U,k)=>{L==null?U._vnode&&J(U._vnode,null,null,!0):d(U._vnode||null,L,U,null,null,null,k),U._vnode=L,z||(z=!0,i1(),TQ(),z=!1)},q={p:d,um:J,m:X,r:At,mt:D,mc:S,pc:P,pbc:b,n:N,o:r};let j,ct;return{render:$,hydrate:j,createApp:gN($,j)}}function Hp({type:r,props:t},e){return e==="svg"&&r==="foreignObject"||e==="mathml"&&r==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function iA({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function bN(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function KQ(r,t,e=!1){const n=r.children,a=t.children;if(Ot(n)&&Ot(a))for(let i=0;i>1,r[e[o]]0&&(t[n]=e[i-1]),e[i]=n)}}for(i=e.length,A=e[i-1];i-- >0;)e[i]=A,A=t[A];return e}function zQ(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zQ(t)}function c1(r){if(r)for(let t=0;tPa(IN);function gu(r,t,e){return WQ(r,t,e)}function WQ(r,t,e=he){const{immediate:n,deep:a,flush:i,once:A}=e,o=Ze({},e);let s;if(Qd)if(i==="sync"){const c=FN();s=c.__watcherHandles||(c.__watcherHandles=[])}else if(!t||n)o.once=!0;else{const c=()=>{};return c.stop=sa,c.resume=sa,c.pause=sa,c}const l=ir;o.call=(c,h,v)=>ca(c,l,h,v);let u=!1;i==="post"?o.scheduler=c=>{kr(c,l&&l.suspense)}:i!=="sync"&&(u=!0,o.scheduler=(c,h)=>{h?c():xB(c)}),o.augmentJob=c=>{t&&(c.flags|=4),u&&(c.flags|=2,l&&(c.id=l.uid,c.i=l))};const f=Vk(r,t,o);return s&&s.push(f),f}function EN(r,t,e){const n=this.proxy,a=De(r)?r.includes(".")?XQ(n,r):()=>n[r]:r.bind(n,n);let i;kt(t)?i=t:(i=t.handler,e=t);const A=If(this),o=WQ(a,i.bind(n),e);return A(),o}function XQ(r,t){const e=t.split(".");return()=>{let n=r;for(let a=0;at==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${pn(t)}Modifiers`]||r[`${wo(t)}Modifiers`];function QN(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||he;let a=e;const i=t.startsWith("update:"),A=i&&DN(n,t.slice(7));A&&(A.trim&&(a=e.map(u=>De(u)?u.trim():u)),A.number&&(a=e.map(ik)));let o,s=n[o=Dp(t)]||n[o=Dp(pn(t))];!s&&i&&(s=n[o=Dp(wo(t))]),s&&ca(s,r,6,a);const l=n[o+"Once"];if(l){if(!r.emitted)r.emitted={};else if(r.emitted[o])return;r.emitted[o]=!0,ca(l,r,6,a)}}function YQ(r,t,e=!1){const n=t.emitsCache,a=n.get(r);if(a!==void 0)return a;const i=r.emits;let A={},o=!1;if(!kt(r)){const s=l=>{const u=YQ(l,t,!0);u&&(o=!0,Ze(A,u))};!e&&t.mixins.length&&t.mixins.forEach(s),r.extends&&s(r.extends),r.mixins&&r.mixins.forEach(s)}return!i&&!o?(ge(r)&&n.set(r,null),null):(Ot(i)?i.forEach(s=>A[s]=null):Ze(A,i),ge(r)&&n.set(r,A),A)}function Ed(r,t){return!r||!Bd(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(r,t[0].toLowerCase()+t.slice(1))||re(r,wo(t))||re(r,t))}function Op(r){const{type:t,vnode:e,proxy:n,withProxy:a,propsOptions:[i],slots:A,attrs:o,emit:s,render:l,renderCache:u,props:f,data:c,setupState:h,ctx:v,inheritAttrs:d}=r,p=fv(r);let g,y;try{if(e.shapeFlag&4){const w=a||n,_=w;g=ta(l.call(_,w,u,f,h,c,v)),y=o}else{const w=t;g=ta(w.length>1?w(f,{attrs:o,slots:A,emit:s}):w(f,null)),y=t.props?o:LN(o)}}catch(w){yu.length=0,Id(w,r,1),g=yr(fo)}let m=g;if(y&&d!==!1){const w=Object.keys(y),{shapeFlag:_}=m;w.length&&_&7&&(i&&w.some(fB)&&(y=MN(y,i)),m=Ds(m,y,!1,!0))}return e.dirs&&(m=Ds(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(e.dirs):e.dirs),e.transition&&bB(m,e.transition),g=m,fv(p),g}const LN=r=>{let t;for(const e in r)(e==="class"||e==="style"||Bd(e))&&((t||(t={}))[e]=r[e]);return t},MN=(r,t)=>{const e={};for(const n in r)(!fB(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function UN(r,t,e){const{props:n,children:a,component:i}=r,{props:A,children:o,patchFlag:s}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&s>=0){if(s&1024)return!0;if(s&16)return n?h1(n,A,l):!!A;if(s&8){const u=t.dynamicProps;for(let f=0;fr.__isSuspense;function RN(r,t){t&&t.pendingBranch?Ot(r)?t.effects.push(...r):t.effects.push(r):zk(r)}const Fr=Symbol.for("v-fgt"),Dd=Symbol.for("v-txt"),fo=Symbol.for("v-cmt"),kp=Symbol.for("v-stc"),yu=[];let Kr=null;function Vr(r=!1){yu.push(Kr=r?null:[])}function HN(){yu.pop(),Kr=yu[yu.length-1]||null}let Wu=1;function v1(r){Wu+=r,r<0&&Kr&&(Kr.hasOnce=!0)}function $Q(r){return r.dynamicChildren=Wu>0?Kr||ms:null,HN(),Wu>0&&Kr&&Kr.push(r),r}function na(r,t,e,n,a,i){return $Q(Dt(r,t,e,n,a,i,!0))}function DB(r,t,e,n,a){return $Q(yr(r,t,e,n,a,!0))}function hv(r){return r?r.__v_isVNode===!0:!1}function hl(r,t){return r.type===t.type&&r.key===t.key}const JQ=({key:r})=>r??null,Mh=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?De(r)||Ar(r)||kt(r)?{i:Fn,r,k:t,f:!!e}:r:null);function Dt(r,t=null,e=null,n=0,a=null,i=r===Fr?0:1,A=!1,o=!1){const s={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&JQ(t),ref:t&&Mh(t),scopeId:FQ,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Fn};return o?(QB(s,e),i&128&&r.normalize(s)):e&&(s.shapeFlag|=De(e)?8:16),Wu>0&&!A&&Kr&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Kr.push(s),s}const yr=ON;function ON(r,t=null,e=null,n=0,a=null,i=!1){if((!r||r===sN)&&(r=fo),hv(r)){const o=Ds(r,t,!0);return e&&QB(o,e),Wu>0&&!i&&Kr&&(o.shapeFlag&6?Kr[Kr.indexOf(r)]=o:Kr.push(o)),o.patchFlag=-2,o}if(JN(r)&&(r=r.__vccOpts),t){t=kN(t);let{class:o,style:s}=t;o&&!De(o)&&(t.class=vB(o)),ge(s)&&(_B(s)&&!Ot(s)&&(s=Ze({},s)),t.style=Ga(s))}const A=De(r)?1:ZQ(r)?128:Yk(r)?64:ge(r)?4:kt(r)?2:0;return Dt(r,t,e,n,a,A,i,!0)}function kN(r){return r?_B(r)||RQ(r)?Ze({},r):r:null}function Ds(r,t,e=!1,n=!1){const{props:a,ref:i,patchFlag:A,children:o,transition:s}=r,l=t?VN(a||{},t):a,u={__v_isVNode:!0,__v_skip:!0,type:r.type,props:l,key:l&&JQ(l),ref:t&&t.ref?e&&i?Ot(i)?i.concat(Mh(t)):[i,Mh(t)]:Mh(t):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:o,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==Fr?A===-1?16:A|16:A,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:s,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Ds(r.ssContent),ssFallback:r.ssFallback&&Ds(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return s&&n&&bB(u,s.clone(u)),u}function vv(r=" ",t=0){return yr(Dd,null,r,t)}function NN(r="",t=!1){return t?(Vr(),DB(fo,null,r)):yr(fo,null,r)}function ta(r){return r==null||typeof r=="boolean"?yr(fo):Ot(r)?yr(Fr,null,r.slice()):hv(r)?mi(r):yr(Dd,null,String(r))}function mi(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Ds(r)}function QB(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(Ot(t))e=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),QB(r,a()),a._c&&(a._d=!0));return}else{e=32;const a=t._;!a&&!RQ(t)?t._ctx=Fn:a===3&&Fn&&(Fn.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else kt(t)?(t={default:t,_ctx:Fn},e=32):(t=String(t),n&64?(e=16,t=[vv(t)]):e=8);r.children=t,r.shapeFlag|=e}function VN(...r){const t={};for(let e=0;e{let a;return(a=r[e])||(a=r[e]=[]),a.push(n),i=>{a.length>1?a.forEach(A=>A(i)):a[0](i)}};dv=t("__VUE_INSTANCE_SETTERS__",e=>ir=e),Wm=t("__VUE_SSR_SETTERS__",e=>Qd=e)}const If=r=>{const t=ir;return dv(r),r.scope.on(),()=>{r.scope.off(),dv(t)}},d1=()=>{ir&&ir.scope.off(),dv(null)};function qQ(r){return r.vnode.shapeFlag&4}let Qd=!1;function WN(r,t=!1,e=!1){t&&Wm(t);const{props:n,children:a}=r.vnode,i=qQ(r);yN(r,n,i,t),_N(r,a,e);const A=i?XN(r,t):void 0;return t&&Wm(!1),A}function XN(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,uN);const{setup:n}=e;if(n){const a=r.setupContext=n.length>1?ZN(r):null,i=If(r);tA();const A=Tf(n,r,0,[r.props,a]);if(eA(),i(),qD(A)){if(du(r)||EQ(r),A.then(d1,d1),t)return A.then(o=>{p1(r,o,t)}).catch(o=>{Id(o,r,0)});r.asyncDep=A}else p1(r,A,t)}else jQ(r,t)}function p1(r,t,e){kt(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:ge(t)&&(r.setupState=CQ(t)),jQ(r,e)}let g1;function jQ(r,t,e){const n=r.type;if(!r.render){if(!t&&g1&&!n.render){const a=n.template||FB(r).template;if(a){const{isCustomElement:i,compilerOptions:A}=r.appContext.config,{delimiters:o,compilerOptions:s}=n,l=Ze(Ze({isCustomElement:i,delimiters:o},A),s);n.render=g1(a,l)}}r.render=n.render||sa}{const a=If(r);tA();try{fN(r)}finally{eA(),a()}}}const YN={get(r,t){return or(r,"get",""),r[t]}};function ZN(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,YN),slots:r.slots,emit:r.emit,expose:t}}function LB(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(CQ(Uk(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in pu)return pu[e](r)},has(t,e){return e in t||e in pu}})):r.proxy}function $N(r,t=!0){return kt(r)?r.displayName||r.name:r.name||t&&r.__name}function JN(r){return kt(r)&&"__vccOpts"in r}const xe=(r,t)=>kk(r,t,Qd);function tL(r,t,e){const n=arguments.length;return n===2?ge(t)&&!Ot(t)?hv(t)?yr(r,null,[t]):yr(r,t):yr(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&hv(e)&&(e=[e]),yr(r,t,e))}const qN="3.5.10";/** +* @vue/runtime-dom v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Xm;const y1=typeof window<"u"&&window.trustedTypes;if(y1)try{Xm=y1.createPolicy("vue",{createHTML:r=>r})}catch{}const eL=Xm?r=>Xm.createHTML(r):r=>r,jN="http://www.w3.org/2000/svg",t4="http://www.w3.org/1998/Math/MathML",Ea=typeof document<"u"?document:null,m1=Ea&&Ea.createElement("template"),e4={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,n)=>{const a=t==="svg"?Ea.createElementNS(jN,r):t==="mathml"?Ea.createElementNS(t4,r):e?Ea.createElement(r,{is:e}):Ea.createElement(r);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>Ea.createTextNode(r),createComment:r=>Ea.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Ea.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,a,i){const A=e?e.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),e),!(a===i||!(a=a.nextSibling)););else{m1.innerHTML=eL(n==="svg"?`${r}`:n==="mathml"?`${r}`:r);const o=m1.content;if(n==="svg"||n==="mathml"){const s=o.firstChild;for(;s.firstChild;)o.appendChild(s.firstChild);o.removeChild(s)}t.insertBefore(o,e)}return[A?A.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},r4=Symbol("_vtc");function n4(r,t,e){const n=r[r4];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const w1=Symbol("_vod"),a4=Symbol("_vsh"),i4=Symbol(""),A4=/(^|;)\s*display\s*:/;function o4(r,t,e){const n=r.style,a=De(e);let i=!1;if(e&&!a){if(t)if(De(t))for(const A of t.split(";")){const o=A.slice(0,A.indexOf(":")).trim();e[o]==null&&Uh(n,o,"")}else for(const A in t)e[A]==null&&Uh(n,A,"");for(const A in e)A==="display"&&(i=!0),Uh(n,A,e[A])}else if(a){if(t!==e){const A=n[i4];A&&(e+=";"+A),n.cssText=e,i=A4.test(e)}}else t&&r.removeAttribute("style");w1 in r&&(r[w1]=i?n.display:"",r[a4]&&(n.display="none"))}const B1=/\s*!important$/;function Uh(r,t,e){if(Ot(e))e.forEach(n=>Uh(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=s4(r,t);B1.test(e)?r.setProperty(wo(n),e.replace(B1,""),"important"):r[n]=e}}const _1=["Webkit","Moz","ms"],Np={};function s4(r,t){const e=Np[t];if(e)return e;let n=pn(t);if(n!=="filter"&&n in r)return Np[t]=n;n=Sd(n);for(let a=0;a<_1.length;a++){const i=_1[a]+n;if(i in r)return Np[t]=i}return t}const C1="http://www.w3.org/1999/xlink";function S1(r,t,e,n,a,i=fk(t)){n&&t.startsWith("xlink:")?e==null?r.removeAttributeNS(C1,t.slice(6,t.length)):r.setAttributeNS(C1,t,e):e==null||i&&!nQ(e)?r.removeAttribute(t):r.setAttribute(t,i?"":ji(e)?String(e):e)}function x1(r,t,e,n){if(t==="innerHTML"||t==="textContent"){e!=null&&(r[t]=t==="innerHTML"?eL(e):e);return}const a=r.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const A=a==="OPTION"?r.getAttribute("value")||"":r.value,o=e==null?r.type==="checkbox"?"on":"":String(e);(A!==o||!("_value"in r))&&(r.value=o),e==null&&r.removeAttribute(t),r._value=e;return}let i=!1;if(e===""||e==null){const A=typeof r[t];A==="boolean"?e=nQ(e):e==null&&A==="string"?(e="",i=!0):A==="number"&&(e=0,i=!0)}try{r[t]=e}catch{}i&&r.removeAttribute(t)}function l4(r,t,e,n){r.addEventListener(t,e,n)}function u4(r,t,e,n){r.removeEventListener(t,e,n)}const b1=Symbol("_vei");function f4(r,t,e,n,a=null){const i=r[b1]||(r[b1]={}),A=i[t];if(n&&A)A.value=n;else{const[o,s]=c4(t);if(n){const l=i[t]=d4(n,a);l4(r,o,l,s)}else A&&(u4(r,o,A,s),i[t]=void 0)}}const T1=/(?:Once|Passive|Capture)$/;function c4(r){let t;if(T1.test(r)){t={};let n;for(;n=r.match(T1);)r=r.slice(0,r.length-n[0].length),t[n[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):wo(r.slice(2)),t]}let Vp=0;const h4=Promise.resolve(),v4=()=>Vp||(h4.then(()=>Vp=0),Vp=Date.now());function d4(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;ca(p4(n,e.value),t,5,[n])};return e.value=r,e.attached=v4(),e}function p4(r,t){if(Ot(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const I1=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,g4=(r,t,e,n,a,i)=>{const A=a==="svg";t==="class"?n4(r,n,A):t==="style"?o4(r,e,n):Bd(t)?fB(t)||f4(r,t,e,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):y4(r,t,n,A))?(x1(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&S1(r,t,n,A,i,t!=="value")):r._isVueCE&&(/[A-Z]/.test(t)||!De(n))?x1(r,pn(t),n):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),S1(r,t,n,A))};function y4(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&I1(t)&&kt(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return I1(t)&&De(e)?!1:t in r}const m4=Ze({patchProp:g4},e4);let F1;function w4(){return F1||(F1=SN(m4))}const B4=(...r)=>{const t=w4().createApp(...r),{mount:e}=t;return t.mount=n=>{const a=C4(n);if(!a)return;const i=t._component;!kt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const A=e(a,!1,_4(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),A},t};function _4(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function C4(r){return De(r)?document.querySelector(r):r}const S4=Bo({__name:"App",setup(r){console.log("App.vue");const t=new Date().getFullYear();return(e,n)=>{const a=oN("router-view");return Vr(),na(Fr,null,[n[4]||(n[4]=Dt("h1",{style:{"text-align":"center"}},"Server Status",-1)),yr(a),Dt("footer",null,[n[0]||(n[0]=Dt("a",{href:"https://github.com/snowykami/server-status-server"},"Server Status Dashboard",-1)),n[1]||(n[1]=Dt("br",null,null,-1)),vv(" © Copyright 2024-"+ze(la(t))+" ",1),n[2]||(n[2]=Dt("a",{href:"https://sfkm.me",target:"_blank"},"Snowykami",-1)),n[3]||(n[3]=vv(" All Rights Reserved "))])],64)}}}),Ws=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e},x4=Ws(S4,[["__scopeId","data-v-ffc01d8f"]]);/*! + * vue-router v4.4.5 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const is=typeof document<"u";function rL(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function b4(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&rL(r.default)}const ie=Object.assign;function Gp(r,t){const e={};for(const n in t){const a=t[n];e[n]=Un(a)?a.map(r):r(a)}return e}const mu=()=>{},Un=Array.isArray,nL=/#/g,T4=/&/g,I4=/\//g,F4=/=/g,E4=/\?/g,aL=/\+/g,D4=/%5B/g,Q4=/%5D/g,iL=/%5E/g,L4=/%60/g,AL=/%7B/g,M4=/%7C/g,oL=/%7D/g,U4=/%20/g;function MB(r){return encodeURI(""+r).replace(M4,"|").replace(D4,"[").replace(Q4,"]")}function P4(r){return MB(r).replace(AL,"{").replace(oL,"}").replace(iL,"^")}function Ym(r){return MB(r).replace(aL,"%2B").replace(U4,"+").replace(nL,"%23").replace(T4,"%26").replace(L4,"`").replace(AL,"{").replace(oL,"}").replace(iL,"^")}function R4(r){return Ym(r).replace(F4,"%3D")}function H4(r){return MB(r).replace(nL,"%23").replace(E4,"%3F")}function O4(r){return r==null?"":H4(r).replace(I4,"%2F")}function Xu(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const k4=/\/$/,N4=r=>r.replace(k4,"");function Kp(r,t,e="/"){let n,a={},i="",A="";const o=t.indexOf("#");let s=t.indexOf("?");return o=0&&(s=-1),s>-1&&(n=t.slice(0,s),i=t.slice(s+1,o>-1?o:t.length),a=r(i)),o>-1&&(n=n||t.slice(0,o),A=t.slice(o,t.length)),n=z4(n??t,e),{fullPath:n+(i&&"?")+i+A,path:n,query:a,hash:Xu(A)}}function V4(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function E1(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function G4(r,t,e){const n=t.matched.length-1,a=e.matched.length-1;return n>-1&&n===a&&Qs(t.matched[n],e.matched[a])&&sL(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Qs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function sL(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(!K4(r[e],t[e]))return!1;return!0}function K4(r,t){return Un(r)?D1(r,t):Un(t)?D1(t,r):r===t}function D1(r,t){return Un(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function z4(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let i=e.length-1,A,o;for(A=0;A1&&i--;else break;return e.slice(0,i).join("/")+"/"+n.slice(A).join("/")}const ai={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Yu;(function(r){r.pop="pop",r.push="push"})(Yu||(Yu={}));var wu;(function(r){r.back="back",r.forward="forward",r.unknown=""})(wu||(wu={}));function W4(r){if(!r)if(is){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),N4(r)}const X4=/^[^#]+#/;function Y4(r,t){return r.replace(X4,"#")+t}function Z4(r,t){const e=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:t.behavior,left:n.left-e.left-(t.left||0),top:n.top-e.top-(t.top||0)}}const Ld=()=>({left:window.scrollX,top:window.scrollY});function $4(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),a=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!a)return;t=Z4(a,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Q1(r,t){return(history.state?history.state.position-t:-1)+r}const Zm=new Map;function J4(r,t){Zm.set(r,t)}function q4(r){const t=Zm.get(r);return Zm.delete(r),t}let j4=()=>location.protocol+"//"+location.host;function lL(r,t){const{pathname:e,search:n,hash:a}=t,i=r.indexOf("#");if(i>-1){let o=a.includes(r.slice(i))?r.slice(i).length:1,s=a.slice(o);return s[0]!=="/"&&(s="/"+s),E1(s,"")}return E1(e,r)+n+a}function tV(r,t,e,n){let a=[],i=[],A=null;const o=({state:c})=>{const h=lL(r,location),v=e.value,d=t.value;let p=0;if(c){if(e.value=h,t.value=c,A&&A===v){A=null;return}p=d?c.position-d.position:0}else n(h);a.forEach(g=>{g(e.value,v,{delta:p,type:Yu.pop,direction:p?p>0?wu.forward:wu.back:wu.unknown})})};function s(){A=e.value}function l(c){a.push(c);const h=()=>{const v=a.indexOf(c);v>-1&&a.splice(v,1)};return i.push(h),h}function u(){const{history:c}=window;c.state&&c.replaceState(ie({},c.state,{scroll:Ld()}),"")}function f(){for(const c of i)c();i=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:s,listen:l,destroy:f}}function L1(r,t,e,n=!1,a=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:a?Ld():null}}function eV(r){const{history:t,location:e}=window,n={value:lL(r,e)},a={value:t.state};a.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,l,u){const f=r.indexOf("#"),c=f>-1?(e.host&&document.querySelector("base")?r:r.slice(f))+s:j4()+r+s;try{t[u?"replaceState":"pushState"](l,"",c),a.value=l}catch(h){console.error(h),e[u?"replace":"assign"](c)}}function A(s,l){const u=ie({},t.state,L1(a.value.back,s,a.value.forward,!0),l,{position:a.value.position});i(s,u,!0),n.value=s}function o(s,l){const u=ie({},a.value,t.state,{forward:s,scroll:Ld()});i(u.current,u,!0);const f=ie({},L1(n.value,s,null),{position:u.position+1},l);i(s,f,!1),n.value=s}return{location:n,state:a,push:o,replace:A}}function rV(r){r=W4(r);const t=eV(r),e=tV(r,t.state,t.location,t.replace);function n(i,A=!0){A||e.pauseListeners(),history.go(i)}const a=ie({location:"",base:r,go:n,createHref:Y4.bind(null,r)},t,e);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function nV(r){return typeof r=="string"||r&&typeof r=="object"}function uL(r){return typeof r=="string"||typeof r=="symbol"}const fL=Symbol("");var M1;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(M1||(M1={}));function Ls(r,t){return ie(new Error,{type:r,[fL]:!0},t)}function Sa(r,t){return r instanceof Error&&fL in r&&(t==null||!!(r.type&t))}const U1="[^/]+?",aV={sensitive:!1,strict:!1,start:!0,end:!0},iV=/[.+*?^${}()[\]/\\]/g;function AV(r,t){const e=ie({},aV,t),n=[];let a=e.start?"^":"";const i=[];for(const l of r){const u=l.length?[]:[90];e.strict&&!l.length&&(a+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function cL(r,t){let e=0;const n=r.score,a=t.score;for(;e0&&t[t.length-1]<0}const sV={type:0,value:""},lV=/[a-zA-Z0-9_]/;function uV(r){if(!r)return[[]];if(r==="/")return[[sV]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(h){throw new Error(`ERR (${e})/"${l}": ${h}`)}let e=0,n=e;const a=[];let i;function A(){i&&a.push(i),i=[]}let o=0,s,l="",u="";function f(){l&&(e===0?i.push({type:0,value:l}):e===1||e===2||e===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),l="")}function c(){l+=s}for(;o{A(m)}:mu}function A(f){if(uL(f)){const c=n.get(f);c&&(n.delete(f),e.splice(e.indexOf(c),1),c.children.forEach(A),c.alias.forEach(A))}else{const c=e.indexOf(f);c>-1&&(e.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(A),f.alias.forEach(A))}}function o(){return e}function s(f){const c=dV(f,e);e.splice(c,0,f),f.record.name&&!O1(f)&&n.set(f.record.name,f)}function l(f,c){let h,v={},d,p;if("name"in f&&f.name){if(h=n.get(f.name),!h)throw Ls(1,{location:f});p=h.record.name,v=ie(R1(c.params,h.keys.filter(m=>!m.optional).concat(h.parent?h.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),f.params&&R1(f.params,h.keys.map(m=>m.name))),d=h.stringify(v)}else if(f.path!=null)d=f.path,h=e.find(m=>m.re.test(d)),h&&(v=h.parse(d),p=h.record.name);else{if(h=c.name?n.get(c.name):e.find(m=>m.re.test(c.path)),!h)throw Ls(1,{location:f,currentLocation:c});p=h.record.name,v=ie({},c.params,f.params),d=h.stringify(v)}const g=[];let y=h;for(;y;)g.unshift(y.record),y=y.parent;return{name:p,path:d,params:v,matched:g,meta:vV(g)}}r.forEach(f=>i(f));function u(){e.length=0,n.clear()}return{addRoute:i,resolve:l,removeRoute:A,clearRoutes:u,getRoutes:o,getRecordMatcher:a}}function R1(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function H1(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:hV(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function hV(r){const t={},e=r.props||!1;if("component"in r)t.default=e;else for(const n in r.components)t[n]=typeof e=="object"?e[n]:e;return t}function O1(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function vV(r){return r.reduce((t,e)=>ie(t,e.meta),{})}function k1(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}function dV(r,t){let e=0,n=t.length;for(;e!==n;){const i=e+n>>1;cL(r,t[i])<0?n=i:e=i+1}const a=pV(r);return a&&(n=t.lastIndexOf(a,n-1)),n}function pV(r){let t=r;for(;t=t.parent;)if(hL(t)&&cL(r,t)===0)return t}function hL({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function gV(r){const t={};if(r===""||r==="?")return t;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let a=0;ai&&Ym(i)):[n&&Ym(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function yV(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=Un(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const mV=Symbol(""),V1=Symbol(""),UB=Symbol(""),vL=Symbol(""),$m=Symbol("");function vl(){let r=[];function t(n){return r.push(n),()=>{const a=r.indexOf(n);a>-1&&r.splice(a,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function wi(r,t,e,n,a,i=A=>A()){const A=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(Ls(4,{from:e,to:t})):c instanceof Error?s(c):nV(c)?s(Ls(2,{from:t,to:c})):(A&&n.enterCallbacks[a]===A&&typeof c=="function"&&A.push(c),o())},u=i(()=>r.call(n&&n.instances[a],t,e,l));let f=Promise.resolve(u);r.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function zp(r,t,e,n,a=i=>i()){const i=[];for(const A of r)for(const o in A.components){let s=A.components[o];if(!(t!=="beforeRouteEnter"&&!A.instances[o]))if(rL(s)){const u=(s.__vccOpts||s)[t];u&&i.push(wi(u,e,n,A,o,a))}else{let l=s();i.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${o}" at "${A.path}"`);const f=b4(u)?u.default:u;A.mods[o]=u,A.components[o]=f;const h=(f.__vccOpts||f)[t];return h&&wi(h,e,n,A,o,a)()}))}}return i}function G1(r){const t=Pa(UB),e=Pa(vL),n=xe(()=>{const s=la(r.to);return t.resolve(s)}),a=xe(()=>{const{matched:s}=n.value,{length:l}=s,u=s[l-1],f=e.matched;if(!u||!f.length)return-1;const c=f.findIndex(Qs.bind(null,u));if(c>-1)return c;const h=K1(s[l-2]);return l>1&&K1(u)===h&&f[f.length-1].path!==h?f.findIndex(Qs.bind(null,s[l-2])):c}),i=xe(()=>a.value>-1&&CV(e.params,n.value.params)),A=xe(()=>a.value>-1&&a.value===e.matched.length-1&&sL(e.params,n.value.params));function o(s={}){return _V(s)?t[la(r.replace)?"replace":"push"](la(r.to)).catch(mu):Promise.resolve()}return{route:n,href:xe(()=>n.value.href),isActive:i,isExactActive:A,navigate:o}}const wV=Bo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:G1,setup(r,{slots:t}){const e=Td(G1(r)),{options:n}=Pa(UB),a=xe(()=>({[z1(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[z1(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const i=t.default&&t.default(e);return r.custom?i:tL("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:a.value},i)}}}),BV=wV;function _V(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const t=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return r.preventDefault&&r.preventDefault(),!0}}function CV(r,t){for(const e in t){const n=t[e],a=r[e];if(typeof n=="string"){if(n!==a)return!1}else if(!Un(a)||a.length!==n.length||n.some((i,A)=>i!==a[A]))return!1}return!0}function K1(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const z1=(r,t,e)=>r??t??e,SV=Bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=Pa($m),a=xe(()=>r.route||n.value),i=Pa(V1,0),A=xe(()=>{let l=la(i);const{matched:u}=a.value;let f;for(;(f=u[l])&&!f.components;)l++;return l}),o=xe(()=>a.value.matched[A.value]);Lh(V1,xe(()=>A.value+1)),Lh(mV,o),Lh($m,a);const s=qn();return gu(()=>[s.value,o.value,r.name],([l,u,f],[c,h,v])=>{u&&(u.instances[f]=l,h&&h!==u&&l&&l===c&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),l&&u&&(!h||!Qs(u,h)||!c)&&(u.enterCallbacks[f]||[]).forEach(d=>d(l))},{flush:"post"}),()=>{const l=a.value,u=r.name,f=o.value,c=f&&f.components[u];if(!c)return W1(e.default,{Component:c,route:l});const h=f.props[u],v=h?h===!0?l.params:typeof h=="function"?h(l):h:null,p=tL(c,ie({},v,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[u]=null)},ref:s}));return W1(e.default,{Component:p,route:l})||p}}});function W1(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const xV=SV;function bV(r){const t=cV(r.routes,r),e=r.parseQuery||gV,n=r.stringifyQuery||N1,a=r.history,i=vl(),A=vl(),o=vl(),s=Pk(ai);let l=ai;is&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Gp.bind(null,N=>""+N),f=Gp.bind(null,O4),c=Gp.bind(null,Xu);function h(N,z){let $,q;return uL(N)?($=t.getRecordMatcher(N),q=z):q=N,t.addRoute(q,$)}function v(N){const z=t.getRecordMatcher(N);z&&t.removeRoute(z)}function d(){return t.getRoutes().map(N=>N.record)}function p(N){return!!t.getRecordMatcher(N)}function g(N,z){if(z=ie({},z||s.value),typeof N=="string"){const U=Kp(e,N,z.path),k=t.resolve({path:U.path},z),Z=a.createHref(U.fullPath);return ie(U,k,{params:c(k.params),hash:Xu(U.hash),redirectedFrom:void 0,href:Z})}let $;if(N.path!=null)$=ie({},N,{path:Kp(e,N.path,z.path).path});else{const U=ie({},N.params);for(const k in U)U[k]==null&&delete U[k];$=ie({},N,{params:f(U)}),z.params=f(z.params)}const q=t.resolve($,z),j=N.hash||"";q.params=u(c(q.params));const ct=V4(n,ie({},N,{hash:P4(j),path:q.path})),L=a.createHref(ct);return ie({fullPath:ct,hash:j,query:n===N1?yV(N.query):N.query||{}},q,{redirectedFrom:void 0,href:L})}function y(N){return typeof N=="string"?Kp(e,N,s.value.path):ie({},N)}function m(N,z){if(l!==N)return Ls(8,{from:z,to:N})}function w(N){return C(N)}function _(N){return w(ie(y(N),{replace:!0}))}function B(N){const z=N.matched[N.matched.length-1];if(z&&z.redirect){const{redirect:$}=z;let q=typeof $=="function"?$(N):$;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=y(q):{path:q},q.params={}),ie({query:N.query,hash:N.hash,params:q.path!=null?{}:N.params},q)}}function C(N,z){const $=l=g(N),q=s.value,j=N.state,ct=N.force,L=N.replace===!0,U=B($);if(U)return C(ie(y(U),{state:typeof U=="object"?ie({},j,U.state):j,force:ct,replace:L}),z||$);const k=$;k.redirectedFrom=z;let Z;return!ct&&G4(n,q,$)&&(Z=Ls(16,{to:k,from:q}),X(q,q,!0,!1)),(Z?Promise.resolve(Z):b(k,q)).catch(W=>Sa(W)?Sa(W,2)?W:G(W):P(W,k,q)).then(W=>{if(W){if(Sa(W,2))return C(ie({replace:L},y(W.to),{state:typeof W.to=="object"?ie({},j,W.to.state):j,force:ct}),z||k)}else W=F(k,q,!0,L,j);return I(k,q,W),W})}function S(N,z){const $=m(N,z);return $?Promise.reject($):Promise.resolve()}function x(N){const z=lt.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(N):N()}function b(N,z){let $;const[q,j,ct]=TV(N,z);$=zp(q.reverse(),"beforeRouteLeave",N,z);for(const U of q)U.leaveGuards.forEach(k=>{$.push(wi(k,N,z))});const L=S.bind(null,N,z);return $.push(L),Bt($).then(()=>{$=[];for(const U of i.list())$.push(wi(U,N,z));return $.push(L),Bt($)}).then(()=>{$=zp(j,"beforeRouteUpdate",N,z);for(const U of j)U.updateGuards.forEach(k=>{$.push(wi(k,N,z))});return $.push(L),Bt($)}).then(()=>{$=[];for(const U of ct)if(U.beforeEnter)if(Un(U.beforeEnter))for(const k of U.beforeEnter)$.push(wi(k,N,z));else $.push(wi(U.beforeEnter,N,z));return $.push(L),Bt($)}).then(()=>(N.matched.forEach(U=>U.enterCallbacks={}),$=zp(ct,"beforeRouteEnter",N,z,x),$.push(L),Bt($))).then(()=>{$=[];for(const U of A.list())$.push(wi(U,N,z));return $.push(L),Bt($)}).catch(U=>Sa(U,8)?U:Promise.reject(U))}function I(N,z,$){o.list().forEach(q=>x(()=>q(N,z,$)))}function F(N,z,$,q,j){const ct=m(N,z);if(ct)return ct;const L=z===ai,U=is?history.state:{};$&&(q||L?a.replace(N.fullPath,ie({scroll:L&&U&&U.scroll},j)):a.push(N.fullPath,j)),s.value=N,X(N,z,$,L),G()}let E;function D(){E||(E=a.listen((N,z,$)=>{if(!wt.listening)return;const q=g(N),j=B(q);if(j){C(ie(j,{replace:!0}),q).catch(mu);return}l=q;const ct=s.value;is&&J4(Q1(ct.fullPath,$.delta),Ld()),b(q,ct).catch(L=>Sa(L,12)?L:Sa(L,2)?(C(L.to,q).then(U=>{Sa(U,20)&&!$.delta&&$.type===Yu.pop&&a.go(-1,!1)}).catch(mu),Promise.reject()):($.delta&&a.go(-$.delta,!1),P(L,q,ct))).then(L=>{L=L||F(q,ct,!1),L&&($.delta&&!Sa(L,8)?a.go(-$.delta,!1):$.type===Yu.pop&&Sa(L,20)&&a.go(-1,!1)),I(q,ct,L)}).catch(mu)}))}let Q=vl(),M=vl(),R;function P(N,z,$){G(N);const q=M.list();return q.length?q.forEach(j=>j(N,z,$)):console.error(N),Promise.reject(N)}function O(){return R&&s.value!==ai?Promise.resolve():new Promise((N,z)=>{Q.add([N,z])})}function G(N){return R||(R=!N,D(),Q.list().forEach(([z,$])=>N?$(N):z()),Q.reset()),N}function X(N,z,$,q){const{scrollBehavior:j}=r;if(!is||!j)return Promise.resolve();const ct=!$&&q4(Q1(N.fullPath,0))||(q||!$)&&history.state&&history.state.scroll||null;return xQ().then(()=>j(N,z,ct)).then(L=>L&&$4(L)).catch(L=>P(L,N,z))}const J=N=>a.go(N);let At;const lt=new Set,wt={currentRoute:s,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:d,resolve:g,options:r,push:w,replace:_,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:i.add,beforeResolve:A.add,afterEach:o.add,onError:M.add,isReady:O,install(N){const z=this;N.component("RouterLink",BV),N.component("RouterView",xV),N.config.globalProperties.$router=z,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>la(s)}),is&&!At&&s.value===ai&&(At=!0,w(a.location).catch(j=>{}));const $={};for(const j in ai)Object.defineProperty($,j,{get:()=>s.value[j],enumerable:!0});N.provide(UB,z),N.provide(vL,wQ($)),N.provide($m,s);const q=N.unmount;lt.add(N),N.unmount=function(){lt.delete(N),lt.size<1&&(l=ai,E&&E(),E=null,s.value=ai,At=!1,R=!1),q()}}};function Bt(N){return N.reduce((z,$)=>z.then(()=>x($)),Promise.resolve())}return wt}function TV(r,t){const e=[],n=[],a=[],i=Math.max(t.matched.length,r.matched.length);for(let A=0;AQs(l,o))?n.push(o):e.push(o));const s=r.matched[A];s&&(t.matched.find(l=>Qs(l,s))||a.push(s))}return[e,n,a]}const IV="";async function X1(){return(await fetch(`${IV}/api/status`)).json()}const FV="/svg/screenshots.svg",EV="/svg/timezone.svg",DV="/svg/label.svg";/*! ***************************************************************************** +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 Jm=function(r,t){return Jm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Jm(r,t)};function H(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Jm(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var QV=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),LV=function(){function r(){this.browser=new QV,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}(),Ut=new LV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ut.wxa=!0,Ut.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ut.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Ut.node=!0,Ut.svgSupported=!0):MV(navigator.userAgent,Ut);function MV(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),A=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),A&&(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 o=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in o||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in o)&&!("OTransition"in o),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var PB=12,dL="sans-serif",Ki=PB+"px "+dL,UV=20,PV=100,RV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function HV(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)o=A*e.length;else for(var s=0;s>1)%2;o.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[s]+":0",a[l]+":0",n[1-s]+":auto",a[1-l]+":auto",""].join("!important;"),r.appendChild(A),e.push(A)}return e}function iG(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,A=[],o=[],s=!0,l=0;l<4;l++){var u=r[l].getBoundingClientRect(),f=2*l,c=u.left,h=u.top;A.push(c,h),s=s&&i&&c===i[f]&&h===i[f+1],o.push(r[l].offsetLeft,r[l].offsetTop)}return s&&a?a:(t.srcCoords=A,t[n]=e?J1(o,A):J1(A,o))}function _L(r){return r.nodeName.toUpperCase()==="CANVAS"}var AG=/([&<>"'])/g,oG={"&":"&","<":"<",">":">",'"':""","'":"'"};function Er(r){return r==null?"":(r+"").replace(AG,function(t,e){return oG[e]})}var sG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xp=[],lG=Ut.browser.firefox&&+Ut.browser.version.split(".")[0]<39;function a0(r,t,e,n){return e=e||{},n?j1(r,t,e):lG&&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):j1(r,t,e),e}function j1(r,t,e){if(Ut.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(_L(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(n0(Xp,r,n,a)){e.zrX=Xp[0],e.zrY=Xp[1];return}}e.zrX=e.zrY=0}function GB(r){return r||window.event}function tn(r,t,e){if(t=GB(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var A=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];A&&a0(r,A,t,e)}else{a0(r,t,t,e);var i=uG(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&sG.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function uG(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function i0(r,t,e,n){r.addEventListener(t,e,n)}function fG(r,t,e,n){r.removeEventListener(t,e,n)}var Ka=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function tS(r){return r.which===2||r.which===3}var cG=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},A=0,o=a.length;A1&&n&&n.length>1){var i=eS(n)/eS(a);!isFinite(i)&&(i=1),t.pinchScale=i;var A=hG(n);return t.pinchX=A[0],t.pinchY=A[1],{type:"pinch",target:r[0].target,event:t}}}}};function Wr(){return[1,0,0,1,0,0]}function Rd(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function KB(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 Ha(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],A=t[1]*e[2]+t[3]*e[3],o=t[0]*e[4]+t[2]*e[5]+t[4],s=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=A,r[4]=o,r[5]=s,r}function va(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 Co(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],A=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*(A-n[0])+u*(l-n[1])+n[0],r[5]=f*(l-n[1])-u*(A-n[0])+n[1],r}function zB(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function Zs(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],A=t[3],o=t[5],s=e*A-i*n;return s?(s=1/s,r[0]=A*s,r[1]=-i*s,r[2]=-n*s,r[3]=e*s,r[4]=(n*o-A*a)*s,r[5]=(i*a-e*o)*s,r):null}function vG(r){var t=Wr();return KB(t,r),t}var Tt=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}(),Ac=Math.min,oc=Math.max,AA=new Tt,oA=new Tt,sA=new Tt,lA=new Tt,dl=new Tt,pl=new Tt,Et=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=Ac(t.x,this.x),n=Ac(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=oc(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=oc(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,a=t.height/e.height,i=Wr();return va(i,i,[-e.x,-e.y]),zB(i,i,[n,a]),va(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=n.x+n.width,A=n.y,o=n.y+n.height,s=t.x,l=t.x+t.width,u=t.y,f=t.y+t.height,c=!(iv&&(v=m,dv&&(v=w,g=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],A=n[4],o=n[5];t.x=e.x*a+A,t.y=e.y*i+o,t.width=e.width*a,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}AA.x=sA.x=e.x,AA.y=lA.y=e.y,oA.x=lA.x=e.x+e.width,oA.y=sA.y=e.y+e.height,AA.transform(n),lA.transform(n),oA.transform(n),sA.transform(n),t.x=Ac(AA.x,oA.x,sA.x,lA.x),t.y=Ac(AA.y,oA.y,sA.y,lA.y);var s=oc(AA.x,oA.x,sA.x,lA.x),l=oc(AA.y,oA.y,sA.y,lA.y);t.width=s-t.x,t.height=l-t.y},r}(),CL="silent";function dG(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:pG}}function pG(){Ka(this.event)}var gG=function(r){H(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}(yn),gl=function(){function r(t,e){this.x=t,this.y=e}return r}(),yG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Zp=new Et(0,0,0,0),SL=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this)||this;return o._hovered=new gl(0,0),o.storage=e,o.painter=n,o.painterRoot=i,o._pointerSize=A,a=a||new gG,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr=new eG(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(T(yG,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,a=e.zrY,i=xL(this,n,a),A=this._hovered,o=A.target;o&&!o.__zr&&(A=this.findHover(A.x,A.y),o=A.target);var s=this._hovered=i?new gl(n,a):this.findHover(n,a),l=s.target,u=this.proxy;u.setCursor&&u.setCursor(l?l.cursor:"default"),o&&l!==o&&this.dispatchToElement(A,"mouseout",e),this.dispatchToElement(s,"mousemove",e),l&&l!==o&&this.dispatchToElement(s,"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 gl(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var A="on"+n,o=dG(n,e,a);i&&(i[A]&&(o.cancelBubble=!!i[A].call(i,o)),i.trigger(n,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(n,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(s){typeof s[A]=="function"&&s[A].call(s,o),s.trigger&&s.trigger(n,o)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),A=new gl(e,n);if(rS(i,A,e,n,a),this._pointerSize&&!A.target){for(var o=[],s=this._pointerSize,l=s/2,u=new Et(e-l,n-l,s,s),f=i.length-1;f>=0;f--){var c=i[f];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Zp.copy(c.getBoundingRect()),c.transform&&Zp.applyTransform(c.transform),Zp.intersect(u)&&o.push(c))}if(o.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function mG(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var A=n.getClipPath();if(A&&!A.contain(t,e))return!1}n.silent&&(a=!0);var o=n.__hostTarget;n=o||n.parent}return a?CL:!0}return!1}function rS(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var A=r[i],o=void 0;if(A!==a&&!A.ignore&&(o=mG(A,e,n))&&(!t.topTarget&&(t.topTarget=A),o!==CL)){t.target=A;break}}}function xL(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var bL=32,yl=7;function wG(r){for(var t=0;r>=bL;)t|=r&1,r>>=1;return r+t}function nS(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a=0;)a++;return a-t}function BG(r,t,e){for(e--;t>>1,a(i,r[s])<0?o=s:A=s+1;var l=n-A;switch(l){case 3:r[A+3]=r[A+2];case 2:r[A+2]=r[A+1];case 1:r[A+1]=r[A];break;default:for(;l>0;)r[A+l]=r[A+l-1],l--}r[A]=i}}function $p(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])>0){for(o=n-a;s0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}else{for(o=a+1;so&&(s=o);var l=A;A=a-s,s=a-l}for(A++;A>>1);i(r,t[e+u])>0?A=u+1:s=u}return s}function Jp(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])<0){for(o=a+1;so&&(s=o);var l=A;A=a-s,s=a-l}else{for(o=n-a;s=0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}for(A++;A>>1);i(r,t[e+u])<0?s=u:A=u+1}return s}function _G(r,t){var e=yl,n,a,i=0,A=[];n=[],a=[];function o(h,v){n[i]=h,a[i]=v,i+=1}function s(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;u(h)}}function l(){for(;i>1;){var h=i-2;h>0&&a[h-1]=yl||C>=yl);if(S)break;_<0&&(_=0),_+=2}if(e=_,e<1&&(e=1),v===1){for(g=0;g=0;g--)r[B+g]=r[_+g];r[w]=A[m];return}for(var C=e;;){var S=0,x=0,b=!1;do if(t(A[m],r[y])<0){if(r[w--]=r[y--],S++,x=0,--v===0){b=!0;break}}else if(r[w--]=A[m--],x++,S=0,--p===1){b=!0;break}while((S|x)=0;g--)r[B+g]=r[_+g];if(v===0){b=!0;break}}if(r[w--]=A[m--],--p===1){b=!0;break}if(x=p-$p(r[y],A,0,p,p-1,t),x!==0){for(w-=x,m-=x,p-=x,B=w+1,_=m+1,g=0;g=yl||x>=yl);if(b)break;C<0&&(C=0),C+=2}if(e=C,e<1&&(e=1),p===1){for(w-=v,y-=v,B=w+1,_=y+1,g=v-1;g>=0;g--)r[B+g]=r[_+g];r[w]=A[m]}else{if(p===0)throw new Error;for(_=w-(p-1),g=0;go&&(s=o),aS(r,e,e+s,e+i,t),i=s}A.pushRun(e,i),A.mergeRuns(),a-=i,e+=i}while(a!==0);A.forceMergeRuns()}}var Gr=1,Zl=2,As=4,iS=!1;function qp(){iS||(iS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function AS(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var CG=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=AS}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(qp(),u.z=0),isNaN(u.z2)&&(qp(),u.z2=0),isNaN(u.zlevel)&&(qp(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,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=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),yv;yv=Ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var _u={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-_u.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?_u.bounceIn(r*2)*.5:_u.bounceOut(r*2-1)*.5+.5}},sc=Math.pow,Ri=Math.sqrt,mv=1e-8,TL=1e-4,oS=Ri(3),lc=1/3,ea=_o(),An=_o(),Ss=_o();function Ii(r){return r>-mv&&rmv||r<-mv}function Le(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function sS(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function wv(r,t,e,n,a,i){var A=n+3*(t-e)-r,o=3*(e-t*2+r),s=3*(t-r),l=r-a,u=o*o-3*A*s,f=o*s-9*A*l,c=s*s-3*o*l,h=0;if(Ii(u)&&Ii(f))if(Ii(o))i[0]=0;else{var v=-s/o;v>=0&&v<=1&&(i[h++]=v)}else{var d=f*f-4*u*c;if(Ii(d)){var p=f/u,v=-o/A+p,g=-p/2;v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g)}else if(d>0){var y=Ri(d),m=u*o+1.5*A*(-f+y),w=u*o+1.5*A*(-f-y);m<0?m=-sc(-m,lc):m=sc(m,lc),w<0?w=-sc(-w,lc):w=sc(w,lc);var v=(-o-(m+w))/(3*A);v>=0&&v<=1&&(i[h++]=v)}else{var _=(2*u*o-3*A*f)/(2*Ri(u*u*u)),B=Math.acos(_)/3,C=Ri(u),S=Math.cos(B),v=(-o-2*C*S)/(3*A),g=(-o+C*(S+oS*Math.sin(B)))/(3*A),x=(-o+C*(S-oS*Math.sin(B)))/(3*A);v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g),x>=0&&x<=1&&(i[h++]=x)}}return h}function FL(r,t,e,n,a){var i=6*e-12*t+6*r,A=9*t+3*n-3*r-9*e,o=3*t-3*r,s=0;if(Ii(A)){if(IL(i)){var l=-o/i;l>=0&&l<=1&&(a[s++]=l)}}else{var u=i*i-4*A*o;if(Ii(u))a[0]=-i/(2*A);else if(u>0){var f=Ri(u),l=(-i+f)/(2*A),c=(-i-f)/(2*A);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function Wi(r,t,e,n,a,i){var A=(t-r)*a+r,o=(e-t)*a+t,s=(n-e)*a+e,l=(o-A)*a+A,u=(s-o)*a+o,f=(u-l)*a+l;i[0]=r,i[1]=A,i[2]=l,i[3]=f,i[4]=f,i[5]=u,i[6]=s,i[7]=n}function EL(r,t,e,n,a,i,A,o,s,l,u){var f,c=.005,h=1/0,v,d,p,g;ea[0]=s,ea[1]=l;for(var y=0;y<1;y+=.05)An[0]=Le(r,e,a,A,y),An[1]=Le(t,n,i,o,y),p=jA(ea,An),p=0&&p=0&&l<=1&&(a[s++]=l)}}else{var u=A*A-4*i*o;if(Ii(u)){var l=-A/(2*i);l>=0&&l<=1&&(a[s++]=l)}else if(u>0){var f=Ri(u),l=(-A+f)/(2*i),c=(-A-f)/(2*i);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function DL(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function $u(r,t,e,n,a){var i=(t-r)*n+r,A=(e-t)*n+t,o=(A-i)*n+i;a[0]=r,a[1]=i,a[2]=o,a[3]=o,a[4]=A,a[5]=e}function QL(r,t,e,n,a,i,A,o,s){var l,u=.005,f=1/0;ea[0]=A,ea[1]=o;for(var c=0;c<1;c+=.05){An[0]=Ne(r,e,a,c),An[1]=Ne(t,n,i,c);var h=jA(ea,An);h=0&&h=1?1:wv(0,n,i,1,s,o)&&Le(0,a,A,1,o[0])}}}var IG=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||Be,this.ondestroy=t.ondestroy||Be,this.onrestart=t.onrestart||Be,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var A=this.easingFunc,o=A?A(i):i;if(this.onframe(o),i===1)if(this.loop){var s=a%n;this._startTime=t-s,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=vt(t)?t:_u[t]||WB(t)},r}(),LL=function(){function r(t){this.value=t}return r}(),FG=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new LL(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}(),Ff=function(){function r(t){this._list=new FG,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var A=n.len(),o=this._lastRemovedEntry;if(A>=this._maxSize&&A>0){var s=n.head;n.remove(s),delete a[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new LL(e),o.key=t,n.insertEntry(o),a[t]=o}return i},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),lS={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 Ln(r){return r=Math.round(r),r<0?0:r>255?255:r}function EG(r){return r=Math.round(r),r<0?0:r>360?360:r}function Ju(r){return r<0?0:r>1?1:r}function jp(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ln(parseFloat(t)/100*255):Ln(parseInt(t,10))}function to(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ju(parseFloat(t)/100):Ju(parseFloat(t))}function tg(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 Fi(r,t,e){return r+(t-r)*e}function jr(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function o0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var ML=new Ff(20),uc=null;function Qo(r,t){uc&&o0(uc,t),uc=ML.put(r,uc||t.slice())}function Xr(r,t){if(r){t=t||[];var e=ML.get(r);if(e)return o0(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in lS)return o0(t,lS[n]),Qo(r,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){jr(t,0,0,0,1);return}return jr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Qo(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){jr(t,0,0,0,1);return}return jr(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Qo(r,t),t}return}var A=n.indexOf("("),o=n.indexOf(")");if(A!==-1&&o+1===a){var s=n.substr(0,A),l=n.substr(A+1,o-(A+1)).split(","),u=1;switch(s){case"rgba":if(l.length!==4)return l.length===3?jr(t,+l[0],+l[1],+l[2],1):jr(t,0,0,0,1);u=to(l.pop());case"rgb":if(l.length>=3)return jr(t,jp(l[0]),jp(l[1]),jp(l[2]),l.length===3?u:to(l[3])),Qo(r,t),t;jr(t,0,0,0,1);return;case"hsla":if(l.length!==4){jr(t,0,0,0,1);return}return l[3]=to(l[3]),s0(l,t),Qo(r,t),t;case"hsl":if(l.length!==3){jr(t,0,0,0,1);return}return s0(l,t),Qo(r,t),t;default:return}}jr(t,0,0,0,1)}}function s0(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=to(r[1]),a=to(r[2]),i=a<=.5?a*(n+1):a+n-a*n,A=a*2-i;return t=t||[],jr(t,Ln(tg(A,i,e+1/3)*255),Ln(tg(A,i,e)*255),Ln(tg(A,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function DG(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),A=i-a,o=(i+a)/2,s,l;if(A===0)s=0,l=0;else{o<.5?l=A/(i+a):l=A/(2-i-a);var u=((i-t)/6+A/2)/A,f=((i-e)/6+A/2)/A,c=((i-n)/6+A/2)/A;t===i?s=c-f:e===i?s=1/3+u-c:n===i&&(s=2/3+f-u),s<0&&(s+=1),s>1&&(s-=1)}var h=[s*360,l,o];return r[3]!=null&&h.push(r[3]),h}}function l0(r,t){var e=Xr(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 Oa(e,e.length===4?"rgba":"rgb")}}function eg(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=t[a],o=t[i],s=n-a;return e[0]=Ln(Fi(A[0],o[0],s)),e[1]=Ln(Fi(A[1],o[1],s)),e[2]=Ln(Fi(A[2],o[2],s)),e[3]=Ju(Fi(A[3],o[3],s)),e}}function QG(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=Xr(t[a]),o=Xr(t[i]),s=n-a,l=Oa([Ln(Fi(A[0],o[0],s)),Ln(Fi(A[1],o[1],s)),Ln(Fi(A[2],o[2],s)),Ju(Fi(A[3],o[3],s))],"rgba");return e?{color:l,leftIndex:a,rightIndex:i,value:n}:l}}function Cu(r,t,e,n){var a=Xr(r);if(r)return a=DG(a),t!=null&&(a[0]=EG(t)),e!=null&&(a[1]=to(e)),n!=null&&(a[2]=to(n)),Oa(s0(a),"rgba")}function Bv(r,t){var e=Xr(r);if(e&&t!=null)return e[3]=Ju(t),Oa(e,"rgba")}function Oa(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 _v(r,t){var e=Xr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var uS=new Ff(100);function u0(r){if(nt(r)){var t=uS.get(r);return t||(t=l0(r,-.1),uS.put(r,t)),t}else if(Ud(r)){var e=V({},r);return e.colorStops=Y(r.colorStops,function(n){return{offset:n.offset,color:l0(n.color,-.1)}}),e}return r}var Cv=Math.round;function qu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Xr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var fS=1e-4;function Ei(r){return r-fS}function fc(r){return Cv(r*1e3)/1e3}function f0(r){return Cv(r*1e4)/1e4}function LG(r){return"matrix("+fc(r[0])+","+fc(r[1])+","+fc(r[2])+","+fc(r[3])+","+f0(r[4])+","+f0(r[5])+")"}var MG={left:"start",right:"end",center:"middle",middle:"middle"};function UG(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function PG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function RG(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function UL(r){return r&&!!r.image}function HG(r){return r&&!!r.svgElement}function XB(r){return UL(r)||HG(r)}function PL(r){return r.type==="linear"}function RL(r){return r.type==="radial"}function HL(r){return r&&(r.type==="linear"||r.type==="radial")}function Hd(r){return"url(#"+r+")"}function OL(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function kL(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Ph,a=St(r.scaleX,1),i=St(r.scaleY,1),A=r.skewX||0,o=r.skewY||0,s=[];return(t||e)&&s.push("translate("+t+"px,"+e+"px)"),n&&s.push("rotate("+n+")"),(a!==1||i!==1)&&s.push("scale("+a+","+i+")"),(A||o)&&s.push("skew("+Cv(A*Ph)+"deg, "+Cv(o*Ph)+"deg)"),s.join(" ")}var OG=function(){return Ut.hasGlobalWindow&&vt(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}}(),c0=Array.prototype.slice;function Da(r,t,e){return(t-r)*e+r}function rg(r,t,e,n){for(var a=t.length,i=0;in?t:r,i=Math.min(e,n),A=a[i-1]||{color:[0,0,0,0],offset:0},o=i;oA;if(o)n.length=A;else for(var s=i;s=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var a=this.keyframes,i=a.length,A=!1,o=hS,s=e;if(sr(e)){var l=GG(e);o=l,(l===1&&!Kt(e[0])||l===2&&!Kt(e[0][0]))&&(A=!0)}else if(Kt(e)&&!Zu(e))o=hc;else if(nt(e))if(!isNaN(+e))o=hc;else{var u=Xr(e);u&&(s=u,o=$l)}else if(Ud(e)){var f=V({},s);f.colorStops=Y(e.colorStops,function(h){return{offset:h.offset,color:Xr(h.color)}}),PL(e)?o=h0:RL(e)&&(o=v0),s=f}i===0?this.valType=o:(o!==this.valType||o===hS)&&(A=!0),this.discrete=this.discrete||A;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=vt(n)?n:_u[n]||WB(n)),a.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(d,p){return d.time-p.time});for(var a=this.valType,i=n.length,A=n[i-1],o=this.discrete,s=vc(a),l=vS(a),u=0;u=0&&!(A[u].percent<=e);u--);u=c(u,o-2)}else{for(u=f;ue);u++);u=c(u-1,o-2)}v=A[u+1],h=A[u]}if(h&&v){this._lastFr=u,this._lastFrP=e;var p=v.percent-h.percent,g=p===0?1:c((e-h.percent)/p,1);v.easingFunc&&(g=v.easingFunc(g));var y=n?this._additiveValue:l?ml:t[s];if((vc(i)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[s]=g<1?h.rawValue:v.rawValue;else if(vc(i))i===Nh?rg(y,h[a],v[a],g):kG(y,h[a],v[a],g);else if(vS(i)){var m=h[a],w=v[a],_=i===h0;t[s]={type:_?"linear":"radial",x:Da(m.x,w.x,g),y:Da(m.y,w.y,g),colorStops:Y(m.colorStops,function(C,S){var x=w.colorStops[S];return{offset:Da(C.offset,x.offset,g),color:kh(rg([],C.color,x.color,g))}}),global:w.global},_?(t[s].x2=Da(m.x2,w.x2,g),t[s].y2=Da(m.y2,w.y2,g)):t[s].r=Da(m.r,w.r,g)}else if(l)rg(y,h[a],v[a],g),n||(t[s]=kh(y));else{var B=Da(h[a],v[a],g);n?this._additiveValue=B:t[s]=B}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===hc?t[n]=t[n]+a:e===$l?(Xr(t[n],ml),cc(ml,ml,a,1),t[n]=kh(ml)):e===Nh?cc(t[n],t[n],a,1):e===NL&&cS(t[n],t[n],a,1)},r}(),YB=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){OB("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Ht(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,A=0;A0&&s.addKeyframe(0,Su(l),a),this._trackKeys.push(o)}s.addKeyframe(t,Su(e[o]),a)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i1){var o=A.pop();i.addKeyframe(o.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function vs(){return new Date().getTime()}var zG=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,a=e.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=vs()-this._pausedTime,a=n-this._time,i=this._head;i;){var A=i.next,o=i.step(n,a);o&&(i.ondestroy(),this.removeClip(i)),i=A}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(yv(n),!e._paused&&e.update())}yv(n)},t.prototype.start=function(){this._running||(this._time=vs(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=vs(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=vs()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var a=new YB(e,n.loop);return this.addAnimator(a),a},t}(yn),WG=300,ng=Ut.domSupported,ag=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=Y(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),dS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},pS=!1;function d0(r){var t=r.pointerType;return t==="pen"||t==="touch"}function XG(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 ig(r){r&&(r.zrByTouch=!0)}function YG(r,t){return tn(r.dom,new ZG(r,t),!0)}function VL(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 ZG=function(){function r(t,e){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),bn={mousedown:function(r){r=tn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=tn(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=tn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=tn(this.dom,r);var t=r.toElement||r.relatedTarget;VL(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){pS=!0,r=tn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){pS||(r=tn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=tn(this.dom,r),ig(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),bn.mousemove.call(this,r),bn.mousedown.call(this,r)},touchmove:function(r){r=tn(this.dom,r),ig(r),this.handler.processGesture(r,"change"),bn.mousemove.call(this,r)},touchend:function(r){r=tn(this.dom,r),ig(r),this.handler.processGesture(r,"end"),bn.mouseup.call(this,r),+new Date-+this.__lastTouchMomentmS||r<-mS}var fA=[],Lo=[],og=Wr(),sg=Math.abs,La=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 uA(this.rotation)||uA(this.x)||uA(this.y)||uA(this.scaleX-1)||uA(this.scaleY-1)||uA(this.skewX)||uA(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(yS(n),this.invTransform=null);return}n=n||Wr(),e?this.getLocalTransform(n):yS(n),t&&(e?Ha(n,t,n):KB(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(fA);var n=fA[0]<0?-1:1,a=fA[1]<0?-1:1,i=((fA[0]-n)*e+n)/fA[0]||0,A=((fA[1]-a)*e+a)/fA[1]||0;t[0]*=i,t[1]*=i,t[2]*=A,t[3]*=A}this.invTransform=this.invTransform||Wr(),Zs(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Wr(),Ha(Lo,t.invTransform,e),e=Lo);var n=this.originX,a=this.originY;(n||a)&&(og[4]=n,og[5]=a,Ha(Lo,e,og),Lo[4]-=n,Lo[5]-=a,e=Lo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],a=this.invTransform;return a&&Ye(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&Ye(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&sg(t[0]-1)>1e-10&&sg(t[3]-1)>1e-10?Math.sqrt(sg(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){KL(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,A=t.scaleY,o=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,f=t.y,c=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||o||s){var v=n+o,d=a+s;e[4]=-v*i-c*d*A,e[5]=-d*A-h*v*i}else e[4]=e[5]=0;return e[0]=i,e[3]=A,e[1]=h*i,e[2]=c*A,l&&Co(e,e,l),e[4]+=n+u,e[5]+=a+f,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}(),da=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function KL(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function xv(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,A=e.width,o=i/2,s=e.x,l=e.y,u="left",f="top";if(n instanceof Array)s+=Pn(n[0],e.width),l+=Pn(n[1],e.height),u=null,f=null;else switch(n){case"left":s-=a,l+=o,u="right",f="middle";break;case"right":s+=a+A,l+=o,f="middle";break;case"top":s+=A/2,l-=a,u="center",f="bottom";break;case"bottom":s+=A/2,l+=i+a,u="center";break;case"inside":s+=A/2,l+=o,u="center",f="middle";break;case"insideLeft":s+=a,l+=o,f="middle";break;case"insideRight":s+=A-a,l+=o,u="right",f="middle";break;case"insideTop":s+=A/2,l+=a,u="center";break;case"insideBottom":s+=A/2,l+=i-a,u="center",f="bottom";break;case"insideTopLeft":s+=a,l+=a;break;case"insideTopRight":s+=A-a,l+=a,u="right";break;case"insideBottomLeft":s+=a,l+=i-a,f="bottom";break;case"insideBottomRight":s+=A-a,l+=i-a,u="right",f="bottom";break}return r=r||{},r.x=s,r.y=l,r.align=u,r.verticalAlign=f,r}var lg="__zr_normal__",ug=da.concat(["ignore"]),tK=ha(da,function(r,t){return r[t]=!0,r},{ignore:!1}),Mo={},eK=new Et(0,0,0,0),kd=function(){function r(t){this.id=yL(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=e.innerTransformable,A=void 0,o=void 0,s=!1;i.parent=a?this:null;var l=!1;if(i.copyTransform(e),n.position!=null){var u=eK;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),a||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mo,n,u):xv(Mo,n,u),i.x=Mo.x,i.y=Mo.y,A=Mo.align,o=Mo.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var c=void 0,h=void 0;f==="center"?(c=u.width*.5,h=u.height*.5):(c=Pn(f[0],u.width),h=Pn(f[1],u.height)),l=!0,i.originX=-i.x+c+(a?0:u.x),i.originY=-i.y+h+(a?0:u.y)}}n.rotation!=null&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],l||(i.originX=-v[0],i.originY=-v[1]));var d=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(g=n.insideFill,y=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),m=!0)):(g=n.outsideFill,y=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),m=!0)),g=g||"#000",(g!==p.fill||y!==p.stroke||m!==p.autoStroke||A!==p.align||o!==p.verticalAlign)&&(s=!0,p.fill=g,p.stroke=y,p.autoStroke=m,p.align=A,p.verticalAlign=o,e.setDefaultTextStyle(p)),e.__dirty|=Gr,s&&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()?m0:y0},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Xr(e);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),A=0;A<3;A++)n[A]=n[A]*a+(i?0:255)*(1-a);return n[3]=1,Oa(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||{},V(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(yt(t))for(var n=t,a=Ht(n),i=0;i0},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(lg,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===lg,A=this.hasState();if(!(!A&&i)){var o=this.currentStates,s=this.stateTransition;if(!(Qt(o,t)>=0&&(e||o.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!i){OB("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||a);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var f=this._textContent,c=this._textGuide;return f&&f.useState(t,e,n,u),c&&c.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Gr),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,A=t.length,o=A===i.length;if(o){for(var s=0;s0,v);var d=this._textContent,p=this._textGuide;d&&d.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&=~Gr)}},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=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var a=this.currentStates.slice(),i=Qt(a,t),A=Qt(a,e)>=0;i>=0?A?a.splice(i,1):a[i]=e:n&&!A&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a=0&&i.splice(A,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,a=n.length,i=[],A=0;A0&&e.during&&i[0].during(function(v,d){e.during(d)});for(var c=0;c0||a.force&&!A.length){var S=void 0,x=void 0,b=void 0;if(o){x={},c&&(S={});for(var w=0;w=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=Qt(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var A=this.__zr;A&&i.removeSelfFromZr(A),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,a=this._children,i=Qt(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;a0&&(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;e0){if(r<=a)return A;if(r>=i)return o}else{if(r>=a)return A;if(r<=i)return o}else{if(r===a)return A;if(r===i)return o}return(r-a)/s*l+A}function et(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 nt(r)?cK(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function me(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),XL),r=(+r).toFixed(t),e?r:+r}function fn(r){return r.sort(function(t,e){return t-e}),r}function aa(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 hK(r)}function hK(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),A=i<0?0:a-1-i;return Math.max(0,A-n)}function YL(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),A=Math.min(Math.max(-a+i,0),20);return isFinite(A)?A:20}function vK(r,t){var e=ha(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=Y(r,function(h){return(isNaN(h)?0:h)/e*n*100}),i=n*100,A=Y(a,function(h){return Math.floor(h)}),o=ha(A,function(h,v){return h+v},0),s=Y(a,function(h,v){return h-A[v]});ol&&(l=s[f],u=f);++A[u],s[u]=0,++o}return Y(A,function(h){return h/n})}function dK(r,t){var e=Math.max(aa(r),aa(t)),n=r+t;return e>XL?n:me(n,e)}var SS=9007199254740991;function ZL(r){var t=Math.PI*2;return(r%t+t)%t}function ju(r){return r>-CS&&r=10&&t++,t}function $L(r,t){var e=ZB(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function hg(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),a=+r[n-1],i=e-n;return i?a+i*(r[n]-a):a}function xS(r){r.sort(function(s,l){return o(s,l,0)?-1:1});for(var t=-1/0,e=1,n=0;n=0||i&&Qt(i,s)<0)){var l=n.getShallow(s,t);l!=null&&(A[r[o][0]]=l)}}return A}}var NK=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],VK=vo(NK),GK=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return VK(this,t,e)},r}(),_0=new Ff(50);function KK(r){if(typeof r=="string"){var t=_0.get(r);return t&&t.image}else return r}function jB(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=_0.get(r),A={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!Vd(t)&&i.pending.push(A)):(t=zi.loadImage(r,FS,FS),t.__zrImageSrc=r,_0.put(r,t.__cachedImgObj={image:t,pending:[A]})),t}else return r;else return t}function FS(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=A;s++)o-=A;var l=Yr(e,t);return l>o&&(e="",l=0),o=r-l,a.ellipsis=e,a.ellipsisWidth=l,a.contentWidth=o,a.containerWidth=r,a}function lM(r,t){var e=t.containerWidth,n=t.font,a=t.contentWidth;if(!e)return"";var i=Yr(r,n);if(i<=e)return r;for(var A=0;;A++){if(i<=a||A>=t.maxIterations){r+=t.ellipsis;break}var o=A===0?WK(r,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*a/i):0;r=r.substr(0,o),i=Yr(r,n)}return r===""&&(r=t.placeholder),r}function WK(r,t,e,n){for(var a=0,i=0,A=r.length;ih&&l){var v=Math.floor(h/o);f=f.slice(0,v)}if(r&&i&&u!=null)for(var d=sM(u,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;po&&dg(e,r.substring(o,l),t,A),dg(e,s[2],t,A,s[1]),o=vg.lastIndex}oa){_>0?(y.tokens=y.tokens.slice(0,_),p(y,w,m),e.lines=e.lines.slice(0,g+1)):e.lines=e.lines.slice(0,g);break t}var F=C.width,E=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")B.percentWidth=F,u.push(B),B.contentWidth=Yr(B.text,b);else{if(E){var D=C.backgroundColor,Q=D&&D.image;Q&&(Q=KK(Q),Vd(Q)&&(B.width=Math.max(B.width,Q.width*I/Q.height)))}var M=v&&n!=null?n-w:null;M!=null&&M0&&v+n.accumWidth>n.width&&(u=t.split(` +`),l=!0),n.accumWidth=v}else{var d=uM(t,s,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+h,f=d.linesWidths,u=d.lines}}else u=t.split(` +`);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var qK=ha(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function jK(r){return JK(r)?!!qK[r]:!0}function uM(r,t,e,n,a){for(var i=[],A=[],o="",s="",l=0,u=0,f=0;fe:a+u+h>e){u?(o||s)&&(v?(o||(o=s,s="",l=0,u=l),i.push(o),A.push(u-l),s+=c,l+=h,o="",u=l):(s&&(o+=s,s="",l=0),i.push(o),A.push(u),o=c,u=h)):v?(i.push(s),A.push(l),s=c,l=h):(i.push(c),A.push(h));continue}u+=h,v?(s+=c,l+=h):(s&&(o+=s,s="",l=0),o+=c)}return!i.length&&!o&&(o=r,s="",l=0),s&&(o+=s),o&&(i.push(o),A.push(u)),i.length===1&&(u+=a),{accumWidth:u,lines:i,linesWidths:A}}var C0="__zr_style_"+Math.round(Math.random()*10),eo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Gd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eo[C0]=!0;var DS=["z","z2","invisible"],t3=["invisible"],gn=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Ht(e),a=0;a1e-4){o[0]=r-e,o[1]=t-n,s[0]=r+e,s[1]=t+n;return}if(dc[0]=mg(a)*e+r,dc[1]=yg(a)*n+t,pc[0]=mg(i)*e+r,pc[1]=yg(i)*n+t,l(o,dc,pc),u(s,dc,pc),a=a%hA,a<0&&(a=a+hA),i=i%hA,i<0&&(i=i+hA),a>i&&!A?i+=hA:aa&&(gc[0]=mg(h)*e+r,gc[1]=yg(h)*n+t,l(o,gc,o),u(s,gc,s))}var te={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},vA=[],dA=[],Gn=[],ii=[],Kn=[],zn=[],wg=Math.min,Bg=Math.max,pA=Math.cos,gA=Math.sin,xa=Math.abs,S0=Math.PI,vi=S0*2,_g=typeof Float32Array<"u",wl=[];function Cg(r){var t=Math.round(r/S0*1e8)/1e8;return t%2*S0}function t_(r,t){var e=Cg(r[0]);e<0&&(e+=vi);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=vi?a=e+vi:t&&e-a>=vi?a=e-vi:!t&&e>a?a=e+(vi-Cg(e-a)):t&&e0&&(this._ux=xa(n/Sv/t)||0,this._uy=xa(n/Sv/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(te.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=xa(t-this._xi),a=xa(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(te.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var A=n*n+a*a;A>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=A)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,A){return this._drawPendingPt(),this.addData(te.C,t,e,n,a,i,A),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,A),this._xi=i,this._yi=A,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(te.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,A){this._drawPendingPt(),wl[0]=a,wl[1]=i,t_(wl,A),a=wl[0],i=wl[1];var o=i-a;return this.addData(te.A,t,e,n,n,a,o,0,A?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,A),this._xi=pA(i)*n+t,this._yi=gA(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(te.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(te.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)&&_g&&(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var f=0;f0&&(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;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Gn[0]=Gn[1]=Kn[0]=Kn[1]=Number.MAX_VALUE,ii[0]=ii[1]=zn[0]=zn[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,A;for(A=0;An||xa(m)>a||c===e-1)&&(d=Math.sqrt(y*y+m*m),i=p,A=g);break}case te.C:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++],B=t[c++],C=t[c++];d=SG(i,A,w,_,p,g,B,C,10),i=B,A=C;break}case te.Q:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++];d=bG(i,A,w,_,p,g,10),i=p,A=g;break}case te.A:var S=t[c++],x=t[c++],b=t[c++],I=t[c++],F=t[c++],E=t[c++],D=E+F;c+=1,v&&(o=pA(F)*b+S,s=gA(F)*I+x),d=Bg(b,I)*wg(vi,Math.abs(E)),i=pA(D)*b+S,A=gA(D)*I+x;break;case te.R:{o=i=t[c++],s=A=t[c++];var Q=t[c++],M=t[c++];d=Q*2+M*2;break}case te.Z:{var y=o-i,m=s-A;d=Math.sqrt(y*y+m*m),i=o,A=s;break}}d>=0&&(l[f++]=d,u+=d)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,A=this._len,o,s,l,u,f,c,h=e<1,v,d,p=0,g=0,y,m=0,w,_;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=e*d,!y)))t:for(var B=0;B0&&(t.lineTo(w,_),m=0),C){case te.M:o=l=n[B++],s=u=n[B++],t.moveTo(l,u);break;case te.L:{f=n[B++],c=n[B++];var x=xa(f-l),b=xa(c-u);if(x>a||b>i){if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;t.lineTo(l*(1-F)+f*F,u*(1-F)+c*F);break t}p+=I}t.lineTo(f,c),l=f,u=c,m=0}else{var E=x*x+b*b;E>m&&(w=f,_=c,m=E)}break}case te.C:{var D=n[B++],Q=n[B++],M=n[B++],R=n[B++],P=n[B++],O=n[B++];if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;Wi(l,D,M,P,F,vA),Wi(u,Q,R,O,F,dA),t.bezierCurveTo(vA[1],dA[1],vA[2],dA[2],vA[3],dA[3]);break t}p+=I}t.bezierCurveTo(D,Q,M,R,P,O),l=P,u=O;break}case te.Q:{var D=n[B++],Q=n[B++],M=n[B++],R=n[B++];if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;$u(l,D,M,F,vA),$u(u,Q,R,F,dA),t.quadraticCurveTo(vA[1],dA[1],vA[2],dA[2]);break t}p+=I}t.quadraticCurveTo(D,Q,M,R),l=M,u=R;break}case te.A:var G=n[B++],X=n[B++],J=n[B++],At=n[B++],lt=n[B++],wt=n[B++],Bt=n[B++],N=!n[B++],z=J>At?J:At,$=xa(J-At)>.001,q=lt+wt,j=!1;if(h){var I=v[g++];p+I>y&&(q=lt+wt*(y-p)/I,j=!0),p+=I}if($&&t.ellipse?t.ellipse(G,X,J,At,Bt,lt,q,N):t.arc(G,X,z,lt,q,N),j)break t;S&&(o=pA(lt)*J+G,s=gA(lt)*At+X),l=pA(q)*J+G,u=gA(q)*At+X;break;case te.R:o=l=n[B],s=u=n[B+1],f=n[B++],c=n[B++];var ct=n[B++],L=n[B++];if(h){var I=v[g++];if(p+I>y){var U=y-p;t.moveTo(f,c),t.lineTo(f+wg(U,ct),c),U-=ct,U>0&&t.lineTo(f+ct,c+wg(U,L)),U-=L,U>0&&t.lineTo(f+Bg(ct-U,0),c+L),U-=ct,U>0&&t.lineTo(f,c+Bg(L-U,0));break t}p+=I}t.rect(f,c,ct,L);break;case te.Z:if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;t.lineTo(l*(1-F)+o*F,u*(1-F)+s*F);break t}p+=I}t.closePath(),l=o,u=s}}},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=te,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Bi(r,t,e,n,a,i,A){if(a===0)return!1;var o=a,s=0,l=r;if(A>t+o&&A>n+o||Ar+o&&i>e+o||it+f&&u>n+f&&u>i+f&&u>o+f||ur+f&&l>e+f&&l>a+f&&l>A+f||lt+l&&s>n+l&&s>i+l||sr+l&&o>e+l&&o>a+l||oe||u+la&&(a+=Bl);var c=Math.atan2(s,o);return c<0&&(c+=Bl),c>=n&&c<=a||c+Bl>=n&&c+Bl<=a}function Qa(r,t,e,n,a,i){if(i>t&&i>n||ia?o:0}var Ai=ga.CMD,yA=Math.PI*2,o3=1e-4;function s3(r,t){return Math.abs(r-t)t&&l>n&&l>i&&l>o||l1&&l3(),h=Le(t,n,i,o,nn[0]),c>1&&(v=Le(t,n,i,o,nn[1]))),c===2?pt&&o>n&&o>i||o=0&&l<=1){for(var u=0,f=Ne(t,n,i,l),c=0;ce||o<-e)return 0;var s=Math.sqrt(e*e-o*o);dr[0]=-s,dr[1]=s;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l>=yA-1e-4){n=0,a=yA;var u=i?1:-1;return A>=dr[0]+r&&A<=dr[1]+r?u:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=yA,a+=yA);for(var c=0,h=0;h<2;h++){var v=dr[h];if(v+r>A){var d=Math.atan2(o,v),u=i?1:-1;d<0&&(d=yA+d),(d>=n&&d<=a||d+yA>=n&&d+yA<=a)&&(d>Math.PI/2&&d1&&(e||(o+=Qa(s,l,u,f,n,a))),p&&(s=i[v],l=i[v+1],u=s,f=l),d){case Ai.M:u=i[v++],f=i[v++],s=u,l=f;break;case Ai.L:if(e){if(Bi(s,l,i[v],i[v+1],t,n,a))return!0}else o+=Qa(s,l,i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.C:if(e){if(i3(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=u3(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.Q:if(e){if(fM(s,l,i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=f3(s,l,i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.A:var g=i[v++],y=i[v++],m=i[v++],w=i[v++],_=i[v++],B=i[v++];v+=1;var C=!!(1-i[v++]);c=Math.cos(_)*m+g,h=Math.sin(_)*w+y,p?(u=c,f=h):o+=Qa(s,l,c,h,n,a);var S=(n-g)*w/m+g;if(e){if(A3(g,y,w,_,_+B,C,t,S,a))return!0}else o+=c3(g,y,w,_,_+B,C,S,a);s=Math.cos(_+B)*m+g,l=Math.sin(_+B)*w+y;break;case Ai.R:u=s=i[v++],f=l=i[v++];var x=i[v++],b=i[v++];if(c=u+x,h=f+b,e){if(Bi(u,f,c,f,t,n,a)||Bi(c,f,c,h,t,n,a)||Bi(c,h,u,h,t,n,a)||Bi(u,h,u,f,t,n,a))return!0}else o+=Qa(c,f,c,h,n,a),o+=Qa(u,h,u,f,n,a);break;case Ai.Z:if(e){if(Bi(s,l,u,f,t,n,a))return!0}else o+=Qa(s,l,u,f,n,a);s=u,l=f;break}}return!e&&!s3(l,f)&&(o+=Qa(s,l,u,f,n,a)||0),o!==0}function h3(r,t,e){return cM(r,0,!1,t,e)}function v3(r,t,e,n){return cM(r,t,!0,e,n)}var bv=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},eo),d3={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Gd.style)},Sg=da.concat(["invisible","culling","z","z2","zlevel","parent"]),Mt=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(s){e.buildPath(s,e.shape)}),a.silent=!0;var i=a.style;for(var A in n)i[A]!==n[A]&&(i[A]=n[A]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var o=0;o.5?y0:n>.2?jG:m0}else if(e)return m0}return y0},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),A=_v(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var A=this.path;(i||this.__dirty&As)&&(A.beginPath(),this.buildPath(A,this.shape,!1),this.pathUpdated()),e=A.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){o.copy(e);var s=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,u??4)}s>1e-10&&(o.width+=l/s,o.height+=l/s,o.x-=l/s/2,o.y-=l/s/2)}return o}return e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),A=this.style;if(e=a[0],n=a[1],i.contain(e,n)){var o=this.path;if(this.hasStroke()){var s=A.lineWidth,l=A.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),v3(o,s/l,e,n)))return!0}if(this.hasFill())return h3(o,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=As,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:V(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&As)},t.prototype.createStyle=function(e){return Pd(bv,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=V({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,A,o){r.prototype._applyStateObj.call(this,e,n,a,i,A,o);var s=!(n&&i),l;if(n&&n.shape?A?i?l=n.shape:(l=V({},a.shape),V(l,n.shape)):(l=V({},i?this.shape:a.shape),V(l,n.shape)):s&&(l=a.shape),l)if(A){this.shape=V({},this.shape);for(var u={},f=Ht(l),c=0;c0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Pd(p3,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var a=Ef(n,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(gn);Us.prototype.type="tspan";var g3=gt({x:0,y:0},eo),y3={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Gd.style)};function m3(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Ge=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Pd(g3,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=m3(n.image)?n.image:this.__image;if(!i)return 0;var A=e==="width"?"height":"width",o=n[A];return o==null?i[e]:i[e]/i[A]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return y3},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Et(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(gn);Ge.prototype.type="image";function w3(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,A=t.r,o,s,l,u;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),typeof A=="number"?o=s=l=u=A:A instanceof Array?A.length===1?o=s=l=u=A[0]:A.length===2?(o=l=A[0],s=u=A[1]):A.length===3?(o=A[0],s=u=A[1],l=A[2]):(o=A[0],s=A[1],l=A[2],u=A[3]):o=s=l=u=0;var f;o+s>a&&(f=o+s,o*=a/f,s*=a/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+l>i&&(f=s+l,s*=i/f,l*=i/f),o+u>i&&(f=o+u,o*=i/f,u*=i/f),r.moveTo(e+o,n),r.lineTo(e+a-s,n),s!==0&&r.arc(e+a-s,n+s,s,-Math.PI/2,0),r.lineTo(e+a,n+i-l),l!==0&&r.arc(e+a-l,n+i-l,l,0,Math.PI/2),r.lineTo(e+u,n+i),u!==0&&r.arc(e+u,n+i-u,u,Math.PI/2,Math.PI),r.lineTo(e,n+o),o!==0&&r.arc(e+o,n+o,o,Math.PI,Math.PI*1.5)}var ds=Math.round;function hM(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,A=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=A;var o=e&&e.lineWidth;return o&&(ds(n*2)===ds(a*2)&&(r.x1=r.x2=KA(n,o,!0)),ds(i*2)===ds(A*2)&&(r.y1=r.y2=KA(i,o,!0))),r}}function vM(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,A=t.height;r.x=n,r.y=a,r.width=i,r.height=A;var o=e&&e.lineWidth;return o&&(r.x=KA(n,o,!0),r.y=KA(a,o,!0),r.width=Math.max(KA(n+i,o,!1)-r.x,i===0?0:1),r.height=Math.max(KA(a+A,o,!1)-r.y,A===0?0:1)),r}}function KA(r,t,e){if(!t)return r;var n=ds(r*2);return(n+ds(t))%2===0?n/2:(n+(e?1:-1))/2}var B3=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),_3={},Nt=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new B3},t.prototype.buildPath=function(e,n){var a,i,A,o;if(this.subPixelOptimize){var s=vM(_3,n,this.style);a=s.x,i=s.y,A=s.width,o=s.height,s.r=n.r,n=s}else a=n.x,i=n.y,A=n.width,o=n.height;n.r?w3(e,n):e.rect(a,i,A,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Mt);Nt.prototype.type="rect";var PS={fill:"#000"},RS=2,C3={style:gt({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},Gd.style)},Gt=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=PS,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;e0,F=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),E=A.calculatedLineHeight,D=0;D=0&&(D=B[E],D.align==="right");)this._placeToken(D,e,S,g,F,"right",m),x-=D.width,F-=D.width,E--;for(I+=(i-(I-p)-(y-F)-x)/2;b<=E;)D=B[b],this._placeToken(D,e,S,g,I+D.width/2,"center",m),I+=D.width,b++;g+=S}},t.prototype._placeToken=function(e,n,a,i,A,o,s){var l=n.rich[e.styleName]||{};l.text=e.text;var u=e.verticalAlign,f=i+a/2;u==="top"?f=i+e.height/2:u==="bottom"&&(f=i+a-e.height/2);var c=!e.isLineHolder&&xg(l);c&&this._renderBackground(l,n,o==="right"?A-e.width:o==="center"?A-e.width/2:A,f-e.height/2,e.width,e.height);var h=!!l.backgroundColor,v=e.textPadding;v&&(A=GS(A,o,v),f-=e.height/2-v[0]-e.innerHeight/2);var d=this._getOrCreateChild(Us),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,y=!1,m=0,w=VS("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,g.fill)),_=NS("stroke"in l?l.stroke:"stroke"in n?n.stroke:!h&&!s&&(!g.autoStroke||y)?(m=RS,g.stroke):null),B=l.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=A,p.y=f,B&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||Ki,p.opacity=ua(l.opacity,n.opacity,1),OS(p,l),_&&(p.lineWidth=ua(l.lineWidth,n.lineWidth,m),p.lineDash=St(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=_),w&&(p.fill=w);var C=e.contentWidth,S=e.contentHeight;d.setBoundingRect(new Et(Jl(p.x,C,p.textAlign),os(p.y,S,p.textBaseline),C,S))},t.prototype._renderBackground=function(e,n,a,i,A,o){var s=e.backgroundColor,l=e.borderWidth,u=e.borderColor,f=s&&s.image,c=s&&!f,h=e.borderRadius,v=this,d,p;if(c||e.lineHeight||l&&u){d=this._getOrCreateChild(Nt),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=i,g.width=A,g.height=o,g.r=h,d.dirtyShape()}if(c){var y=d.style;y.fill=s||null,y.fillOpacity=St(e.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Ge),p.onload=function(){v.dirtyStyle()};var m=p.style;m.image=s.image,m.x=a,m.y=i,m.width=A,m.height=o}if(l&&u){var y=d.style;y.lineWidth=l,y.stroke=u,y.strokeOpacity=St(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(d||p).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=ua(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return pM(e)&&(n=[e.fontStyle,e.fontWeight,dM(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&En(n)||e.textFont||e.font},t}(gn),S3={left:!0,right:1,center:1},x3={top:1,bottom:1,middle:1},HS=["fontStyle","fontWeight","fontSize","fontFamily"];function dM(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?PB+"px":r+"px"}function OS(r,t){for(var e=0;e=0,i=!1;if(r instanceof Mt){var A=gM(r),o=a&&A.selectFill||A.normalFill,s=a&&A.selectStroke||A.normalStroke;if(Uo(o)||Uo(s)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=V({},n),l=V({},l),l.fill=o):!Uo(l.fill)&&Uo(o)?(i=!0,n=V({},n),l=V({},l),l.fill=u0(o)):!Uo(l.stroke)&&Uo(s)&&(i||(n=V({},n),l=V({},l)),l.stroke=u0(s)),n.style=l}}if(n&&n.z2==null){i||(n=V({},n));var u=r.z2EmphasisLift;n.z2=r.z2+(u??Js)}return n}function Q3(r,t,e){if(e&&e.z2==null){e=V({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??T3)}return e}function L3(r,t,e){var n=Qt(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:E3(r,["opacity"],t,{opacity:1});e=e||{};var A=e.style||{};return A.opacity==null&&(e=V({},e),A=V({opacity:n?a:i.opacity*.1},A),e.style=A),e}function bg(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return D3(this,r,t,e);if(r==="blur")return L3(this,r,e);if(r==="select")return Q3(this,r,e)}return e}function po(r){r.stateProxy=bg;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=bg),e&&(e.stateProxy=bg)}function YS(r,t){!SM(r,t)&&!r.__highByOuter&&ti(r,yM)}function ZS(r,t){!SM(r,t)&&!r.__highByOuter&&ti(r,mM)}function Wa(r,t){r.__highByOuter|=1<<(t||0),ti(r,yM)}function Xa(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ti(r,mM)}function BM(r){ti(r,n_)}function a_(r){ti(r,wM)}function _M(r){ti(r,I3)}function CM(r){ti(r,F3)}function SM(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function xM(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var A=e_(i),o=a==="series",s=o?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!o&&n.push(s),A.isBlured&&(s.group.traverse(function(l){wM(l)}),o&&e.push(i)),A.isBlured=!1}),T(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function b0(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(l,u){for(var f=0;f0){var o={dataIndex:A,seriesIndex:e.seriesIndex};i!=null&&(o.dataType=i),t.push(o)}})}),t}function no(r,t,e){zA(r,!0),ti(r,po),I0(r,t,e)}function O3(r){zA(r,!1)}function ye(r,t,e,n){n?O3(r):no(r,t,e)}function I0(r,t,e){var n=Ct(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var JS=["emphasis","blur","select"],k3={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function $e(r,t,e,n){e=e||"itemStyle";for(var a=0;a1&&(A*=Tg(v),o*=Tg(v));var d=(a===i?-1:1)*Tg((A*A*(o*o)-A*A*(h*h)-o*o*(c*c))/(A*A*(h*h)+o*o*(c*c)))||0,p=d*A*h/o,g=d*-o*c/A,y=(r+e)/2+mc(f)*p-yc(f)*g,m=(t+n)/2+yc(f)*p+mc(f)*g,w=ex([1,0],[(c-p)/A,(h-g)/o]),_=[(c-p)/A,(h-g)/o],B=[(-1*c-p)/A,(-1*h-g)/o],C=ex(_,B);if(E0(_,B)<=-1&&(C=_l),E0(_,B)>=1&&(C=0),C<0){var S=Math.round(C/_l*1e6)/1e6;C=_l*2+S%2*_l}u.addData(l,y,m,A,o,w,C,f,i)}var W3=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,X3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Y3(r){var t=new ga;if(!r)return t;var e=0,n=0,a=e,i=n,A,o=ga.CMD,s=r.match(W3);if(!s)return t;for(var l=0;lD*D+Q*Q&&(S=b,x=I),{cx:S,cy:x,x0:-u,y0:-f,x1:S*(a/_-1),y1:x*(a/_-1)}}function e5(r){var t;if(K(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 r5(r,t){var e,n=ql(t.r,0),a=ql(t.r0||0,0),i=n>0,A=a>0;if(!(!i&&!A)){if(i||(n=a,a=0),a>n){var o=n;n=a,a=o}var s=t.startAngle,l=t.endAngle;if(!(isNaN(s)||isNaN(l))){var u=t.cx,f=t.cy,c=!!t.clockwise,h=nx(l-s),v=h>Ig&&h%Ig;if(v>Sn&&(h=v),!(n>Sn))r.moveTo(u,f);else if(h>Ig-Sn)r.moveTo(u+n*Ro(s),f+n*mA(s)),r.arc(u,f,n,s,l,!c),a>Sn&&(r.moveTo(u+a*Ro(l),f+a*mA(l)),r.arc(u,f,a,l,s,c));else{var d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0,C=void 0,S=void 0,x=void 0,b=void 0,I=void 0,F=void 0,E=void 0,D=void 0,Q=n*Ro(s),M=n*mA(s),R=a*Ro(l),P=a*mA(l),O=h>Sn;if(O){var G=t.cornerRadius;G&&(e=e5(G),d=e[0],p=e[1],g=e[2],y=e[3]);var X=nx(n-a)/2;if(m=Wn(X,g),w=Wn(X,y),_=Wn(X,d),B=Wn(X,p),x=C=ql(m,w),b=S=ql(_,B),(C>Sn||S>Sn)&&(I=n*Ro(l),F=n*mA(l),E=a*Ro(s),D=a*mA(s),hSn){var $=Wn(g,x),q=Wn(y,x),j=wc(E,D,Q,M,n,$,c),ct=wc(I,F,R,P,n,q,c);r.moveTo(u+j.cx+j.x0,f+j.cy+j.y0),x0&&r.arc(u+j.cx,f+j.cy,$,je(j.y0,j.x0),je(j.y1,j.x1),!c),r.arc(u,f,n,je(j.cy+j.y1,j.cx+j.x1),je(ct.cy+ct.y1,ct.cx+ct.x1),!c),q>0&&r.arc(u+ct.cx,f+ct.cy,q,je(ct.y1,ct.x1),je(ct.y0,ct.x0),!c))}else r.moveTo(u+Q,f+M),r.arc(u,f,n,s,l,!c);if(!(a>Sn)||!O)r.lineTo(u+R,f+P);else if(b>Sn){var $=Wn(d,b),q=Wn(p,b),j=wc(R,P,I,F,a,-q,c),ct=wc(Q,M,E,D,a,-$,c);r.lineTo(u+j.cx+j.x0,f+j.cy+j.y0),b0&&r.arc(u+j.cx,f+j.cy,q,je(j.y0,j.x0),je(j.y1,j.x1),!c),r.arc(u,f,a,je(j.cy+j.y1,j.cx+j.x1),je(ct.cy+ct.y1,ct.cx+ct.x1),c),$>0&&r.arc(u+ct.cx,f+ct.cy,$,je(ct.y1,ct.x1),je(ct.y0,ct.x0),!c))}else r.lineTo(u+R,f+P),r.arc(u,f,a,l,s,c)}r.closePath()}}}var n5=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}(),Cr=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new n5},t.prototype.buildPath=function(e,n){r5(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Mt);Cr.prototype.type="sector";var a5=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Lf=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new a5},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,A,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,A,!0)},t}(Mt);Lf.prototype.type="ring";function i5(r,t,e,n){var a=[],i=[],A=[],o=[],s,l,u,f;if(n){u=[1/0,1/0],f=[-1/0,-1/0];for(var c=0,h=r.length;c=2){if(n){var i=i5(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var A=a.length,o=0;o<(e?A:A-1);o++){var s=i[o*2],l=i[o*2+1],u=a[(o+1)%A];r.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var o=1,f=a.length;oBA[1]){if(o=!1,i)return o;var u=Math.abs(BA[0]-wA[1]),f=Math.abs(wA[0]-BA[1]);Math.min(u,f)>a.len()&&(u0){var f=u.duration,c=u.delay,h=u.easing,v={duration:f,delay:c||0,easing:h,done:i,force:!!i||!!A,setToFinal:!l,scope:r,during:A};o?t.animateFrom(e,v):t.animateTo(e,v)}else t.stopAnimation(),!o&&t.attr(e),A&&A(1),i&&i()}function zt(r,t,e,n,a,i){s_("update",r,t,e,n,a,i)}function ue(r,t,e,n,a,i){s_("enter",r,t,e,n,a,i)}function xs(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Ax(r){return!r.isGroup}function m5(r){return r.shape!=null}function Pf(r,t,e){if(!r||!t)return;function n(A){var o={};return A.traverse(function(s){Ax(s)&&s.anid&&(o[s.anid]=s)}),o}function a(A){var o={x:A.x,y:A.y,rotation:A.rotation};return m5(A)&&(o.shape=V({},A.shape)),o}var i=n(r);t.traverse(function(A){if(Ax(A)&&A.anid){var o=i[A.anid];if(o){var s=a(A);A.attr(a(o)),zt(A,s,e,Ct(A).dataIndex)}}})}function OM(r,t){return Y(r,function(e){var n=e[0];n=Fv(n,t.x),n=Ev(n,t.x+t.width);var a=e[1];return a=Fv(a,t.y),a=Ev(a,t.y+t.height),[n,a]})}function w5(r,t){var e=Fv(r.x,t.x),n=Ev(r.x+r.width,t.x+t.width),a=Fv(r.y,t.y),i=Ev(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function Rf(r,t,e){var n=V({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),gt(a,e),new Ge(n)):Zd(r.replace("path://",""),n,e,"center")}function jl(r,t,e,n,a){for(var i=0,A=a[a.length-1];i1)return!1;var p=Fg(h,v,u,f)/c;return!(p<0||p>1)}function Fg(r,t,e,n){return r*n-e*t}function B5(r){return r<=1e-6&&r>=-1e-6}function js(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=nt(t)?{formatter:t}:t,i=e.mainType,A=e.componentIndex,o={componentType:i,name:n,$vars:["name"]};o[i+"Index"]=A;var s=r.formatterParamsExtra;s&&T(Ht(s),function(u){st(o,u)||(o[u]=s[u],o.$vars.push(u))});var l=Ct(r.el);l.componentMainType=i,l.componentIndex=A,l.tooltipConfig={name:n,option:gt({content:n,encodeHTMLContent:!0,formatterParams:o},a)}}function ox(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function rA(r,t){if(r)if(K(r))for(var e=0;e=0&&o.push(s)}),o}}function nA(r,t){return Ft(Ft({},r,!0),t,!0)}const L5={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:". "}}}},M5={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 Qv="ZH",f_="EN",bs=f_,Xh={},c_={},WM=Ut.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||bs).toUpperCase();return r.indexOf(Qv)>-1?Qv:bs}():bs;function XM(r,t){r=r.toUpperCase(),c_[r]=new Yt(t),Xh[r]=t}function U5(r){if(nt(r)){var t=Xh[r.toUpperCase()]||{};return r===Qv||r===f_?mt(t):Ft(mt(t),mt(Xh[bs]),!1)}else return Ft(mt(r),mt(Xh[bs]),!1)}function L0(r){return c_[r]}function P5(){return c_[bs]}XM(f_,L5);XM(Qv,M5);var h_=1e3,v_=h_*60,Eu=v_*60,un=Eu*24,cx=un*365,tu={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}"},Cc="{yyyy}-{MM}-{dd}",hx={year:"{yyyy}",month:"{yyyy}-{MM}",day:Cc,hour:Cc+" "+tu.hour,minute:Cc+" "+tu.minute,second:Cc+" "+tu.second,millisecond:tu.none},Qg=["year","month","day","hour","minute","second","millisecond"],YM=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function oi(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ts(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 R5(r){return r===Ts(r)}function H5(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function qd(r,t,e,n){var a=pa(r),i=a[d_(e)](),A=a[Is(e)]()+1,o=Math.floor((A-1)/3)+1,s=a[jd(e)](),l=a["get"+(e?"UTC":"")+"Day"](),u=a[af(e)](),f=(u-1)%12+1,c=a[tp(e)](),h=a[ep(e)](),v=a[rp(e)](),d=u>=12?"pm":"am",p=d.toUpperCase(),g=n instanceof Yt?n:L0(n||WM)||P5(),y=g.getModel("time"),m=y.get("month"),w=y.get("monthAbbr"),_=y.get("dayOfWeek"),B=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,oi(i%100+"",2)).replace(/{Q}/g,o+"").replace(/{MMMM}/g,m[A-1]).replace(/{MMM}/g,w[A-1]).replace(/{MM}/g,oi(A,2)).replace(/{M}/g,A+"").replace(/{dd}/g,oi(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,B[l]).replace(/{e}/g,l+"").replace(/{HH}/g,oi(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,oi(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,oi(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,oi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,oi(v,3)).replace(/{S}/g,v+"")}function O5(r,t,e,n,a){var i=null;if(nt(e))i=e;else if(vt(e))i=e(r.value,t,{level:r.level});else{var A=V({},tu);if(r.level>0)for(var o=0;o=0;--o)if(s[l]){i=s[l];break}i=i||A.none}if(K(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return qd(new Date(r.value),i,a,n)}function ZM(r,t){var e=pa(r),n=e[Is(t)]()+1,a=e[jd(t)](),i=e[af(t)](),A=e[tp(t)](),o=e[ep(t)](),s=e[rp(t)](),l=s===0,u=l&&o===0,f=u&&A===0,c=f&&i===0,h=c&&a===1,v=h&&n===1;return v?"year":h?"month":c?"day":f?"hour":u?"minute":l?"second":"millisecond"}function vx(r,t,e){var n=Kt(r)?pa(r):r;switch(t=t||ZM(r,e),t){case"year":return n[d_(e)]();case"half-year":return n[Is(e)]()>=6?1:0;case"quarter":return Math.floor((n[Is(e)]()+1)/4);case"month":return n[Is(e)]();case"day":return n[jd(e)]();case"half-day":return n[af(e)]()/24;case"hour":return n[af(e)]();case"minute":return n[tp(e)]();case"second":return n[ep(e)]();case"millisecond":return n[rp(e)]()}}function d_(r){return r?"getUTCFullYear":"getFullYear"}function Is(r){return r?"getUTCMonth":"getMonth"}function jd(r){return r?"getUTCDate":"getDate"}function af(r){return r?"getUTCHours":"getHours"}function tp(r){return r?"getUTCMinutes":"getMinutes"}function ep(r){return r?"getUTCSeconds":"getSeconds"}function rp(r){return r?"getUTCMilliseconds":"getMilliseconds"}function k5(r){return r?"setUTCFullYear":"setFullYear"}function $M(r){return r?"setUTCMonth":"setMonth"}function JM(r){return r?"setUTCDate":"setDate"}function qM(r){return r?"setUTCHours":"setHours"}function jM(r){return r?"setUTCMinutes":"setMinutes"}function tU(r){return r?"setUTCSeconds":"setSeconds"}function eU(r){return r?"setUTCMilliseconds":"setMilliseconds"}function rU(r){if(!JL(r))return nt(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function nU(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 rl=VB;function M0(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(u){return u&&En(u)?u:"-"}function i(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var A=t==="time",o=r instanceof Date;if(A||o){var s=A?pa(r):r;if(isNaN(+s)){if(o)return"-"}else return qd(s,n,e)}if(t==="ordinal")return qm(r)?a(r):Kt(r)&&i(r)?r+"":"-";var l=za(r);return i(l)?rU(l):qm(r)?a(r):typeof r=="boolean"?r+"":"-"}var dx=["a","b","c","d","e","f","g"],Lg=function(r,t){return"{"+r+(t??"")+"}"};function aU(r,t,e){K(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var A=e.markerId||"markerX";return{renderMode:i,content:"{"+A+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function go(r,t){return t=t||"transparent",nt(r)?r:yt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Lv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Yh=T,iU=["left","right","top","bottom","width","height"],WA=[["width","left","right"],["height","top","bottom"]];function p_(r,t,e,n,a){var i=0,A=0;n==null&&(n=1/0),a==null&&(a=1/0);var o=0;t.eachChild(function(s,l){var u=s.getBoundingRect(),f=t.childAt(l+1),c=f&&f.getBoundingRect(),h,v;if(r==="horizontal"){var d=u.width+(c?-c.x+u.x:0);h=i+d,h>n||s.newline?(i=0,h=d,A+=o+e,o=u.height):o=Math.max(o,u.height)}else{var p=u.height+(c?-c.y+u.y:0);v=A+p,v>a||s.newline?(i+=o+e,A=0,v=p,o=u.width):o=Math.max(o,u.width)}s.newline||(s.x=i,s.y=A,s.markRedraw(),r==="horizontal"?i=h+e:A=v+e)})}var io=p_;xt(p_,"vertical");xt(p_,"horizontal");function G5(r,t,e){var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(o)||isNaN(parseFloat(r.right)))&&(o=n),(isNaN(A)||isNaN(parseFloat(r.top)))&&(A=0),(isNaN(s)||isNaN(parseFloat(r.bottom)))&&(s=a),e=rl(e||0),{width:Math.max(o-i-e[1]-e[3],0),height:Math.max(s-A-e[0]-e[2],0)}}function Qe(r,t,e){e=rl(e||0);var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a),l=et(r.width,n),u=et(r.height,a),f=e[2]+e[0],c=e[1]+e[3],h=r.aspect;switch(isNaN(l)&&(l=n-o-c-i),isNaN(u)&&(u=a-s-f-A),h!=null&&(isNaN(l)&&isNaN(u)&&(h>n/a?l=n*.8:u=a*.8),isNaN(l)&&(l=h*u),isNaN(u)&&(u=l/h)),isNaN(i)&&(i=n-o-l-c),isNaN(A)&&(A=a-s-u-f),r.left||r.right){case"center":i=n/2-l/2-e[3];break;case"right":i=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":A=a/2-u/2-e[0];break;case"bottom":A=a-u-f;break}i=i||0,A=A||0,isNaN(l)&&(l=n-c-i-(o||0)),isNaN(u)&&(u=a-f-A-(s||0));var v=new Et(i+e[3],A+e[0],l,u);return v.margin=e,v}function np(r,t,e,n,a,i){var A=!a||!a.hv||a.hv[0],o=!a||!a.hv||a.hv[1],s=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!A&&!o)return!1;var l;if(s==="raw")l=r.type==="group"?new Et(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var u=r.getLocalTransform();l=l.clone(),l.applyTransform(u)}var f=Qe(gt({width:l.width,height:l.height},t),e,n),c=A?f.x-l.x:0,h=o?f.y-l.y:0;return s==="raw"?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function K5(r,t){return r[WA[t][0]]!=null||r[WA[t][1]]!=null&&r[WA[t][2]]!=null}function Af(r){var t=r.layoutMode||r.constructor.layoutMode;return yt(t)?t:t?{type:t}:null}function Yi(r,t,e){var n=e&&e.ignoreSize;!K(n)&&(n=[n,n]);var a=A(WA[0],0),i=A(WA[1],1);l(WA[0],r,a),l(WA[1],r,i);function A(u,f){var c={},h=0,v={},d=0,p=2;if(Yh(u,function(m){v[m]=r[m]}),Yh(u,function(m){o(t,m)&&(c[m]=v[m]=t[m]),s(c,m)&&h++,s(v,m)&&d++}),n[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var g=0;g=0;s--)o=Ft(o,a[s],!0);n.defaultOption=o}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Df(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Yt);oM(Rt,Yt);Nd(Rt);D5(Rt);Q5(Rt,W5);function W5(r){var t=[];return T(Rt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return ia(e).main}),r!=="dataset"&&Qt(t,"dataset")<=0&&t.unshift("dataset"),t}var oU="";typeof navigator<"u"&&(oU=navigator.platform||"");var Ho="rgba(0, 0, 0, 0.2)";const X5={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ho,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ho,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ho,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ho,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ho,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ho,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:oU.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 sU=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),mn="original",lr="arrayRows",wn="objectRows",ya="keyedColumns",Hi="typedArray",lU="unknown",fa="column",al="row",Ke={Must:1,Might:2,Not:3},uU=Vt();function Y5(r){uU(r).datasetMap=ft()}function fU(r,t,e){var n={},a=y_(t);if(!a||!r)return n;var i=[],A=[],o=t.ecModel,s=uU(o).datasetMap,l=a.uid+"_"+e.seriesLayoutBy,u,f;r=r.slice(),T(r,function(d,p){var g=yt(d)?d:r[p]={name:d};g.type==="ordinal"&&u==null&&(u=p,f=v(g)),n[g.name]=[]});var c=s.get(l)||s.set(l,{categoryWayDim:f,valueWayDim:0});T(r,function(d,p){var g=d.name,y=v(d);if(u==null){var m=c.valueWayDim;h(n[g],m,y),h(A,m,y),c.valueWayDim+=y}else if(u===p)h(n[g],0,y),h(i,0,y);else{var m=c.categoryWayDim;h(n[g],m,y),h(A,m,y),c.categoryWayDim+=y}});function h(d,p,g){for(var y=0;yt)return r[n];return r[e-1]}function vU(r,t,e,n,a,i,A){i=i||r;var o=t(i),s=o.paletteIdx||0,l=o.paletteNameMap=o.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var u=A==null||!n?e:j5(n,A);if(u=u||e,!(!u||!u.length)){var f=u[s];return a&&(l[a]=f),o.paletteIdx=(s+1)%u.length,f}}function tz(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Sc,Cl,gx,yx="\0_ec_inner",ez=1,w_=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,A,o){i=i||{},this.option=null,this._theme=new Yt(i),this._locale=new Yt(A),this._optionManager=o},t.prototype.setOption=function(e,n,a){var i=_x(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,_x(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var A=i.mountOption(e==="recreate");!this.option||e==="recreate"?gx(this,A):(this.restoreData(),this._mergeOption(A,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var o=i.getTimelineOption(this);o&&(a=!0,this._mergeOption(o,n))}if(!e||e==="recreate"||e==="media"){var s=i.getMediaOption(this);s.length&&T(s,function(l){a=!0,this._mergeOption(l,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,A=this._componentsCount,o=[],s=ft(),l=n&&n.replaceMergeMainTypeMap;Y5(this),T(e,function(f,c){f!=null&&(Rt.hasClass(c)?c&&(o.push(c),s.set(c,!0)):a[c]=a[c]==null?mt(f):Ft(a[c],f,!0))}),l&&l.each(function(f,c){Rt.hasClass(c)&&!s.get(c)&&(o.push(c),s.set(c,!0))}),Rt.topologicalTravel(o,Rt.getAllClassMainTypes(),u,this);function u(f){var c=J5(this,f,qt(e[f])),h=i.get(f),v=h?l&&l.get(f)?"replaceMerge":"normalMerge":"replaceAll",d=rM(h,c,v);bK(d,f,Rt),a[f]=null,i.set(f,null),A.set(f,0);var p=[],g=[],y=0,m;T(d,function(w,_){var B=w.existing,C=w.newOption;if(!C)B&&(B.mergeOption({},this),B.optionUpdated({},!1));else{var S=f==="series",x=Rt.getClass(f,w.keyInfo.subType,!S);if(!x)return;if(f==="tooltip"){if(m)return;m=!0}if(B&&B.constructor===x)B.name=w.keyInfo.name,B.mergeOption(C,this),B.optionUpdated(C,!1);else{var b=V({componentIndex:_},w.keyInfo);B=new x(C,this,this,b),V(B,b),w.brandNew&&(B.__requireNewView=!0),B.init(C,this,this),B.optionUpdated(null,!0)}}B?(p.push(B.option),g.push(B),y++):(p.push(void 0),g.push(void 0))},this),a[f]=p,i.set(f,g),A.set(f,y),f==="series"&&Sc(this)}this._seriesIndices||Sc(this)},t.prototype.getOption=function(){var e=mt(this.option);return T(e,function(n,a){if(Rt.hasClass(a)){for(var i=qt(n),A=i.length,o=!1,s=A-1;s>=0;s--)i[s]&&!tf(i[s])?o=!0:(i[s]=null,!o&&A--);i.length=A,e[a]=i}}),delete e[yx],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var A=0;A=t:e==="max"?r<=t:r===t}function uz(r,t){return r.join(",")===t.join(",")}var _n=T,of=yt,Cx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ug(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Cx.length;e=0;p--){var g=r[p];if(o||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(s==="all"||s==="positive"&&y>0||s==="negative"&&y<0||s==="samesign"&&c>=0&&y>0||s==="samesign"&&c<=0&&y<0){c=dK(c,y),d=y;break}}}return n[0]=c,n[1]=d,n})})}var ap=function(){function r(t){this.data=t.data||(t.sourceFormat===ya?{}:[]),this.sourceFormat=t.sourceFormat||lU,this.seriesLayoutBy=t.seriesLayoutBy||fa,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;nd&&(d=m)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};Ex=(t={},t[lr+"_"+fa]={pure:!0,appendData:i},t[lr+"_"+al]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[wn]={pure:!0,appendData:i},t[ya]={pure:!0,appendData:function(A){var o=this._data;T(A,function(s,l){for(var u=o[l]||(o[l]=[]),f=0;f<(s||[]).length;f++)u.push(s[f])})}},t[mn]={appendData:i},t[Hi]={persistent:!1,pure:!0,appendData:function(A){this._data=A},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(A){for(var o=0;o=0&&(d=A.interpolatedValue[p])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return Rs(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Mx(r){var t,e;return yt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Du(r){return new Tz(r)}var Tz=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var A=u(this._modBy),o=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;(A!==s||o!==l)&&(i="reset");function u(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=s,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?o:A}};return i;function A(){return t=r?null:st},gte:function(r,t){return r>=t}},Fz=function(){function r(t,e){if(!Kt(e)){var n="";Xt(n)}this._opFn=xU[t],this._rvalFloat=za(e)}return r.prototype.evaluate=function(t){return Kt(t)?this._opFn(t,this._rvalFloat):this._opFn(za(t),this._rvalFloat)},r}(),bU=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=Kt(t)?t:za(t),a=Kt(e)?e:za(e),i=isNaN(n),A=isNaN(a);if(i&&(n=this._incomparable),A&&(a=this._incomparable),i&&A){var o=nt(t),s=nt(e);o&&(n=s?t:0),s&&(a=o?e:0)}return na?-this._resultLT:0},r}(),Ez=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=za(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=za(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function Dz(r,t){return r==="eq"||r==="ne"?new Ez(r==="eq",t):st(xU,r)?new Fz(r,t):null}var Qz=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 Oi(t,e)},r}();function Lz(r,t){var e=new Qz,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,A="";r.seriesLayoutBy!==fa&&Xt(A);var o=[],s={},l=r.dimensionsDefine;if(l)T(l,function(d,p){var g=d.name,y={index:p,name:g,displayName:d.displayName};if(o.push(y),g!=null){var m="";st(s,g)&&Xt(m),s[g]=y}});else for(var u=0;u65535?Nz:Vz}function Oo(){return[1/0,-1/0]}function Gz(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Rx(r,t,e,n,a){var i=FU[e||"float"];if(a){var A=r[t],o=A&&A.length;if(o!==n){for(var s=new i(n),l=0;lp[1]&&(p[1]=d)}return this._rawCount=this._count=s,{start:o,end:s}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,A=this._dimensions,o=A.length,s=this._rawExtent,l=Y(A,function(y){return y.property}),u=0;ug[1]&&(g[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=A-1;else return A}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],A=[];if(!i)return A;n==null&&(n=1/0);for(var o=1/0,s=-1,l=0,u=0,f=this.count();u=0&&s<0)&&(o=v,s=h,l=0),h===s&&(A[l++]=u))}return A.length=l,A},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=c||isNaN(y))&&(s[l++]=d),d++}v=!0}else if(i===2){for(var p=h[a[0]],m=h[a[1]],w=t[a[1]][0],_=t[a[1]][1],g=0;g=f&&y<=c||isNaN(y))&&(B>=w&&B<=_||isNaN(B))&&(s[l++]=d),d++}v=!0}}if(!v)if(i===1)for(var g=0;g=f&&y<=c||isNaN(y))&&(s[l++]=C)}else for(var g=0;gt[b][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(g))}return lg[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],A=this.count(),o=0,s=Math.floor(1/e),l=this.getRawIndex(0),u,f,c,h=new(xl(this._rawCount))(Math.min((Math.ceil(A/s)+2)*2,A));h[o++]=l;for(var v=1;vu&&(u=f,c=w)}I>0&&Iu-v&&(s=u-v,o.length=s);for(var d=0;df[1]&&(f[1]=g),c[h++]=y}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,A=this.count();is&&(s=f)}return A=[o,s],this._extent[t]=A,A},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return Oi(e[i],this._dimensions[i])}Hg={arrayRows:t,objectRows:function(e,n,a,i){return Oi(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var A=e&&(e.value==null?e:e.value);return Oi(A instanceof Array?A[i]:A,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),EU=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(xc(t)){var A=t,o=void 0,s=void 0,l=void 0;if(n){var u=e[0];u.prepareSource(),l=u.getSource(),o=l.data,s=l.sourceFormat,i=[u._getVersionSign()]}else o=A.get("data",!0),s=Mr(o)?Hi:mn,i=[];var f=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},h=St(f.seriesLayoutBy,c.seriesLayoutBy)||null,v=St(f.sourceHeader,c.sourceHeader),d=St(f.dimensions,c.dimensions),p=h!==c.seriesLayoutBy||!!v!=!!c.sourceHeader||d;a=p?[R0(o,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},s)]:[]}else{var g=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var m=g.get("source",!0);a=[R0(m,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&Ox(i)}var A,o=[],s=[];return T(t,function(l){l.prepareSource();var u=l.getSource(a||0),f="";a!=null&&!u&&Ox(f),o.push(u),s.push(l._getVersionSign())}),n?A=Oz(n,o,{datasetIndex:e.componentIndex}):a!=null&&(A=[wz(o[0])]),{sourceList:A,upstreamSignList:s}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return T(r.blocks,function(a){var i=MU(a);i>=t&&(t=i+ +(n&&(!i||O0(a)&&!a.noHeader)))}),t}return 0}function Wz(r,t,e,n){var a=t.noHeader,i=Yz(MU(t)),A=[],o=t.blocks||[];Br(!o||K(o)),o=o||[];var s=r.orderMode;if(t.sortBlocks&&s){o=o.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(st(l,s)){var u=new bU(l[s],null);o.sort(function(v,d){return u.evaluate(v.sortParam,d.sortParam)})}else s==="seriesDesc"&&o.reverse()}T(o,function(v,d){var p=t.valueFormatter,g=LU(v)(p?V(V({},r),{valueFormatter:p}):r,v,d>0?i.html:0,n);g!=null&&A.push(g)});var f=r.renderMode==="richText"?A.join(i.richText):k0(A.join(""),a?e:i.html);if(a)return f;var c=M0(t.header,"ordinal",r.useUTC),h=QU(n,r.renderMode).nameStyle;return r.renderMode==="richText"?UU(r,c,h)+i.richText+f:k0('
'+Er(c)+"
"+f,e)}function Xz(r,t,e,n){var a=r.renderMode,i=t.noName,A=t.noValue,o=!t.markerType,s=t.name,l=r.useUTC,u=t.valueFormatter||r.valueFormatter||function(w){return w=K(w)?w:[w],Y(w,function(_,B){return M0(_,K(h)?h[B]:h,l)})};if(!(i&&A)){var f=o?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),c=i?"":M0(s,"ordinal",l),h=t.valueType,v=A?[]:u(t.value,t.dataIndex),d=!o||!i,p=!o&&i,g=QU(n,a),y=g.nameStyle,m=g.valueStyle;return a==="richText"?(o?"":f)+(i?"":UU(r,c,y))+(A?"":Jz(r,v,d,p,m)):k0((o?"":f)+(i?"":Zz(c,!o,y))+(A?"":$z(v,d,p,m)),e)}}function kx(r,t,e,n,a,i){if(r){var A=LU(r),o={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return A(o,r,0,i)}}function Yz(r){return{html:Kz[r],richText:zz[r]}}function k0(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function Zz(r,t,e){var n=t?"margin-left:2px":"";return''+Er(r)+""}function $z(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=K(r)?r:[r],''+Y(r,function(A){return Er(A)}).join("  ")+""}function UU(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function Jz(r,t,e,n,a){var i=[a],A=n?10:20;return e&&i.push({padding:[0,0,0,A],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(K(t)?t.join(" "):t,i)}function PU(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return go(n)}function RU(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Og=function(){function r(){this.richTextStyles={},this._nextStyleNameId=qL()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=V5({color:e,type:t,renderMode:n,markerId:a});return nt(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};K(e)?T(e,function(i){return V(n,i)}):V(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function HU(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),A=i.length,o=t.getRawValue(e),s=K(o),l=PU(t,e),u,f,c,h;if(A>1||s&&!A){var v=qz(o,t,e,i,l);u=v.inlineValues,f=v.inlineValueTypes,c=v.blocks,h=v.inlineValues[0]}else if(A){var d=a.getDimensionInfo(i[0]);h=u=Rs(a,e,i[0]),f=d.type}else h=u=s?o[0]:o;var p=$B(t),g=p&&t.name||"",y=a.getName(e),m=n?g:y;return Oe("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[Oe("nameValue",{markerType:"item",markerColor:l,name:m,noName:!En(m),value:u,valueType:f,dataIndex:e})].concat(c||[])})}function qz(r,t,e,n,a){var i=t.getData(),A=ha(r,function(f,c,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),o=[],s=[],l=[];n.length?T(n,function(f){u(Rs(i,e,f),f)}):T(r,u);function u(f,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(A?l.push(Oe("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(o.push(f),s.push(h.type)))}return{inlineValues:o,inlineValueTypes:s,blocks:l}}var si=Vt();function bc(r,t){return r.getName(t)||r.getId(t)}var Zh="__universalTransitionEnabled",se=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Du({count:tW,reset:eW}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=si(this).sourceManager=new EU(this);i.prepareSource();var A=this.getInitialData(e,a);Vx(A,this),this.dataTask.context.data=A,si(this).dataBeforeProcessed=A,Nx(this),this._initSelectedMapFromData(A)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Af(this),i=a?nl(e):{},A=this.subType;Rt.hasClass(A)&&(A+="Series"),Ft(e,n.getTheme().get(this.subType)),Ft(e,this.getDefaultOption()),co(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Yi(e,i,a)},t.prototype.mergeOption=function(e,n){e=Ft(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Af(this);a&&Yi(this.option,e,a);var i=si(this).sourceManager;i.dirty(),i.prepareSource();var A=this.getInitialData(e,n);Vx(A,this),this.dataTask.dirty(),this.dataTask.context.data=A,si(this).dataBeforeProcessed=A,Nx(this),this._initSelectedMapFromData(A)},t.prototype.fillDataTextStyle=function(e){if(e&&!Mr(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,A=m_.prototype.getColorFromPalette.call(this,e,n,a);return A||(A=i.getColorFromPalette(e,n,a)),A},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,A=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o=0&&a.push(A)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[bc(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Zh])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,A=this.option,o=A.selectedMode,s=n.length;if(!(!o||!s)){if(o==="series")A.selectedMap="all";else if(o==="multiple"){yt(A.selectedMap)||(A.selectedMap={});for(var l=A.selectedMap,u=0;u0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Rt.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}(Rt);Ie(se,ip);Ie(se,m_);oM(se,Rt);function Nx(r){var t=r.name;$B(r)||(r.name=jz(r)||t)}function jz(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return T(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function tW(r){return r.model.getRawData().count()}function eW(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),rW}function rW(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Vx(r,t){T(gv(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,xt(nW,t))})}function nW(r,t){var e=N0(r);return e&&e.setOutputEnd((t||this).count()),t}function N0(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var de=function(){function r(){this.group=new _t,this.uid=el("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();qB(de);Nd(de);function il(){var r=Vt();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,A=e.large=!!(n&&n.large),o=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==A||i!==o)&&"reset"}}var OU=Vt(),aW=il(),jt=function(){function r(){this.group=new _t,this.uid=el("viewChart"),this.renderTask=Du({plan:iW,reset:AW}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Kx(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Kx(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){rA(this.group,t)},r.markUpdateMethod=function(t,e){OU(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Gx(r,t,e){r&&rf(r)&&(t==="emphasis"?Wa:Xa)(r,e)}function Kx(r,t,e){var n=ho(r,t),a=t&&t.highlightKey!=null?V3(t.highlightKey):null;n!=null?T(qt(n),function(i){Gx(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Gx(i,e,a)})}qB(jt);Nd(jt);function iW(r){return aW(r.model)}function AW(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,A=r.view,o=a&&OU(a).updateMethod,s=i?"incrementalPrepareRender":o&&A[o]?o:"render";return s!=="render"&&A[s](t,e,n,a),oW[s]}var oW={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)}}},Mv="\0__throttleOriginMethod",zx="\0__throttleRate",Wx="\0__throttleType";function x_(r,t,e){var n,a=0,i=0,A=null,o,s,l,u;t=t||0;function f(){i=new Date().getTime(),A=null,r.apply(s,l||[])}var c=function(){for(var h=[],v=0;v=0?f():A=setTimeout(f,-o),a=n};return c.clear=function(){A&&(clearTimeout(A),A=null)},c.debounceNextCall=function(h){u=h},c}function Al(r,t,e,n){var a=r[t];if(a){var i=a[Mv]||a,A=a[Wx],o=a[zx];if(o!==e||A!==n){if(e==null||!n)return r[t]=i;a=r[t]=x_(i,e,n==="debounce"),a[Mv]=i,a[Wx]=n,a[zx]=e}return a}}function sf(r,t){var e=r[t];e&&e[Mv]&&(e.clear&&e.clear(),r[t]=e[Mv])}var Xx=Vt(),Yx={itemStyle:vo(zM,!0),lineStyle:vo(KM,!0)},sW={lineStyle:"stroke",itemStyle:"fill"};function kU(r,t){var e=r.visualStyleMapper||Yx[t];return e||(console.warn("Unknown style type '"+t+"'."),Yx.itemStyle)}function NU(r,t){var e=r.visualDrawType||sW[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var lW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=kU(r,n),A=i(a),o=a.getShallow("decal");o&&(e.setVisual("decal",o),o.dirty=!0);var s=NU(r,n),l=A[s],u=vt(l)?l:null,f=A.fill==="auto"||A.stroke==="auto";if(!A[s]||u||f){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());A[s]||(A[s]=c,e.setVisual("colorFromPalette",!0)),A.fill=A.fill==="auto"||vt(A.fill)?c:A.fill,A.stroke=A.stroke==="auto"||vt(A.stroke)?c:A.stroke}if(e.setVisual("style",A),e.setVisual("drawType",s),!t.isSeriesFiltered(r)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),p=V({},A);p[s]=u(d),h.setItemVisual(v,"style",p)}}}},bl=new Yt,uW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=kU(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(A,o){var s=A.getRawDataItem(o);if(s&&s[n]){bl.option=s[n];var l=a(bl),u=A.ensureUniqueItemVisual(o,"style");V(u,l),bl.option.decal&&(A.setItemVisual(o,"decal",bl.option.decal),bl.option.decal.dirty=!0),i in l&&A.setItemVisual(o,"colorFromPalette",!1)}}:null}}}},fW={performRawSeries:!0,overallReset:function(r){var t=ft();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Xx(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),A=Xx(e).scope,o=e.visualStyleAccessPath||"itemStyle",s=NU(e,o);i.each(function(l){var u=i.getRawIndex(l);a[u]=l}),n.each(function(l){var u=a[l],f=i.getItemVisual(u,"colorFromPalette");if(f){var c=i.ensureUniqueItemVisual(u,"style"),h=n.getName(l)||l+"",v=n.count();c[s]=e.getColorFromPalette(h,A,v)}})}})}},Tc=Math.PI;function cW(r,t){t=t||{},gt(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 _t,n=new Nt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Gt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Nt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var A;return t.showSpinner&&(A=new Yd({shape:{startAngle:-Tc/2,endAngle:-Tc/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),A.animateShape(!0).when(1e3,{endAngle:Tc*3/2}).start("circularInOut"),A.animateShape(!0).when(1e3,{startAngle:Tc*3/2}).delay(300).start("circularInOut"),e.add(A)),e.resize=function(){var o=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-s*2-(t.showSpinner&&o?10:0)-o)/2-(t.showSpinner&&o?0:5+o/2)+(t.showSpinner?0:o/2)+(o?0:s),u=r.getHeight()/2;t.showSpinner&&A.setShape({cx:l,cy:u}),i.setShape({x:l-s,y:u-s,width:s*2,height:s*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var VU=function(){function r(t,e,n,a){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,A=i?n.step:null,o=a&&a.modDataCount,s=o!=null?Math.ceil(o/A):null;return{step:A,modBy:s,modDataCount:o}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),A=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),s=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:A,modDataCount:s,large:o}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();t.eachSeries(function(a){var i=a.getProgressive(),A=a.uid;n.set(A,{id:A,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;T(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),A="";Br(!(a.reset&&a.overallReset),A),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,A=i.context;A.model=e,A.ecModel=n,A.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,A=this;T(t,function(s,l){if(!(a.visualType&&a.visualType!==s.visualType)){var u=A._stageTaskMap.get(s.uid),f=u.seriesTaskMap,c=u.overallTask;if(c){var h,v=c.agentStubMap;v.each(function(p){o(a,p)&&(p.dirty(),h=!0)}),h&&c.dirty(),A.updatePayload(c,n);var d=A.getPerformArgs(c,a.block);v.each(function(p){p.perform(d)}),c.perform(d)&&(i=!0)}else f&&f.each(function(p,g){o(a,p)&&p.dirty();var y=A.getPerformArgs(p,a.block);y.skip=!s.performRawSeries&&e.isSeriesFiltered(p.context.model),A.updatePayload(p,n),p.perform(y)&&(i=!0)})}});function o(s,l){return s.setDirty&&(!s.dirtyMap||s.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,A=e.seriesTaskMap,o=e.seriesTaskMap=ft(),s=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,a).each(u);function u(f){var c=f.uid,h=o.set(c,A&&A.get(c)||Du({plan:gW,reset:yW,count:wW}));h.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,A=e.overallTask=e.overallTask||Du({reset:hW});A.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var o=A.agentStubMap,s=A.agentStubMap=ft(),l=t.seriesType,u=t.getTargetSeries,f=!0,c=!1,h="";Br(!t.createOnAllSeries,h),l?n.eachRawSeriesByType(l,v):u?u(n,a).each(v):(f=!1,T(n.getSeries(),v));function v(d){var p=d.uid,g=s.set(p,o&&o.get(p)||(c=!0,Du({reset:vW,onDirty:pW})));g.context={model:d,overallProgress:f},g.agent=A,g.__block=f,i._pipe(d,g)}c&&A.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return vt(t)&&(t={overallReset:t,seriesType:BW(t)}),t.uid=el("stageHandler"),e&&(t.visualType=e),t},r}();function hW(r){r.overallReset(r.ecModel,r.api,r.payload)}function vW(r){return r.overallProgress&&dW}function dW(){this.agent.dirty(),this.getDownstream().dirty()}function pW(){this.agent&&this.agent.dirty()}function gW(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function yW(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?Y(t,function(e,n){return GU(n)}):mW}var mW=GU(0);function GU(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&h===l.length-c.length){var v=l.slice(0,h);v!=="data"&&(e.mainType=v,e[c.toLowerCase()]=s,u=!0)}}o.hasOwnProperty(l)&&(n[l]=s,u=!0),u||(a[l]=s)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,A=n.model,o=n.view;if(!A||!o)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,A,"mainType")&&u(s,A,"subType")&&u(s,A,"index","componentIndex")&&u(s,A,"name")&&u(s,A,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,a,i));function u(f,c,h,v){return f[h]==null||c[v||h]===f[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),V0=["symbol","symbolSize","symbolRotate","symbolOffset"],qx=V0.concat(["symbolKeepAspect"]),SW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,A=0;A=0&&YA(s)?s:.5;var l=r.createRadialGradient(A,o,0,A,o,s);return l}function G0(r,t,e){for(var n=t.type==="radial"?OW(r,t,e):HW(r,t,e),a=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Kt(r)?[r]:K(r)?r:null}function T_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&NW(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=Y(e,function(i){return i/a}),n/=a)}return[e,n]}var VW=new ga(!0);function Rv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function jx(r){return typeof r=="string"&&r!=="none"}function Hv(r){var t=r.fill;return t!=null&&t!=="none"}function tb(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 eb(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 K0(r,t,e){var n=jB(t.image,t.__image,e);if(Vd(n)){var a=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Ph),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function GW(r,t,e,n){var a,i=Rv(e),A=Hv(e),o=e.strokePercent,s=o<1,l=!t.path;(!t.silent||s)&&l&&t.createPathProxy();var u=t.path||VW,f=t.__dirty;if(!n){var c=e.fill,h=e.stroke,v=A&&!!c.colorStops,d=i&&!!h.colorStops,p=A&&!!c.image,g=i&&!!h.image,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0;(v||d)&&(B=t.getBoundingRect()),v&&(y=f?G0(r,c,B):t.__canvasFillGradient,t.__canvasFillGradient=y),d&&(m=f?G0(r,h,B):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=f||!t.__canvasFillPattern?K0(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(_=f||!t.__canvasStrokePattern?K0(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?r.fillStyle=y:p&&(w?r.fillStyle=w:A=!1),d?r.strokeStyle=m:g&&(_?r.strokeStyle=_:i=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var S,x;r.setLineDash&&e.lineDash&&(a=T_(t),S=a[0],x=a[1]);var b=!0;(l||f&As)&&(u.setDPR(r.dpr),s?u.setContext(null):(u.setContext(r),b=!1),u.reset(),t.buildPath(u,t.shape,n),u.toStatic(),t.pathUpdated()),b&&u.rebuildPath(r,s?o:1),S&&(r.setLineDash(S),r.lineDashOffset=x),n||(e.strokeFirst?(i&&eb(r,e),A&&tb(r,e)):(A&&tb(r,e),i&&eb(r,e))),S&&r.setLineDash([])}function KW(r,t,e){var n=t.__image=jB(e.image,t.__image,t,t.onload);if(!(!n||!Vd(n))){var a=e.x||0,i=e.y||0,A=t.getWidth(),o=t.getHeight(),s=n.width/n.height;if(A==null&&o!=null?A=o*s:o==null&&A!=null?o=A/s:A==null&&o==null&&(A=n.width,o=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,u=e.sy||0;r.drawImage(n,l,u,e.sWidth,e.sHeight,a,i,A,o)}else if(e.sx&&e.sy){var l=e.sx,u=e.sy,f=A-l,c=o-u;r.drawImage(n,l,u,f,c,a,i,A,o)}else r.drawImage(n,a,i,A,o)}}function zW(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||Ki,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,A=void 0;r.setLineDash&&e.lineDash&&(n=T_(t),i=n[0],A=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=A),e.strokeFirst?(Rv(e)&&r.strokeText(a,e.x,e.y),Hv(e)&&r.fillText(a,e.x,e.y)):(Hv(e)&&r.fillText(a,e.x,e.y),Rv(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var rb=["shadowBlur","shadowOffsetX","shadowOffsetY"],nb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ZU(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){Lr(r,a),i=!0;var A=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(A)?eo.opacity:A}(n||t.blend!==e.blend)&&(i||(Lr(r,a),i=!0),r.globalCompositeOperation=t.blend||eo.blend);for(var o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[tr]){if(this._disposed){this.id;return}var i,A,o;if(yt(n)&&(a=n.lazyUpdate,i=n.silent,A=n.replaceMerge,o=n.transition,n=n.notMerge),this[tr]=!0,!this._model||n){var s=new Az(this._api),l=this._theme,u=this._model=new w_;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:A},W0);var f={seriesTransition:o,optionChanged:!0};if(a)this[Tr]={silent:i,updateParams:f},this[tr]=!1,this.getZr().wakeUp();else{try{No(this),li.update.call(this,null,f)}catch(c){throw this[Tr]=null,this[tr]=!1,c}this._ssr||this._zr.flush(),this[Tr]=null,this[tr]=!1,Tl.call(this,i),Il.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ut.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(Ut.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return T(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],A=this;T(n,function(s){a.eachComponent({mainType:s},function(l){var u=A._componentsMap[l.__viewId];u.group.ignore||(i.push(u),u.group.ignore=!0)})});var o=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return T(i,function(s){s.group.ignore=!1}),o},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,A=Math.max,o=1/0;if(yb[a]){var s=o,l=o,u=-o,f=-o,c=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();T(Lu,function(m,w){if(m.group===a){var _=n?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(mt(e)),B=m.getDom().getBoundingClientRect();s=i(B.left,s),l=i(B.top,l),u=A(B.right,u),f=A(B.bottom,f),c.push({dom:_,left:B.left,top:B.top})}}),s*=h,l*=h,u*=h,f*=h;var v=u-s,d=f-l,p=zi.createCanvas(),g=_S(p,{renderer:n?"svg":"canvas"});if(g.resize({width:v,height:d}),n){var y="";return T(c,function(m){var w=m.left-s,_=m.top-l;y+=''+m.dom+""}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new Nt({shape:{x:0,y:0,width:v,height:d},style:{fill:e.connectedBackgroundColor}})),T(c,function(m){var w=new Ge({style:{x:m.left*h-s,y:m.top*h-l,image:m.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Kg(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Kg(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,A=bu(a,e);return T(A,function(o,s){s.indexOf("Models")>=0&&T(o,function(l){var u=l.coordinateSystem;if(u&&u.containPoint)i=i||!!u.containPoint(n);else if(s==="seriesModels"){var f=this._chartsMap[l.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,l))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=bu(a,e,{defaultMainType:"series"}),A=i.seriesModel,o=A.getData(),s=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return s!=null?b_(o,s,n):Of(o,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;T(p8,function(n){var a=function(i){var A=e.getModel(),o=i.target,s,l=n==="globalout";if(l?s={}:o&&XA(o,function(v){var d=Ct(v);if(d&&d.dataIndex!=null){var p=d.dataModel||A.getSeriesByIndex(d.seriesIndex);return s=p&&p.getDataParams(d.dataIndex,d.dataType,o)||{},!0}else if(d.eventData)return s=V({},d.eventData),!0},!0),s){var u=s.componentType,f=s.componentIndex;(u==="markLine"||u==="markPoint"||u==="markArea")&&(u="series",f=s.seriesIndex);var c=u&&f!=null&&A.getComponent(u,f),h=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];s.event=i,s.type=n,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:s,model:c,view:h},e.trigger(n,s)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),T(Qu,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),T(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),bW(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&&aM(this.getDom(),E_,"");var n=this,a=n._api,i=n._model;T(n._componentsViews,function(A){A.dispose(i,a)}),T(n._chartsViews,function(A){A.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Lu[n.id]},t.prototype.resize=function(e){if(!this[tr]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Tr]&&(i==null&&(i=this[Tr].silent),a=!0,this[Tr]=null),this[tr]=!0;try{a&&No(this),li.update.call(this,{type:"resize",animation:V({duration:0},e&&e.animation)})}catch(A){throw this[tr]=!1,A}this[tr]=!1,Tl.call(this,i),Il.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(yt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!X0[e]){var a=X0[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=V({},e);return n.type=Qu[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(yt(n)||(n={silent:!!n}),!!Ov[e.type]&&this._model){if(this[tr]){this._pendingActions.push(e);return}var a=n.silent;Wg.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&Ut.browser.weChat&&this._throttledZrFlush(),Tl.call(this,a),Il.call(this,a)}},t.prototype.updateLabelLayout=function(){Tn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){No=function(f){var c=f._scheduler;c.restorePipelines(f._model),c.prepareStageTasks(),Gg(f,!0),Gg(f,!1),c.plan()},Gg=function(f,c){for(var h=f._model,v=f._scheduler,d=c?f._componentsViews:f._chartsViews,p=c?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,m=0;mc.get("hoverLayerThreshold")&&!Ut.node&&!Ut.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=f._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function A(f,c){var h=f.get("blendMode")||null;c.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function o(f,c){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;c.eachRendered(function(d){return s(d,h,v,-1/0),!0})}}function s(f,c,h,v){var d=f.getTextContent(),p=f.getTextGuideLine(),g=f.isGroup;if(g)for(var y=f.childrenRef(),m=0;m0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xs(g))return;if(g instanceof Mt&&G3(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=p;var m=g.getTextContent(),w=g.getTextGuideLine();m&&(m.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&a(g)}})}pb=function(f){return new(function(c){H(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return f._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Wa(v,d),Zr(f)},h.prototype.leaveEmphasis=function(v,d){Xa(v,d),Zr(f)},h.prototype.enterBlur=function(v){BM(v),Zr(f)},h.prototype.leaveBlur=function(v){a_(v),Zr(f)},h.prototype.enterSelect=function(v){_M(v),Zr(f)},h.prototype.leaveSelect=function(v){CM(v),Zr(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(dU))(f)},u2=function(f){function c(h,v){for(var d=0;d=0)){mb.push(e);var i=VU.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function p2(r,t){X0[r]=t}function C8(r,t,e){var n=e8("registerMap");n&&n(r,t,e)}var S8=Hz;bo(I_,lW);bo(op,uW);bo(op,fW);bo(I_,SW);bo(op,xW);bo(a2,jW);v2(gU);d2(a8,yz);p2("default",cW);ma({type:ro,event:ro,update:ro},Be);ma({type:Kh,event:Kh,update:Kh},Be);ma({type:Tu,event:Tu,update:Tu},Be);ma({type:zh,event:zh,update:zh},Be);ma({type:Iu,event:Iu,update:Iu},Be);h2("light",_W);h2("dark",WU);var wb=[],x8={registerPreprocessor:v2,registerProcessor:d2,registerPostInit:m8,registerPostUpdate:w8,registerUpdateLifecycle:D_,registerAction:ma,registerCoordinateSystem:B8,registerLayout:_8,registerVisual:bo,registerTransform:S8,registerLoading:p2,registerMap:C8,registerImpl:t8,PRIORITY:h8,ComponentModel:Rt,ComponentView:de,SeriesModel:se,ChartView:jt,registerComponentModel:function(r){Rt.registerClass(r)},registerComponentView:function(r){de.registerClass(r)},registerSeriesModel:function(r){se.registerClass(r)},registerChartView:function(r){jt.registerClass(r)},registerSubTypeDefaulter:function(r,t){Rt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){lK(r,t)}};function Lt(r){if(K(r)){T(r,function(t){Lt(t)});return}Qt(wb,r)>=0||(wb.push(r),vt(r)&&(r={install:r}),r.install(x8))}function Fl(r){return r==null?0:r.length||1}function Bb(r){return r}var Ya=function(){function r(t,e,n,a,i,A){this._old=t,this._new=e,this._oldKeyGetter=n||Bb,this._newKeyGetter=a||Bb,this.context=i,this._diffModeMultiple=A==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var A=0;A1){var u=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(u,A)}else l===1?(n[o]=null,this._update&&this._update(s,A)):this._remove&&this._remove(A)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],A=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,A,"_newKeyGetter");for(var o=0;o1&&c===1)this._updateManyToOne&&this._updateManyToOne(u,l),a[s]=null;else if(f===1&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),a[s]=null;else if(f===1&&c===1)this._update&&this._update(u,l),a[s]=null;else if(f>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),a[s]=null;else if(f>1)for(var h=0;h1)for(var o=0;o30}var El=yt,ui=Y,D8=typeof Int32Array>"u"?Array:Int32Array,Q8="e\0\0",_b=-1,L8=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],M8=["_approximateExtent"],Cb,Lc,Dl,Ql,Zg,Mc,$g,mr=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;y2(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},A=[],o={},s=!1,l={},u=0;u=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,A=this._idList,o=a.getSource().sourceFormat,s=o===mn;if(s&&!a.pure)for(var l=[],u=t;u0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),K(i)?i=i.slice():El(i)&&(i=V({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,El(e)?V(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){El(t)?V(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?V(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;x0(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){T(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ui(this.dimensions,this._getDimInfo,this),this.hostModel)),Zg(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];vt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(NB(arguments)))})},r.internalField=function(){Cb=function(t){var e=t._invertedIndicesMap;T(e,function(n,a){var i=t._dimInfos[a],A=i.ordinalMeta,o=t._store;if(A){n=e[a]=new D8(A.categories.length);for(var s=0;s1&&(s+="__ec__"+u),a[e]=s}}}(),r}();function kf(r,t){B_(r)||(r=__(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=ft(),i=[],A=P8(r,e,n,t.dimensionsCount),o=t.canOmitUnusedDimensions&&B2(A),s=n===r.dimensionsDefine,l=s?w2(r):m2(n),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(r,A));for(var f=ft(u),c=new IU(A),h=0;h0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function P8(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return T(t,function(i){var A;yt(i)&&(A=i.dimsDef)&&(a=Math.max(a,A.length))}),a}function R8(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 H8=function(){function r(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return r}();function O8(r){var t=r.get("coordinateSystem"),e=new H8(t),n=k8[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var k8={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",be).models[0],i=r.getReferringComponents("yAxis",be).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),Vo(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Vo(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",be).models[0];t.coordSysDims=["single"],e.set("single",a),Vo(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",be).models[0],i=a.findAxisModel("radiusAxis"),A=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",A),Vo(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Vo(A)&&(n.set("angle",A),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),A=t.coordSysDims=i.dimensions.slice();T(i.parallelAxisIndex,function(o,s){var l=a.getComponent("parallelAxis",o),u=A[s];e.set(u,l),Vo(l)&&(n.set(u,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=s))})}};function Vo(r){return r.get("type")==="category"}function N8(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,A,o;V8(t)?i=t:(A=t.schema,i=A.dimensions,o=t.store);var s=!!(r&&r.get("stack")),l,u,f,c;if(T(i,function(y,m){nt(y)&&(i[m]=y={name:y}),s&&!y.isExtraCoord&&(!n&&!l&&y.ordinalMeta&&(l=y),!u&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(u=y))}),u&&!n&&!l&&(n=!0),u){f="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,v=u.type,d=0;T(i,function(y){y.coordDim===h&&d++});var p={name:f,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:c,coordDim:c,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};A?(o&&(p.storeDimIndex=o.ensureCalculationDimension(c,v),g.storeDimIndex=o.ensureCalculationDimension(f,v)),A.appendCalculationDimension(p),A.appendCalculationDimension(g)):(i.push(p),i.push(g))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:f}}function V8(r){return!y2(r.schema)}function Zi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function _2(r,t){return Zi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function G8(r,t){var e=r.get("coordinateSystem"),n=Hf.get(e),a;return t&&t.coordSysDims&&(a=Y(t.coordSysDims,function(i){var A={name:i},o=t.axisMap.get(i);if(o){var s=o.get("type");A.type=Nv(s)}return A})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function K8(r,t,e){var n,a;return e&&T(r,function(i,A){var o=i.coordDim,s=e.categoryAxisMap.get(o);s&&(n==null&&(n=A),i.ordinalMeta=s.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ri(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=__(r)):(a=n.getSource(),i=a.sourceFormat===mn);var A=O8(t),o=G8(t,A),s=e.useEncodeDefaulter,l=vt(s)?s:s?xt(fU,o,t):null,u={coordDimensions:o,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},f=kf(a,u),c=K8(f.dimensions,e.createInvertedIndices,A),h=i?null:n.getSharedDataStore(f),v=N8(t,{schema:f,store:h}),d=new mr(f,t);d.setCalculationInfo(v);var p=c!=null&&z8(a)?function(g,y,m,w){return w===c?m:this.defaultDimValueGetter(g,y,m,w)}:null;return d.hasItemOption=!1,d.initData(i?a:h,null,p),d}function z8(r){if(r.sourceFormat===mn){var t=W8(r.data||[]);return!K($s(t))}}function W8(r){for(var t=0;te[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}();Nd(wa);var X8=0,Y0=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++X8}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&Y(n,Y8);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!nt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},r}();function Y8(r){return yt(r)&&r.value!=null?r.value:r+""}function Z0(r){return r.type==="interval"||r.type==="log"}function Z8(r,t,e,n){var a={},i=r[1]-r[0],A=a.interval=$L(i/t);e!=null&&An&&(A=a.interval=n);var o=a.intervalPrecision=C2(A),s=a.niceTickExtent=[me(Math.ceil(r[0]/A)*A,o),me(Math.floor(r[1]/A)*A,o)];return $8(s,r),a}function Jg(r){var t=Math.pow(10,ZB(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,me(e*t)}function C2(r){return aa(r)+2}function Sb(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function $8(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Sb(r,0,t),Sb(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function sp(r,t){return r>=t[0]&&r<=t[1]}function lp(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function up(r,t){return r*(t[1]-t[0])+t[0]}var fp=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Y0({})),K(a)&&(a=new Y0({categories:Y(a,function(i){return yt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:nt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),sp(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),lp(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(up(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],A=0,o=this._ordinalMeta.categories.length,s=Math.min(o,n.length);A=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(wa);wa.registerClass(fp);var xA=me,Za=function(r){H(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 sp(e,this._extent)},t.prototype.normalize=function(e){return lp(e,this._extent)},t.prototype.scale=function(e){return up(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[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=C2(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,A=this._intervalPrecision,o=[];if(!n)return o;var s=1e4;a[0]s)return[];var u=o.length?o[o.length-1].value:i[1];return a[1]>u&&(e?o.push({value:xA(u+n,A)}):o.push({value:a[1]})),o},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),A=1;Ai[0]&&h0&&(i=i===null?o:Math.min(i,o))}e[n]=i}}return e}function b2(r){var t=j8(r),e=[];return T(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),A=i.getExtent(),o;if(i.type==="category")o=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var s=i.dim+"_"+i.index,l=t[s],u=Math.abs(A[1]-A[0]),f=i.scale.getExtent(),c=Math.abs(f[1]-f[0]);o=l?u/c*l:u}else{var h=n.getData();o=Math.abs(A[1]-A[0])/h.count()}var v=et(n.get("barWidth"),o),d=et(n.get("barMaxWidth"),o),p=et(n.get("barMinWidth")||(D2(n)?.5:1),o),g=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:o,barWidth:v,barMaxWidth:d,barMinWidth:p,barGap:g,barCategoryGap:y,axisKey:M_(i),stackId:L_(n)})}),T2(e)}function T2(r){var t={};T(r,function(n,a){var i=n.axisKey,A=n.bandWidth,o=t[i]||{bandWidth:A,remainedWidth:A,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},s=o.stacks;t[i]=o;var l=n.stackId;s[l]||o.autoWidthCount++,s[l]=s[l]||{width:0,maxWidth:0};var u=n.barWidth;u&&!s[l].width&&(s[l].width=u,u=Math.min(o.remainedWidth,u),o.remainedWidth-=u);var f=n.barMaxWidth;f&&(s[l].maxWidth=f);var c=n.barMinWidth;c&&(s[l].minWidth=c);var h=n.barGap;h!=null&&(o.gap=h);var v=n.barCategoryGap;v!=null&&(o.categoryGap=v)});var e={};return T(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=n.categoryGap;if(o==null){var s=Ht(i).length;o=Math.max(35-s*4,15)+"%"}var l=et(o,A),u=et(n.gap,1),f=n.remainedWidth,c=n.autoWidthCount,h=(f-l)/(c+(c-1)*u);h=Math.max(h,0),T(i,function(g){var y=g.maxWidth,m=g.minWidth;if(g.width){var w=g.width;y&&(w=Math.min(w,y)),m&&(w=Math.max(w,m)),g.width=w,f-=w+u*w,c--}else{var w=h;y&&yw&&(w=m),w!==h&&(g.width=w,f-=w+u*w,c--)}}),h=(f-l)/(c+(c-1)*u),h=Math.max(h,0);var v=0,d;T(i,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+u)}),d&&(v-=d.width*u);var p=-v/2;T(i,function(g,y){e[a][y]=e[a][y]||{bandWidth:A,offset:p,width:g.width},p+=g.width*(1+u)})}),e}function tX(r,t,e){if(r&&t){var n=r[M_(t)];return n!=null&&e!=null?n[L_(e)]:n}}function I2(r,t){var e=x2(r,t),n=b2(e);T(e,function(a){var i=a.getData(),A=a.coordinateSystem,o=A.getBaseAxis(),s=L_(a),l=n[M_(o)][s],u=l.offset,f=l.width;i.setLayout({bandWidth:l.bandWidth,offset:u,size:f})})}function F2(r){return{seriesType:r,plan:il(),reset:function(t){if(E2(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),A=e.getDimensionIndex(e.mapDimension(i.dim)),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),f=Zi(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=eX(a,i),v=D2(t),d=t.get("barMinHeight")||0,p=u&&e.getDimensionIndex(u),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(m,w){for(var _=m.count,B=v&&Aa(_*3),C=v&&s&&Aa(_*3),S=v&&Aa(_),x=n.master.getRect(),b=c?x.width:x.height,I,F=w.getStore(),E=0;(I=m.next())!=null;){var D=F.get(f?p:A,I),Q=F.get(o,I),M=h,R=void 0;f&&(R=+D-F.get(A,I));var P=void 0,O=void 0,G=void 0,X=void 0;if(c){var J=n.dataToPoint([D,Q]);if(f){var At=n.dataToPoint([R,Q]);M=At[0]}P=M,O=J[1]+y,G=J[0]-M,X=g,Math.abs(G)0?e:1:e))}var rX=function(r,t,e,n){for(;e>>1;r[a][1]a&&(this._approxInterval=a);var o=Uc.length,s=Math.min(rX(Uc,this._approxInterval,0,o),o-1);this._interval=Uc[s][1],this._minLevelUnit=Uc[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Kt(e)?e:+pa(e)},t.prototype.contain=function(e){return sp(this.parse(e),this._extent)},t.prototype.normalize=function(e){return lp(this.parse(e),this._extent)},t.prototype.scale=function(e){return up(e,this._extent)},t.type="time",t}(Za),Uc=[["second",h_],["minute",v_],["hour",Eu],["quarter-day",Eu*6],["half-day",Eu*12],["day",un*1.2],["half-week",un*3.5],["week",un*7],["month",un*31],["quarter",un*95],["half-year",cx/2],["year",cx]];function nX(r,t,e,n){var a=pa(t),i=pa(e),A=function(v){return vx(a,v,n)===vx(i,v,n)},o=function(){return A("year")},s=function(){return o()&&A("month")},l=function(){return s()&&A("day")},u=function(){return l()&&A("hour")},f=function(){return u()&&A("minute")},c=function(){return f()&&A("second")},h=function(){return c()&&A("millisecond")};switch(r){case"year":return o();case"month":return s();case"day":return l();case"hour":return u();case"minute":return f();case"second":return c();case"millisecond":return h()}}function aX(r,t){return r/=un,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function iX(r){var t=30*un;return r/=t,r>6?6:r>3?3:r>2?2:1}function AX(r){return r/=Eu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function xb(r,t){return r/=t?v_:h_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function oX(r){return $L(r)}function sX(r,t,e){var n=new Date(r);switch(Ts(t)){case"year":case"month":n[$M(e)](0);case"day":n[JM(e)](1);case"hour":n[qM(e)](0);case"minute":n[jM(e)](0);case"second":n[tU(e)](0),n[eU(e)](0)}return n.getTime()}function lX(r,t,e,n){var a=1e4,i=YM,A=0;function o(b,I,F,E,D,Q,M){for(var R=new Date(I),P=I,O=R[E]();P1&&Q===0&&F.unshift({value:F[0].value-P})}}for(var Q=0;Q=n[0]&&y<=n[1]&&f++)}var m=(n[1]-n[0])/t;if(f>m*1.5&&c>m/1.5||(l.push(p),f>m||r===i[h]))break}u=[]}}}for(var w=Jt(Y(l,function(b){return Jt(b,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(b){return b.length>0}),_=[],B=w.length-1,h=0;h0;)i*=10;var o=[me(cX(n[0]/i)*i),me(fX(n[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){Mu.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=Cn(e)/Cn(this.base),sp(e,this._extent)},t.prototype.normalize=function(e){return e=Cn(e)/Cn(this.base),lp(e,this._extent)},t.prototype.scale=function(e){return e=up(e,this._extent),Pc(this.base,e)},t.type="log",t}(wa),Q2=P_.prototype;Q2.getMinorTicks=Mu.getMinorTicks;Q2.getLabel=Mu.getLabel;function Rc(r,t){return uX(r,aa(t))}wa.registerClass(P_);var hX=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(o=0),o<0&&s<0&&!u&&(s=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(o=c,l=!0),h!=null&&(s=h,u=!0),{min:o,max:s,minFixed:l,maxFixed:u,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[dX[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=vX[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),vX={min:"_determinedMin",max:"_determinedMax"},dX={min:"_dataMin",max:"_dataMax"};function L2(r,t,e){var n=r.rawExtentInfo;return n||(n=new hX(r,t,e),r.rawExtentInfo=n,n)}function Hc(r,t){return t==null?null:Zu(t)?NaN:r.parse(t)}function M2(r,t){var e=r.type,n=L2(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,A=t.ecModel;if(A&&e==="time"){var o=x2("bar",A),s=!1;if(T(o,function(f){s=s||f.getBaseAxis()===t.axis}),s){var l=b2(o),u=pX(a,i,t,l);a=u.min,i=u.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function pX(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],A=tX(n,e.axis);if(A===void 0)return{min:r,max:t};var o=1/0;T(A,function(h){o=Math.min(h.offset,o)});var s=-1/0;T(A,function(h){s=Math.max(h.offset+h.width,s)}),o=Math.abs(o),s=Math.abs(s);var l=o+s,u=t-r,f=1-(o+s)/i,c=u/f-u;return t+=c*(s/l),r-=c*(o/l),{min:r,max:t}}function Os(r,t){var e=t,n=M2(r,e),a=n.extent,i=e.get("splitNumber");r instanceof P_&&(r.base=e.get("logBase"));var A=r.type,o=e.get("interval"),s=A==="interval"||A==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),o!=null&&r.setInterval&&r.setInterval(o)}function cp(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new fp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new U_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(wa.getClass(t)||Za)}}function gX(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function sl(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):nt(t)?function(n){return function(a){var i=r.scale.getLabel(a),A=n.replace("{value}",i??"");return A}}(t):vt(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(R_(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function R_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function yX(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof fp?a=e.count():(n=e.getTicks(),a=n.length);var A=r.getLabelModel(),o=sl(r),s,l=1;a>40&&(l=Math.ceil(a/40));for(var u=0;ur[1]&&(r[1]=a[1])})}var Nf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),BX=1e-8;function Tb(r,t){return Math.abs(r-t)a&&(n=A,a=s)}if(n)return CX(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var a=[1/0,1/0],i=[-1/0,-1/0],A=this.geometries;return T(A,function(o){o.type==="polygon"?Ib(o.exterior,a,i,e):T(o.points,function(s){Ib(s,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Et(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var i=0,A=a.length;i>1^-(o&1),s=s>>1^-(s&1),o+=a,s+=i,a=o,i=s,n.push([o/e,s/e])}return n}function bX(r,t){return r=xX(r),Y(Jt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var A=a.coordinates;i.push(new Fb(A[0],A.slice(1)));break;case"MultiPolygon":T(a.coordinates,function(s){s[0]&&i.push(new Fb(s[0],s.slice(1)))});break;case"LineString":i.push(new Eb([a.coordinates]));break;case"MultiLineString":i.push(new Eb(a.coordinates))}var o=new R2(n[t||"name"],i,n.cp);return o.properties=n,o})}var ff=Vt();function O2(r,t){var e=Y(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 TX(r){var t=r.getLabelModel().get("customValues");if(t){var e=sl(r);return{labels:O2(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?FX(r):DX(r)}function IX(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:O2(r,e)}:r.type==="category"?EX(r,t):{ticks:Y(r.scale.getTicks(),function(n){return n.value})}}function FX(r){var t=r.getLabelModel(),e=k2(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function k2(r,t){var e=N2(r,"labels"),n=H_(t),a=V2(e,n);if(a)return a;var i,A;return vt(n)?i=z2(r,n):(A=n==="auto"?QX(r):n,i=K2(r,A)),G2(e,n,{labels:i,labelCategoryInterval:A})}function EX(r,t){var e=N2(r,"ticks"),n=H_(t),a=V2(e,n);if(a)return a;var i,A;if((!t.get("show")||r.scale.isBlank())&&(i=[]),vt(n))i=z2(r,n,!0);else if(n==="auto"){var o=k2(r,r.getLabelModel());A=o.labelCategoryInterval,i=Y(o.labels,function(s){return s.tickValue})}else A=n,i=K2(r,A,!0);return G2(e,n,{ticks:i,tickCategoryInterval:A})}function DX(r){var t=r.scale.getTicks(),e=sl(r);return{labels:Y(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function N2(r,t){return ff(r)[t]||(ff(r)[t]=[])}function V2(r,t){for(var e=0;e40&&(o=Math.max(1,Math.floor(A/40)));for(var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l*Math.cos(n)),f=Math.abs(l*Math.sin(n)),c=0,h=0;s<=i[1];s+=o){var v=0,d=0,p=Ef(e({value:s}),t.font,"center","top");v=p.width*1.3,d=p.height*1.3,c=Math.max(c,v,7),h=Math.max(h,d,7)}var g=c/u,y=h/f;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var m=Math.max(0,Math.floor(Math.min(g,y))),w=ff(r.model),_=r.getExtent(),B=w.lastAutoInterval,C=w.lastTickCount;return B!=null&&C!=null&&Math.abs(B-m)<=1&&Math.abs(C-A)<=1&&B>m&&w.axisExtent0===_[0]&&w.axisExtent1===_[1]?m=B:(w.lastTickCount=A,w.lastAutoInterval=m,w.axisExtent0=_[0],w.axisExtent1=_[1]),m}function MX(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 K2(r,t,e){var n=sl(r),a=r.scale,i=a.getExtent(),A=r.getLabelModel(),o=[],s=Math.max((t||0)+1,1),l=i[0],u=a.count();l!==0&&s>1&&u/s>2&&(l=Math.round(Math.ceil(l/s)*s));var f=U2(r),c=A.get("showMinLabel")||f,h=A.get("showMaxLabel")||f;c&&l!==i[0]&&d(i[0]);for(var v=l;v<=i[1];v+=s)d(v);h&&v-s!==i[1]&&d(i[1]);function d(p){var g={value:p};o.push(e?p:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:p})}return o}function z2(r,t,e){var n=r.scale,a=sl(r),i=[];return T(n.getTicks(),function(A){var o=n.getLabel(A),s=A.value;t(A.value,o)&&i.push(e?s:{formattedLabel:a(A),rawLabel:o,tickValue:s})}),i}var Db=[0,1],On=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return YL(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qb(n,a.count())),$t(t,Db,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qb(n,a.count()));var i=$t(t,n,Db,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=IX(this,e),a=n.ticks,i=Y(a,function(o){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(o):o),tickValue:o}},this),A=e.get("alignWithLabel");return UX(this,i,A,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=Y(n,function(i){return Y(i,function(A){return{coord:this.dataToCoord(A),tickValue:A}},this)},this);return a},r.prototype.getViewLabels=function(){return TX(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return LX(this)},r}();function Qb(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function UX(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),A,o;if(a===1)t[0].coord=i[0],A=t[1]={coord:i[1]};else{var s=t[a-1].tickValue-t[0].tickValue,l=(t[a-1].coord-t[0].coord)/s;T(t,function(h){h.coord-=l/2});var u=r.scale.getExtent();o=1+u[1]-t[a-1].tickValue,A={coord:t[a-1].coord+l*o},t.push(A)}var f=i[0]>i[1];c(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&c(i[0],t[0].coord)&&t.unshift({coord:i[0]}),c(i[1],A.coord)&&(n?A.coord=i[1]:t.pop()),n&&c(A.coord,i[1])&&t.push({coord:i[1]});function c(h,v){return h=me(h),v=me(v),f?h>v:ha&&(a+=Ll);var h=Math.atan2(o,A);if(h<0&&(h+=Ll),h>=n&&h<=a||h+Ll>=n&&h+Ll<=a)return s[0]=u,s[1]=f,l-e;var v=e*Math.cos(n)+r,d=e*Math.sin(n)+t,p=e*Math.cos(a)+r,g=e*Math.sin(a)+t,y=(v-A)*(v-A)+(d-o)*(d-o),m=(p-A)*(p-A)+(g-o)*(g-o);return y0){t=t/180*Math.PI,Dn.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),Tt.sub(oa,Dn,Ae),Tt.sub(ra,we,Ae);var e=oa.len(),n=ra.len();if(!(e<.001||n<.001)){oa.scale(1/e),ra.scale(1/n);var a=oa.dot(ra),i=Math.cos(t);if(i1&&Tt.copy(pr,we),pr.toArray(r[1])}}}}function NX(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Dn.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),Tt.sub(oa,Ae,Dn),Tt.sub(ra,we,Ae);var n=oa.len(),a=ra.len();if(!(n<.001||a<.001)){oa.scale(1/n),ra.scale(1/a);var i=oa.dot(t),A=Math.cos(e);if(i=s)Tt.copy(pr,we);else{pr.scaleAndAdd(ra,o/Math.tan(Math.PI/2-u));var f=we.x!==Ae.x?(pr.x-Ae.x)/(we.x-Ae.x):(pr.y-Ae.y)/(we.y-Ae.y);if(isNaN(f))return;f<0?Tt.copy(pr,Ae):f>1&&Tt.copy(pr,we)}pr.toArray(r[1])}}}}function ty(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var A=n.get("smooth");A&&A===!0&&(A=.3),i.shape=i.shape||{},A>0&&(i.shape.smooth=A);var o=n.getModel("lineStyle").getLineStyle();a?r.useStyle(o):i.style=o}function VX(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=xi(n[0],n[1]),i=xi(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var A=Math.min(a,i)*e,o=Hh([],n[1],n[0],A/a),s=Hh([],n[1],n[2],A/i),l=Hh([],o,s,.5);r.bezierCurveTo(o[0],o[1],o[0],o[1],l[0],l[1]),r.bezierCurveTo(s[0],s[1],s[0],s[1],n[2][0],n[2][1])}else for(var u=1;u0&&i&&_(-u/A,0,A);var d=r[0],p=r[A-1],g,y;m(),g<0&&B(-g,.8),y<0&&B(y,.8),m(),w(g,y,1),w(y,g,-1),m(),g<0&&C(-g),y<0&&C(y);function m(){g=d.rect[t]-n,y=a-p.rect[t]-p.rect[e]}function w(S,x,b){if(S<0){var I=Math.min(x,-S);if(I>0){_(I*b,0,A);var F=I+S;F<0&&B(-F*b,1)}else B(-S*b,1)}}function _(S,x,b){S!==0&&(l=!0);for(var I=x;I0)for(var F=0;F0;F--){var M=b[F-1]*Q;_(-M,F,A)}}}function C(S){var x=S<0?-1:1;S=Math.abs(S);for(var b=Math.ceil(S/(A-1)),I=0;I0?_(b,0,I+1):_(-b,A-I-1,A),S-=b,S<=0)return}return l}function GX(r,t,e,n){return Z2(r,"x","width",t,e,n)}function $2(r,t,e,n){return Z2(r,"y","height",t,e,n)}function J2(r){var t=[];r.sort(function(d,p){return p.priority-d.priority});var e=new Et(0,0,0,0);function n(d){if(!d.ignore){var p=d.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}d.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),Qt(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),zt(n,l,e,s)}else if(n.attr(l),!tl(n).valueAnimation){var f=St(n.style.opacity,1);n.style.opacity=0,ue(n,{style:{opacity:f}},e,s)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};Oc(h,l,kc),Oc(h,n.states.select,kc)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};Oc(v,l,kc),Oc(v,n.states.emphasis,kc)}GM(n,s,u,e,e)}if(a&&!a.ignore&&!a.invisible){var i=WX(a),A=i.oldLayout,d={points:a.shape.points};A?(a.attr({shape:A}),zt(a,{shape:d},e)):(a.setShape(d),a.style.strokePercent=0,ue(a,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),ry=Vt();function YX(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=ry(e).labelManager;a||(a=ry(e).labelManager=new XX),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=ry(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var ny=Math.sin,ay=Math.cos,q2=Math.PI,TA=Math.PI*2,ZX=180/q2,j2=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,a,i,A){this._add("C",t,e,n,a,i,A)},r.prototype.quadraticCurveTo=function(t,e,n,a){this._add("Q",t,e,n,a)},r.prototype.arc=function(t,e,n,a,i,A){this.ellipse(t,e,n,n,0,a,i,A)},r.prototype.ellipse=function(t,e,n,a,i,A,o,s){var l=o-A,u=!s,f=Math.abs(l),c=Ei(f-TA)||(u?l>=TA:-l>=TA),h=l>0?l%TA:l%TA+TA,v=!1;c?v=!0:Ei(f)?v=!1:v=h>=q2==!!u;var d=t+n*ay(A),p=e+a*ny(A);this._start&&this._add("M",d,p);var g=Math.round(i*ZX);if(c){var y=1/this._p,m=(u?1:-1)*(TA-y);this._add("A",n,a,g,1,+u,t+n*ay(A+m),e+a*ny(A+m)),y>.01&&this._add("A",n,a,g,0,+u,d,p)}else{var w=t+n*ay(o),_=e+a*ny(o);this._add("A",n,a,g,+v,+u,w,_)}},r.prototype.rect=function(t,e,n,a){this._add("M",t,e),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,a,i,A,o,s,l){for(var u=[],f=this._p,c=1;c"}function a6(r){return""}function V_(r,t){t=t||{};var e=t.newline?` +`:"";function n(a){var i=a.children,A=a.tag,o=a.attrs,s=a.text;return n6(A,o)+(A!=="style"?Er(s):s||"")+(i?""+e+Y(i,function(l){return n(l)}).join(e)+e:"")+a6(A)}return n(r)}function i6(r,t,e){e=e||{};var n=e.newline?` +`:"",a=" {"+n,i=n+"}",A=Y(Ht(r),function(s){return s+a+Y(Ht(r[s]),function(l){return l+":"+r[s][l]+";"}).join(n)+i}).join(n),o=Y(Ht(t),function(s){return"@keyframes "+s+a+Y(Ht(t[s]),function(l){return l+a+Y(Ht(t[s][l]),function(u){var f=t[s][l][u];return u==="d"&&(f='path("'+f+'")'),u+":"+f+";"}).join(n)+i}).join(n)+i}).join(n);return!A&&!o?"":[""].join(n)}function q0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Pb(r,t,e,n){return Pe("svg","root",{width:r,height:t,xmlns:tP,"xmlns:xlink":eP,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var A6=0;function nP(){return A6++}var Rb={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},QA="transform-origin";function o6(r,t,e){var n=V({},r.shape);V(n,t),r.buildPath(e,n);var a=new j2;return a.reset(OL(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function s6(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[QA]=e+"px "+n+"px")}var l6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function aP(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function u6(r,t,e){var n=r.shape.paths,a={},i,A;if(T(n,function(s){var l=q0(e.zrId);l.animation=!0,hp(s,{},l,!0);var u=l.cssAnims,f=l.cssNodes,c=Ht(u),h=c.length;if(h){A=c[h-1];var v=u[A];for(var d in v){var p=v[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var g in f){var y=f[g].animation;y.indexOf(A)>=0&&(i=y)}}}),!!i){t.d=!1;var o=aP(a,e);return i.replace(A,o)}}function Hb(r){return nt(r)?Rb[r]?"cubic-bezier("+Rb[r]+")":WB(r)?r:"":""}function hp(r,t,e,n){var a=r.animators,i=a.length,A=[];if(r instanceof o_){var o=u6(r,t,e);if(o)A.push(o);else if(!i)return}else if(!i)return;for(var s={},l=0;l0}).length){var N=aP(C,e);return N+" "+y[0]+" both"}}for(var p in s){var o=d(s[p]);o&&A.push(o)}if(A.length){var g=e.zrId+"-cls-"+nP();e.cssNodes["."+g]={animation:A.join(",")},t.class=g}}function f6(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};Ob(n,t,e)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var A=r.style&&r.style.fill,o=r.states.select&&r.states.select.style&&r.states.select.style.fill,s=r.currentStates.indexOf("select")>=0&&o||A;s&&(i=u0(s))}var l=a.lineWidth;if(l){var u=!a.strokeNoScale&&r.transform?r.transform[0]:1;l=l/u}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),l&&(n["stroke-width"]=l),Ob(n,t,e)}}function Ob(r,t,e,n){var a=JSON.stringify(r),i=e.cssStyleCache[a];i||(i=e.zrId+"-cls-"+nP(),e.cssStyleCache[a]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var cf=Math.round;function iP(r){return r&&nt(r.src)}function AP(r){return r&&vt(r.toDataURL)}function G_(r,t,e,n){t6(function(a,i){var A=a==="fill"||a==="stroke";A&&HL(i)?sP(t,r,a,n):A&&XB(i)?lP(e,r,a,n):A&&i==="none"?r[a]="transparent":r[a]=i},t,e,!1),y6(e,r,n)}function K_(r,t){var e=uK(t);e&&(e.each(function(n,a){n!=null&&(r[(Ub+a).toLowerCase()]=n+"")}),t.isSilent()&&(r[Ub+"silent"]="true"))}function kb(r){return Ei(r[0]-1)&&Ei(r[1])&&Ei(r[2])&&Ei(r[3]-1)}function c6(r){return Ei(r[4])&&Ei(r[5])}function z_(r,t,e){if(t&&!(c6(t)&&kb(t))){var n=1e4;r.transform=kb(t)?"translate("+cf(t[4]*n)/n+" "+cf(t[5]*n)/n+")":LG(t)}}function Nb(r,t,e){for(var n=r.points,a=[],i=0;i"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";Br(c,p),Br(h,p)}else if(c==null||h==null){var g=function(b,I){if(b){var F=b.elm,E=c||I.width,D=h||I.height;b.tag==="pattern"&&(l?(D=1,E/=i.width):u&&(E=1,D/=i.height)),b.attrs.width=E,b.attrs.height=D,F&&(F.setAttribute("width",E),F.setAttribute("height",D))}},y=jB(v,null,r,function(b){s||g(B,b),g(f,b)});y&&y.width&&y.height&&(c=c||y.width,h=h||y.height)}f=Pe("image","img",{href:v,width:c,height:h}),A.width=c,A.height=h}else a.svgElement&&(f=mt(a.svgElement),A.width=a.svgWidth,A.height=a.svgHeight);if(f){var m,w;s?m=w=1:l?(w=1,m=A.width/i.width):u?(m=1,w=A.height/i.height):A.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(A.width=m),w!=null&&!isNaN(w)&&(A.height=w);var _=kL(a);_&&(A.patternTransform=_);var B=Pe("pattern","",A,[f]),C=V_(B),S=n.patternCache,x=S[C];x||(x=n.zrId+"-p"+n.patternIdx++,S[C]=x,A.id=x,B=n.defs[x]=Pe("pattern",x,A,[f])),t[e]=Hd(x)}}function m6(r,t,e){var n=e.clipPathCache,a=e.defs,i=n[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var A={id:i};n[r.id]=i,a[i]=Pe("clipPath",i,A,[oP(r,e)])}t["clip-path"]=Hd(i)}function Kb(r){return document.createTextNode(r)}function OA(r,t,e){r.insertBefore(t,e)}function zb(r,t){r.removeChild(t)}function Wb(r,t){r.appendChild(t)}function uP(r){return r.parentNode}function fP(r){return r.nextSibling}function iy(r,t){r.textContent=t}var Xb=58,w6=120,B6=Pe("","");function j0(r){return r===void 0}function jn(r){return r!==void 0}function _6(r,t,e){for(var n={},a=t;a<=e;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function ru(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function hf(r){var t,e=r.children,n=r.tag;if(jn(n)){var a=r.elm=rP(n);if(W_(B6,r),K(e))for(t=0;ti?(v=e[s+1]==null?null:e[s+1].elm,cP(r,v,e,a,s)):zv(r,t,n,i))}function ss(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(W_(r,t),j0(t.text)?jn(n)&&jn(a)?n!==a&&C6(e,n,a):jn(a)?(jn(r.text)&&iy(e,""),cP(e,null,a,0,a.length-1)):jn(n)?zv(e,n,0,n.length-1):jn(r.text)&&iy(e,""):r.text!==t.text&&(jn(n)&&zv(e,n,0,n.length-1),iy(e,t.text)))}function S6(r,t){if(ru(r,t))ss(r,t);else{var e=r.elm,n=uP(e);hf(t),n!==null&&(OA(n,t.elm,fP(e)),zv(n,[r],0,0))}return t}var x6=0,b6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=Yb(),this.configLayer=Yb(),this.storage=e,this._opts=n=V({},n),this.root=t,this._id="zr"+x6++,this._oldVNode=Pb(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=rP("svg");W_(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",S6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Gb(t,q0(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=q0(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var A=[],o=this._bgVNode=T6(n,a,this._backgroundColor,i);o&&A.push(o);var s=t.compress?null:this._mainVNode=Pe("g","main",{},[]);this._paintList(e,i,s?s.children:A),s&&A.push(s);var l=Y(Ht(i.defs),function(c){return i.defs[c]});if(l.length&&A.push(Pe("defs","defs",{},l)),t.animation){var u=i6(i.cssNodes,i.cssAnims,{newline:!0});if(u){var f=Pe("style","stl",{},[],u);A.push(f)}}return Pb(n,a,A,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},V_(this.renderToVNode({animation:St(t.cssAnimation,!0),emphasis:St(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:St(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var a=t.length,i=[],A=0,o,s,l=0,u=0;u=0&&!(c&&s&&c[d]===s[d]);d--);for(var p=v-1;p>d;p--)A--,o=i[A-1];for(var g=d+1;g=o)}}for(var f=this.__startIndex;f15)break}}D.prevElClipPaths&&g.restore()};if(y)if(y.length===0)S=p.__endIndex;else for(var b=h.dpr,I=0;I0&&t>a[0]){for(s=0;st);s++);o=n[a[s]]}if(a.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?A.insertBefore(e.dom,l.nextSibling):A.appendChild(e.dom)}else A.firstChild?A.insertBefore(e.dom,A.firstChild):A.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,a=0;a0?Nc:0),this._needsManuallyCompositing),u.__builtin__||OB("ZLevel "+l+" has been used by unkown layer "+u.id),u!==i&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),i=u),a.__dirty&Gr&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=s))}e(s),this.eachBuiltinLayer(function(f,c){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__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,T(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Ft(n[t],e,!0):n[t]=e;for(var a=0;a-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.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}(se);function ks(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Rs(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],A=0;A=0&&n.push(t[i])}return n.join(" ")}var Vf=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;return A.updateData(e,n,a,i),A}return t.prototype._createSymbol=function(e,n,a,i,A){this.removeAll();var o=Te(e,-1,-1,2,2,null,A);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=U6,this._symbolType=e,this.add(o)},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(){Wa(this.childAt(0))},t.prototype.downplay=function(){Xa(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var A=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=A!==this._symbolType,u=i&&i.disableAnimation;if(l){var f=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(A,e,n,s,f)}else{var c=this.childAt(0);c.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(h):zt(c,h,o,n),Rn(c)}if(this._updateCommon(e,n,s,a,i),l){var c=this.childAt(0);if(!u){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ue(c,h,o,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,A){var o=this.childAt(0),s=e.hostModel,l,u,f,c,h,v,d,p,g;if(i&&(l=i.emphasisItemStyle,u=i.blurItemStyle,f=i.selectItemStyle,c=i.focus,h=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,v=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),m=y.getModel("emphasis");l=m.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),u=y.getModel(["blur","itemStyle"]).getItemStyle(),c=m.get("focus"),h=m.get("blurScope"),v=m.get("disabled"),d=He(y),p=m.getShallow("scale"),g=y.getShallow("cursor")}var w=e.getItemVisual(n,"symbolRotate");o.attr("rotation",(w||0)*Math.PI/180||0);var _=xo(e.getItemVisual(n,"symbolOffset"),a);_&&(o.x=_[0],o.y=_[1]),g&&o.attr("cursor",g);var B=e.getItemVisual(n,"style"),C=B.fill;if(o instanceof Ge){var S=o.style;o.useStyle(V({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},B))}else o.__isEmptyBrush?o.useStyle(V({},B)):o.useStyle(B),o.style.decal=null,o.setColor(C,A&&A.symbolInnerColor),o.style.strokeNoScale=!0;var x=e.getItemVisual(n,"liftZ"),b=this._z2;x!=null?b==null&&(this._z2=o.z2,o.z2+=x):b!=null&&(o.z2=b,this._z2=null);var I=A&&A.useNameLabel;Je(o,d,{labelFetcher:s,labelDataIndex:n,defaultText:F,inheritColor:C,defaultOpacity:B.opacity});function F(Q){return I?e.getName(Q):ks(e,Q)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var E=o.ensureState("emphasis");E.style=l,o.ensureState("select").style=f,o.ensureState("blur").style=u;var D=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;E.scaleX=this._sizeX*D,E.scaleY=this._sizeY*D,this.setSymbolScale(1),ye(this,c,h,v)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),A=Ct(this).dataIndex,o=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var s=i.getTextContent();s&&Xi(s,{style:{opacity:0}},n,{dataIndex:A,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Xi(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:A,cb:e,removeOpt:o})},t.getSymbolSize=function(e,n){return ol(e.getItemVisual(n,"symbolSize"))},t}(_t);function U6(r,t){this.parent.drift(r,t)}function oy(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 Jb(r){return r!=null&&!yt(r)&&(r={isIgnore:r}),r||{}}function qb(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:He(t),cursorStyle:t.get("cursor")}}var Gf=function(){function r(t){this.group=new _t,this._SymbolCtor=t||Vf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Jb(e);var n=this.group,a=t.hostModel,i=this._data,A=this._SymbolCtor,o=e.disableAnimation,s=qb(t),l={disableAnimation:o},u=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var c=u(f);if(oy(t,c,f,e)){var h=new A(t,f,s,l);h.setPosition(c),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,c){var h=i.getItemGraphicEl(c),v=u(f);if(!oy(t,v,f,e)){n.remove(h);return}var d=t.getItemVisual(f,"symbol")||"circle",p=h&&h.getSymbolType&&h.getSymbolType();if(!h||p&&p!==d)n.remove(h),h=new A(t,f,s,l),h.setPosition(v);else{h.updateData(t,f,s,l);var g={x:v[0],y:v[1]};o?h.attr(g):zt(h,g,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var c=i.getItemGraphicEl(f);c&&c.fadeOut(function(){n.remove(c)},a)}).execute(),this._getSymbolPoint=u,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=qb(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Jb(n);function a(s){s.isGroup||(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=n[0]:n[1]<0&&(e=n[1]),e}function dP(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,A=[];return A[i]=e.get(r.baseDim,n),A[1-i]=a,t.dataToPoint(A)}function R6(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function H6(r,t,e,n,a,i,A,o){for(var s=R6(r,t),l=[],u=[],f=[],c=[],h=[],v=[],d=[],p=vP(a,t,A),g=r.getLayout("points")||[],y=t.getLayout("points")||[],m=0;m=a||d<0)break;if(Ao(g,y)){if(s){d+=i;continue}break}if(d===e)r[i>0?"moveTo":"lineTo"](g,y),f=g,c=y;else{var m=g-l,w=y-u;if(m*m+w*w<.5){d+=i;continue}if(A>0){for(var _=d+i,B=t[_*2],C=t[_*2+1];B===g&&C===y&&p=n||Ao(B,C))h=g,v=y;else{b=B-l,I=C-u;var D=g-l,Q=B-g,M=y-u,R=C-y,P=void 0,O=void 0;if(o==="x"){P=Math.abs(D),O=Math.abs(Q);var G=b>0?1:-1;h=g-G*P*A,v=y,F=g+G*O*A,E=y}else if(o==="y"){P=Math.abs(M),O=Math.abs(R);var X=I>0?1:-1;h=g,v=y-X*P*A,F=g,E=y+X*O*A}else P=Math.sqrt(D*D+M*M),O=Math.sqrt(Q*Q+R*R),x=O/(O+P),h=g-b*A*(1-x),v=y-I*A*(1-x),F=g+b*A*x,E=y+I*A*x,F=fi(F,ci(B,g)),E=fi(E,ci(C,y)),F=ci(F,fi(B,g)),E=ci(E,fi(C,y)),b=F-g,I=E-y,h=g-b*P/O,v=y-I*P/O,h=fi(h,ci(l,g)),v=fi(v,ci(u,y)),h=ci(h,fi(l,g)),v=ci(v,fi(u,y)),b=g-h,I=y-v,F=g+b*O/P,E=y+I*O/P}r.bezierCurveTo(f,c,h,v,g,y),f=F,c=E}else r.lineTo(g,y)}l=g,u=y,d+=i}return p}var pP=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),O6=function(r){H(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 pP},t.prototype.buildPath=function(e,n){var a=n.points,i=0,A=a.length/2;if(n.connectNulls){for(;A>0&&Ao(a[A*2-2],a[A*2-1]);A--);for(;i=0){var w=l?(v-s)*m+s:(h-o)*m+o;return l?[e,w]:[w,e]}o=h,s=v;break;case A.C:h=i[f++],v=i[f++],d=i[f++],p=i[f++],g=i[f++],y=i[f++];var _=l?wv(o,h,d,g,e,u):wv(s,v,p,y,e,u);if(_>0)for(var B=0;B<_;B++){var C=u[B];if(C<=1&&C>=0){var w=l?Le(s,v,p,y,C):Le(o,h,d,g,C);return l?[e,w]:[w,e]}}o=g,s=y;break}}},t}(Mt),k6=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(pP),gP=function(r){H(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 k6},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,A=0,o=a.length/2,s=n.smoothMonotone;if(n.connectNulls){for(;o>0&&Ao(a[o*2-2],a[o*2-1]);o--);for(;At){i?e.push(A(i,s,t)):a&&e.push(A(a,s,0),A(a,s,t));break}else a&&(e.push(A(a,s,0)),a=null),e.push(s),i=s}return e}function G6(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,A=n.length-1;A>=0;A--){var o=r.getDimensionInfo(n[A].dimension);if(a=o&&o.coordDim,a==="x"||a==="y"){i=n[A];break}}if(i){var s=t.getAxis(a),l=Y(i.stops,function(m){return{coord:s.toGlobalCoord(s.dataToCoord(m.value)),color:m.color}}),u=l.length,f=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),f.reverse());var c=V6(l,a==="x"?e.getWidth():e.getHeight()),h=c.length;if(!h&&u)return l[0].coord<0?f[1]?f[1]:l[u-1].color:f[0]?f[0]:l[0].color;var v=10,d=c[0].coord-v,p=c[h-1].coord+v,g=p-d;if(g<.001)return"transparent";T(c,function(m){m.offset=(m.coord-d)/g}),c.push({offset:h?c[h-1].offset:.5,color:f[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:f[0]||"transparent"});var y=new Uf(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=p,y}}}function K6(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&z6(i,t))){var A=t.mapDimension(i.dim),o={};return T(i.getViewLabels(),function(s){var l=i.scale.getRawOrdinalNumber(s.tickValue);o[l]=1}),function(s){return!o.hasOwnProperty(t.get(A,s))}}}}function z6(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),A=0;An)return!1;return!0}function W6(r,t){return isNaN(r)||isNaN(t)}function X6(r){for(var t=r.length/2;t>0&&W6(r[t*2-2],r[t*2-1]);t--);return t-1}function nT(r,t){return[r[t*2],r[t*2+1]]}function Y6(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,A,o=0,s=-1,l=0;l=t||i>=t&&A<=t){s=l;break}o=l,i=A}return{range:[o,s],t:(t-i)/(A-i)}}function wP(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<_r.length;t++)if(r.get([_r[t],"endLabel","show"]))return!0;return!1}function sy(r,t,e,n){if(To(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),A=n.getData(),o={lastFrameIndex:0},s=wP(n)?function(h,v){r._endLabelOnDuring(h,v,A,o,i,a,t)}:null,l=t.getBaseAxis().isHorizontal(),u=yP(t,e,n,function(){var h=r._endLabel;h&&e&&o.originalX!=null&&h.attr({x:o.originalX,y:o.originalY})},s);if(!n.get("clip",!0)){var f=u.shape,c=Math.max(f.width,f.height);l?(f.y-=c,f.height+=c*2):(f.x-=c,f.width+=c*2)}return s&&s(1,u),u}else return mP(t,e,n)}function Z6(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",A=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||A}}}var $6=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new _t,n=new Gf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,a){var i=this,A=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],c=A.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!u.isEmpty(),w=u.get("origin"),_=vP(A,s,w),B=m&&N6(A,s,_),C=e.get("showSymbol"),S=e.get("connectNulls"),x=C&&!c&&K6(e,s,A),b=this._data;b&&b.eachItemGraphicEl(function(Bt,N){Bt.__temp&&(o.remove(Bt),b.setItemGraphicEl(N,null))}),C||v.remove(),o.add(g);var I=c?!1:e.get("step"),F;A&&A.getArea&&e.get("clip",!0)&&(F=A.getArea(),F.width!=null?(F.x-=.1,F.y-=.1,F.width+=.2,F.height+=.2):F.r0&&(F.r0-=.5,F.r+=.5)),this._clipShapeForSymbol=F;var E=G6(s,A,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===A.type&&I===this._step))C&&v.updateData(s,{isIgnore:x,clipShape:F,disableAnimation:!0,getSymbolPoint:function(Bt){return[f[Bt*2],f[Bt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,A,F),I&&(f=hi(f,A,I,S),B&&(B=hi(B,A,I,S))),d=this._newPolyline(f),m?p=this._newPolygon(f,B):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,A,go(E)),g.setClipPath(sy(this,A,!0,e));else{m&&!p?p=this._newPolygon(f,B):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,A,go(E));var D=g.getClipPath();if(D){var Q=sy(this,A,!1,e);ue(D,{shape:Q.shape},e)}else g.setClipPath(sy(this,A,!0,e));C&&v.updateData(s,{isIgnore:x,clipShape:F,disableAnimation:!0,getSymbolPoint:function(Bt){return[f[Bt*2],f[Bt*2+1]]}}),(!jb(this._stackedOnPoints,B)||!jb(this._points,f))&&(y?this._doUpdateAnimation(s,B,A,a,I,w,S):(I&&(f=hi(f,A,I,S),B&&(B=hi(B,A,I,S))),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:B})))}var M=e.getModel("emphasis"),R=M.get("focus"),P=M.get("blurScope"),O=M.get("disabled");if(d.useStyle(gt(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),$e(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=d.getState("emphasis").style;G.lineWidth=+d.style.lineWidth+1}Ct(d).seriesIndex=e.seriesIndex,ye(d,R,P,O);var X=rT(e.get("smooth")),J=e.get("smoothMonotone");if(d.setShape({smooth:X,smoothMonotone:J,connectNulls:S}),p){var At=s.getCalculationInfo("stackedOnSeries"),lt=0;p.useStyle(gt(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),At&&(lt=rT(At.get("smooth"))),p.setShape({smooth:X,stackedOnSmooth:lt,smoothMonotone:J,connectNulls:S}),$e(p,e,"areaStyle"),Ct(p).seriesIndex=e.seriesIndex,ye(p,R,P,O)}var wt=function(Bt){i._changePolyState(Bt)};s.eachItemGraphicEl(function(Bt){Bt&&(Bt.onHoverStateChange=wt)}),this._polyline.onHoverStateChange=wt,this._data=s,this._coordSys=A,this._stackedOnPoints=B,this._points=f,this._step=I,this._valueOrigin=w,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){Ct(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var A=e.getData(),o=ho(A,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&o!=null&&o>=0){var s=A.getLayout("points"),l=A.getItemGraphicEl(o);if(!l){var u=s[o*2],f=s[o*2+1];if(isNaN(u)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,f))return;var c=e.get("zlevel")||0,h=e.get("z")||0;l=new Vf(A,o),l.x=u,l.y=f,l.setZ(c,h);var v=l.getSymbolPath().getTextContent();v&&(v.zlevel=c,v.z=h,v.z2=this._polyline.z2+1),l.__temp=!0,A.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else jt.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var A=e.getData(),o=ho(A,i);if(this._changePolyState("normal"),o!=null&&o>=0){var s=A.getItemGraphicEl(o);s&&(s.__temp?(A.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else jt.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Tv(this._polyline,e),n&&Tv(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new O6({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new gP({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,A,o=n.getBaseAxis(),s=o.inverse;n.type==="cartesian2d"?(i=o.isHorizontal(),A=!1):n.type==="polar"&&(i=o.dim==="angle",A=!0);var l=e.hostModel,u=l.get("animationDuration");vt(u)&&(u=u(null));var f=l.get("animationDelay")||0,c=vt(f)?f(null):f;e.eachItemGraphicEl(function(h,v){var d=h;if(d){var p=[h.x,h.y],g=void 0,y=void 0,m=void 0;if(a)if(A){var w=a,_=n.pointToCoord(p);i?(g=w.startAngle,y=w.endAngle,m=-_[1]/180*Math.PI):(g=w.r0,y=w.r,m=_[0])}else{var B=a;i?(g=B.x,y=B.x+B.width,m=h.x):(g=B.y+B.height,y=B.y,m=h.y)}var C=y===g?0:(m-g)/(y-g);s&&(C=1-C);var S=vt(f)?f(v):u*C+c,x=d.getSymbolPath(),b=x.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:S}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:S}),x.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(wP(e)){var A=e.getData(),o=this._polyline,s=A.getLayout("points");if(!s){o.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Gt({z2:200}),l.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var u=X6(s);u>=0&&(Je(o,He(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:u,defaultText:function(f,c,h){return h!=null?hP(A,h):ks(A,f)},enableTextSetter:!0},Z6(i,n)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,A,o,s){var l=this._endLabel,u=this._polyline;if(l){e<1&&i.originalX==null&&(i.originalX=l.x,i.originalY=l.y);var f=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),v=o.get("precision"),d=o.get("distance")||0,p=s.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,m=n.shape,w=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?d:0)*(y?-1:1),B=(g?0:-d)*(y?-1:1),C=g?"x":"y",S=Y6(f,w,C),x=S.range,b=x[1]-x[0],I=void 0;if(b>=1){if(b>1&&!h){var F=nT(f,x[0]);l.attr({x:F[0]+_,y:F[1]+B}),A&&(I=c.getRawValue(x[0]))}else{var F=u.getPointOn(w,C);F&&l.attr({x:F[0]+_,y:F[1]+B});var E=c.getRawValue(x[0]),D=c.getRawValue(x[1]);A&&(I=iM(a,v,E,D,S.t))}i.lastFrameIndex=x[0]}else{var Q=e===1||i.lastFrameIndex>0?x[0]:0,F=nT(f,Q);A&&(I=c.getRawValue(Q)),l.attr({x:F[0]+_,y:F[1]+B})}if(A){var M=tl(l);typeof M.setLabelText=="function"&&M.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,A,o,s){var l=this._polyline,u=this._polygon,f=e.hostModel,c=H6(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=c.current,v=c.stackedOnCurrent,d=c.next,p=c.stackedOnNext;if(A&&(h=hi(c.current,a,A,s),v=hi(c.stackedOnCurrent,a,A,s),d=hi(c.next,a,A,s),p=hi(c.stackedOnNext,a,A,s)),eT(h,d)>3e3||u&&eT(v,p)>3e3){l.stopAnimation(),l.setShape({points:d}),u&&(u.stopAnimation(),u.setShape({points:d,stackedOnPoints:p}));return}l.shape.__points=c.current,l.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),l.stopAnimation(),zt(l,g,f),u&&(u.setShape({points:h,stackedOnPoints:v}),u.stopAnimation(),zt(u,{shape:{stackedOnPoints:p}},f),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var y=[],m=c.status,w=0;wt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},q6=function(r){return Math.round(r.length/2)};function BP(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),A=t.coordinateSystem,o=a.count();if(o>10&&A.type==="cartesian2d"&&i){var s=A.getBaseAxis(),l=A.getOtherAxis(s),u=s.getExtent(),f=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(f||1),h=Math.round(o/c);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(l.dim),1/h));var v=void 0;nt(i)?v=J6[i]:vt(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(l.dim),1/h,v,q6))}}}}}function j6(r){r.registerChartView($6),r.registerSeriesModel(M6),r.registerLayout(zf("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,BP("line"))}var vf=function(r){H(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 ri(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var A=i.clampData(e),o=i.dataToPoint(A);if(a)T(i.getAxes(),function(c,h){if(c.type==="category"&&n!=null){var v=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),p=A[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!d&&(p+=1),v.length<2)return;if(v.length===2){o[h]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,w=1,_=0;_p){m=(B+y)/2;break}_===1&&(w=C-v[0].tickValue)}m==null&&(y?y&&(m=v[v.length-1].coord):m=v[0].coord),o[h]=c.toGlobalCoord(m)}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;o[f]+=l+u/2}return o}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}(se);se.registerClass(vf);var tY=function(r){H(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 ri(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=nA(vf.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}(vf),eY=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}(),Wv=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new eY},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.max(n.r0||0,0),o=Math.max(n.r,0),s=(o-A)*.5,l=A+s,u=n.startAngle,f=n.endAngle,c=n.clockwise,h=Math.PI*2,v=c?f-uMath.PI/2&&uo)return!0;o=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),A=Math.max(0,i[0]),o=Math.min(i[1],a.getOrdinalMeta().categories.length-1);A<=o;++A)if(e.ordinalNumbers[A]!==a.getRawOrdinalNumber(A))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var A=this._dataSort(e,a,n);this._isOrderDifferentInView(A,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:A}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,A=this._dataSort(e,i,function(o){return e.get(e.mapDimension(n.otherAxis.dim),o)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:A})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){nf(i,e,Ct(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(jt),aT={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,A=ly(t.x,r.x),o=uy(t.x+t.width,a),s=ly(t.y,r.y),l=uy(t.y+t.height,i),u=oa?o:A,t.y=f&&s>i?l:s,t.width=u?0:o-A,t.height=f?0:l-s,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),u||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=uy(t.r,r.r),i=ly(t.r0,r.r0);t.r=a,t.r0=i;var A=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return A}},iT={cartesian2d:function(r,t,e,n,a,i,A,o,s){var l=new Nt({shape:V({},n),z2:1});if(l.__dataIndex=e,l.name="item",i){var u=l.shape,f=a?"height":"width";u[f]=0}return l},polar:function(r,t,e,n,a,i,A,o,s){var l=!a&&s?Wv:Cr,u=new l({shape:n,z2:1});u.name="item";var f=_P(a);if(u.calculateTextPosition=rY(f,{isRoundCap:l===Wv}),i){var c=u.shape,h=a?"r":"endAngle",v={};c[h]=a?n.r0:n.startAngle,v[h]=n[h],(o?zt:ue)(u,{shape:v},i)}return u}};function AY(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 AT(r,t,e,n,a,i,A,o){var s,l;i?(l={x:n.x,width:n.width},s={y:n.y,height:n.height}):(l={y:n.y,height:n.height},s={x:n.x,width:n.width}),o||(A?zt:ue)(e,{shape:s},t,a,null);var u=t?r.baseAxis.model:null;(A?zt:ue)(e,{shape:l},u,a)}function oT(r,t){for(var e=0;e0?1:-1,A=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+A*a/2,width:n.width-i*a,height:n.height-A*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function lY(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function _P(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 lT(r,t,e,n,a,i,A,o){var s=t.getItemVisual(e,"style");if(o){if(!i.get("roundCap")){var u=r.shape,f=$A(n.getModel("itemStyle"),u,!0);V(u,f),r.setShape(u)}}else{var l=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",l)}r.useStyle(s);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var h=o?A?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":A?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=He(n);Je(r,v,{labelFetcher:i,labelDataIndex:e,defaultText:ks(i.getData(),e),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(o&&d){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,nY(r,p==="outside"?h:p,_P(A),n.get(["label","rotate"]))}VM(d,v,i.getRawValue(e),function(y){return hP(t,y)});var g=n.getModel(["emphasis"]);ye(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),$e(r,n),lY(a)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function uY(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var fY=function(){function r(){}return r}(),uT=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new fY},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,A=1-this.baseDimIdx,o=[],s=[],l=this.barWidth,u=0;u=0?e:null},30,!1);function cY(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,A=r.largeDataIndices,o=[],s=[],l=r.barWidth,u=0,f=i.length/3;u=o[0]&&t<=o[0]+s[0]&&e>=o[1]&&e<=o[1]+s[1])return A[u]}return-1}function CP(r,t,e){if(To(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function hY(r,t,e){var n=r.type==="polar"?Cr:Nt;return new n({shape:CP(t,e,r),silent:!0,z2:0})}function vY(r){r.registerChartView(iY),r.registerSeriesModel(tY),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(I2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F2("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,BP("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var hT=Math.PI*2,zc=Math.PI/180;function SP(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xP(r,t){var e=SP(r,t),n=r.get("center"),a=r.get("radius");K(a)||(a=[0,a]);var i=et(e.width,t.getWidth()),A=et(e.height,t.getHeight()),o=Math.min(i,A),s=et(a[0],o/2),l=et(a[1],o/2),u,f,c=r.coordinateSystem;if(c){var h=c.dataToPoint(n);u=h[0]||0,f=h[1]||0}else K(n)||(n=[n,n]),u=et(n[0],i)+e.x,f=et(n[1],A)+e.y;return{cx:u,cy:f,r0:s,r:l}}function dY(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),A=SP(n,e),o=xP(n,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=-n.get("startAngle")*zc,h=n.get("endAngle"),v=n.get("padAngle")*zc;h=h==="auto"?c-hT:-h*zc;var d=n.get("minAngle")*zc,p=d+v,g=0;a.each(i,function(R){!isNaN(R)&&g++});var y=a.getSum(i),m=Math.PI/(y||g)*2,w=n.get("clockwise"),_=n.get("roseType"),B=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var S=w?1:-1,x=[c,h],b=S*v/2;t_(x,!w),c=x[0],h=x[1];var I=bP(n);I.startAngle=c,I.endAngle=h,I.clockwise=w;var F=Math.abs(h-c),E=F,D=0,Q=c;if(a.setLayout({viewRect:A,r:u}),a.each(i,function(R,P){var O;if(isNaN(R)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:s,cy:l,r0:f,r:_?NaN:u});return}_!=="area"?O=y===0&&B?m:R*m:O=F/g,OO?(X=Q+S*O/2,J=X):(X=Q+b,J=G-b),a.setItemLayout(P,{angle:O,startAngle:X,endAngle:J,clockwise:w,cx:s,cy:l,r0:f,r:_?$t(R,C,[f,u]):u}),Q=G}),Ee?g:p,_=Math.abs(m.label.y-e);if(_>=w.maxY){var B=m.label.x-t-m.len2*a,C=n+m.len,S=Math.abs(B)r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var d=n.getBoundingRect();i.width=d.width;var p=(n.style.margin||0)+2.1;i.height=d.height+p,i.y-=(i.height-f)/2}}}function fy(r){return r.position==="center"}function yY(r){var t=r.getData(),e=[],n,a,i=!1,A=(r.get("minShowLabelAngle")||0)*pY,o=t.getLayout("viewRect"),s=t.getLayout("r"),l=o.width,u=o.x,f=o.y,c=o.height;function h(B){B.ignore=!0}function v(B){if(!B.ignore)return!0;for(var C in B.states)if(B.states[C].ignore===!1)return!0;return!1}t.each(function(B){var C=t.getItemGraphicEl(B),S=C.shape,x=C.getTextContent(),b=C.getTextGuideLine(),I=t.getItemModel(B),F=I.getModel("label"),E=F.get("position")||I.get(["emphasis","label","position"]),D=F.get("distanceToLabelLine"),Q=F.get("alignTo"),M=et(F.get("edgeDistance"),l),R=F.get("bleedMargin"),P=I.getModel("labelLine"),O=P.get("length");O=et(O,l);var G=P.get("length2");if(G=et(G,l),Math.abs(S.endAngle-S.startAngle)0?"right":"left":J>0?"left":"right"}var k=Math.PI,Z=0,W=F.get("rotate");if(Kt(W))Z=W*(k/180);else if(E==="center")Z=0;else if(W==="radial"||W===!0){var tt=J<0?-X+k:-X;Z=tt}else if(W==="tangential"&&E!=="outside"&&E!=="outer"){var ot=Math.atan2(J,At);ot<0&&(ot=k*2+ot);var ut=At>0;ut&&(ot=k+ot),Z=ot-k}if(i=!!Z,x.x=lt,x.y=wt,x.rotation=Z,x.setStyle({verticalAlign:"middle"}),z){x.setStyle({align:N});var It=x.states.select;It&&(It.x+=x.x,It.y+=x.y)}else{var at=x.getBoundingRect().clone();at.applyTransform(x.getComputedTransform());var rt=(x.style.margin||0)+2.1;at.y-=rt/2,at.height+=rt,e.push({label:x,labelLine:b,position:E,len:O,len2:G,minTurnAngle:P.get("minTurnAngle"),maxSurfaceAngle:P.get("maxSurfaceAngle"),surfaceNormal:new Tt(J,At),linePoints:Bt,textAlign:N,labelDistance:D,labelAlignTo:Q,edgeDistance:M,bleedMargin:R,rect:at,unconstrainedWidth:at.width,labelStyleWidth:x.style.width})}C.setTextConfig({inside:z})}}),!i&&r.get("avoidLabelOverlap")&&gY(e,n,a,s,l,c,u,f);for(var d=0;d0){for(var u=A.getItemLayout(0),f=1;isNaN(u&&u.startAngle)&&f=i.r0}},t.type="pie",t}(jt);function ll(r,t,e){t=K(t)&&{coordDimensions:t}||V({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=kf(n,t).dimensions,i=new mr(a,r);return i.initData(n,e),i}var Xf=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}(),BY=Vt(),_Y=function(r){H(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 Xf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ll(this,{coordDimensions:["value"],encodeDefaulter:xt(g_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=BY(n),i=a.seats;if(!i){var A=[];n.each(n.mapDimension("value"),function(s){A.push(s)}),i=a.seats=vK(A,n.hostModel.get("percentPrecision"))}var o=r.prototype.getDataParams.call(this,e);return o.percent=i[e]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){co(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(se);function CY(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),A=n.get(i,a);return!(Kt(A)&&!isNaN(A)&&A<0)})}}}function SY(r){r.registerChartView(wY),r.registerSeriesModel(_Y),YU("pie",r.registerAction),r.registerLayout(xt(dY,"pie")),r.registerProcessor(Wf("pie")),r.registerProcessor(CY("pie"))}var xY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return ri(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(se),IP=4,bY=function(){function r(){}return r}(),TY=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new bY},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,A=this.symbolProxy,o=A.shape,s=e.getContext?e.getContext():e,l=s&&i[0]=0;l--){var u=l*2,f=i[u]-o/2,c=i[u+1]-s/2;if(e>=f&&n>=c&&e<=f+o&&n<=c+s)return l}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,A=i[0],o=i[1],s=1/0,l=1/0,u=-1/0,f=-1/0,c=0;c=0&&(l.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),FY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var A=zf("").reset(e,n,a);A.progress&&A.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,A=i.large;return(!a||A!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=A?new IY:new Gf,this._isLargeDraw=A,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(jt),EY=function(r){H(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}(Rt),ew=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",be).models[0]},t.type="cartesian2dAxis",t}(Rt);Ie(ew,Nf);var FP={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},DY=Ft({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},FP),X_=Ft({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}}},FP),QY=Ft({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},X_),LY=gt({logBase:10},X_);const EP={category:DY,value:X_,time:QY,log:LY};var MY={value:1,category:1,time:1,log:1};function Ns(r,t,e,n){T(MY,function(a,i){var A=Ft(Ft({},EP[i],!0),n,!0),o=function(s){H(l,s);function l(){var u=s!==null&&s.apply(this,arguments)||this;return u.type=t+"Axis."+i,u}return l.prototype.mergeDefaultAndTheme=function(u,f){var c=Af(this),h=c?nl(u):{},v=f.getTheme();Ft(u,v.get(i+"Axis")),Ft(u,this.getDefaultOption()),u.type=dT(u),c&&Yi(u,h,c)},l.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=Y0.createByAxisModel(this))},l.prototype.getCategories=function(u){var f=this.option;if(f.type==="category")return u?f.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+i,l.defaultOption=A,l}(e);r.registerComponentModel(o)}),r.registerSubTypeDefaulter(t+"Axis",dT)}function dT(r){return r.type||(r.data?"category":"value")}var UY=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 Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Jt(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}(),rw=["x","y"];function pT(r){return r.type==="interval"||r.type==="time"}var PY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=rw,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!pT(e)||!pT(n))){var a=e.getExtent(),i=n.getExtent(),A=this.dataToPoint([a[0],i[0]]),o=this.dataToPoint([a[1],i[1]]),s=a[1]-a[0],l=i[1]-i[0];if(!(!s||!l)){var u=(o[0]-A[0])/s,f=(o[1]-A[1])/l,c=A[0]-a[0]*u,h=A[1]-i[0]*f,v=this._transform=[u,0,0,f,c,h];this._invTransform=Zs([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),A=this.getArea(),o=new Et(a[0],a[1],i[0]-a[0],i[1]-a[1]);return A.intersect(o)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],A=e[1];if(this._transform&&i!=null&&isFinite(i)&&A!=null&&isFinite(A))return Ye(a,e,this._transform);var o=this.getAxis("x"),s=this.getAxis("y");return a[0]=o.toGlobalCoord(o.dataToCoord(i,n)),a[1]=s.toGlobalCoord(s.dataToCoord(A,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,A=a.getExtent(),o=i.getExtent(),s=a.parse(e[0]),l=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(A[0],A[1]),s),Math.max(A[0],A[1])),n[1]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return Ye(a,e,this._invTransform);var i=this.getAxis("x"),A=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=A.coordToData(A.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,A=Math.min(a[0],a[1])-e,o=Math.max(n[0],n[1])-i+e,s=Math.max(a[0],a[1])-A+e;return new Et(i,A,o,s)},t}(UY),RY=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.index=0,o.type=i||"value",o.position=A||"bottom",o}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}(On);function nw(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},A=a.getAxesOnZeroOf()[0],o=a.position,s=A?"onZero":o,l=a.dim,u=n.getRect(),f=[u.x,u.x+u.width,u.y,u.y+u.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=l==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(A){var d=A.toGlobalCoord(A.dataToCoord(0));v[c.onZero]=Math.max(Math.min(d,v[1]),v[0])}i.position=[l==="y"?v[c[s]]:f[0],l==="x"?v[c[s]]:f[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[o],i.labelOffset=A?v[c[o]]-v[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ve(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function gT(r){return r.get("coordinateSystem")==="cartesian2d"}function yT(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,be).models[0];t[n]=i}),t}var cy=Math.log;function DP(r,t,e){var n=Za.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),A=a.length-1,o=n.getInterval.call(e),s=M2(r,t),l=s.extent,u=s.fixMin,f=s.fixMax;if(r.type==="log"){var c=cy(r.base);l=[cy(l[0])/c,cy(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:A,fixMin:u,fixMax:f});var h=n.getExtent.call(r);u&&(l[0]=h[0]),f&&(l[1]=h[1]);var v=n.getInterval.call(r),d=l[0],p=l[1];if(u&&f)v=(p-d)/A;else if(u)for(p=l[0]+v*A;pl[0]&&isFinite(d)&&isFinite(l[0]);)v=Jg(v),d=l[1]-v*A;else{var g=r.getTicks().length-1;g>A&&(v=Jg(v));var y=v*A;p=Math.ceil(l[1]/v)*v,d=me(p-y),d<0&&l[0]>=0?(d=0,p=me(y)):p>0&&l[1]<=0&&(p=0,d=-me(y))}var m=(a[0].value-i[0].value)/o,w=(a[A].value-i[A].value)/o;n.setExtent.call(r,d+v*m,p+v*w),n.setInterval.call(r,v),(m||w)&&n.setNiceExtent.call(r,d+v,p-v)}var HY=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=rw,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(A){var o,s=Ht(A),l=s.length;if(l){for(var u=[],f=l-1;f>=0;f--){var c=+s[f],h=A[c],v=h.model,d=h.scale;Z0(d)&&v.get("alignTicks")&&v.get("interval")==null?u.push(h):(Os(d,v),Z0(d)&&(o=h))}u.length&&(o||(o=u.pop(),Os(o.scale,o.model)),T(u,function(p){DP(p.scale,p.model,o.scale)}))}}a(n.x),a(n.y);var i={};T(n.x,function(A){mT(n,"y",A,i)}),T(n.y,function(A){mT(n,"x",A,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),A=Qe(a,{width:e.getWidth(),height:e.getHeight()});this._rect=A;var o=this._axesList;s(),i&&(T(o,function(l){if(!l.model.get(["axisLabel","inside"])){var u=yX(l);if(u){var f=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);A[f]-=u[f]+c,l.position==="top"?A.y+=u.height+c:l.position==="left"&&(A.x+=u.width+c)}}}),s()),T(this._coordsList,function(l){l.calcAffineTransform()});function s(){T(o,function(l){var u=l.isHorizontal(),f=u?[0,A.width]:[0,A.height],c=l.inverse?1:0;l.setExtent(f[c],f[1-c]),OY(l,u?A.x:A.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]}yt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):ju(a-Di)?(A=n>0?"bottom":"top",i="center"):(A="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:A}},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}(),BT={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),A=n.transform,o=[i[0],0],s=[i[1],0],l=o[0]>s[0];A&&(Ye(o,o,A),Ye(s,s,A));var u=V({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Ue({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ps(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var c=t.get(["axisLine","symbol"]);if(c!=null){var h=t.get(["axisLine","symbolSize"]);nt(c)&&(c=[c,c]),(nt(h)||Kt(h))&&(h=[h,h]);var v=xo(t.get(["axisLine","symbolOffset"])||0,h),d=h[0],p=h[1];T([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((o[0]-s[0])*(o[0]-s[0])+(o[1]-s[1])*(o[1]-s[1]))}],function(g,y){if(c[y]!=="none"&&c[y]!=null){var m=Te(c[y],-d/2,-p/2,d,p,u.stroke,!0),w=g.r+g.offset,_=l?s:o;m.attr({rotation:g.rotate,x:_[0]+w*Math.cos(r.rotation),y:_[1]-w*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,n){var a=VY(e,n,t,r),i=KY(e,n,t,r);if(NY(t,i,a),GY(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var A=Y2(Y(i,function(o){return{label:o,priority:o.z2,defaultAttr:{ignore:o.ignore}}}));J2(A)}},axisName:function(r,t,e,n){var a=Ve(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),A=r.nameDirection,o=t.getModel("nameTextStyle"),s=t.get("nameGap")||0,l=t.axis.getExtent(),u=l[0]>l[1]?-1:1,f=[i==="start"?l[0]-u*s:i==="end"?l[1]+u*s:(l[0]+l[1])/2,CT(i)?r.labelOffset+A*s:0],c,h=t.get("nameRotate");h!=null&&(h=h*Di/180);var v;CT(i)?c=wr.innerTextLayout(r.rotation,h??r.rotation,A):(c=kY(r.rotation,i,h||0,l),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(c.rotation)),!isFinite(v)&&(v=null)));var d=o.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,y=Ve(r.nameTruncateMaxWidth,p.maxWidth,v),m=new Gt({x:f[0],y:f[1],rotation:c.rotation,silent:wr.isLabelSilent(t),style:oe(o,{text:a,font:d,overflow:"truncate",width:y,ellipsis:g,fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:o.get("align")||c.textAlign,verticalAlign:o.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(js({el:m,componentModel:t,itemName:a}),m.__fullText=a,m.anid="name",t.get("triggerEvent")){var w=wr.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,Ct(m).eventData=w}n.add(m),m.updateTransform(),e.add(m),m.decomposeTransform()}}};function kY(r,t,e,n){var a=ZL(e-r),i,A,o=n[0]>n[1],s=t==="start"&&!o||t!=="start"&&o;return ju(a-Di/2)?(A=s?"bottom":"top",i="center"):ju(a-Di*1.5)?(A=s?"top":"bottom",i="center"):(A="middle",aDi/2?i=s?"left":"right":i=s?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:A}}function NY(r,t,e){if(!U2(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],A=t[1],o=t[t.length-1],s=t[t.length-2],l=e[0],u=e[1],f=e[e.length-1],c=e[e.length-2];n===!1?($r(i),$r(l)):_T(i,A)&&(n?($r(A),$r(u)):($r(i),$r(l))),a===!1?($r(o),$r(f)):_T(s,o)&&(a?($r(s),$r(c)):($r(o),$r(f)))}}function $r(r){r&&(r.ignore=!0)}function _T(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Rd([]);return Co(a,a,-r.rotation),e.applyTransform(Ha([],a,r.getLocalTransform())),n.applyTransform(Ha([],a,t.getLocalTransform())),e.intersect(n)}}function CT(r){return r==="middle"||r==="center"}function QP(r,t,e,n,a){for(var i=[],A=[],o=[],s=0;s=0||r===t}function $Y(r){var t=Y_(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),A=e.get("value");A!=null&&(A=n.parse(A));var o=aw(e);i==null&&(a.status=o?"show":"hide");var s=n.getExtent().slice();s[0]>s[1]&&s.reverse(),(A==null||A>s[1])&&(A=s[1]),A0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=s;v.color!=null&&(d=gt({color:v.color},s));var p=Ft(mt(v),{boundaryGap:e,splitNumber:n,scale:a,axisLine:i,axisTick:A,axisLabel:o,name:v.text,showName:l,nameLocation:"end",nameGap:f,nameTextStyle:d,triggerEvent:c},!1);if(nt(u)){var g=p.name;p.name=u.replace("{value}",g??"")}else vt(u)&&(p.name=u(p.name,p));var y=new Yt(p,null,this.ecModel);return Ie(y,Nf.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ft({lineStyle:{color:"#bbb"}},Ml.axisLine),axisLabel:Wc(Ml.axisLabel,!1),axisTick:Wc(Ml.axisTick,!1),splitLine:Wc(Ml.splitLine,!0),splitArea:Wc(Ml.splitArea,!0),indicator:[]},t}(Rt),lZ=["axisLine","axisTickLabel","axisName"],uZ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes(),i=Y(a,function(A){var o=A.model.get("showName")?A.name:"",s=new wr(A.model,{axisName:o,position:[n.cx,n.cy],rotation:A.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});T(i,function(A){T(lZ,A.add,A),this.group.add(A.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),A=e.getModel("splitLine"),o=e.getModel("splitArea"),s=A.getModel("lineStyle"),l=o.getModel("areaStyle"),u=A.get("show"),f=o.get("show"),c=s.get("color"),h=l.get("color"),v=K(c)?c:[c],d=K(h)?h:[h],p=[],g=[];function y(Q,M,R){var P=R%M.length;return Q[P]=Q[P]||[],P}if(i==="circle")for(var m=a[0].getTicksCoords(),w=n.cx,_=n.cy,B=0;B3?1.4:A>1?1.2:1.1,u=i>0?l:1/l;dy(this,"zoom","zoomOnMouseWheel",e,{scale:u,originX:o,originY:s,isAvailableBehavior:null})}if(a){var f=Math.abs(i),c=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);dy(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:s,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!FT(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;dy(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(yn);function dy(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(Ka(n.event),HP(r,t,e,n,a))}function HP(r,t,e,n,a){a.isAvailableBehavior=it(Jh,null,e,n),r.trigger(t,a)}function Jh(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}function $_(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function J_(r,t,e,n){var a=r.target,i=r.zoomLimit,A=r.zoom=r.zoom||1;if(A*=t,i){var o=i.min||0,s=i.max||1/0;A=Math.max(Math.min(s,A),o)}var l=A/r.zoom;r.zoom=A,a.x-=(e-a.x)*(l-1),a.y-=(n-a.y)*(l-1),a.scaleX*=l,a.scaleY*=l,a.dirty()}var gZ={axisPointer:1,tooltip:1,brush:1};function vp(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!gZ.hasOwnProperty(n.mainType)&&a&&a.model!==e}function OP(r){if(nt(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var py,Xv={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},ET=Ht(Xv),Yv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},DT=Ht(Yv),yZ=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=OP(t);this._defsUsePending=[];var a=new _t;this._root=a;var i=[],A=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Hr(n,a,null,!0,!1);for(var l=n.firstChild;l;)this._parseNode(l,a,i,null,!1,!1),l=l.nextSibling;BZ(this._defs,this._defsUsePending),this._defsUsePending=[];var u,f;if(A){var c=dp(A);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&o!=null&&s!=null&&(f=NP(u,{x:0,y:0,width:o,height:s}),!e.ignoreViewBox)){var h=a;a=new _t,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!e.ignoreRootClip&&o!=null&&s!=null&&a.setClipPath(new Nt({shape:{x:0,y:0,width:o,height:s}})),{root:a,width:o,height:s,viewBoxRect:u,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(t,e,n,a,i,A){var o=t.nodeName.toLowerCase(),s,l=a;if(o==="defs"&&(i=!0),o==="text"&&(A=!0),o==="defs"||o==="switch")s=e;else{if(!i){var u=py[o];if(u&&st(py,o)){s=u.call(this,t,e);var f=t.getAttribute("name");if(f){var c={name:f,namedFrom:null,svgNodeTagLower:o,el:s};n.push(c),o==="g"&&(l=c)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:o,el:s});e.add(s)}}var h=QT[o];if(h&&st(QT,o)){var v=h.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=v)}}if(s&&s.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,s,n,l,i,A):p.nodeType===3&&A&&this._parseText(p,s),p=p.nextSibling},r.prototype._parseText=function(t,e){var n=new Us({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Jr(e,n),Hr(t,n,this._defsUsePending,!1,!1),mZ(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var A=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=A;var o=n.getBoundingRect();return this._textX+=o.width,e.add(n),n},r.internalField=function(){py={g:function(t,e){var n=new _t;return Jr(e,n),Hr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Nt;return Jr(e,n),Hr(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new ei;return Jr(e,n),Hr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Ue;return Jr(e,n),Hr(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Xd;return Jr(e,n),Hr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),a;n&&(a=UT(n));var i=new Sr({shape:{points:a||[]},silent:!0});return Jr(e,i),Hr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=UT(n));var i=new xr({shape:{points:a||[]},silent:!0});return Jr(e,i),Hr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Ge;return Jr(e,n),Hr(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",A=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(A);var o=new _t;return Jr(e,o),Hr(t,o,this._defsUsePending,!1,!0),o},tspan:function(t,e){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",A=t.getAttribute("dy")||"0",o=new _t;return Jr(e,o),Hr(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(A),o},path:function(t,e){var n=t.getAttribute("d")||"",a=EM(n);return Jr(e,a),Hr(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),QT={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new Uf(t,e,n,a);return LT(r,i),MT(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new MM(t,e,n);return LT(r,a),MT(r,a),a}};function LT(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function MT(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};kP(e,i,i);var A=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:A})}e=e.nextSibling}}function Jr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),gt(t.__inheritedStyle,r.__inheritedStyle))}function UT(r){for(var t=dp(r),e=[],n=0;n0;i-=2){var A=n[i],o=n[i-1],s=dp(A);switch(a=a||Wr(),o){case"translate":va(a,a,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":zB(a,a,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":Co(a,a,-parseFloat(s[0])*gy,[parseFloat(s[1]||"0"),parseFloat(s[2]||"0")]);break;case"skewX":var l=Math.tan(parseFloat(s[0])*gy);Ha(a,[1,0,l,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(s[0])*gy);Ha(a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(s[0]),a[1]=parseFloat(s[1]),a[2]=parseFloat(s[2]),a[3]=parseFloat(s[3]),a[4]=parseFloat(s[4]),a[5]=parseFloat(s[5]);break}}t.setLocalTransform(a)}}var RT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function kP(r,t,e){var n=r.getAttribute("style");if(n){RT.lastIndex=0;for(var a;(a=RT.exec(n))!=null;){var i=a[1],A=st(Xv,i)?Xv[i]:null;A&&(t[A]=a[2]);var o=st(Yv,i)?Yv[i]:null;o&&(e[o]=a[2])}}}function xZ(r,t,e){for(var n=0;n0,p={api:n,geo:s,mapOrGeoModel:t,data:o,isVisualEncodedByVisualMap:d,isGeo:A,transformInfoRaw:c};s.resourceType==="geoJSON"?this._buildGeoJSON(p):s.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,a)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ft(),n=ft(),a=this._regionsGroup,i=t.transformInfoRaw,A=t.mapOrGeoModel,o=t.data,s=t.geo.projection,l=s&&s.stream;function u(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var v=[],d=!l&&s&&s.project,p=0;p=0)&&(c=a);var h=A?{normal:{align:"center",verticalAlign:"middle"}}:null;Je(t,He(n),{labelFetcher:c,labelDataIndex:f,defaultText:e},h);var v=t.getTextContent();if(v&&(VP(v).ignore=v.ignore,t.textConfig&&A)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(A[0]-d.x)/d.width*100+"%",(A[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function VT(r,t,e,n,a,i){r.data?r.data.setItemGraphicEl(i,t):Ct(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:e,region:n&&n.option||{}}}function GT(r,t,e,n,a){r.data||js({el:t,componentModel:a,itemName:e,itemTooltipOption:n.get("tooltip")})}function KT(r,t,e,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),A=i.get("focus");return ye(t,A,i.get("blurScope"),i.get("disabled")),r.isGeo&&N3(t,a,e),A}function zT(r,t,e){var n=[],a;function i(){a=[]}function A(){a.length&&(n.push(a),a=[])}var o=t({polygonStart:i,polygonEnd:A,lineStart:i,lineEnd:A,point:function(s,l){isFinite(s)&&isFinite(l)&&a.push([s,l])},sphere:function(){}});return!e&&o.polygonStart(),T(r,function(s){o.lineStart();for(var l=0;l-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(se);function zZ(r,t){var e={};return T(r,function(n){n.each(n.mapDimension("value"),function(a,i){var A="ec-"+n.getName(i);e[A]=e[A]||[],isNaN(a)||e[A].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),A=0,o=1/0,s=-1/0,l=e[i].length,u=0;u1?(w.width=m,w.height=m/p):(w.height=m,w.width=m*p),w.y=y[1]-w.height/2,w.x=y[0]-w.width/2;else{var _=r.getBoxLayoutParams();_.aspect=p,w=Qe(_,{width:v,height:d})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function ZZ(r,t){T(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var $Z=function(){function r(){this.dimensions=KP}return r.prototype.create=function(t,e){var n=[];function a(A){return{nameProperty:A.get("nameProperty"),aspectScale:A.get("aspectScale"),projection:A.get("projection")}}t.eachComponent("geo",function(A,o){var s=A.get("map"),l=new ow(s+o,s,V({nameMap:A.get("nameMap")},a(A)));l.zoomLimit=A.get("scaleLimit"),n.push(l),A.coordinateSystem=l,l.model=A,l.resize=ZT,l.resize(A,e)}),t.eachSeries(function(A){var o=A.get("coordinateSystem");if(o==="geo"){var s=A.get("geoIndex")||0;A.coordinateSystem=n[s]}});var i={};return t.eachSeriesByType("map",function(A){if(!A.getHostGeoModel()){var o=A.getMapType();i[o]=i[o]||[],i[o].push(A)}}),T(i,function(A,o){var s=Y(A,function(u){return u.get("nameMap")}),l=new ow(o,o,V({nameMap:kB(s)},a(A[0])));l.zoomLimit=Ve.apply(null,Y(A,function(u){return u.get("scaleLimit")})),n.push(l),l.resize=ZT,l.resize(A[0],e),T(A,function(u){u.coordinateSystem=l,ZZ(l,u)})}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),A=ft(),o=0;o=0;A--){var o=a[A];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:A,thread:null},e.push(o)}}function r9(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){i9(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+t(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+t(r,a));r.parentNode.hierNode.defaultAncestor=A9(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function n9(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function JT(r){return arguments.length?r:l9}function nu(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function a9(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function i9(r){for(var t=r.children,e=t.length,n=0,a=0;--e>=0;){var i=t[e];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function A9(r,t,e,n){if(t){for(var a=r,i=r,A=i.parentNode.children[0],o=t,s=a.hierNode.modifier,l=i.hierNode.modifier,u=A.hierNode.modifier,f=o.hierNode.modifier;o=yy(o),i=my(i),o&&i;){a=yy(a),A=my(A),a.hierNode.ancestor=r;var c=o.hierNode.prelim+f-i.hierNode.prelim-l+n(o,i);c>0&&(s9(o9(o,r,e),r,c),l+=c,s+=c),f+=o.hierNode.modifier,l+=i.hierNode.modifier,s+=a.hierNode.modifier,u+=A.hierNode.modifier}o&&!yy(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=f-s),i&&!my(A)&&(A.hierNode.thread=i,A.hierNode.modifier+=l-u,e=r)}return e}function yy(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function my(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function o9(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function s9(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function l9(r,t){return r.parentNode===t.parentNode?1:2}var u9=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),f9=function(r){H(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 u9},t.prototype.buildPath=function(e,n){var a=n.childPoints,i=a.length,A=n.parentPoint,o=a[0],s=a[i-1];if(i===1){e.moveTo(A[0],A[1]),e.lineTo(o[0],o[1]);return}var l=n.orient,u=l==="TB"||l==="BT"?0:1,f=1-u,c=et(n.forkPosition,1),h=[];h[u]=A[u],h[f]=A[f]+(s[f]-A[f])*c,e.moveTo(A[0],A[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[u]=o[u],e.lineTo(h[0],h[1]),h[u]=s[u],e.lineTo(h[0],h[1]),e.lineTo(s[0],s[1]);for(var v=1;vy.x,_||(w=w-Math.PI));var C=_?"left":"right",S=o.getModel("label"),x=S.get("rotate"),b=x*(Math.PI/180),I=p.getTextContent();I&&(p.setTextConfig({position:S.get("position")||C,rotation:x==null?-w:b,origin:"center"}),I.setStyle("verticalAlign","middle"))}var F=o.get(["emphasis","focus"]),E=F==="relative"?gv(A.getAncestorsIndices(),A.getDescendantIndices()):F==="ancestor"?A.getAncestorsIndices():F==="descendant"?A.getDescendantIndices():null;E&&(Ct(e).focus=E),h9(a,A,u,e,v,h,d,n),e.__edge&&(e.onHoverStateChange=function(D){if(D!=="blur"){var Q=A.parentNode&&r.getItemGraphicEl(A.parentNode.dataIndex);Q&&Q.hoverState===Qf||Tv(e.__edge,D)}})}function h9(r,t,e,n,a,i,A,o){var s=t.getModel(),l=r.get("edgeShape"),u=r.get("layout"),f=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=s.getModel("lineStyle").getLineStyle(),d=n.__edge;if(l==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=n.__edge=new Mf({shape:sw(u,f,c,a,a)})),zt(d,{shape:sw(u,f,c,i,A)},r));else if(l==="polyline"&&u==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,g=[],y=0;ye&&(e=a.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,a=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var n=e.getData().tree.root,a=r.targetNode;if(nt(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function $P(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function rC(r,t){var e=$P(r);return Qt(e,t)>=0}function pp(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var _9=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},a=e.leaves||{},i=new Yt(a,this,this.ecModel),A=eC.createTree(n,this,o);function o(f){f.wrapMethod("getItemModel",function(c,h){var v=A.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(c.parentModel=i),c})}var s=0;A.eachNode("preorder",function(f){f.depth>s&&(s=f.depth)});var l=e.expandAndCollapse,u=l&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return A.root.eachNode("preorder",function(f){var c=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=c&&c.collapsed!=null?!c.collapsed:f.depth<=u}),A.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,n,a){for(var i=this.getData().tree,A=i.root.children[0],o=i.getNodeByDataIndex(e),s=o.getValue(),l=o.name;o&&o!==A;)l=o.parentNode.name+"."+l,o=o.parentNode;return Oe("nameValue",{name:l,value:s,noValue:isNaN(s)||s==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=pp(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(se);function C9(r,t,e){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var A=i.children;if(A.length)for(var o=0;o=0;i--)e.push(a[i])}}function S9(r,t){r.eachSeriesByType("tree",function(e){x9(e,t)})}function x9(r,t){var e=a9(r,t);r.layoutInfo=e;var n=r.get("layout"),a=0,i=0,A=null;n==="radial"?(a=2*Math.PI,i=Math.min(e.height,e.width)/2,A=JT(function(m,w){return(m.parentNode===w.parentNode?1:2)/m.depth})):(a=e.width,i=e.height,A=JT());var o=r.getData().tree.root,s=o.children[0];if(s){e9(o),C9(s,r9,A),o.hierNode.modifier=-s.hierNode.prelim,Pl(s,n9);var l=s,u=s,f=s;Pl(s,function(m){var w=m.getLayout().x;wu.getLayout().x&&(u=m),m.depth>f.depth&&(f=m)});var c=l===u?1:A(l,u)/2,h=c-l.getLayout().x,v=0,d=0,p=0,g=0;if(n==="radial")v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Pl(s,function(m){p=(m.getLayout().x+h)*v,g=(m.depth-1)*d;var w=nu(p,g);m.setLayout({x:w.x,y:w.y,rawX:p,rawY:g},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(d=i/(u.getLayout().x+c+h),v=a/(f.depth-1||1),Pl(s,function(m){g=(m.getLayout().x+h)*d,p=y==="LR"?(m.depth-1)*v:a-(m.depth-1)*v,m.setLayout({x:p,y:g},!0)})):(y==="TB"||y==="BT")&&(v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Pl(s,function(m){p=(m.getLayout().x+h)*v,g=y==="TB"?(m.depth-1)*d:i-(m.depth-1)*d,m.setLayout({x:p,y:g},!0)}))}}}function b9(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(a){var i=a.getModel(),A=i.getModel("itemStyle").getItemStyle(),o=e.ensureUniqueItemVisual(a.dataIndex,"style");V(o,A)})})}function T9(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,A=i.getNodeByDataIndex(a);A.isExpand=!A.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,A=j_(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}function I9(r){r.registerChartView(c9),r.registerSeriesModel(_9),r.registerLayout(S9),r.registerVisual(b9),T9(r)}var rI=["treemapZoomToNode","treemapRender","treemapMove"];function F9(r){for(var t=0;t1;)i=i.parentNode;var A=P0(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",A)})}var E9=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};qP(a);var i=e.levels||[],A=this.designatedVisualItemStyle={},o=new Yt({itemStyle:A},this,n);i=e.levels=D9(i,n);var s=Y(i||[],function(f){return new Yt(f,o,n)},this),l=eC.createTree(a,this,u);function u(f){f.wrapMethod("getItemModel",function(c,h){var v=l.getNodeByDataIndex(h),d=v?s[v.depth]:null;return c.parentModel=d||o,c})}return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),A=this.getRawValue(e),o=i.getName(e);return Oe("nameValue",{name:o,value:A})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=pp(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ft(),this._idIndexMapCount=0);var a=n.get(e);return a==null&&n.set(e,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){JP(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(se);function qP(r){var t=0;T(r.children,function(n){qP(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}function D9(r,t){var e=qt(t.get("color")),n=qt(t.get(["aria","decal","decals"]));if(e){r=r||[];var a,i;T(r,function(o){var s=new Yt(o),l=s.get("color"),u=s.get("decal");(s.get(["itemStyle","color"])||l&&l!=="none")&&(a=!0),(s.get(["itemStyle","decal"])||u&&u!=="none")&&(i=!0)});var A=r[0]||(r[0]={});return a||(A.color=e.slice()),!i&&n&&(A.decal=n.slice()),r}}var Q9=8,nI=8,wy=5,L9=function(){function r(t){this.group=new _t,t.add(this.group)}return r.prototype.render=function(t,e,n,a){var i=t.getModel("breadcrumb"),A=this.group;if(A.removeAll(),!(!i.get("show")||!n)){var o=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,l),this._renderContent(t,f,o,s,l,u,a),np(A,f.pos,f.box)}},r.prototype._prepare=function(t,e,n){for(var a=t;a;a=a.parentNode){var i=Ee(a.getModel().get("name"),""),A=n.getTextRect(i),o=Math.max(A.width+Q9*2,e.emptyItemWidth);e.totalWidth+=o+nI,e.renderList.push({node:a,text:i,width:o})}},r.prototype._renderContent=function(t,e,n,a,i,A,o){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),f=G5(e.pos,e.box),c=e.totalWidth,h=e.renderList,v=a.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var p=h[d],g=p.node,y=p.width,m=p.text;c>f.width&&(c-=y-l,y=l,m=null);var w=new Sr({shape:{points:M9(s,0,y,u,d===h.length-1,d===0)},style:gt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Gt({style:oe(i,{text:m})}),textConfig:{position:"inside"},z2:Js*1e4,onclick:xt(o,g)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=oe(A,{text:m}),w.ensureState("emphasis").style=v,ye(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),U9(w,t,g),s+=y+nI}},r.prototype.remove=function(){this.group.removeAll()},r}();function M9(r,t,e,n,a,i){var A=[[a?r:r-wy,t],[r+e,t],[r+e,t+n],[a?r:r-wy,t+n]];return!i&&A.splice(2,0,[r+e+wy,t+n/2]),!a&&A.push([r,t+n/2]),A}function U9(r,t,e){Ct(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&pp(e,t)}}var P9=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;aiI||Math.abs(e.dy)>iI)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var n=e.originX,a=e.originY,i=e.scale;if(this._state!=="animating"){var A=this.seriesModel.getData().tree.root;if(!A)return;var o=A.getLayout();if(!o)return;var s=new Et(o.x,o.y,o.width,o.height),l=null,u=this._controllerHost;l=u.zoomLimit;var f=u.zoom=u.zoom||1;if(f*=i,l){var c=l.min||0,h=l.max||1/0;f=Math.max(Math.min(h,f),c)}var v=f/u.zoom;u.zoom=f;var d=this.seriesModel.layoutInfo;n-=d.x,a-=d.y;var p=Wr();va(p,p,[-n,-a]),zB(p,p,[v,v]),va(p,p,[n,a]),s.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var A=n.findTarget(a.offsetX,a.offsetY);if(A){var o=A.node;if(o.getLayout().isLeafRoot)n._rootToNode(A);else if(i==="zoomToNode")n._zoomToNode(A);else if(i==="link"){var s=o.hostTree.data.getItemModel(o.dataIndex),l=s.get("link",!0),u=s.get("target",!0)||"blank";l&&Lv(l,u)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,a){var i=this;a||(a=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new L9(this.group))).render(e,n,a.node,function(A){i._state!=="animating"&&(rC(e.getViewRoot(),A)?i._rootToNode({node:A}):i._zoomToNode({node:A}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Rl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(A){var o=this._storage.background[A.getRawIndex()];if(o){var s=o.transformCoordToLocal(e,n),l=o.shape;if(l.x<=s[0]&&s[0]<=l.x+l.width&&l.y<=s[1]&&s[1]<=l.y+l.height)a={node:A,offsetX:s[0],offsetY:s[1]};else return!1}},this),a},t.type="treemap",t}(jt);function Rl(){return{nodeGroup:[],background:[],content:[]}}function V9(r,t,e,n,a,i,A,o,s,l){if(!A)return;var u=A.getLayout(),f=r.getData(),c=A.getModel();if(f.setItemGraphicEl(A.dataIndex,null),!u||!u.isInView)return;var h=u.width,v=u.height,d=u.borderWidth,p=u.invisible,g=A.getRawIndex(),y=o&&o.getRawIndex(),m=A.viewChildren,w=u.upperHeight,_=m&&m.length,B=c.getModel("itemStyle"),C=c.getModel(["emphasis","itemStyle"]),S=c.getModel(["blur","itemStyle"]),x=c.getModel(["select","itemStyle"]),b=B.get("borderRadius")||0,I=lt("nodeGroup",lw);if(!I)return;if(s.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),Zv(I).nodeWidth=h,Zv(I).nodeHeight=v,u.isAboveViewRoot)return I;var F=lt("background",aI,l,O9);F&&O(I,F,_&&u.upperLabelHeight);var E=c.getModel("emphasis"),D=E.get("focus"),Q=E.get("blurScope"),M=E.get("disabled"),R=D==="ancestor"?A.getAncestorsIndices():D==="descendant"?A.getDescendantIndices():D;if(_)rf(I)&&zA(I,!1),F&&(zA(F,!M),f.setItemGraphicEl(A.dataIndex,F),I0(F,R,Q));else{var P=lt("content",aI,l,k9);P&&G(I,P),F.disableMorphing=!0,F&&rf(F)&&zA(F,!1),zA(I,!M),f.setItemGraphicEl(A.dataIndex,I),I0(I,R,Q)}return I;function O(N,z,$){var q=Ct(z);if(q.dataIndex=A.dataIndex,q.seriesIndex=r.seriesIndex,z.setShape({x:0,y:0,width:h,height:v,r:b}),p)X(z);else{z.invisible=!1;var j=A.getVisual("style"),ct=j.stroke,L=sI(B);L.fill=ct;var U=MA(C);U.fill=C.get("borderColor");var k=MA(S);k.fill=S.get("borderColor");var Z=MA(x);if(Z.fill=x.get("borderColor"),$){var W=h-2*d;J(z,ct,j.opacity,{x:d,y:0,width:W,height:w})}else z.removeTextContent();z.setStyle(L),z.ensureState("emphasis").style=U,z.ensureState("blur").style=k,z.ensureState("select").style=Z,po(z)}N.add(z)}function G(N,z){var $=Ct(z);$.dataIndex=A.dataIndex,$.seriesIndex=r.seriesIndex;var q=Math.max(h-2*d,0),j=Math.max(v-2*d,0);if(z.culling=!0,z.setShape({x:d,y:d,width:q,height:j,r:b}),p)X(z);else{z.invisible=!1;var ct=A.getVisual("style"),L=ct.fill,U=sI(B);U.fill=L,U.decal=ct.decal;var k=MA(C),Z=MA(S),W=MA(x);J(z,L,ct.opacity,null),z.setStyle(U),z.ensureState("emphasis").style=k,z.ensureState("blur").style=Z,z.ensureState("select").style=W,po(z)}N.add(z)}function X(N){!N.invisible&&i.push(N)}function J(N,z,$,q){var j=c.getModel(q?oI:AI),ct=Ee(c.get("name"),null),L=j.getShallow("show");Je(N,He(c,q?oI:AI),{defaultText:L?ct:null,inheritColor:z,defaultOpacity:$,labelFetcher:r,labelDataIndex:A.dataIndex});var U=N.getTextContent();if(U){var k=U.style,Z=VB(k.padding||0);q&&(N.setTextConfig({layoutRect:q}),U.disableLabelLayout=!0),U.beforeUpdate=function(){var tt=Math.max((q?q.width:N.shape.width)-Z[1]-Z[3],0),ot=Math.max((q?q.height:N.shape.height)-Z[0]-Z[2],0);(k.width!==tt||k.height!==ot)&&U.setStyle({width:tt,height:ot})},k.truncateMinChar=2,k.lineOverflow="truncate",At(k,q,u);var W=U.getState("emphasis");At(W?W.style:null,q,u)}}function At(N,z,$){var q=N?N.text:null;if(!z&&$.isLeafRoot&&q!=null){var j=r.get("drillDownIcon",!0);N.text=j?j+" "+q:q}}function lt(N,z,$,q){var j=y!=null&&e[N][y],ct=a[N];return j?(e[N][y]=null,wt(ct,j)):p||(j=new z,j instanceof gn&&(j.z2=G9($,q)),Bt(ct,j)),t[N][g]=j}function wt(N,z){var $=N[g]={};z instanceof lw?($.oldX=z.x,$.oldY=z.y):$.oldShape=V({},z.shape)}function Bt(N,z){var $=N[g]={},q=A.parentNode,j=z instanceof _t;if(q&&(!n||n.direction==="drillDown")){var ct=0,L=0,U=a.background[q.getRawIndex()];!n&&U&&U.oldShape&&(ct=U.oldShape.width,L=U.oldShape.height),j?($.oldX=0,$.oldY=L):$.oldShape={x:ct,y:L,width:0,height:0}}$.fadein=!j}}function G9(r,t){return r*H9+t}var gf=T,K9=yt,$v=-1,Re=function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=mt(t);this.type=n,this.mappingMethod=e,this._normalizeData=X9[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(By(a),z9(a)):e==="category"?a.categories?W9(a):By(a,!0):(Br(e!=="linear"||a.dataExtent),By(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return it(this._normalizeData,this)},r.listVisualTypes=function(){return Ht(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){yt(t)?T(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var a,i=K(t)?[]:yt(t)?{}:(a=!0,null);return r.eachVisual(t,function(A,o){var s=e.call(n,A,o);a?i=s:i[o]=s}),i},r.retrieveVisuals=function(t){var e={},n;return t&&gf(r.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(e[i]=t[i],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(K(t))t=t.slice();else if(K9(t)){var e=[];gf(t,function(n,a){e.push(a)}),t=e}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var a,i=1/0,A=0,o=e.length;A=0;i--)n[i]==null&&(delete e[t[i]],t.pop())}function By(r,t){var e=r.visual,n=[];yt(e)?gf(e,function(i){n.push(i)}):e!=null&&n.push(e);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),jP(r,n)}function Yc(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:uw([0,1])}}function lI(r){var t=this.option.visual;return t[Math.round($t(r,[0,1],[0,t.length-1],!0))]||{}}function Hl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function au(r){var t=this.option.visual;return t[this.option.loop&&r!==$v?r%t.length:r]}function UA(){return this.option.visual[0]}function uw(r){return{linear:function(t){return $t(t,r,this.option.visual,!0)},category:au,piecewise:function(t,e){var n=fw.call(this,e);return n==null&&(n=$t(t,r,this.option.visual,!0)),n},fixed:UA}}function fw(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=Re.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function jP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var n=Xr(e);return n||[0,0,0,1]})),t}var X9={linear:function(r){return $t(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Re.findPieceIndex(r,t,!0);if(e!=null)return $t(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??$v},fixed:Be};function Zc(r,t,e){return r?t<=e:t=e.length||d===e[d.depth]){var g=j9(a,s,d,p,v,n);eR(d,g,e,n)}})}}}function $9(r,t,e){var n=V({},t),a=e.designatedVisualItemStyle;return T(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var A=r.get(i);a[i]=null,A!=null&&(n[i]=A)}),n}function uI(r){var t=_y(r,"color");if(t){var e=_y(r,"colorAlpha"),n=_y(r,"colorSaturation");return n&&(t=Cu(t,null,null,n)),e&&(t=Bv(t,e)),t}}function J9(r,t){return t!=null?Cu(t,null,null,r):null}function _y(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function q9(r,t,e,n,a,i){if(!(!i||!i.length)){var A=Cy(t,"color")||a.color!=null&&a.color!=="none"&&(Cy(t,"colorAlpha")||Cy(t,"colorSaturation"));if(A){var o=t.get("visualMin"),s=t.get("visualMax"),l=e.dataExtent.slice();o!=null&&ol[1]&&(l[1]=s);var u=t.get("colorMappingBy"),f={type:A.name,dataExtent:l,visual:A.range};f.type==="color"&&(u==="index"||u==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var c=new Re(f);return tR(c).drColorMappingBy=u,c}}}function Cy(r,t){var e=r.get(t);return K(e)&&e.length?{name:t,range:e}:null}function j9(r,t,e,n,a,i){var A=V({},t);if(a){var o=a.type,s=o==="color"&&tR(a).drColorMappingBy,l=s==="index"?n:s==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));A[o]=a.mapValueToVisual(l)}return A}var yf=Math.max,Jv=Math.min,fI=Ve,nC=T,rR=["itemStyle","borderWidth"],t7=["itemStyle","gapWidth"],e7=["upperLabel","show"],r7=["upperLabel","height"];const n7={seriesType:"treemap",reset:function(r,t,e,n){var a=e.getWidth(),i=e.getHeight(),A=r.option,o=Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),s=A.size||[],l=et(fI(o.width,s[0]),a),u=et(fI(o.height,s[1]),i),f=n&&n.type,c=["treemapZoomToNode","treemapRootToNode"],h=pf(n,c,r),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),p=$P(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?l7(r,h,d,l,u):v?[v.width,v.height]:[l,u],y=A.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:A.squareRatio,sort:y,leafDepth:A.leafDepth};d.hostTree.clearLayouts();var w={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(w),nR(d,m,!1,0),w=d.getLayout(),nC(p,function(B,C){var S=(p[C+1]||d).getValue();B.setLayout(V({dataExtent:[S,S],borderWidth:0,upperHeight:0},w))})}var _=r.getData().tree.root;_.setLayout(u7(o,v,h),!0),r.setLayoutInfo(o),aR(_,new Et(-o.x,-o.y,a,i),p,d,0)}};function nR(r,t,e,n){var a,i;if(!r.isRemoved()){var A=r.getLayout();a=A.width,i=A.height;var o=r.getModel(),s=o.get(rR),l=o.get(t7)/2,u=iR(o),f=Math.max(s,u),c=s-l,h=f-l;r.setLayout({borderWidth:s,upperHeight:f,upperLabelHeight:u},!0),a=yf(a-2*c,0),i=yf(i-c-h,0);var v=a*i,d=a7(r,o,v,t,e,n);if(d.length){var p={x:c,y:h,width:a,height:i},g=Jv(a,i),y=1/0,m=[];m.area=0;for(var w=0,_=d.length;w<_;){var B=d[w];m.push(B),m.area+=B.getLayout().area;var C=s7(m,g,t.squareRatio);C<=y?(w++,y=C):(m.area-=m.pop().getLayout().area,cI(m,g,p,l,!1),g=Jv(p.width,p.height),m.length=m.area=0,y=1/0)}if(m.length&&cI(m,g,p,l,!0),!e){var S=o.get("childrenVisibleMin");S!=null&&v=0;s--){var l=a[n==="asc"?A-s-1:s].getValue();l/e*to[1]&&(o[1]=l)})),{sum:n,dataExtent:o}}function s7(r,t,e){for(var n=0,a=1/0,i=0,A=void 0,o=r.length;in&&(n=A));var s=r.area*r.area,l=t*t*e;return s?yf(l*n/s,s/(l*a)):1/0}function cI(r,t,e,n,a){var i=t===e.width?0:1,A=1-i,o=["x","y"],s=["width","height"],l=e[o[i]],u=t?r.area/t:0;(a||u>e[s[A]])&&(u=e[s[A]]);for(var f=0,c=r.length;fSS&&(l=SS),i=o}ln&&(n=t);var i=n%2?n+2:n+3;a=[];for(var A=0;A0&&(_[0]=-_[0],_[1]=-_[1]);var C=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var S=-Math.atan2(w[1],w[0]);f[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*g+u[0],i.y=-c[1]*y+u[1],v=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*C+u[0],i.y=u[1]+x,v=w[0]<0?"right":"left",i.originX=-g*C,i.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=B[0],i.y=B[1]+x,v="center",i.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*C+f[0],i.y=f[1]+x,v=w[0]>=0?"right":"left",i.originX=g*C,i.originY=-x;break}i.scaleX=i.scaleY=A,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||v})}},t}(_t),sC=function(){function r(t){this.group=new _t,this._LineCtor=t||oC}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var A=yI(t);t.diff(i).add(function(o){e._doAdd(t,o,A)}).update(function(o,s){e._doUpdate(i,t,s,o,A)}).remove(function(o){a.remove(i.getItemGraphicEl(o))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yI(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(o){!o.isGroup&&!I7(o)&&(o.incremental=!0,o.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function yI(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:He(t)}}function mI(r){return isNaN(r[0])||isNaN(r[1])}function Iy(r){return r&&!mI(r[0])&&!mI(r[1])}var Fy=[],Ey=[],Dy=[],zo=Ne,Qy=jA,wI=Math.abs;function BI(r,t,e){for(var n=r[0],a=r[1],i=r[2],A=1/0,o,s=e*e,l=.1,u=.1;u<=.9;u+=.1){Fy[0]=zo(n[0],a[0],i[0],u),Fy[1]=zo(n[1],a[1],i[1],u);var f=wI(Qy(Fy,t)-s);f=0?o=o+l:o=o-l:v>=0?o=o-l:o=o+l}return o}function Ly(r,t){var e=[],n=$u,a=[[],[],[]],i=[[],[]],A=[];t/=2,r.eachEdge(function(o,s){var l=o.getLayout(),u=o.getVisual("fromSymbol"),f=o.getVisual("toSymbol");l.__original||(l.__original=[Ra(l[0]),Ra(l[1])],l[2]&&l.__original.push(Ra(l[2])));var c=l.__original;if(l[2]!=null){if(vr(a[0],c[0]),vr(a[1],c[2]),vr(a[2],c[1]),u&&u!=="none"){var h=Au(o.node1),v=BI(a,c[0],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[0][0]=e[3],a[1][0]=e[4],n(a[0][1],a[1][1],a[2][1],v,e),a[0][1]=e[3],a[1][1]=e[4]}if(f&&f!=="none"){var h=Au(o.node2),v=BI(a,c[1],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[1][0]=e[1],a[2][0]=e[2],n(a[0][1],a[1][1],a[2][1],v,e),a[1][1]=e[1],a[2][1]=e[2]}vr(l[0],a[0]),vr(l[1],a[2]),vr(l[2],a[1])}else{if(vr(i[0],c[0]),vr(i[1],c[1]),GA(A,i[1],i[0]),Ys(A,A),u&&u!=="none"){var h=Au(o.node1);jm(i[0],i[0],A,h*t)}if(f&&f!=="none"){var h=Au(o.node2);jm(i[1],i[1],A,-h*t)}vr(l[0],i[0]),vr(l[1],i[1])}})}function _I(r){return r.type==="view"}var F7=function(r){H(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){var a=new Gf,i=new sC,A=this.group;this._controller=new Yf(n.getZr()),this._controllerHost={target:A},A.add(a.group),A.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,n,a){var i=this,A=e.coordinateSystem;this._model=e;var o=this._symbolDraw,s=this._lineDraw,l=this.group;if(_I(A)){var u={x:A.x,y:A.y,scaleX:A.scaleX,scaleY:A.scaleY};this._firstRender?l.attr(u):zt(l,u,e)}Ly(e.getGraph(),iu(e));var f=e.getData();o.updateData(f);var c=e.getEdgeData();s.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,n,a),clearTimeout(this._layoutTimeout);var h=e.forceLayout,v=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var d=e.get("layout");f.graph.eachNode(function(m){var w=m.dataIndex,_=m.getGraphicEl(),B=m.getModel();if(_){_.off("drag").off("dragend");var C=B.get("draggable");C&&_.on("drag",function(x){switch(d){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[_.x,_.y]);break;case"circular":f.setItemLayout(w,[_.x,_.y]),m.setLayout({fixed:!0},!0),AC(e,"symbolSize",m,[x.offsetX,x.offsetY]),i.updateLayout(e);break;case"none":default:f.setItemLayout(w,[_.x,_.y]),iC(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),_.setDraggable(C,!!B.get("cursor"));var S=B.get(["emphasis","focus"]);S==="adjacency"&&(Ct(_).focus=m.getAdjacentDataIndices())}}),f.graph.eachEdge(function(m){var w=m.getGraphicEl(),_=m.getModel().get(["emphasis","focus"]);w&&_==="adjacency"&&(Ct(w).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var p=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),g=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(m){lR(m,p,g,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var a=this;(function i(){e.step(function(A){a.updateLayout(a._model),(a._layouting=!A)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,n,a){var i=this,A=this._controller,o=this._controllerHost,s=this.group;if(A.setPointerChecker(function(l,u,f){var c=s.getBoundingRect();return c.applyTransform(s.transform),c.contain(u,f)&&!vp(l,a,e)}),!_I(e.coordinateSystem)){A.disable();return}A.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),A.off("pan").off("zoom").on("pan",function(l){$_(o,l.dx,l.dy),a.dispatchAction({seriesId:e.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){J_(o,l.scale,l.originX,l.originY),a.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY}),i._updateNodeAndLinkScale(),Ly(e.getGraph(),iu(e)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=iu(e);n.eachItemGraphicEl(function(i,A){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){Ly(e.getGraph(),iu(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(jt);function Wo(r){return"_EC_"+r}var E7=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[Wo(t)]){var a=new PA(t,e);return a.hostGraph=this,this.nodes.push(a),n[Wo(t)]=a,a}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Wo(t)]},r.prototype.addEdge=function(t,e,n){var a=this._nodesMap,i=this._edgesMap;if(Kt(t)&&(t=this.nodes[t]),Kt(e)&&(e=this.nodes[e]),t instanceof PA||(t=a[Wo(t)]),e instanceof PA||(e=a[Wo(e)]),!(!t||!e)){var A=t.id+"-"+e.id,o=new fR(t,e,n);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),i[A]=o,o}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof PA&&(t=t.id),e instanceof PA&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,a=n.length,i=0;i=0&&t.call(e,n[i],i)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,a=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},r.prototype.breadthFirstTraverse=function(t,e,n,a){if(e instanceof PA||(e=this._nodesMap[Wo(e)]),!!e){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",A=0;A=0&&s.node2.dataIndex>=0});for(var i=0,A=a.length;i=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}Ie(PA,cR("hostGraph","data"));Ie(fR,cR("hostGraph","edgeData"));function hR(r,t,e,n,a){for(var i=new E7(n),A=0;A "+c)),l++)}var h=e.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=ri(r,e);else{var d=Hf.get(h),p=d?d.dimensions||[]:[];Qt(p,"value")<0&&p.concat(["value"]);var g=kf(r,{coordDimensions:p,encodeDefine:e.getEncode()}).dimensions;v=new mr(g,e),v.initData(r)}var y=new mr(["value"],e);return y.initData(s,o),a&&a(v,y),YP({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var D7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Xf(a,a),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),co(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],A=this;if(i&&a){g7(this);var o=hR(i,a,this,!0,s);return T(o.edges,function(l){y7(l.node1,l.node2,this,l.dataIndex)},this),o.data}function s(l,u){l.wrapMethod("getItemModel",function(v){var d=A._categoriesModels,p=v.getShallow("category"),g=d[p];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var f=Yt.prototype.getModel;function c(v,d){var p=f.call(this,v,d);return p.resolveParentPath=h,p}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=c,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,n,a){if(a==="edge"){var i=this.getData(),A=this.getDataParams(e,a),o=i.graph.getEdgeByIndex(e),s=i.getName(o.node1.dataIndex),l=i.getName(o.node2.dataIndex),u=[];return s!=null&&u.push(s),l!=null&&u.push(l),Oe("nameValue",{name:u.join(" > "),value:A.value,noValue:A.value==null})}var f=HU({series:this,dataIndex:e,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(a){return a.value!=null?a:V({value:0},a)}),n=new mr(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(se),Q7={type:"graphRoam",event:"graphRoam",update:"none"};function L7(r){r.registerChartView(F7),r.registerSeriesModel(D7),r.registerProcessor(c7),r.registerVisual(h7),r.registerVisual(v7),r.registerLayout(m7),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,B7),r.registerLayout(C7),r.registerCoordinateSystem("graphView",{dimensions:Zf.dimensions,create:x7}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Be),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Be),r.registerAction(Q7,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,A=j_(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}var M7=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),U7=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new M7},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,A=n.r,o=n.width,s=n.angle,l=n.x-a(s)*o*(o>=A/3?1:2),u=n.y-i(s)*o*(o>=A/3?1:2);s=n.angle-Math.PI/2,e.moveTo(l,u),e.lineTo(n.x+a(s)*o,n.y+i(s)*o),e.lineTo(n.x+a(n.angle)*A,n.y+i(n.angle)*A),e.lineTo(n.x-a(s)*o,n.y-i(s)*o),e.lineTo(l,u)},t}(Mt);function P7(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),A=et(e[0],t.getWidth()),o=et(e[1],t.getHeight()),s=et(r.get("radius"),i/2);return{cx:A,cy:o,r:s}}function Jc(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var R7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),A=P7(e,a);this._renderMain(e,n,a,i,A),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,A){var o=this.group,s=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,f=e.getModel("axisLine"),c=f.get("roundCap"),h=c?Wv:Cr,v=f.get("show"),d=f.getModel("lineStyle"),p=d.get("width"),g=[l,u];t_(g,!s),l=g[0],u=g[1];for(var y=u-l,m=l,w=[],_=0;v&&_=x&&(b===0?0:i[b-1][0])Math.PI/2&&(lt+=Math.PI)):At==="tangential"?lt=-S-Math.PI/2:Kt(At)&&(lt=At*Math.PI/180),lt===0?f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:Q<-.8?"top":Q>.8?"bottom":"middle",align:D<-.4?"left":D>.4?"right":"center"},{inheritColor:G}),silent:!0})):f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:X,originY:J,rotation:lt}))}if(y.get("show")&&M!==w){var R=y.get("distance");R=R?R+u:u;for(var wt=0;wt<=_;wt++){D=Math.cos(S),Q=Math.sin(S);var Bt=new Ue({shape:{x1:D*(v-R)+c,y1:Q*(v-R)+h,x2:D*(v-C-R)+c,y2:Q*(v-C-R)+h},silent:!0,style:F});F.stroke==="auto"&&Bt.setStyle({stroke:i((M+wt/_)/w)}),f.add(Bt),S+=b}S-=b}else S+=x}},t.prototype._renderPointer=function(e,n,a,i,A,o,s,l,u){var f=this.group,c=this._data,h=this._progressEls,v=[],d=e.get(["pointer","show"]),p=e.getModel("progress"),g=p.get("show"),y=e.getData(),m=y.mapDimension("value"),w=+e.get("min"),_=+e.get("max"),B=[w,_],C=[o,s];function S(b,I){var F=y.getItemModel(b),E=F.getModel("pointer"),D=et(E.get("width"),A.r),Q=et(E.get("length"),A.r),M=e.get(["pointer","icon"]),R=E.get("offsetCenter"),P=et(R[0],A.r),O=et(R[1],A.r),G=E.get("keepAspect"),X;return M?X=Te(M,P-D/2,O-Q,D,Q,null,G):X=new U7({shape:{angle:-Math.PI/2,width:D,r:Q,x:P,y:O}}),X.rotation=-(I+Math.PI/2),X.x=A.cx,X.y=A.cy,X}function x(b,I){var F=p.get("roundCap"),E=F?Wv:Cr,D=p.get("overlap"),Q=D?p.get("width"):u/y.count(),M=D?A.r-Q:A.r-(b+1)*Q,R=D?A.r:A.r-b*Q,P=new E({shape:{startAngle:o,endAngle:I,cx:A.cx,cy:A.cy,clockwise:l,r0:M,r:R}});return D&&(P.z2=_-y.get(m,b)%_),P}(g||d)&&(y.diff(c).add(function(b){var I=y.get(m,b);if(d){var F=S(b,o);ue(F,{rotation:-((isNaN(+I)?C[0]:$t(I,B,C,!0))+Math.PI/2)},e),f.add(F),y.setItemGraphicEl(b,F)}if(g){var E=x(b,o),D=p.get("clip");ue(E,{shape:{endAngle:$t(I,B,C,D)}},e),f.add(E),x0(e.seriesIndex,y.dataType,b,E),v[b]=E}}).update(function(b,I){var F=y.get(m,b);if(d){var E=c.getItemGraphicEl(I),D=E?E.rotation:o,Q=S(b,D);Q.rotation=D,zt(Q,{rotation:-((isNaN(+F)?C[0]:$t(F,B,C,!0))+Math.PI/2)},e),f.add(Q),y.setItemGraphicEl(b,Q)}if(g){var M=h[I],R=M?M.shape.endAngle:o,P=x(b,R),O=p.get("clip");zt(P,{shape:{endAngle:$t(F,B,C,O)}},e),f.add(P),x0(e.seriesIndex,y.dataType,b,P),v[b]=P}}).execute(),y.each(function(b){var I=y.getItemModel(b),F=I.getModel("emphasis"),E=F.get("focus"),D=F.get("blurScope"),Q=F.get("disabled");if(d){var M=y.getItemGraphicEl(b),R=y.getItemVisual(b,"style"),P=R.fill;if(M instanceof Ge){var O=M.style;M.useStyle(V({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},R))}else M.useStyle(R),M.type!=="pointer"&&M.setColor(P);M.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),M.style.fill==="auto"&&M.setStyle("fill",i($t(y.get(m,b),B,[0,1],!0))),M.z2EmphasisLift=0,$e(M,I),ye(M,E,D,Q)}if(g){var G=v[b];G.useStyle(y.getItemVisual(b,"style")),G.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,$e(G,I),ye(G,E,D,Q)}}),this._progressEls=v)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var A=a.get("size"),o=a.get("icon"),s=a.get("offsetCenter"),l=a.get("keepAspect"),u=Te(o,n.cx-A/2+et(s[0],n.r),n.cy-A/2+et(s[1],n.r),A,A,null,l);u.z2=a.get("showAbove")?1:0,u.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,A){var o=this,s=e.getData(),l=s.mapDimension("value"),u=+e.get("min"),f=+e.get("max"),c=new _t,h=[],v=[],d=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);s.diff(this._data).add(function(g){h[g]=new Gt({silent:!0}),v[g]=new Gt({silent:!0})}).update(function(g,y){h[g]=o._titleEls[y],v[g]=o._detailEls[y]}).execute(),s.each(function(g){var y=s.getItemModel(g),m=s.get(l,g),w=new _t,_=i($t(m,[u,f],[0,1],!0)),B=y.getModel("title");if(B.get("show")){var C=B.get("offsetCenter"),S=A.cx+et(C[0],A.r),x=A.cy+et(C[1],A.r),b=h[g];b.attr({z2:p?0:2,style:oe(B,{x:S,y:x,text:s.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:_})}),w.add(b)}var I=y.getModel("detail");if(I.get("show")){var F=I.get("offsetCenter"),E=A.cx+et(F[0],A.r),D=A.cy+et(F[1],A.r),Q=et(I.get("width"),A.r),M=et(I.get("height"),A.r),R=e.get(["progress","show"])?s.getItemVisual(g,"style").fill:_,b=v[g],P=I.get("formatter");b.attr({z2:p?0:2,style:oe(I,{x:E,y:D,text:Jc(m,P),width:isNaN(Q)?null:Q,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:R})}),VM(b,{normal:I},m,function(G){return Jc(G,P)}),d&&GM(b,g,s,e,{getFormattedLabel:function(G,X,J,At,lt,wt){return Jc(wt?wt.interpolatedValue:m,P)}}),w.add(b)}c.add(w)}),this.group.add(c),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(jt),H7=function(r){H(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 ll(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}(se);function O7(r){r.registerChartView(R7),r.registerSeriesModel(H7)}var k7=["itemStyle","opacity"],N7=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=a,A=new xr,o=new Gt;return i.setTextContent(o),a.setTextGuideLine(A),a.updateData(e,n,!0),a}return t.prototype.updateData=function(e,n,a){var i=this,A=e.hostModel,o=e.getItemModel(n),s=e.getItemLayout(n),l=o.getModel("emphasis"),u=o.get(k7);u=u??1,a||Rn(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:s.points}),i.style.opacity=0,ue(i,{style:{opacity:u}},A,n)):zt(i,{style:{opacity:u},shape:{points:s.points}},A,n),$e(i,o),this._updateLabel(e,n),ye(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,n){var a=this,i=this.getTextGuideLine(),A=a.getTextContent(),o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=l.label,f=e.getItemVisual(n,"style"),c=f.fill;Je(A,He(s),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:e.getName(n)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}}),a.setTextConfig({local:!0,inside:!!u.inside,insideStroke:c,outsideFill:c});var h=u.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Tt(h[0][0],h[0][1]):null},zt(A,{style:{x:u.x,y:u.y}},o,n),A.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),O_(a,k_(s),{stroke:c})},t}(Sr),V7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this._data,o=this.group;i.diff(A).add(function(s){var l=new N7(i,s);i.setItemGraphicEl(s,l),o.add(l)}).update(function(s,l){var u=A.getItemGraphicEl(l);u.updateData(i,s),o.add(u),i.setItemGraphicEl(s,u)}).remove(function(s){var l=A.getItemGraphicEl(s);nf(l,e,s)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(jt),G7=function(r){H(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){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Xf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return ll(this,{coordDimensions:["value"],encodeDefaulter:xt(g_,this)})},t.prototype._defaultLabelLine=function(e){co(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),a=r.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),A=n.getSum(i);return a.percent=A?+(n.get(i,e)/A*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(se);function K7(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function z7(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(s){return s}),a=[],i=t==="ascending",A=0,o=r.count();Ao$)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Uy(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Uy(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var u$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Ft(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var a=e.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],a=Jt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);T(a,function(i){e.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Rt),f$=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o.axisIndex=A,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(On);function Fo(r,t,e,n,a,i){r=r||0;var A=e[1]-e[0];if(a!=null&&(a=Xo(a,[0,A])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var o=Math.abs(t[1]-t[0]);o=Xo(o,[0,A]),a=i=Xo(o,[a,i]),n=0}t[0]=Xo(t[0],e),t[1]=Xo(t[1],e);var s=Py(t,n);t[n]+=r;var l=a||0,u=e.slice();s.sign<0?u[0]+=l:u[1]-=l,t[n]=Xo(t[n],u);var f;return f=Py(t,n),a!=null&&(f.sign!==s.sign||f.spani&&(t[1-n]=t[n]+f.sign*i),t}function Py(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Xo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Ry=T,dR=Math.min,pR=Math.max,xI=Math.floor,c$=Math.ceil,bI=me,h$=Math.PI,v$=function(){function r(t,e,n){this.type="parallel",this._axesMap=ft(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=t.dimensions,i=t.parallelAxisIndex;Ry(a,function(A,o){var s=i[o],l=e.getComponent("parallelAxis",s),u=this._axesMap.set(A,new f$(A,cp(l),[0,0],l.get("type"),s)),f=u.type==="category";u.onBand=f&&l.get("boundaryGap"),u.inverse=l.get("inverse"),l.axis=u,u.model=l,u.coordinateSystem=l.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,a=e.layoutBase,i=e.pixelDimIndex,A=t[1-i],o=t[i];return A>=n&&A<=n+e.axisLength&&o>=a&&o<=a+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var a=n.getData();Ry(this.dimensions,function(i){var A=this._axesMap.get(i);A.scale.unionExtentFromData(a,a.mapDimension(i)),Os(A.scale,A.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=Qe(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),A=i==="horizontal"?0:1,o=e[a[A]],s=[0,o],l=this.dimensions.length,u=qc(t.get("axisExpandWidth"),s),f=qc(t.get("axisExpandCount")||0,[0,l]),c=t.get("axisExpandable")&&l>3&&l>f&&f>1&&u>0&&o>0,h=t.get("axisExpandWindow"),v;if(h)v=qc(h[1]-h[0],s),h[1]=h[0]+v;else{v=qc(u*(f-1),s);var d=t.get("axisExpandCenter")||xI(l/2);h=[u*d-v/2],h[1]=h[0]+v}var p=(o-v)/(l-f);p<3&&(p=0);var g=[xI(bI(h[0]/u,1))+1,c$(bI(h[1]/u,1))-1],y=p/u*h[0];return{layout:i,pixelDimIndex:A,layoutBase:e[n[A]],layoutLength:o,axisBase:e[n[1-A]],axisLength:e[a[1-A]],axisExpandable:c,axisExpandWidth:u,axisCollapseWidth:p,axisExpandWindow:h,axisCount:l,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;e.each(function(A){var o=[0,a.axisLength],s=A.inverse?1:0;A.setExtent(o[s],o[1-s])}),Ry(n,function(A,o){var s=(a.axisExpandable?p$:d$)(o,a),l={horizontal:{x:s.position,y:a.axisLength},vertical:{x:0,y:s.position}},u={horizontal:h$/2,vertical:0},f=[l[i].x+t.x,l[i].y+t.y],c=u[i],h=Wr();Co(h,h,c),va(h,h,f),this._axesLayout[A]={position:f,rotation:c,transform:h,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,A=this.dimensions,o=[],s=[];T(A,function(p){o.push(t.mapDimension(p)),s.push(i.get(p).model)});for(var l=this.hasAxisBrushed(),u=n;ui*(1-f[0])?(l="jump",s=o-i*(1-f[2])):(s=o-i*f[1])>=0&&(s=o-i*(1-f[1]))<=0&&(s=0),s*=e.axisExpandWidth/u,s?Fo(s,a,A,"all"):l="none";else{var h=a[1]-a[0],v=A[1]*o/h;a=[pR(0,v-h/2)],a[1]=dR(A[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:l}},r}();function qc(r,t){return dR(pR(r,t[0]),t[1])}function d$(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function p$(r,t){var e=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,A=t.winInnerIndices,o,s=i,l=!1,u;return r=0;a--)fn(n[a])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var i=0,A=n.length;iB$}function _R(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function CR(r,t,e,n){var a=new _t;return a.add(new Nt({name:"main",style:hC(e),silent:!0,draggable:!0,cursor:"move",drift:xt(FI,r,t,a,["n","s","w","e"]),ondragend:xt(mo,t,{isEnd:!0})})),T(n,function(i){a.add(new Nt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xt(FI,r,t,a,i),ondragend:xt(mo,t,{isEnd:!0})}))}),a}function SR(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Vs(a,_$),A=e[0][0],o=e[1][0],s=A-a/2,l=o-a/2,u=e[0][1],f=e[1][1],c=u-i+a/2,h=f-i+a/2,v=u-A,d=f-o,p=v+a,g=d+a;Ta(r,t,"main",A,o,v,d),n.transformable&&(Ta(r,t,"w",s,l,i,g),Ta(r,t,"e",c,l,i,g),Ta(r,t,"n",s,l,p,i),Ta(r,t,"s",s,h,p,i),Ta(r,t,"nw",s,l,i,i),Ta(r,t,"ne",c,l,i,i),Ta(r,t,"sw",s,h,i,i),Ta(r,t,"se",c,h,i,i))}function gw(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(hC(e)),a.attr({silent:!n,cursor:n?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var A=t.childOfName(i.join("")),o=i.length===1?yw(r,i[0]):I$(r,i);A&&A.attr({silent:!n,invisible:!n,cursor:n?S$[o]+"-resize":null})})}function Ta(r,t,e,n,a,i,A){var o=t.childOfName(e);o&&o.setShape(E$(vC(r,t,[[n,a],[n+i,a+A]])))}function hC(r){return gt({strokeNoScale:!0},r.brushStyle)}function xR(r,t,e,n){var a=[wf(r,e),wf(t,n)],i=[Vs(r,e),Vs(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function T$(r){return ao(r.group)}function yw(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=$d(e[t],T$(r));return n[a]}function I$(r,t){var e=[yw(r,t[0]),yw(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function FI(r,t,e,n,a,i){var A=e.__brushOption,o=r.toRectRange(A.range),s=bR(t,a,i);T(n,function(l){var u=C$[l];o[u[0]][u[1]]+=s[u[0]]}),A.range=r.fromRectRange(xR(o[0][0],o[1][0],o[0][1],o[1][1])),uC(t,e),mo(t,{isEnd:!1})}function F$(r,t,e,n){var a=t.__brushOption.range,i=bR(r,e,n);T(a,function(A){A[0]+=i[0],A[1]+=i[1]}),uC(r,t),mo(r,{isEnd:!1})}function bR(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function vC(r,t,e){var n=BR(r,t);return n&&n!==yo?n.clipPath(e,r._transform):mt(e)}function E$(r){var t=wf(r[0][0],r[1][0]),e=wf(r[0][1],r[1][1]),n=Vs(r[0][0],r[1][0]),a=Vs(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function D$(r,t,e){if(!(!r._brushType||L$(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=cC(r,t,e);if(!r._dragging)for(var A=0;An.getWidth()||e<0||e>n.getHeight()}var yp={lineX:QI(0),lineY:QI(1),rect:{createCover:function(r,t){function e(n){return n}return CR({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=_R(r);return xR(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){SR(r,t,e,n)},updateCommon:gw,contain:ww},polygon:{createCover:function(r,t){var e=new _t;return e.add(new xr({name:"main",style:hC(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Sr({name:"main",draggable:!0,drift:xt(F$,r,t),ondragend:xt(mo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:vC(r,t,e)})},updateCommon:gw,contain:ww}};function QI(r){return{createCover:function(t,e){return CR({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=_R(t),n=wf(e[0][r],e[1][r]),a=Vs(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,A=BR(t,e);if(A!==yo&&A.getLinearBrushOtherExtent)i=A.getLinearBrushOtherExtent(r);else{var o=t._zr;i=[0,[o.getWidth(),o.getHeight()][1-r]]}var s=[n,i];r&&s.reverse(),SR(t,e,s,a)},updateCommon:gw,contain:ww}}function IR(r){return r=dC(r),function(t){return OM(t,r)}}function FR(r,t){return r=dC(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function ER(r,t,e){var n=dC(r);return function(a,i){return n.contain(i[0],i[1])&&!vp(a,t,e)}}function dC(r){return Et.create(r)}var M$=["axisLine","axisTickLabel","axisName"],U$=function(r){H(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){r.prototype.init.apply(this,arguments),(this._brushController=new lC(n.getZr())).on("brush",it(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!P$(e,n,i)){this.axisModel=e,this.api=a,this.group.removeAll();var A=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var o=H$(e,n),s=o.coordinateSystem,l=e.getAreaSelectStyle(),u=l.width,f=e.axis.dim,c=s.getAxisLayout(f),h=V({strokeContainThreshold:u},c),v=new wr(e,h);T(M$,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,l,e,o,u,a),Pf(A,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,a,i,A,o){var s=a.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,Math.abs(l)*.1),f=Et.create({x:s[0],y:-A/2,width:l,height:A});f.x-=u,f.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:IR(f),isTargetByCursor:ER(f,o,i),getLinearBrushOtherExtent:FR(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(R$(a))},t.prototype._onBrush=function(e){var n=e.areas,a=this.axisModel,i=a.axis,A=Y(n,function(o){return[i.coordToData(o.range[0],!0),i.coordToData(o.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:A})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(de);function P$(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function R$(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function H$(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var O$={type:"axisAreaSelect",event:"axisAreaSelected"};function k$(r){r.registerAction(O$,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var N$={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function DR(r){r.registerComponentView(s$),r.registerComponentModel(u$),r.registerCoordinateSystem("parallel",y$),r.registerPreprocessor(a$),r.registerComponentModel(dw),r.registerComponentView(U$),Ns(r,"parallel",dw,N$),k$(r)}function V$(r){Lt(DR),r.registerChartView($7),r.registerSeriesModel(j7),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,n$)}var G$=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),K$=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new G$},t.prototype.buildPath=function(e,n){var a=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+a,n.y2),e.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(e.lineTo(n.x2,n.y2+a),e.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),e.closePath()},t.prototype.highlight=function(){Wa(this)},t.prototype.downplay=function(){Xa(this)},t}(Mt),z$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,n,a){var i=this,A=e.getGraph(),o=this.group,s=e.layoutInfo,l=s.width,u=s.height,f=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=s.x,o.y=s.y,A.eachEdge(function(v){var d=new K$,p=Ct(d);p.dataIndex=v.dataIndex,p.seriesIndex=e.seriesIndex,p.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),w=v.node1.getLayout(),_=v.node1.getModel(),B=_.get("localX"),C=_.get("localY"),S=v.node2.getLayout(),x=v.node2.getModel(),b=x.get("localX"),I=x.get("localY"),F=v.getLayout(),E,D,Q,M,R,P,O,G;d.shape.extent=Math.max(1,F.dy),d.shape.orient=h,h==="vertical"?(E=(B!=null?B*l:w.x)+F.sy,D=(C!=null?C*u:w.y)+w.dy,Q=(b!=null?b*l:S.x)+F.ty,M=I!=null?I*u:S.y,R=E,P=D*(1-m)+M*m,O=Q,G=D*m+M*(1-m)):(E=(B!=null?B*l:w.x)+w.dx,D=(C!=null?C*u:w.y)+F.sy,Q=b!=null?b*l:S.x,M=(I!=null?I*u:S.y)+F.ty,R=E*(1-m)+Q*m,P=D,O=E*m+Q*(1-m),G=M),d.setShape({x1:E,y1:D,x2:Q,y2:M,cpx1:R,cpy1:P,cpx2:O,cpy2:G}),d.useStyle(y.getItemStyle()),LI(d.style,h,v);var X=""+g.get("value"),J=He(g,"edgeLabel");Je(d,J,{labelFetcher:{getFormattedLabel:function(wt,Bt,N,z,$,q){return e.getFormattedLabel(wt,Bt,"edge",z,ua($,J.normal&&J.normal.get("formatter"),X),q)}},labelDataIndex:v.dataIndex,defaultText:X}),d.setTextConfig({position:"inside"});var At=g.getModel("emphasis");$e(d,g,"lineStyle",function(wt){var Bt=wt.getItemStyle();return LI(Bt,h,v),Bt}),o.add(d),c.setItemGraphicEl(v.dataIndex,d);var lt=At.get("focus");ye(d,lt==="adjacency"?v.getAdjacentDataIndices():lt==="trajectory"?v.getTrajectoryDataIndices():lt,At.get("blurScope"),At.get("disabled"))}),A.eachNode(function(v){var d=v.getLayout(),p=v.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),w=p.get(["itemStyle","borderRadius"])||0,_=new Nt({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:w},style:p.getModel("itemStyle").getItemStyle(),z2:10});Je(_,He(p),{labelFetcher:{getFormattedLabel:function(C,S){return e.getFormattedLabel(C,S,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),_.disableLabelAnimation=!0,_.setStyle("fill",v.getVisual("color")),_.setStyle("decal",v.getVisual("style").decal),$e(_,p),o.add(_),f.setItemGraphicEl(v.dataIndex,_),Ct(_).dataType="node";var B=m.get("focus");ye(_,B==="adjacency"?v.getAdjacentDataIndices():B==="trajectory"?v.getTrajectoryDataIndices():B,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(v,d){var p=f.getItemModel(d);p.get("draggable")&&(v.drift=function(g,y){i._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&e.isAnimationEnabled()&&o.setClipPath(W$(o.getBoundingRect(),e,function(){o.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(jt);function LI(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),a=e.node2.getVisual("color");nt(n)&&nt(a)&&(r.fill=new Uf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function W$(r,t,e){var n=new Nt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ue(n,{shape:{width:r.width+20}},t,e),n}var X$=function(r){H(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){var a=e.edges||e.links,i=e.data||e.nodes,A=e.levels;this.levelModels=[];for(var o=this.levelModels,s=0;s=0&&(o[A[s].depth]=new Yt(A[s],this,n));if(i&&a){var l=hR(i,a,this,!0,u);return l.data}function u(f,c){f.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getData().getItemLayout(v);if(p){var g=p.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getGraph().getEdgeByIndex(v),g=p.node1.getLayout();if(g){var y=g.depth,m=d.levelModels[y];m&&(h.parentModel=m)}return h})}},t.prototype.setNodePosition=function(e,n){var a=this.option.data||this.option.nodes,i=a[e];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var A=this.getDataParams(e,a),o=A.data,s=A.value,l=o.source+" -- "+o.target;return Oe("nameValue",{name:l,value:s,noValue:i(s)})}else{var u=this.getGraph().getNodeByIndex(e),f=u.getLayout().value,c=this.getDataParams(e,a).data.name;return Oe("nameValue",{name:c!=null?c+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(e),A=i.getLayout().value;a.value=A}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(se);function Y$(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=Z$(e,t);e.layoutInfo=i;var A=i.width,o=i.height,s=e.getGraph(),l=s.nodes,u=s.edges;J$(l);var f=Jt(l,function(d){return d.getLayout().value===0}),c=f.length!==0?0:e.get("layoutIterations"),h=e.get("orient"),v=e.get("nodeAlign");$$(l,u,n,a,A,o,c,h,v)})}function Z$(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function $$(r,t,e,n,a,i,A,o,s){q$(r,t,e,a,i,o,s),rJ(r,t,i,a,n,A,o),fJ(r,o)}function J$(r){T(r,function(t){var e=ki(t.outEdges,qv),n=ki(t.inEdges,qv),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function q$(r,t,e,n,a,i,A){for(var o=[],s=[],l=[],u=[],f=0,c=0;c=0;g&&p.depth>h&&(h=p.depth),d.setLayout({depth:g?p.depth:f},!0),i==="vertical"?d.setLayout({dy:e},!0):d.setLayout({dx:e},!0);for(var y=0;yf-1?h:f-1;A&&A!=="left"&&j$(r,A,i,C);var S=i==="vertical"?(a-e)/C:(n-e)/C;eJ(r,S,i)}function QR(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function j$(r,t,e,n){if(t==="right"){for(var a=[],i=r,A=0;i.length;){for(var o=0;o0;i--)s*=.99,iJ(o,s,A),Hy(o,a,e,n,A),uJ(o,s,A),Hy(o,a,e,n,A)}function nJ(r,t){var e=[],n=t==="vertical"?"y":"x",a=B0(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,A){return i-A}),T(a.keys,function(i){e.push(a.buckets.get(i))}),e}function aJ(r,t,e,n,a,i){var A=1/0;T(r,function(o){var s=o.length,l=0;T(o,function(f){l+=f.getLayout().value});var u=i==="vertical"?(n-(s-1)*a)/l:(e-(s-1)*a)/l;u0&&(o=s.getLayout()[i]+l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]+s.getLayout()[c]+t;var v=a==="vertical"?n:e;if(l=u-t-v,l>0){o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(var h=f-2;h>=0;--h)s=A[h],l=s.getLayout()[i]+s.getLayout()[c]+t-u,l>0&&(o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]}})}function iJ(r,t,e){T(r.slice().reverse(),function(n){T(n,function(a){if(a.outEdges.length){var i=ki(a.outEdges,AJ,e)/ki(a.outEdges,qv);if(isNaN(i)){var A=a.outEdges.length;i=A?ki(a.outEdges,oJ,e)/A:0}if(e==="vertical"){var o=a.getLayout().x+(i-$i(a,e))*t;a.setLayout({x:o},!0)}else{var s=a.getLayout().y+(i-$i(a,e))*t;a.setLayout({y:s},!0)}}})})}function AJ(r,t){return $i(r.node2,t)*r.getValue()}function oJ(r,t){return $i(r.node2,t)}function sJ(r,t){return $i(r.node1,t)*r.getValue()}function lJ(r,t){return $i(r.node1,t)}function $i(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function qv(r){return r.getValue()}function ki(r,t,e){for(var n=0,a=r.length,i=-1;++iA&&(A=s)}),T(n,function(o){var s=new Re({type:"color",mappingMethod:"linear",dataExtent:[i,A],visual:t.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}a.length&&T(a,function(o){var s=o.getModel().get("lineStyle");o.setVisual("style",s)})})}function hJ(r){r.registerChartView(z$),r.registerSeriesModel(X$),r.registerLayout(Y$),r.registerVisual(cJ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var LR=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),A=a.get("type"),o=i.get("type"),s;A==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),s=!0):o==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u=t.layout==="horizontal"?0:1,f=this._baseAxisDim=l[u],c=l[1-u],h=[a,i],v=h[u].get("type"),d=h[1-u].get("type"),p=t.data;if(p&&s){var g=[];T(p,function(w,_){var B;K(w)?(B=w.slice(),w.unshift(_)):K(w.value)?(B=V({},w),B.value=B.value.slice(),w.value.unshift(_)):B=w,g.push(B)}),t.data=g}var y=this.defaultValueDimensions,m=[{name:f,type:Nv(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:Nv(d),dimsDef:y.slice()}];return ll(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:xt(fU,m,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),MR=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(se);Ie(MR,LR,!0);var vJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this.group,o=this._data;this._data||A.removeAll();var s=e.get("layout")==="horizontal"?1:0;i.diff(o).add(function(l){if(i.hasValue(l)){var u=i.getItemLayout(l),f=MI(u,i,l,s,!0);i.setItemGraphicEl(l,f),A.add(f)}}).update(function(l,u){var f=o.getItemGraphicEl(u);if(!i.hasValue(l)){A.remove(f);return}var c=i.getItemLayout(l);f?(Rn(f),UR(c,f,i,l)):f=MI(c,i,l,s),A.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&A.remove(u)}).execute(),this._data=i},t.prototype.remove=function(e){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(jt),dJ=function(){function r(){}return r}(),pJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new dJ},t.prototype.buildPath=function(e,n){var a=n.points,i=0;for(e.moveTo(a[i][0],a[i][1]),i++;i<4;i++)e.lineTo(a[i][0],a[i][1]);for(e.closePath();id){var w=[g,m];n.push(w)}}}return{boxData:e,outliers:n}}var CJ={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==lr){var n="";Xt(n)}var a=_J(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function SJ(r){r.registerSeriesModel(MR),r.registerChartView(vJ),r.registerLayout(yJ),r.registerTransform(CJ)}var xJ=["color","borderColor"],bJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){rA(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){var n=e.getData(),a=this._data,i=this.group,A=n.getLayout("isSimpleBox"),o=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||i.removeAll(),n.diff(a).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u);if(o&&UI(l,f))return;var c=Oy(f,u,!0);ue(c,{shape:{points:f.ends}},e,u),ky(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}}).update(function(u,f){var c=a.getItemGraphicEl(f);if(!n.hasValue(u)){i.remove(c);return}var h=n.getItemLayout(u);if(o&&UI(l,h)){i.remove(c);return}c?(zt(c,{shape:{points:h.ends}},e,u),Rn(c)):c=Oy(h),ky(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}).remove(function(u){var f=a.getItemGraphicEl(u);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),PI(e,this.group);var n=e.get("clip",!0)?Kf(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),A;(A=e.next())!=null;){var o=a.getItemLayout(A),s=Oy(o);ky(s,a,A,i),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},t.prototype._incrementalRenderLarge=function(e,n){PI(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(jt),TJ=function(){function r(){}return r}(),IJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new TJ},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Mt);function Oy(r,t,e){var n=r.ends;return new IJ({shape:{points:e?FJ(n,r):n},z2:100})}function UI(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(xJ);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var PR=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(se);Ie(PR,LR,!0);function DJ(r){!r||!K(r.series)||T(r.series,function(t){yt(t)&&t.type==="k"&&(t.type="candlestick")})}var QJ=["itemStyle","borderColor"],LJ=["itemStyle","borderColor0"],MJ=["itemStyle","borderColorDoji"],UJ=["itemStyle","color"],PJ=["itemStyle","color0"],RJ={seriesType:"candlestick",plan:il(),performRawSeries:!0,reset:function(r,t){function e(i,A){return A.get(i>0?UJ:PJ)}function n(i,A){return A.get(i===0?MJ:i>0?QJ:LJ)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,A){for(var o;(o=i.next())!=null;){var s=A.getItemModel(o),l=A.getItemLayout(o).sign,u=s.getItemStyle();u.fill=e(l,s),u.stroke=n(l,s)||u.fill;var f=A.ensureUniqueItemVisual(o,"style");V(f,u)}}}}}},HJ={seriesType:"candlestick",plan:il(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=OJ(r,e),a=0,i=1,A=["x","y"],o=e.getDimensionIndex(e.mapDimension(A[a])),s=Y(e.mapDimensionsAll(A[i]),e.getDimensionIndex,e),l=s[0],u=s[1],f=s[2],c=s[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),o<0||s.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(d,p){for(var g,y=p.getStore();(g=d.next())!=null;){var m=y.get(o,g),w=y.get(l,g),_=y.get(u,g),B=y.get(f,g),C=y.get(c,g),S=Math.min(w,_),x=Math.max(w,_),b=R(S,m),I=R(x,m),F=R(B,m),E=R(C,m),D=[];P(D,I,0),P(D,b,1),D.push(G(E),G(I),G(F),G(b));var Q=p.getItemModel(g),M=!!Q.get(["itemStyle","borderColorDoji"]);p.setItemLayout(g,{sign:RI(y,g,w,_,u,M),initBaseline:w>_?I[i]:b[i],ends:D,brushRect:O(B,C,m)})}function R(X,J){var At=[];return At[a]=J,At[i]=X,isNaN(J)||isNaN(X)?[NaN,NaN]:t.dataToPoint(At)}function P(X,J,At){var lt=J.slice(),wt=J.slice();lt[a]=Wh(lt[a]+n/2,1,!1),wt[a]=Wh(wt[a]-n/2,1,!0),At?X.push(lt,wt):X.push(wt,lt)}function O(X,J,At){var lt=R(X,At),wt=R(J,At);return lt[a]-=n/2,wt[a]-=n/2,{x:lt[0],y:lt[1],width:n,height:wt[1]-lt[1]}}function G(X){return X[a]=Wh(X[a],1),X}}function v(d,p){for(var g=Aa(d.count*4),y=0,m,w=[],_=[],B,C=p.getStore(),S=!!r.get(["itemStyle","borderColorDoji"]);(B=d.next())!=null;){var x=C.get(o,B),b=C.get(l,B),I=C.get(u,B),F=C.get(f,B),E=C.get(c,B);if(isNaN(x)||isNaN(F)||isNaN(E)){g[y++]=NaN,y+=3;continue}g[y++]=RI(C,B,b,I,u,S),w[a]=x,w[i]=F,m=t.dataToPoint(w,null,_),g[y++]=m?m[0]:NaN,g[y++]=m?m[1]:NaN,w[i]=E,m=t.dataToPoint(w,null,_),g[y++]=m?m[1]:NaN}p.setLayout("largePoints",g)}}};function RI(r,t,e,n,a,i){var A;return e>n?A=-1:e0?r.get(a,t-1)<=n?1:-1:1,A}function OJ(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=et(St(r.get("barMaxWidth"),a),a),A=et(St(r.get("barMinWidth"),1),a),o=r.get("barWidth");return o!=null?et(o,a):Math.max(Math.min(a/2,i),A)}function kJ(r){r.registerChartView(bJ),r.registerSeriesModel(PR),r.registerPreprocessor(DJ),r.registerVisual(RJ),r.registerLayout(HJ)}function HI(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var NJ=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=new Vf(e,n),A=new _t;return a.add(i),a.add(A),a.updateData(e,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,a=e.color,i=e.rippleNumber,A=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/u*1e3),o!==this._period||s!==this._loop||l!==this._roundTrip){i.stopAnimation();var c=void 0;vt(f)?c=f(a):c=f,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,s,l)}this._period=o,this._loop=s,this._roundTrip=l}},t.prototype._animateSymbol=function(e,n,a,i,A){if(n>0){e.__t=0;var o=this,s=e.animate("",i).when(A?n*2:n,{__t:A?2:1}).delay(a).during(function(){o._updateSymbolPosition(e)});i||s.done(function(){o.remove(e)}),s.start()}},t.prototype._getLineLength=function(e){return xi(e.__p1,e.__cp1)+xi(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,A=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],s=o.slice(),l=Ne,u=A0;o[0]=l(n[0],i[0],a[0],A),o[1]=l(n[1],i[1],a[1],A);var f=e.__t<1?u(n[0],i[0],a[0],A):u(a[0],i[0],n[0],1-A),c=e.__t<1?u(n[1],i[1],a[1],A):u(a[1],i[1],n[1],1-A);e.rotation=-Math.atan2(c,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[s]<=n);s--);s=Math.min(s,A-2)}else{for(s=o;sn);s++);s=Math.min(s-1,A-2)}var u=(n-i[s])/(i[s+1]-i[s]),f=a[s],c=a[s+1];e.x=f[0]*(1-u)+u*c[0],e.y=f[1]*(1-u)+u*c[1];var h=e.__t<1?c[0]-f[0]:f[0]-c[0],v=e.__t<1?c[1]-f[1]:f[1]-c[1];e.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=n,e.ignore=!1}},t}(RR),WJ=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),XJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new WJ},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,A;if(n.polyline)for(A=this._off;A0){e.moveTo(a[A++],a[A++]);for(var s=1;s0){var h=(l+f)/2-(u-c)*i,v=(u+c)/2-(f-l)*i;e.quadraticCurveTo(h,v,f,c)}else e.lineTo(f,c)}this.incremental&&(this._off=A,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,A=a.curveness,o=this.style.lineWidth;if(a.polyline)for(var s=0,l=0;l0)for(var f=i[l++],c=i[l++],h=1;h0){var p=(f+v)/2-(c-d)*A,g=(c+d)/2-(v-f)*A;if(fM(f,c,p,g,v,d,o,e,n))return s}else if(Bi(f,c,v,d,o,e,n))return s;s++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.segs,i=1/0,A=1/0,o=-1/0,s=-1/0,l=0;l0&&(A.dataIndex=s+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),OR={seriesType:"lines",plan:il(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var A=[];if(n){var o=void 0,s=a.end-a.start;if(e){for(var l=0,u=a.start;u0&&(u||l.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),A.updateData(i);var f=e.get("clip",!0)&&Kf(e.coordinateSystem,!1,e);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateLineDraw(i,e);A.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,a){var i=e.getData(),A=e.pipelineContext;if(!this._finished||A.large||A.progressiveRender)return{update:!0};var o=OR.reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),A=!!n.get("polyline"),o=n.pipelineContext,s=o.large;return(!a||i!==this._hasEffet||A!==this._isPolyline||s!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=s?new YJ:new sC(A?i?zJ:HR:i?RR:oC),this._hasEffet=i,this._isPolyline=A,this._isLargeDraw=s),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}(jt),$J=typeof Uint32Array>"u"?Array:Uint32Array,JJ=typeof Float64Array>"u"?Array:Float64Array;function OI(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),kB([a,e[0],e[1]])}))}var qJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],OI(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(OI(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=gv(this._flatCoords,n.flatCoords),this._flatCoordsOffset=gv(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],A=0;A ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(se);function jc(r){return r instanceof Array||(r=[r,r]),r}var jJ={seriesType:"lines",reset:function(r){var t=jc(r.get("symbol")),e=jc(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function a(i,A){var o=i.getItemModel(A),s=jc(o.getShallow("symbol",!0)),l=jc(o.getShallow("symbolSize",!0));s[0]&&i.setItemVisual(A,"fromSymbol",s[0]),s[1]&&i.setItemVisual(A,"toSymbol",s[1]),l[0]&&i.setItemVisual(A,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(A,"toSymbolSize",l[1])}return{dataEach:n.hasItemOption?a:null}}};function tq(r){r.registerChartView(ZJ),r.registerSeriesModel(qJ),r.registerLayout(OR),r.registerVisual(jJ)}var eq=256,rq=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=zi.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,a,i,A){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,f=this.canvas,c=f.getContext("2d"),h=t.length;f.width=e,f.height=n;for(var v=0;v0){var F=A(m)?s:l;m>0&&(m=m*b+S),_[B++]=F[I],_[B++]=F[I+1],_[B++]=F[I+2],_[B++]=F[I+3]*m*256}else B+=4}return c.putImageData(w,0,0),f},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=zi.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,a=n[e]||(n[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],A=0,o=0;o<256;o++)t[e](o/255,!0,i),a[A++]=i[0],a[A++]=i[1],a[A++]=i[2],a[A++]=i[3];return a},r}();function nq(r,t,e){var n=r[1]-r[0];t=Y(t,function(A){return{interval:[(A.interval[0]-r[0])/n,(A.interval[1]-r[0])/n]}});var a=t.length,i=0;return function(A){var o;for(o=i;o=0;o--){var s=t[o].interval;if(s[0]<=A&&A<=s[1]){i=o;break}}return o>=0&&o=t[0]&&n<=t[1]}}function kI(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var iq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i;n.eachComponent("visualMap",function(o){o.eachTargetSeries(function(s){s===e&&(i=o)})}),this._progressiveEls=null,this.group.removeAll();var A=e.coordinateSystem;A.type==="cartesian2d"||A.type==="calendar"?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):kI(A)&&this._renderOnGeo(A,e,i,a)},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,a,i){var A=n.coordinateSystem;A&&(kI(A)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){rA(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,a,i,A){var o=e.coordinateSystem,s=To(o,"cartesian2d"),l,u,f,c;if(s){var h=o.getAxis("x"),v=o.getAxis("y");l=h.getBandWidth()+.5,u=v.getBandWidth()+.5,f=h.scale.getExtent(),c=v.scale.getExtent()}for(var d=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),w=e.get(["itemStyle","borderRadius"]),_=He(e),B=e.getModel("emphasis"),C=B.get("focus"),S=B.get("blurScope"),x=B.get("disabled"),b=s?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],I=a;If[1]||Qc[1])continue;var M=o.dataToPoint([D,Q]);F=new Nt({shape:{x:M[0]-l/2,y:M[1]-u/2,width:l,height:u},style:E})}else{if(isNaN(p.get(b[1],I)))continue;F=new Nt({z2:1,shape:o.dataToRect([p.get(b[0],I)]).contentShape,style:E})}if(p.hasItemOption){var R=p.getItemModel(I),P=R.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=R.getModel(["blur","itemStyle"]).getItemStyle(),m=R.getModel(["select","itemStyle"]).getItemStyle(),w=R.get(["itemStyle","borderRadius"]),C=P.get("focus"),S=P.get("blurScope"),x=P.get("disabled"),_=He(R)}F.shape.r=w;var O=e.getRawValue(I),G="-";O&&O[2]!=null&&(G=O[2]+""),Je(F,_,{labelFetcher:e,labelDataIndex:I,defaultOpacity:E.opacity,defaultText:G}),F.ensureState("emphasis").style=g,F.ensureState("blur").style=y,F.ensureState("select").style=m,ye(F,C,S,x),F.incremental=A,A&&(F.states.emphasis.hoverLayer=!0),d.add(F),p.setItemGraphicEl(I,F),this._progressiveEls&&this._progressiveEls.push(F)}},t.prototype._renderOnGeo=function(e,n,a,i){var A=a.targetVisuals.inRange,o=a.targetVisuals.outOfRange,s=n.getData(),l=this._hmLayer||this._hmLayer||new rq;l.blurSize=n.get("blurSize"),l.pointSize=n.get("pointSize"),l.minOpacity=n.get("minOpacity"),l.maxOpacity=n.get("maxOpacity");var u=e.getViewRect().clone(),f=e.getRoamTransform();u.applyTransform(f);var c=Math.max(u.x,0),h=Math.max(u.y,0),v=Math.min(u.width+u.x,i.getWidth()),d=Math.min(u.height+u.y,i.getHeight()),p=v-c,g=d-h,y=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],m=s.mapArray(y,function(C,S,x){var b=e.dataToPoint([C,S]);return b[0]-=c,b[1]-=h,b.push(x),b}),w=a.getExtent(),_=a.type==="visualMap.continuous"?aq(w,a.option.range):nq(w,a.getPieceList(),a.option.selected);l.update(m,p,g,A.color.getNormalizer(),{inRange:A.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var B=new Ge({style:{width:p,height:g,x:c,y:h,image:l.canvas},silent:!0});this.group.add(B)},t.type="heatmap",t}(jt),Aq=function(r){H(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 ri(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Hf.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(se);function oq(r){r.registerChartView(iq),r.registerSeriesModel(Aq)}var sq=["itemStyle","borderWidth"],NI=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Gy=new ei,lq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,A=e.getData(),o=this._data,s=e.coordinateSystem,l=s.getBaseAxis(),u=l.isHorizontal(),f=s.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:u,valueDim:NI[+u],categoryDim:NI[1-+u]};A.diff(o).add(function(v){if(A.hasValue(v)){var d=GI(A,v),p=VI(A,v,d,c),g=KI(A,c,p);A.setItemGraphicEl(v,g),i.add(g),WI(g,c,p)}}).update(function(v,d){var p=o.getItemGraphicEl(d);if(!A.hasValue(v)){i.remove(p);return}var g=GI(A,v),y=VI(A,v,g,c),m=zR(A,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),A.setItemGraphicEl(v,null),p=null),p?pq(p,c,y):p=KI(A,c,y,!0),A.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,i.add(p),WI(p,c,y)}).remove(function(v){var d=o.getItemGraphicEl(v);d&&zI(o,v,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=e.get("clip",!0)?Kf(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=A,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(A){zI(i,Ct(A).dataIndex,e,A)}):a.removeAll()},t.type="pictorialBar",t}(jt);function VI(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),A=e.get("symbolClip"),o=e.get("symbolPosition")||"start",s=e.get("symbolRotate"),l=(s||0)*Math.PI/180||0,u=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),c={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:A,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};uq(e,i,a,n,c),fq(r,t,a,i,A,c.boundingLength,c.pxSign,u,n,c),cq(e,c.symbolScale,l,n,c);var h=c.symbolSize,v=xo(e.get("symbolOffset"),h);return hq(e,h,a,i,A,v,o,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function uq(r,t,e,n,a){var i=n.valueDim,A=r.get("symbolBoundingData"),o=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),s=o.toGlobalCoord(o.dataToCoord(0)),l=1-+(e[i.wh]<=0),u;if(K(A)){var f=[Ky(o,A[0])-s,Ky(o,A[1])-s];f[1]0?1:-1}function Ky(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function fq(r,t,e,n,a,i,A,o,s,l){var u=s.valueDim,f=s.categoryDim,c=Math.abs(e[f.wh]),h=r.getItemVisual(t,"symbolSize"),v;K(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=et(v[f.index],c),v[u.index]=et(v[u.index],n?c:Math.abs(i)),l.symbolSize=v;var d=l.symbolScale=[v[0]/o,v[1]/o];d[u.index]*=(s.isHorizontal?-1:1)*A}function cq(r,t,e,n,a){var i=r.get(sq)||0;i&&(Gy.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Gy.updateTransform(),i/=Gy.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function hq(r,t,e,n,a,i,A,o,s,l,u,f){var c=u.categoryDim,h=u.valueDim,v=f.pxSign,d=Math.max(t[h.index]+o,0),p=d;if(n){var g=Math.abs(s),y=Ve(r.get("symbolMargin"),"15%")+"",m=!1;y.lastIndexOf("!")===y.length-1&&(m=!0,y=y.slice(0,y.length-1));var w=et(y,t[h.index]),_=Math.max(d+w*2,0),B=m?0:w*2,C=JL(n),S=C?n:XI((g+B)/_),x=g-S*d;w=x/2/(m?S:Math.max(S-1,1)),_=d+w*2,B=m?0:w*2,!C&&n!=="fixed"&&(S=l?XI((Math.abs(l)+B)/_):0),p=S*_-B,f.repeatTimes=S,f.symbolMargin=w}var b=v*(p/2),I=f.pathPosition=[];I[c.index]=e[c.wh]/2,I[h.index]=A==="start"?b:A==="end"?s-b:s/2,i&&(I[0]+=i[0],I[1]+=i[1]);var F=f.bundlePosition=[];F[c.index]=e[c.xy],F[h.index]=e[h.xy];var E=f.barRectShape=V({},e);E[h.wh]=v*Math.max(Math.abs(e[h.wh]),Math.abs(I[h.index]+b)),E[c.wh]=e[c.wh];var D=f.clipShape={};D[c.xy]=-e[c.xy],D[c.wh]=u.ecSize[c.wh],D[h.xy]=0,D[h.wh]=e[h.wh]}function kR(r){var t=r.symbolPatternSize,e=Te(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function NR(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,A=e.valueLineWidth,o=e.pathPosition,s=t.valueDim,l=e.repeatTimes||0,u=0,f=i[t.valueDim.index]+A+e.symbolMargin*2;for(pC(r,function(d){d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=l,u0:g<0)&&(y=l-1-d),p[s.index]=f*(y-l/2+.5)+o[s.index],{x:p[0],y:p[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function VR(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Fs(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=kR(e),a.add(i),Fs(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function GR(r,t,e){var n=V({},t.barRectShape),a=r.__pictorialBarRect;a?Fs(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new Nt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function KR(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=V({},e.clipShape),A=t.valueDim,o=e.animationModel,s=e.dataIndex;if(a)zt(a,{shape:i},o,s);else{i[A.wh]=0,a=new Nt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var l={};l[A.wh]=e.clipShape[A.wh],So[n?"updateProps":"initProps"](a,{shape:l},o,s)}}}function GI(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=vq,e.isAnimationEnabled=dq,e}function vq(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function dq(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function KI(r,t,e,n){var a=new _t,i=new _t;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?NR(a,t,e):VR(a,t,e),GR(a,e,n),KR(a,t,e,n),a.__pictorialShapeStr=zR(r,e),a.__pictorialSymbolMeta=e,a}function pq(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;zt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?NR(r,t,e,!0):VR(r,t,e,!0),GR(r,e,!0),KR(r,t,e,!0)}function zI(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];pC(n,function(A){i.push(A)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),T(i,function(A){Xi(A,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function zR(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function pC(r,t,e){T(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Fs(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&So[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function WI(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),A=i.getModel("itemStyle").getItemStyle(),o=a.getModel(["blur","itemStyle"]).getItemStyle(),s=a.getModel(["select","itemStyle"]).getItemStyle(),l=a.getShallow("cursor"),u=i.get("focus"),f=i.get("blurScope"),c=i.get("scale");pC(r,function(d){if(d instanceof Ge){var p=d.style;d.useStyle(V({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},e.style))}else d.useStyle(e.style);var g=d.ensureState("emphasis");g.style=A,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=o,d.ensureState("select").style=s,l&&(d.cursor=l),d.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,Je(v,He(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:ks(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),ye(r,u,f,i.get("disabled"))}function XI(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var gq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=nA(vf.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(vf);function yq(r){r.registerChartView(lq),r.registerSeriesModel(gq),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(I2,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F2("pictorialBar"))}var mq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this,o=this.group,s=e.getLayerSeries(),l=i.getLayout("layoutInfo"),u=l.rect,f=l.boundaryGap;o.x=0,o.y=u.y+f[0];function c(p){return p.name}var h=new Ya(this._layersSeries||[],s,c,c),v=[];h.add(it(d,this,"add")).update(it(d,this,"update")).remove(it(d,this,"remove")).execute();function d(p,g,y){var m=A._layers;if(p==="remove"){o.remove(m[g]);return}for(var w=[],_=[],B,C=s[g].indices,S=0;Si&&(i=o),n.push(o)}for(var l=0;li&&(i=f)}return{y0:a,max:i}}function Sq(r){r.registerChartView(mq),r.registerSeriesModel(Bq),r.registerLayout(_q),r.registerProcessor(Wf("themeRiver"))}var xq=2,bq=4,ZI=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;A.z2=xq,A.textConfig={inside:!0},Ct(A).seriesIndex=n.seriesIndex;var o=new Gt({z2:bq,silent:e.getModel().get(["label","silent"])});return A.setTextContent(o),A.updateData(!0,e,n,a,i),A}return t.prototype.updateData=function(e,n,a,i,A){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var o=this;Ct(o).dataIndex=n.dataIndex;var s=n.getModel(),l=s.getModel("emphasis"),u=n.getLayout(),f=V({},u);f.label=null;var c=n.getVisual("style");c.lineJoin="bevel";var h=n.getVisual("decal");h&&(c.decal=Hs(h,A));var v=$A(s.getModel("itemStyle"),f,!0);V(f,v),T(_r,function(y){var m=o.ensureState(y),w=s.getModel([y,"itemStyle"]);m.style=w.getItemStyle();var _=$A(w,f);_&&(m.shape=_)}),e?(o.setShape(f),o.shape.r=u.r0,ue(o,{shape:{r:u.r}},a,n.dataIndex)):(zt(o,{shape:f},a),Rn(o)),o.useStyle(c),this._updateLabel(a);var d=s.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=l.get("focus"),g=p==="ancestor"?n.getAncestorsIndices():p==="descendant"?n.getDescendantIndices():p;ye(this,g,l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,a=this.node.getModel(),i=a.getModel("label"),A=this.node.getLayout(),o=A.endAngle-A.startAngle,s=(A.startAngle+A.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=this,c=f.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(v!=null&&Math.abs(o)D&&!ju(M-D)&&M0?(A.virtualPiece?A.virtualPiece.updateData(!1,y,e,n,a):(A.virtualPiece=new ZI(y,e,n,a),u.add(A.virtualPiece)),m.piece.off("click"),A.virtualPiece.on("click",function(w){A._rootToNode(m.parentNode)})):A.virtualPiece&&(u.remove(A.virtualPiece),A.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(A){if(!a&&A.piece&&A.piece===n.target){var o=A.getModel().get("nodeClick");if(o==="rootToNode")e._rootToNode(A);else if(o==="link"){var s=A.getModel(),l=s.get("link");if(l){var u=s.get("target",!0)||"_blank";Lv(l,u)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Bw,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var A=e[0]-i.cx,o=e[1]-i.cy,s=Math.sqrt(A*A+o*o);return s<=i.r&&s>=i.r0}},t.type="sunburst",t}(jt),Eq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};WR(a);var i=this._levelModels=Y(e.levels||[],function(s){return new Yt(s,this,n)},this),A=eC.createTree(a,this,o);function o(s){s.wrapMethod("getItemModel",function(l,u){var f=A.getNodeByDataIndex(u),c=i[f.depth];return c&&(l.parentModel=c),l})}return A.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=pp(a,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){JP(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(se);function WR(r){var t=0;T(r.children,function(n){WR(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}var JI=Math.PI/180;function Dq(r,t,e){t.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");K(i)||(i=[0,i]),K(a)||(a=[a,a]);var A=e.getWidth(),o=e.getHeight(),s=Math.min(A,o),l=et(a[0],A),u=et(a[1],o),f=et(i[0],s/2),c=et(i[1],s/2),h=-n.get("startAngle")*JI,v=n.get("minAngle")*JI,d=n.getData().tree.root,p=n.getViewRoot(),g=p.depth,y=n.get("sort");y!=null&&XR(p,y);var m=0;T(p.children,function(M){!isNaN(M.getValue())&&m++});var w=p.getValue(),_=Math.PI/(w||m)*2,B=p.depth>0,C=p.height-(B?-1:1),S=(c-f)/(C||1),x=n.get("clockwise"),b=n.get("stillShowZeroSum"),I=x?1:-1,F=function(M,R){if(M){var P=R;if(M!==d){var O=M.getValue(),G=w===0&&b?_:O*_;G1;)A=A.parentNode;var o=a.getColorFromPalette(A.name||A.dataIndex+"",t);return n.depth>1&&nt(o)&&(o=l0(o,(n.depth-1)/(i-1)*.5)),o}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(A){var o=A.getModel(),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e(A,n,i.root.height));var l=a.ensureUniqueItemVisual(A.dataIndex,"style");V(l,s)})})}function Mq(r){r.registerChartView(Fq),r.registerSeriesModel(Eq),r.registerLayout(xt(Dq,"sunburst")),r.registerProcessor(xt(Wf,"sunburst")),r.registerVisual(Lq),Iq(r)}var qI={color:"fill",borderColor:"stroke"},Uq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ka=Vt(),Pq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return ri(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=ka(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(se);function Rq(r,t){return t=t||[0,0],Y(["x","y"],function(e,n){var a=this.getAxis(e),i=t[n],A=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-A)-a.dataToCoord(i+A))},this)}function Hq(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(Rq,r)}}}function Oq(r,t){return t=t||[0,0],Y([0,1],function(e){var n=t[e],a=r[e]/2,i=[],A=[];return i[e]=n-a,A[e]=n+a,i[1-e]=A[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(A)[e])},this)}function kq(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:it(Oq,r)}}}function Nq(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,a=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-a)-e.dataToCoord(n+a))}function Vq(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(Nq,r)}}}function Gq(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,n){var a="get"+e+"Axis",i=this[a](),A=t[n],o=r[n]/2,s=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(A-o)-i.dataToCoord(A+o));return e==="Angle"&&(s=s*Math.PI/180),s},this)}function Kq(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),A=e.dataToAngle(a[1]),o=r.coordToPoint([i,A]);return o.push(i,A*Math.PI/180),o},size:it(Gq,r)}}}function zq(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}function YR(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function ZR(r,t,e){var n=r,a,i,A;if(t==="text")A=n;else{A={},st(n,"text")&&(A.text=n.text),st(n,"rich")&&(A.rich=n.rich),st(n,"textFill")&&(A.fill=n.textFill),st(n,"textStroke")&&(A.stroke=n.textStroke),st(n,"fontFamily")&&(A.fontFamily=n.fontFamily),st(n,"fontSize")&&(A.fontSize=n.fontSize),st(n,"fontStyle")&&(A.fontStyle=n.fontStyle),st(n,"fontWeight")&&(A.fontWeight=n.fontWeight),i={type:"text",style:A,silent:!0},a={};var o=st(n,"textPosition");e?a.position=o?n.textPosition:"inside":o&&(a.position=n.textPosition),st(n,"textPosition")&&(a.position=n.textPosition),st(n,"textOffset")&&(a.offset=n.textOffset),st(n,"textRotation")&&(a.rotation=n.textRotation),st(n,"textDistance")&&(a.distance=n.textDistance)}return jI(A,r),T(A.rich,function(s){jI(s,s)}),{textConfig:a,textContent:i}}function jI(r,t){t&&(t.font=t.textFont||t.font,st(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),st(t,"textAlign")&&(r.align=t.textAlign),st(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),st(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),st(t,"textWidth")&&(r.width=t.textWidth),st(t,"textHeight")&&(r.height=t.textHeight),st(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),st(t,"textPadding")&&(r.padding=t.textPadding),st(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),st(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),st(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),st(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),st(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),st(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),st(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function tF(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";eF(n,t);var A=n.textFill==null;return a?A&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(A&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,T(t.rich,function(o){eF(o,o)}),n}function eF(r,t){t&&(st(t,"fill")&&(r.textFill=t.fill),st(t,"stroke")&&(r.textStroke=t.fill),st(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),st(t,"font")&&(r.font=t.font),st(t,"fontStyle")&&(r.fontStyle=t.fontStyle),st(t,"fontWeight")&&(r.fontWeight=t.fontWeight),st(t,"fontSize")&&(r.fontSize=t.fontSize),st(t,"fontFamily")&&(r.fontFamily=t.fontFamily),st(t,"align")&&(r.textAlign=t.align),st(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),st(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),st(t,"width")&&(r.textWidth=t.width),st(t,"height")&&(r.textHeight=t.height),st(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),st(t,"padding")&&(r.textPadding=t.padding),st(t,"borderColor")&&(r.textBorderColor=t.borderColor),st(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),st(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),st(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),st(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),st(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),st(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),st(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),st(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),st(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),st(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var $R={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},rF=Ht($R);ha(da,function(r,t){return r[t]=1,r},{});da.join(", ");var jv=["","style","shape","extra"],Gs=Vt();function gC(r,t,e,n,a){var i=r+"Animation",A=qs(r,n,a)||{},o=Gs(t).userDuring;return A.duration>0&&(A.during=o?it($q,{el:t,userDuring:o}):null,A.setToFinal=!0,A.scope=r),V(A,e[i]),A}function qh(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,A=n.clearStyle,o=e.isAnimationEnabled(),s=Gs(r),l=t.style;s.userDuring=t.during;var u={},f={};if(qq(r,t,f),aF("shape",t,f),aF("extra",t,f),!i&&o&&(Jq(r,t,u),nF("shape",r,t,u),nF("extra",r,t,u),jq(r,t,l,u)),f.style=l,Wq(r,f,A),Yq(r,t),o)if(i){var c={};T(jv,function(v){var d=v?t[v]:t;d&&d.enterFrom&&(v&&(c[v]=c[v]||{}),V(v?c[v]:c,d.enterFrom))});var h=gC("enter",r,t,e,a);h.duration>0&&r.animateFrom(c,h)}else Xq(r,t,a||0,e,u);JR(r,t),l?r.dirty():r.markRedraw()}function JR(r,t){for(var e=Gs(r).leaveToProps,n=0;n0&&r.animateFrom(a,i)}}function Yq(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof gn&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Mt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Zn={},Zq={setTransform:function(r,t){return Zn.el[r]=t,this},getTransform:function(r){return Zn.el[r]},setShape:function(r,t){var e=Zn.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Zn.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Zn.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Zn.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Zn.el.extra||(Zn.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Zn.el.extra;if(t)return t[r]}};function $q(){var r=this,t=r.el;if(t){var e=Gs(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}Zn.el=t,n(Zq)}}function nF(r,t,e,n){var a=e[r];if(a){var i=t[r],A;if(i){var o=e.transition,s=a.transition;if(s)if(!A&&(A=n[r]={}),oo(s))V(A,i);else for(var l=qt(s),u=0;u=0){!A&&(A=n[r]={});for(var h=Ht(i),u=0;u=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=n.style={});for(var v=Ht(e),l=0;l=0?t.getStore().get(R,Q):void 0}var P=t.get(M.name,Q),O=M&&M.ordinalMeta;return O?O.categories[P]:P}function B(D,Q){Q==null&&(Q=l);var M=t.getItemVisual(Q,"style"),R=M&&M.fill,P=M&&M.opacity,O=y(Q,Qi).getItemStyle();R!=null&&(O.fill=R),P!=null&&(O.opacity=P);var G={inheritColor:nt(R)?R:"#000"},X=m(Q,Qi),J=oe(X,null,G,!1,!0);J.text=X.getShallow("show")?St(r.getFormattedLabel(Q,Qi),ks(t,Q)):null;var At=Dv(X,G,!1);return x(D,O),O=tF(O,J,At),D&&S(O,D),O.legacy=!0,O}function C(D,Q){Q==null&&(Q=l);var M=y(Q,Na).getItemStyle(),R=m(Q,Na),P=oe(R,null,null,!0,!0);P.text=R.getShallow("show")?ua(r.getFormattedLabel(Q,Na),r.getFormattedLabel(Q,Qi),ks(t,Q)):null;var O=Dv(R,null,!0);return x(D,M),M=tF(M,P,O),D&&S(M,D),M.legacy=!0,M}function S(D,Q){for(var M in Q)st(Q,M)&&(D[M]=Q[M])}function x(D,Q){D&&(D.textFill&&(Q.textFill=D.textFill),D.textPosition&&(Q.textPosition=D.textPosition))}function b(D,Q){if(Q==null&&(Q=l),st(qI,D)){var M=t.getItemVisual(Q,"style");return M?M[qI[D]]:null}if(st(Uq,D))return t.getItemVisual(Q,D)}function I(D){if(i.type==="cartesian2d"){var Q=i.getBaseAxis();return q8(gt({axis:Q},D))}}function F(){return e.getCurrentSeriesIndices()}function E(D){return u_(D,e)}}function lj(r){var t={};return T(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Yy(r,t,e,n,a,i,A){if(!n){i.remove(t);return}var o=_C(r,t,e,n,a,i);return o&&A.setItemGraphicEl(e,o),o&&ye(o,n.focus,n.blurScope,n.emphasisDisabled),o}function _C(r,t,e,n,a,i){var A=-1,o=t;t&&eH(t,n,a)&&(A=Qt(i.childrenRef(),t),t=null);var s=!t,l=t;l?l.clearStates():(l=wC(n),o&&ij(o,l)),n.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),qr.normal.cfg=qr.normal.conOpt=qr.emphasis.cfg=qr.emphasis.conOpt=qr.blur.cfg=qr.blur.conOpt=qr.select.cfg=qr.select.conOpt=null,qr.isLegacy=!1,fj(l,e,n,a,s,qr),uj(l,e,n,a,s),BC(r,l,e,n,qr,a,s),st(n,"info")&&(ka(l).info=n.info);for(var u=0;u=0?i.replaceAt(l,A):i.add(l),l}function eH(r,t,e){var n=ka(r),a=t.type,i=t.shape,A=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&pj(i)&&rH(i)!==n.customPathData||a==="image"&&st(A,"image")&&A.image!==n.customImagePath}function uj(r,t,e,n,a){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var A=r.getClipPath();A&&eH(A,i,n)&&(A=null),A||(A=wC(i),r.setClipPath(A)),BC(null,A,t,i,null,n,a)}}function fj(r,t,e,n,a,i){if(!r.isGroup){AF(e,null,i),AF(e,Na,i);var A=i.normal.conOpt,o=i.emphasis.conOpt,s=i.blur.conOpt,l=i.select.conOpt;if(A!=null||o!=null||l!=null||s!=null){var u=r.getTextContent();if(A===!1)u&&r.removeTextContent();else{A=i.normal.conOpt=A||{type:"text"},u?u.clearStates():(u=wC(A),r.setTextContent(u)),BC(null,u,t,A,null,n,a);for(var f=A&&A.style,c=0;c=u;h--){var v=t.childAt(h);hj(t,v,a)}}}function hj(r,t,e){t&&mp(t,ka(r).option,e)}function vj(r){new Ya(r.oldChildren,r.newChildren,oF,oF,r).add(sF).update(sF).remove(dj).execute()}function oF(r,t){var e=r&&r.name;return e??nj+t}function sF(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;_C(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function dj(r){var t=this.context,e=t.oldChildren[r];e&&mp(e,ka(e).option,t.seriesModel)}function rH(r){return r&&(r.pathData||r.d)}function pj(r){return r&&(st(r,"pathData")||st(r,"d"))}function gj(r){r.registerChartView(Aj),r.registerSeriesModel(Pq)}var kA=Vt(),lF=mt,Zy=it,SC=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),A=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===A)){this._lastValue=i,this._lastStatus=A;var o=this._group,s=this._handle;if(!A||A==="hide"){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var f=this._moveAnimation=this.determineAnimation(t,e);if(!o)o=this._group=new _t,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);else{var c=xt(uF,e,f);this.updatePointerEl(o,l,c),this.updateLabelEl(o,l,c,e)}cF(o,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",A=e.get("snap");if(!A&&!i)return!1;if(n==="auto"||n==null){var o=this.animationThreshold;if(i&&a.getBandWidth()>o)return!0;if(A){var s=Y_(t).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var A=kA(t).pointerEl=new So[i.type](lF(e.pointer));t.add(A)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=kA(t).labelEl=new Gt(lF(e.label));t.add(i),fF(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=kA(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=kA(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),fF(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),A=e.get("status");if(!i.get("show")||!A||A==="hide"){a&&n.remove(a),this._handle=null;return}var o;this._handle||(o=!0,a=this._handle=Rf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Ka(l.event)},onmousedown:Zy(this._onHandleDragMove,this,0,0),drift:Zy(this._onHandleDragMove,this),ondragend:Zy(this._onHandleDragEnd,this)}),n.add(a)),cF(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=i.get("size");K(s)||(s=[s,s]),a.scaleX=s[0]/2,a.scaleY=s[1]/2,Al(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},r.prototype._moveHandleToValue=function(t,e){uF(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$y(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform($y(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr($y(a)),kA(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),sf(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 uF(r,t,e,n){nH(kA(e).lastProp,n)||(kA(e).lastProp=n,t?zt(e,n,r):(e.stopAnimation(),e.attr(n)))}function nH(r,t){if(yt(r)&&yt(t)){var e=!0;return T(t,function(n,a){e=e&&nH(r[a],n)}),!!e}else return r===t}function fF(r,t){r[t.get(["label","show"])?"show":"hide"]()}function $y(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function cF(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function xC(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 aH(r,t,e,n,a){var i=e.get("value"),A=iH(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),o=e.getModel("label"),s=rl(o.get("padding")||0),l=o.getFont(),u=Ef(A,l),f=a.position,c=u.width+s[1]+s[3],h=u.height+s[0]+s[2],v=a.align;v==="right"&&(f[0]-=c),v==="center"&&(f[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(f[1]-=h),d==="middle"&&(f[1]-=h/2),yj(f,c,h,n);var p=o.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:oe(o,{text:A,font:l,fill:o.getTextColor(),padding:s,backgroundColor:p}),z2:10}}function yj(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function iH(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),A=a.formatter;if(A){var o={value:R_(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(n,function(s){var l=e.getSeriesByIndex(s.seriesIndex),u=s.dataIndexInside,f=l&&l.getDataParams(u);f&&o.seriesData.push(f)}),nt(A)?i=A.replace("{value}",i):vt(A)&&(i=A(o))}return i}function bC(r,t,e){var n=Wr();return Co(n,n,e.rotation),va(n,n,e.position),Mn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function AH(r,t,e,n,a,i){var A=wr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),aH(t,n,a,i,{position:bC(n.axis,r,e),align:A.textAlign,verticalAlign:A.textVerticalAlign})}function TC(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function oH(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function hF(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}var mj=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.grid,l=i.get("type"),u=vF(s,o).getOtherAxis(o).getGlobalExtent(),f=o.toGlobalCoord(o.dataToCoord(n,!0));if(l&&l!=="none"){var c=xC(i),h=wj[l](o,f,u);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=nw(s.model,a);AH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=nw(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=bC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.grid,s=A.getGlobalExtent(!0),l=vF(o,A).getOtherAxis(A).getGlobalExtent(),u=A.dim==="x"?0:1,f=[e.x,e.y];f[u]+=n[u],f[u]=Math.min(s[1],f[u]),f[u]=Math.max(s[0],f[u]);var c=(l[1]+l[0])/2,h=[c,c];h[u]=f[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:v[u]}},t}(SC);function vF(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var wj={line:function(r,t,e){var n=TC([t,e[0]],[t,e[1]],dF(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:oH([t-n/2,e[0]],[n,a],dF(r))}}};function dF(r){return r.dim==="x"?0:1}var Bj=function(r){H(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}(Rt),Ma=Vt(),_j=T;function sH(r,t,e){if(!Ut.node){var n=t.getZr();Ma(n).records||(Ma(n).records={}),Cj(n,t);var a=Ma(n).records[r]||(Ma(n).records[r]={});a.handler=e}}function Cj(r,t){if(Ma(r).initialized)return;Ma(r).initialized=!0,e("click",xt(pF,"click")),e("mousemove",xt(pF,"mousemove")),e("globalout",xj);function e(n,a){r.on(n,function(i){var A=bj(t);_j(Ma(r).records,function(o){o&&a(o,i,A.dispatchAction)}),Sj(A.pendings,t)})}}function Sj(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function xj(r,t,e){r.handler("leave",null,e)}function pF(r,t,e,n){t.handler(r,e,n)}function bj(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Sw(r,t){if(!Ut.node){var e=t.getZr(),n=(Ma(e).records||{})[r];n&&(Ma(e).records[r]=null)}}var Tj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),A=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sH("axisPointer",a,function(o,s,l){A!=="none"&&(o==="leave"||A.indexOf(o)>=0)&&l({type:"updateAxisPointer",currTrigger:o,x:s&&s.offsetX,y:s&&s.offsetY})})},t.prototype.remove=function(e,n){Sw("axisPointer",n)},t.prototype.dispose=function(e,n){Sw("axisPointer",n)},t.type="axisPointer",t}(de);function lH(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),A=ho(i,r);if(A==null||A<0||K(A))return{point:[]};var o=i.getItemGraphicEl(A),s=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(A)||[];else if(s&&s.dataToPoint)if(r.isStacked){var l=s.getBaseAxis(),u=s.getOtherAxis(l),f=u.dim,c=l.dim,h=f==="x"||f==="radius"?1:0,v=i.mapDimension(c),d=[];d[h]=i.get(v,A),d[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),A),e=s.dataToPoint(d)||[]}else e=s.dataToPoint(i.getValues(Y(s.dimensions,function(g){return i.mapDimension(g)}),A))||[];else if(o){var p=o.getBoundingRect().clone();p.applyTransform(o.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:o}}var gF=Vt();function Ij(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,A=r.dispatchAction||it(e.dispatchAction,e),o=t.getComponent("axisPointer").coordSysAxesInfo;if(o){jh(a)&&(a=lH({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var s=jh(a),l=i.axesInfo,u=o.axesInfo,f=n==="leave"||jh(a),c={},h={},v={list:[],map:{}},d={showPointer:xt(Ej,h),showTooltip:xt(Dj,v)};T(o.coordSysMap,function(g,y){var m=s||g.containPoint(a);T(o.coordSysAxesInfo[y],function(w,_){var B=w.axis,C=Uj(l,w);if(!f&&m&&(!l||C)){var S=C&&C.value;S==null&&!s&&(S=B.pointToData(a)),S!=null&&yF(w,S,d,!1,c)}})});var p={};return T(u,function(g,y){var m=g.linkGroup;m&&!h[y]&&T(m.axesInfo,function(w,_){var B=h[_];if(w!==g&&B){var C=B.value;m.mapper&&(C=g.axis.scale.parse(m.mapper(C,mF(w),mF(g)))),p[g.key]=C}})}),T(p,function(g,y){yF(u[y],g,d,!0,c)}),Qj(h,u,c),Lj(v,a,r,A),Mj(u,A,e),c}}function yF(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var A=Fj(t,r),o=A.payloadBatch,s=A.snapToValue;o[0]&&a.seriesIndex==null&&V(a,o[0]),!n&&r.snap&&i.containData(s)&&s!=null&&(t=s),e.showPointer(r,t,o),e.showTooltip(r,A,s)}}function Fj(r,t){var e=t.axis,n=e.dim,a=r,i=[],A=Number.MAX_VALUE,o=-1;return T(t.seriesModels,function(s,l){var u=s.getData().mapDimensionsAll(n),f,c;if(s.getAxisTooltipData){var h=s.getAxisTooltipData(u,r,e);c=h.dataIndices,f=h.nestestValue}else{if(c=s.getData().indicesOfNearest(u[0],r,e.type==="category"?.5:null),!c.length)return;f=s.getData().get(u[0],c[0])}if(!(f==null||!isFinite(f))){var v=r-f,d=Math.abs(v);d<=A&&((d=0&&o<0)&&(A=d,o=v,a=f,i.length=0),T(c,function(p){i.push({seriesIndex:s.seriesIndex,dataIndexInside:p,dataIndex:s.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function Ej(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function Dj(r,t,e,n){var a=e.payloadBatch,i=t.axis,A=i.model,o=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var s=t.coordSys.model,l=df(s),u=r.map[l];u||(u=r.map[l]={coordSysId:s.id,coordSysIndex:s.componentIndex,coordSysType:s.type,coordSysMainType:s.mainType,dataByAxis:[]},r.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:A.componentIndex,axisType:A.type,axisId:A.id,value:n,valueLabelOpt:{precision:o.get(["label","precision"]),formatter:o.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Qj(r,t,e){var n=e.axesInfo=[];T(t,function(a,i){var A=a.axisPointerModel.option,o=r[i];o?(!a.useHandle&&(A.status="show"),A.value=o.value,A.seriesDataIndices=(o.payloadBatch||[]).slice()):!a.useHandle&&(A.status="hide"),A.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:A.value})})}function Lj(r,t,e,n){if(jh(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Mj(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=gF(n)[a]||{},A=gF(n)[a]={};T(r,function(l,u){var f=l.axisPointerModel.option;f.status==="show"&&l.triggerEmphasis&&T(f.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;A[h]=c})});var o=[],s=[];T(i,function(l,u){!A[u]&&s.push(l)}),T(A,function(l,u){!i[u]&&o.push(l)}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),o.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:o})}function Uj(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 mF(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 jh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function $f(r){Io.registerAxisPointerClass("CartesianAxisPointer",mj),r.registerComponentModel(Bj),r.registerComponentView(Tj),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!K(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=zY(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ij)}function Pj(r){Lt(RP),Lt($f)}var Rj=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis;o.dim==="angle"&&(this.animationThreshold=Math.PI/18);var s=o.polar,l=s.getOtherAxis(o),u=l.getExtent(),f=o.dataToCoord(n),c=i.get("type");if(c&&c!=="none"){var h=xC(i),v=Oj[c](o,s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=i.get(["label","margin"]),p=Hj(n,a,i,s,d);aH(e,a,i,A,p)},t}(SC);function Hj(r,t,e,n,a){var i=t.axis,A=i.dataToCoord(r),o=n.getAngleAxis().getExtent()[0];o=o/180*Math.PI;var s=n.getRadiusAxis().getExtent(),l,u,f;if(i.dim==="radius"){var c=Wr();Co(c,c,o),va(c,c,[n.cx,n.cy]),l=Mn([A,-a],c);var h=t.getModel("axisLabel").get("rotate")||0,v=wr.innerTextLayout(o,h*Math.PI/180,-1);u=v.textAlign,f=v.textVerticalAlign}else{var d=s[1];l=n.coordToPoint([d+a,A]);var p=n.cx,g=n.cy;u=Math.abs(l[0]-p)/d<.3?"center":l[0]>p?"left":"right",f=Math.abs(l[1]-g)/d<.3?"middle":l[1]>g?"top":"bottom"}return{position:l,align:u,verticalAlign:f}}var Oj={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:TC(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:hF(t.cx,t.cy,n[0],n[1],(-e-a/2)*i,(-e+a/2)*i)}:{type:"Sector",shape:hF(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}},kj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,a=this.ecModel;return a.eachComponent(e,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Rt),IC=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",be).models[0]},t.type="polarAxis",t}(Rt);Ie(IC,Nf);var Nj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(IC),Vj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(IC),FC=function(r){H(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(On);FC.prototype.dataToRadius=On.prototype.dataToCoord;FC.prototype.radiusToData=On.prototype.coordToData;var Gj=Vt(),EC=function(r){H(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),a=e.scale,i=a.getExtent(),A=a.count();if(i[1]-i[0]<1)return 0;var o=i[0],s=e.dataToCoord(o+1)-e.dataToCoord(o),l=Math.abs(s),u=Ef(o==null?"":o+"",n.getFont(),"center","top"),f=Math.max(u.height,7),c=f/l;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),v=Gj(e.model),d=v.lastAutoInterval,p=v.lastTickCount;return d!=null&&p!=null&&Math.abs(d-h)<=1&&Math.abs(p-A)<=1&&d>h?h=d:(v.lastTickCount=A,v.lastAutoInterval=h),h},t}(On);EC.prototype.dataToAngle=On.prototype.dataToCoord;EC.prototype.angleToData=On.prototype.coordToData;var uH=["radius","angle"],Kj=function(){function r(t){this.dimensions=uH,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new FC,this._angleAxis=new EC,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),A=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);a.inverse?A=o-360:o=A+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=lo;)l+=u*360;return[s,l]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[a,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(A,o){var s=A-this.cx,l=o-this.cy,u=s*s+l*l-1e-4,f=this.r,c=this.r0;return u<=f*f&&u>=c*c}}},r.prototype.convertToPixel=function(t,e,n){var a=wF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=wF(e);return a===this?this.pointToData(n):null},r}();function wF(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function zj(r,t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight();r.cx=et(n[0],a),r.cy=et(n[1],i);var A=r.getRadiusAxis(),o=Math.min(a,i)/2,s=t.get("radius");s==null?s=[0,"100%"]:K(s)||(s=[0,s]);var l=[et(s[0],o),et(s[1],o)];A.inverse?A.setExtent(l[1],l[0]):A.setExtent(l[0],l[1])}function Wj(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(o){if(o.coordinateSystem===e){var s=o.getData();T(Vv(s,"radius"),function(l){a.scale.unionExtentFromData(s,l)}),T(Vv(s,"angle"),function(l){n.scale.unionExtentFromData(s,l)})}}),Os(n.scale,n.model),Os(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),A=360/n.scale.count();n.inverse?i[1]+=A:i[1]-=A,n.setExtent(i[0],i[1])}}function Xj(r){return r.mainType==="angleAxis"}function BF(r,t){var e;if(r.type=t.get("type"),r.scale=cp(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),Xj(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,a)}t.axis=r,r.model=t}var Yj={dimensions:uH,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new Kj(a+"");i.update=Wj;var A=i.getRadiusAxis(),o=i.getAngleAxis(),s=n.findAxisModel("radiusAxis"),l=n.findAxisModel("angleAxis");BF(A,s),BF(o,l),zj(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",be).models[0];n.coordinateSystem=a.coordinateSystem}}),e}},Zj=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function th(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function eh(r){var t=r.getRadiusAxis();return t.inverse?0:1}function _F(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var $j=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=e.axis,i=a.polar,A=i.getRadiusAxis().getExtent(),o=a.getTicksCoords(),s=a.getMinorTicksCoords(),l=Y(a.getViewLabels(),function(u){u=mt(u);var f=a.scale,c=f.type==="ordinal"?f.getRawOrdinalNumber(u.tickValue):u.tickValue;return u.coord=a.dataToCoord(c),u});_F(l),_F(o),T(Zj,function(u){e.get([u,"show"])&&(!a.scale.isBlank()||u==="axisLine")&&Jj[u](this.group,e,i,o,s,A,l)},this)}},t.type="angleAxis",t}(Io),Jj={axisLine:function(r,t,e,n,a,i){var A=t.getModel(["axisLine","lineStyle"]),o=e.getAngleAxis(),s=Math.PI/180,l=o.getExtent(),u=eh(e),f=u?0:1,c,h=Math.abs(l[1]-l[0])===360?"Circle":"Arc";i[f]===0?c=new So[h]({shape:{cx:e.cx,cy:e.cy,r:i[u],startAngle:-l[0]*s,endAngle:-l[1]*s,clockwise:o.inverse},style:A.getLineStyle(),z2:1,silent:!0}):c=new Lf({shape:{cx:e.cx,cy:e.cy,r:i[u],r0:i[f]},style:A.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,t,e,n,a,i){var A=t.getModel("axisTick"),o=(A.get("inside")?-1:1)*A.get("length"),s=i[eh(e)],l=Y(n,function(u){return new Ue({shape:th(e,[s,s+o],u.coord)})});r.add(ln(l,{style:gt(A.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(a.length){for(var A=t.getModel("axisTick"),o=t.getModel("minorTick"),s=(A.get("inside")?-1:1)*o.get("length"),l=i[eh(e)],u=[],f=0;fg?"left":"right",w=Math.abs(p[1]-y)/d<.3?"middle":p[1]>y?"top":"bottom";if(o&&o[v]){var _=o[v];yt(_)&&_.textStyle&&(h=new Yt(_.textStyle,s,s.ecModel))}var B=new Gt({silent:wr.isLabelSilent(t),style:oe(h,{x:p[0],y:p[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:m,verticalAlign:w})});if(r.add(B),u){var C=wr.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=f.rawLabel,Ct(B).eventData=C}},this)},splitLine:function(r,t,e,n,a,i){var A=t.getModel("splitLine"),o=A.getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],f=0;f=0?"p":"n",Q=x;_&&(n[u][E]||(n[u][E]={p:x,n:x}),Q=n[u][E][D]);var M=void 0,R=void 0,P=void 0,O=void 0;if(v.dim==="radius"){var G=v.dataToCoord(F)-x,X=s.dataToCoord(E);Math.abs(G)=O})}}})}function att(r){var t={};T(r,function(n,a){var i=n.getData(),A=n.coordinateSystem,o=A.getBaseAxis(),s=cH(A,o),l=o.getExtent(),u=o.type==="category"?o.getBandWidth():Math.abs(l[1]-l[0])/i.count(),f=t[s]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=f.stacks;t[s]=f;var h=fH(n);c[h]||f.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var v=et(n.get("barWidth"),u),d=et(n.get("barMaxWidth"),u),p=n.get("barGap"),g=n.get("barCategoryGap");v&&!c[h].width&&(v=Math.min(f.remainedWidth,v),c[h].width=v,f.remainedWidth-=v),d&&(c[h].maxWidth=d),p!=null&&(f.gap=p),g!=null&&(f.categoryGap=g)});var e={};return T(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=et(n.categoryGap,A),s=et(n.gap,1),l=n.remainedWidth,u=n.autoWidthCount,f=(l-o)/(u+(u-1)*s);f=Math.max(f,0),T(i,function(d,p){var g=d.maxWidth;g&&g=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),a=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=e.toGlobalCoord(e.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(t,e,n){var a=CF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=CF(e);return a===this?this.pointToData(n):null},r}();function CF(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function dtt(r,t){var e=[];return r.eachComponent("singleAxis",function(n,a){var i=new vtt(n,r,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",be).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),e}var ptt={create:dtt,dimensions:hH},SF=["x","y"],gtt=["width","height"],ytt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.coordinateSystem,l=Jy(s,1-rd(o)),u=s.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var c=xC(i),h=mtt[f](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=xw(a);AH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=xw(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=bC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.coordinateSystem,s=rd(A),l=Jy(o,s),u=[e.x,e.y];u[s]+=n[s],u[s]=Math.min(l[1],u[s]),u[s]=Math.max(l[0],u[s]);var f=Jy(o,1-s),c=(f[1]+f[0])/2,h=[c,c];return h[s]=u[s],{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(SC),mtt={line:function(r,t,e){var n=TC([t,e[0]],[t,e[1]],rd(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),a=e[1]-e[0];return{type:"Rect",shape:oH([t-n/2,e[0]],[n,a],rd(r))}}};function rd(r){return r.isHorizontal()?0:1}function Jy(r,t){var e=r.getRect();return[e[SF[t]],e[SF[t]]+e[gtt[t]]]}var wtt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(de);function Btt(r){Lt($f),Io.registerAxisPointerClass("SingleAxisPointer",ytt),r.registerComponentView(wtt),r.registerComponentView(ftt),r.registerComponentModel(tv),Ns(r,"single",tv,tv.defaultOption),r.registerCoordinateSystem("single",ptt)}var _tt=function(r){H(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,a){var i=nl(e);r.prototype.init.apply(this,arguments),xF(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),xF(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Rt);function xF(r,t){var e=r.cellSize,n;K(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var a=Y([0,1],function(i){return K5(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Yi(r,t,{type:"box",ignoreSize:a})}var Ctt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll();var A=e.coordinateSystem,o=A.getRangeInfo(),s=A.getOrient(),l=n.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,s,i),this._renderYearText(e,o,s,i),this._renderMonthText(e,l,s,i),this._renderWeekText(e,l,o,s,i)},t.prototype._renderDayRect=function(e,n,a){for(var i=e.coordinateSystem,A=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),s=i.getCellHeight(),l=n.start.time;l<=n.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToRect([l],!1).tl,f=new Nt({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:A});a.add(f)}},t.prototype._renderLines=function(e,n,a,i){var A=this,o=e.coordinateSystem,s=e.getModel(["splitLine","lineStyle"]).getLineStyle(),l=e.get(["splitLine","show"]),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,c=0;f.time<=n.end.time;c++){v(f.formatedDate),c===0&&(f=o.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=o.getDateInfo(h)}v(o.getNextNDay(n.end.time,1).formatedDate);function v(d){A._firstDayOfMonth.push(o.getDateInfo(d)),A._firstDayPoints.push(o.dataToRect([d],!1).tl);var p=A._getLinePointsOfOneWeek(e,d,a);A._tlpoints.push(p[0]),A._blpoints.push(p[p.length-1]),l&&A._drawSplitline(p,s,i)}l&&this._drawSplitline(A._getEdgesPoints(A._tlpoints,u,a),s,i),l&&this._drawSplitline(A._getEdgesPoints(A._blpoints,u,a),s,i)},t.prototype._getEdgesPoints=function(e,n,a){var i=[e[0].slice(),e[e.length-1].slice()],A=a==="horizontal"?0:1;return i[0][A]=i[0][A]-n/2,i[1][A]=i[1][A]+n/2,i},t.prototype._drawSplitline=function(e,n,a){var i=new xr({z2:20,shape:{points:e},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,n,a){for(var i=e.coordinateSystem,A=i.getDateInfo(n),o=[],s=0;s<7;s++){var l=i.getNextNDay(A.time,s),u=i.dataToRect([l.time],!1);o[2*l.day]=u.tl,o[2*l.day+1]=u[a==="horizontal"?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,n){return nt(e)&&e?N5(e,n):vt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,a,i,A){var o=n[0],s=n[1],l=["center","bottom"];i==="bottom"?(s+=A,l=["center","top"]):i==="left"?o-=A:i==="right"?(o+=A,l=["center","top"]):s-=A;var u=0;return(i==="left"||i==="right")&&(u=Math.PI/2),{rotation:u,x:o,y:s,style:{align:l[0],verticalAlign:l[1]}}},t.prototype._renderYearText=function(e,n,a,i){var A=e.getModel("yearLabel");if(A.get("show")){var o=A.get("margin"),s=A.get("position");s||(s=a!=="horizontal"?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,f=(l[0][1]+l[1][1])/2,c=a==="horizontal"?0:1,h={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],f],right:[l[c][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var d=A.get("formatter"),p={start:n.start.y,end:n.end.y,nameMap:v},g=this._formatterLabel(d,p),y=new Gt({z2:30,style:oe(A,{text:g})});y.attr(this._yearTextPositionControl(y,h[s],a,s,o)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,n,a,i,A){var o="left",s="top",l=e[0],u=e[1];return a==="horizontal"?(u=u+A,n&&(o="center"),i==="start"&&(s="bottom")):(l=l+A,n&&(s="middle"),i==="start"&&(o="right")),{x:l,y:u,align:o,verticalAlign:s}},t.prototype._renderMonthText=function(e,n,a,i){var A=e.getModel("monthLabel");if(A.get("show")){var o=A.get("nameMap"),s=A.get("margin"),l=A.get("position"),u=A.get("align"),f=[this._tlpoints,this._blpoints];(!o||nt(o))&&(o&&(n=L0(o)||n),o=n.get(["time","monthAbbr"])||[]);var c=l==="start"?0:1,h=a==="horizontal"?0:1;s=l==="start"?-s:s;for(var v=u==="center",d=0;d=a.start.time&&n.timeo.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var a=Math.floor(e[1].time/qy)-Math.floor(e[0].time/qy)+1,i=new Date(e[0].time),A=i.getDate(),o=e[1].date.getDate();i.setDate(A+a-1);var s=i.getDate();if(s!==o)for(var l=i.getTime()-e[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-e[1].time)*l>0;)a-=l,i.setDate(s-l);var u=Math.floor((a+e[0].day+6)/7),f=n?-u+1:u-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:a,weeks:u,nthWeek:f,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&ea.lweek)return null;var i=(t-1)*7-a.fweek+e,A=new Date(a.start.time);return A.setDate(+a.start.d+i),this.getDateInfo(A)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function bF(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}function xtt(r){r.registerComponentModel(_tt),r.registerComponentView(Ctt),r.registerCoordinateSystem("calendar",Stt)}function btt(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function TF(r,t){var e;return T(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function Ttt(r,t,e){var n=V({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(Ft(a,n,!0),Yi(a,n,{ignoreSize:!0}),AU(e,a),rh(e,a),rh(e,a,"shape"),rh(e,a,"style"),rh(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var vH=["transition","enterFrom","leaveTo"],Itt=vH.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function rh(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?vH:Itt,a=0;a=0;u--){var f=a[u],c=Ee(f.id,null),h=c!=null?A.get(c):null;if(h){var v=h.parent,g=an(v),y=v===i?{width:o,height:s}:{width:g.width,height:g.height},m={},w=np(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},m);if(!an(h).isNew&&w){for(var _=f.transition,B={},C=0;C=0)?B[S]=x:h[S]=x}zt(h,B,e,0)}else h.attr(m)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(a){ev(a,an(a).option,n,e._lastGraphicModel)}),this._elMap=ft()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(de);function bw(r){var t=st(IF,r)?IF[r]:l_(r),e=new t({});return an(e).type=r,e}function FF(r,t,e,n){var a=bw(e);return t.add(a),n.set(r,a),an(a).id=r,an(a).isNew=!0,a}function ev(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){ev(i,t,e,n)}),mp(r,t,n),e.removeKey(an(r).id))}function EF(r,t,e,n){r.isGroup||T([["cursor",gn.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(a){var i=a[0];st(t,i)?r[i]=St(t[i],a[1]):r[i]==null&&(r[i]=a[1])}),T(Ht(t),function(a){if(a.indexOf("on")===0){var i=t[a];r[a]=vt(i)?i:null}}),st(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Qtt(r){return r=V({},r),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(iU),function(t){delete r[t]}),r}function Ltt(r,t,e){var n=Ct(r).eventData;!r.silent&&!r.ignore&&!n&&(n=Ct(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function Mtt(r){r.registerComponentModel(Ett),r.registerComponentView(Dtt),r.registerPreprocessor(function(t){var e=t.graphic;K(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var DF=["x","y","radius","angle","single"],Utt=["cartesian2d","polar","singleAxis"];function Ptt(r){var t=r.get("coordinateSystem");return Qt(Utt,t)>=0}function Li(r){return r+"Axis"}function Rtt(r,t){var e=ft(),n=[],a=ft();r.eachComponent({mainType:"dataZoom",query:t},function(u){a.get(u.uid)||o(u)});var i;do i=!1,r.eachComponent("dataZoom",A);while(i);function A(u){!a.get(u.uid)&&s(u)&&(o(u),i=!0)}function o(u){a.set(u.uid,!0),n.push(u),l(u)}function s(u){var f=!1;return u.eachTargetAxis(function(c,h){var v=e.get(c);v&&v[h]&&(f=!0)}),f}function l(u){u.eachTargetAxis(function(f,c){(e.get(f)||e.set(f,[]))[c]=!0})}return n}function dH(r){var t=r.ecModel,e={infoList:[],infoMap:ft()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(Li(n),a);if(i){var A=i.getCoordSysModel();if(A){var o=A.uid,s=e.infoMap.get(o);s||(s={model:A,axisModels:[]},e.infoList.push(s),e.infoMap.set(o,s)),s.axisModels.push(i)}}}),e}var jy=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Bf=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=QF(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=QF(e);Ft(this.option,e,!0),Ft(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i,A){this._rangePropMode[A]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ft(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return T(DF,function(a){var i=this.getReferringComponents(Li(a),EK);if(i.specified){n=!0;var A=new jy;T(i.models,function(o){A.add(o.componentIndex)}),e.set(a,A)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var A=n==="vertical"?"y":"x",o=a.findComponents({mainType:A+"Axis"});s(o,A)}if(i){var o=a.findComponents({mainType:"singleAxis",filter:function(u){return u.get("orient",!0)===n}});s(o,"single")}function s(l,u){var f=l[0];if(f){var c=new jy;if(c.add(f.componentIndex),e.set(u,c),i=!1,u==="x"||u==="y"){var h=f.getReferringComponents("grid",be).models[0];h&&T(l,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",be).models[0]&&c.add(v.componentIndex)})}}}i&&T(DF,function(l){if(i){var u=a.findComponents({mainType:Li(l),filter:function(c){return c.get("type",!0)==="category"}});if(u[0]){var f=new jy;f.add(u[0].componentIndex),e.set(l,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(i,A){var o=e[i[0]]!=null,s=e[i[1]]!=null;o&&!s?n[A]="percent":!o&&s?n[A]="value":a?n[A]=a[A]:o&&(n[A]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Li(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){T(a.indexList,function(A){e.call(n,i,A)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Li(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;T(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;iA[1];if(m&&!w&&!_)return!0;m&&(p=!0),w&&(v=!0),_&&(d=!0)}return p&&v&&d})}else ls(u,function(h){if(i==="empty")s.setData(l=l.map(h,function(d){return o(d)?d:NaN}));else{var v={};v[h]=A,l.selectRange(v)}});ls(u,function(h){l.setApproximateExtent(A,h)})}});function o(s){return s>=A[0]&&s<=A[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ls(["min","max"],function(a){var i=e.get(a+"Span"),A=e.get(a+"ValueSpan");A!=null&&(A=this.getAxisModel().axis.scale.parse(A)),A!=null?i=$t(n[0]+A,n,[0,100],!0):i!=null&&(A=$t(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=A},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=YL(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Ntt(r,t,e){var n=[1/0,-1/0];ls(e,function(A){wX(n,A.getData(),t)});var a=r.getAxisModel(),i=L2(a.axis.scale,a,n).calculate();return[i.min,i.max]}var Vtt={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(A,o){var s=r.getComponent(Li(A),o);a(A,o,s,i)})})}t(function(a,i,A,o){A.__dzAxisProxy=null});var e=[];t(function(a,i,A,o){A.__dzAxisProxy||(A.__dzAxisProxy=new ktt(a,i,o,r),e.push(A.__dzAxisProxy))});var n=ft();return T(e,function(a){T(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Gtt(r){r.registerAction("dataZoom",function(t,e){var n=Rtt(e,t);T(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var MF=!1;function QC(r){MF||(MF=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Vtt),Gtt(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Ktt(r){r.registerComponentModel(Htt),r.registerComponentView(Ott),QC(r)}var on=function(){function r(){}return r}(),pH={};function us(r,t){pH[r]=t}function gH(r){return pH[r]}var ztt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;T(this.option.feature,function(n,a){var i=gH(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Ft(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Rt);function Wtt(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},A=Qe(n,i,a);io(t.get("orient"),r,t.get("itemGap"),A.width,A.height),np(r,n,i,a)}function yH(r,t){var e=rl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Nt({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 Xtt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var A=this.group;if(A.removeAll(),!e.get("show"))return;var o=+e.get("itemSize"),s=e.get("orient")==="vertical",l=e.get("feature")||{},u=this._features||(this._features={}),f=[];T(l,function(v,d){f.push(d)}),new Ya(this._featureNames||[],f).add(c).update(c).remove(xt(c,null)).execute(),this._featureNames=f;function c(v,d){var p=f[v],g=f[d],y=l[p],m=new Yt(y,e,e.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===p&&(y.title=i.newTitle),p&&!g){if(Ytt(p))w={onclick:m.option.onclick,featureName:p};else{var _=gH(p);if(!_)return;w=new _}u[p]=w}else if(w=u[g],!w)return;w.uid=el("toolbox-feature"),w.model=m,w.ecModel=n,w.api=a;var B=w instanceof on;if(!p&&g){B&&w.dispose&&w.dispose(n,a);return}if(!m.get("show")||B&&w.unusable){B&&w.remove&&w.remove(n,a);return}h(m,w,p),m.setIconStatus=function(C,S){var x=this.option,b=this.iconPaths;x.iconStatus=x.iconStatus||{},x.iconStatus[C]=S,b[C]&&(S==="emphasis"?Wa:Xa)(b[C])},w instanceof on&&w.render&&w.render(m,n,a,i)}function h(v,d,p){var g=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),m=d instanceof on&&d.getIcons?d.getIcons():v.get("icon"),w=v.get("title")||{},_,B;nt(m)?(_={},_[p]=m):_=m,nt(w)?(B={},B[p]=w):B=w;var C=v.iconPaths={};T(_,function(S,x){var b=Rf(S,{},{x:-o/2,y:-o/2,width:o,height:o});b.setStyle(g.getItemStyle());var I=b.ensureState("emphasis");I.style=y.getItemStyle();var F=new Gt({style:{text:B[x],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:u_({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});b.setTextContent(F),js({el:b,componentModel:e,itemName:x,formatterParamsExtra:{title:B[x]}}),b.__title=B[x],b.on("mouseover",function(){var E=y.getItemStyle(),D=s?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";F.setStyle({fill:y.get("textFill")||E.fill||E.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),b.setTextConfig({position:y.get("textPosition")||D}),F.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",x])!=="emphasis"&&a.leaveEmphasis(this),F.hide()}),(v.get(["iconStatus",x])==="emphasis"?Wa:Xa)(b),A.add(b),b.on("click",it(d.onclick,d,n,a,x)),C[x]=b})}Wtt(A,e,a),A.add(yH(A.getBoundingRect(),e)),s||A.eachChild(function(v){var d=v.__title,p=v.ensureState("emphasis"),g=p.textConfig||(p.textConfig={}),y=v.getTextContent(),m=y&&y.ensureState("emphasis");if(m&&!vt(m)&&d){var w=m.style||(m.style={}),_=Ef(d,Gt.makeFont(w)),B=v.x+A.x,C=v.y+A.y+o,S=!1;C+_.height>a.getHeight()&&(g.position="top",S=!0);var x=S?-5-_.height:o+10;B+_.width/2>a.getWidth()?(g.position=["100%",x],w.align="right"):B-_.width/2<0&&(g.position=[0,x],w.align="left")}})},t.prototype.updateView=function(e,n,a,i){T(this._features,function(A){A instanceof on&&A.updateView&&A.updateView(A.model,n,a,i)})},t.prototype.remove=function(e,n){T(this._features,function(a){a instanceof on&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){T(this._features,function(a){a instanceof on&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(de);function Ytt(r){return r.indexOf("my")===0}var Ztt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",A=n.getZr().painter.getType()==="svg",o=A?"svg":a.get("type",!0)||"png",s=n.getConnectedDataURL({type:o,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),l=Ut.browser;if(typeof MouseEvent=="function"&&(l.newEdge||!l.ie&&!l.edge)){var u=document.createElement("a");u.download=i+"."+o,u.target="_blank",u.href=s;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||A){var c=s.split(","),h=c[0].indexOf("base64")>-1,v=A?decodeURIComponent(c[1]):c[1];h&&(v=window.atob(v));var d=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=v.length,g=new Uint8Array(p);p--;)g[p]=v.charCodeAt(p);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var w=m.contentWindow,_=w.document;_.open("image/svg+xml","replace"),_.write(v),_.close(),w.focus(),_.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var B=a.get("lang"),C='',S=window.open();S.document.write(C),S.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(on),UF="__ec_magicType_stack__",$tt=[["line","bar"],["stack"]],Jtt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return T(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,A=i.get(["seriesIndex",a]);if(PF[a]){var o={series:[]},s=function(f){var c=f.subType,h=f.id,v=PF[a](c,h,f,i);v&&(gt(v,f.option),o.series.push(v));var d=f.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=d.getAxesByScale("ordinal")[0];if(p){var g=p.dim,y=g+"Axis",m=f.getReferringComponents(y,be).models[0],w=m.componentIndex;o[y]=o[y]||[];for(var _=0;_<=w;_++)o[y][w]=o[y][w]||{};o[y][w].boundaryGap=a==="bar"}}};T($tt,function(f){Qt(f,a)>=0&&T(f,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:A==null?null:{seriesIndex:A}},s);var l,u=a;a==="stack"&&(l=Ft({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(u="tiled")),n.dispatchAction({type:"changeMagicType",currentType:u,newOption:o,newTitle:l,featureName:"magicType"})}},t}(on),PF={line:function(r,t,e,n){if(r==="bar")return Ft({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Ft({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===UF;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Ft({id:t,stack:a?"":UF},n.get(["option","stack"])||{},!0)}};ma({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var wp=new Array(60).join("-"),Ks=" ";function qtt(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var A=i.getBaseAxis();if(A.type==="category"){var o=A.dim+"_"+A.index;t[o]||(t[o]={categoryAxis:A,valueAxis:i.getOtherAxis(A),series:[]},n.push({axisDim:A.dim,axisIndex:A.index})),t[o].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function jtt(r){var t=[];return T(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,A=i.dim,o=[" "].concat(Y(e.series,function(h){return h.name})),s=[a.model.getCategories()];T(e.series,function(h){var v=h.getRawData();s.push(h.getRawData().mapArray(v.mapDimension(A),function(d){return d}))});for(var l=[o.join(Ks)],u=0;u=0)return!0}var Tw=new RegExp("["+Ks+"]+","g");function net(r){for(var t=r.split(/\n+/g),e=nd(t.shift()).split(Tw),n=[],a=Y(e,function(s){return{name:s,data:[]}}),i=0;i=0;i--){var A=e[i];if(A[a])break}if(i<0){var o=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(o){var s=o.getPercentRange();e[0][a]={dataZoomId:a,start:s[0],end:s[1]}}}}),e.push(t)}function uet(r){var t=LC(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return mH(e,function(a,i){for(var A=t.length-1;A>=0;A--)if(a=t[A][i],a){n[i]=a;break}}),n}function fet(r){wH(r).snapshots=null}function cet(r){return LC(r).length}function LC(r){var t=wH(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var het=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){fet(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(on);ma({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var vet=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],MC=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=RF(e,t);T(det,function(A,o){(!n||!n.include||Qt(n.include,o)>=0)&&A(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var A=tm[n.brushType](0,i,a);n.__rangeOffset={offset:NF[n.brushType](A.values,n.range,[1,1]),xyMinMax:A.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){T(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&T(i.coordSyses,function(A){var o=tm[a.brushType](1,A,a.range,!0);n(a,o.values,A,e)})},this)},r.prototype.setInputRanges=function(t,e){T(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=tm[n.brushType](0,a.coordSys,n.coordRange),A=n.__rangeOffset;n.range=A?NF[n.brushType](i.values,A.offset,pet(i.xyMinMax,A.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:IR(a),isTargetByCursor:ER(a,t,n.coordSysModel),getLinearBrushOtherExtent:FR(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&Qt(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=RF(e,t),i=0;ir[1]&&r.reverse(),r}function RF(r,t){return bu(r,t,{includeMainTypes:vet})}var det={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=ft(),A={},o={};!e&&!n&&!a||(T(e,function(s){var l=s.axis.grid.model;i.set(l.id,l),A[l.id]=!0}),T(n,function(s){var l=s.axis.grid.model;i.set(l.id,l),o[l.id]=!0}),T(a,function(s){i.set(s.id,s),A[s.id]=!0,o[s.id]=!0}),i.each(function(s){var l=s.coordinateSystem,u=[];T(l.getCartesians(),function(f,c){(Qt(e,f.getAxis("x").model)>=0||Qt(n,f.getAxis("y").model)>=0)&&u.push(f)}),t.push({panelId:"grid--"+s.id,gridModel:s,coordSysModel:s,coordSys:u[0],coordSyses:u,getPanelRect:OF.grid,xAxisDeclared:A[s.id],yAxisDeclared:o[s.id]})}))},geo:function(r,t){T(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:OF.geo})})}},HF=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],OF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(ao(r)),t}},tm={lineX:xt(kF,0),lineY:xt(kF,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),A=[Iw([a[0],i[0]]),Iw([a[1],i[1]])];return{values:A,xyMinMax:A}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(A){var o=r?t.pointToData(A,n):t.dataToPoint(A,n);return a[0][0]=Math.min(a[0][0],o[0]),a[1][0]=Math.min(a[1][0],o[1]),a[0][1]=Math.max(a[0][1],o[0]),a[1][1]=Math.max(a[1][1],o[1]),o});return{values:i,xyMinMax:a}}};function kF(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Iw(Y([0,1],function(o){return t?a.coordToData(a.toLocalCoord(n[o]),!0):a.toGlobalCoord(a.dataToCoord(n[o]))})),A=[];return A[r]=i,A[1-r]=[NaN,NaN],{values:i,xyMinMax:A}}var NF={lineX:xt(VF,0),lineY:xt(VF,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return Y(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function VF(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function pet(r,t){var e=GF(r),n=GF(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function GF(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Fw=T,get=xK("toolbox-dataZoom_"),yet=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new lC(a.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),Bet(e,n,this,i,a),wet(e,n)},t.prototype.onclick=function(e,n,a){met[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var A=new MC(UC(this.model),i,{include:["grid"]});A.matchOutputRanges(n,i,function(l,u,f){if(f.type==="cartesian2d"){var c=l.brushType;c==="rect"?(o("x",f,u[0]),o("y",f,u[1])):o({lineX:"x",lineY:"y"}[c],f,u)}}),set(i,a),this._dispatchZoomAction(a);function o(l,u,f){var c=u.getAxis(l),h=c.model,v=s(l,h,i),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(f=Fo(0,f.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function s(l,u,f){var c;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(l,u.componentIndex);v&&(c=h)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Fw(e,function(a,i){n.push(mt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(on),met={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(uet(this.ecModel))}};function UC(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function wet(r,t){r.setIconStatus("back",cet(t)>1?"emphasis":"normal")}function Bet(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var A=new MC(UC(r),t,{include:["grid"]}),o=A.makePanelOpts(a,function(s){return s.xAxisDeclared&&!s.yAxisDeclared?"lineX":!s.xAxisDeclared&&s.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(o).enableBrush(i&&o.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}$5("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=UC(n),A=bu(r,i);Fw(A.xAxisModels,function(s){return o(s,"xAxis","xAxisIndex")}),Fw(A.yAxisModels,function(s){return o(s,"yAxis","yAxisIndex")});function o(s,l,u){var f=s.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:get+l+f};c[u]=f,a.push(c)}return a});function _et(r){r.registerComponentModel(ztt),r.registerComponentView(Xtt),us("saveAsImage",Ztt),us("magicType",Jtt),us("dataView",Aet),us("dataZoom",yet),us("restore",het),Lt(Ktt)}var Cet=function(r){H(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}(Rt);function BH(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function _H(r){if(Ut.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(o+="top:50%",s+="translateY(-50%) rotate("+(l=i==="left"?-225:-45)+"deg)"):(o+="left:50%",s+="translateX(-50%) rotate("+(l=i==="top"?225:45)+"deg)");var u=l*Math.PI/180,f=A+a,c=f*Math.abs(Math.cos(u))+f*Math.abs(Math.sin(u)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-f)/2)*100)/100;o+=";"+i+":-"+h+"px";var v=t+" solid "+a+"px;",d=["position:absolute;width:"+A+"px;height:"+A+"px;z-index:-1;",o+";"+s+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function Det(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=Ut.transformSupported?","+PC+n:",left"+n+",top"+n),Tet+":"+a}function KF(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Ut.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Ut.transform3dSupported,A="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+PC+":"+A+";":[["top",0],["left",0],[CH,A]]}function Qet(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,A=r.get("textShadowOffsetX")||0,o=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+A+"px "+o+"px "+i+"px "+a),T(["decoration","align"],function(s){var l=r.get(s);l&&t.push("text-"+s+":"+l)}),t.join(";")}function Let(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),A=r.get("shadowBlur"),o=r.get("shadowColor"),s=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),u=r.getModel("textStyle"),f=RU(r,"html"),c=s+"px "+l+"px "+A+"px "+o;return n.push("box-shadow:"+c),t&&a&&n.push(Det(a,e)),i&&n.push("background-color:"+i),T(["width","color","radius"],function(h){var v="border-"+h,d=nU(v),p=r.get(d);p!=null&&n.push(v+":"+p+(h==="color"?"":"px"))}),n.push(Qet(u)),f!=null&&n.push("padding:"+rl(f).join("px ")+"px"),n.join(";")+";"}function zF(r,t,e,n,a){var i=t&&t.painter;if(e){var A=i&&i.getViewportRoot();A&&nG(r,A,e,n,a)}else{r[0]=n,r[1]=a;var o=i&&i.getViewportRootOffset();o&&(r[0]+=o.offsetLeft,r[1]+=o.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Met=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,Ut.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,A=i&&(nt(i)?document.querySelector(i):Ms(i)?i:vt(i)&&i(t.getDom()));zF(this._styleCoord,a,A,t.getWidth()/2,t.getHeight()/2),(A||t.getDom()).appendChild(n),this._api=t,this._container=A;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(s){if(s=s||window.event,!o._enterable){var l=a.handler,u=a.painter.getViewportRoot();tn(u,s,!0),l.dispatch("mousemove",s)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=bet(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=Iet+Let(t,!this._firstShow,this._longHide)+KF(i[0],i[1],!0)+("border-color:"+go(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var A=this.el;if(t==null){A.innerHTML="";return}var o="";if(nt(i)&&n.get("trigger")==="item"&&!BH(n)&&(o=Eet(n,a,i)),nt(t))A.innerHTML=t+o;else if(t){A.innerHTML="",K(t)||(t=[t]);for(var s=0;s=0?this._tryShow(i,A):a==="leave"&&this._hide(A))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var A=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&A.manuallyShowTip(e,n,a,{x:A._lastX,y:A._lastY,dataByCoordSys:A._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||Ut.node||!a.getDom())){var A=YF(i,a);this._ticket="";var o=i.dataByCoordSys,s=Net(i,n,a);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:i.position,positionDefault:"bottom"},A)}else if(i.tooltip&&i.x!=null&&i.y!=null){var u=Pet;u.x=i.x,u.y=i.y,u.update(),Ct(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},A)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},A);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=lH(i,n),c=f.point[0],h=f.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},A)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},A))}},t.prototype.manuallyHideTip=function(e,n,a,i){var A=this._tooltipContent;this._tooltipModel&&A.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(YF(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var A=i.seriesIndex,o=i.dataIndex,s=n.getComponent("axisPointer").coordSysAxesInfo;if(!(A==null||o==null||s==null)){var l=n.getSeriesByIndex(A);if(l){var u=l.getData(),f=Ol([u.getItemModel(o),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:A,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var A=e.dataByCoordSys;if(A&&A.length)this._showAxisTooltip(A,e);else if(a){var o=Ct(a);if(o.ssrType==="legend")return;this._lastDataByCoordSys=null;var s,l;XA(a,function(u){if(Ct(u).dataIndex!=null)return s=u,!0;if(Ct(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=it(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,A=[n.offsetX,n.offsetY],o=Ol([n.tooltipOption],i),s=this._renderMode,l=[],u=Oe("section",{blocks:[],noHeader:!0}),f=[],c=new Og;T(e,function(y){T(y.dataByAxis,function(m){var w=a.getComponent(m.axisDim+"Axis",m.axisIndex),_=m.value;if(!(!w||_==null)){var B=iH(_,w.axis,a,m.seriesDataIndices,m.valueLabelOpt),C=Oe("section",{header:B,noHeader:!En(B),sortBlocks:!0,blocks:[]});u.blocks.push(C),T(m.seriesDataIndices,function(S){var x=a.getSeriesByIndex(S.seriesIndex),b=S.dataIndexInside,I=x.getDataParams(b);if(!(I.dataIndex<0)){I.axisDim=m.axisDim,I.axisIndex=m.axisIndex,I.axisType=m.axisType,I.axisId=m.axisId,I.axisValue=R_(w.axis,{value:_}),I.axisValueLabel=B,I.marker=c.makeTooltipMarker("item",go(I.color),s);var F=Mx(x.formatTooltip(b,!0,null)),E=F.frag;if(E){var D=Ol([x],i).get("valueFormatter");C.blocks.push(D?V({valueFormatter:D},E):E)}F.text&&f.push(F.text),l.push(I)}})}})}),u.blocks.reverse(),f.reverse();var h=n.position,v=o.get("order"),d=kx(u,c,s,v,a.get("useUTC"),o.get("textStyle"));d&&f.unshift(d);var p=s==="richText"?` + +`:"
",g=f.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(o,h,A[0],A[1],this._tooltipContent,l):this._showTooltipContent(o,g,l,Math.random()+"",A[0],A[1],h,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,A=Ct(n),o=A.seriesIndex,s=i.getSeriesByIndex(o),l=A.dataModel||s,u=A.dataIndex,f=A.dataType,c=l.getData(f),h=this._renderMode,v=e.positionDefault,d=Ol([c.getItemModel(u),l,s&&(s.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=d.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(u,f),y=new Og;g.marker=y.makeTooltipMarker("item",go(g.color),h);var m=Mx(l.formatTooltip(u,!1,f)),w=d.get("order"),_=d.get("valueFormatter"),B=m.frag,C=B?kx(_?V({valueFormatter:_},B):B,y,h,w,i.get("useUTC"),d.get("textStyle")):m.text,S="item_"+l.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,C,g,S,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",A=Ct(n),o=A.tooltipConfig,s=o.option||{},l=s.encodeHTMLContent;if(nt(s)){var u=s;s={content:u,formatter:u},l=!0}l&&i&&s.content&&(s=mt(s),s.content=Er(s.content));var f=[s],c=this._ecModel.getComponent(A.componentMainType,A.componentIndex);c&&f.push(c),f.push({formatter:s.content});var h=e.positionDefault,v=Ol(f,this._tooltipModel,h?{position:h}:null),d=v.get("content"),p=Math.random()+"",g=new Og;this._showOrMove(v,function(){var y=mt(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,p,e.offsetX,e.offsetY,e.position,n,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,A,o,s,l,u){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var c=e.get("formatter");s=s||e.get("position");var h=n,v=this._getNearestPoint([A,o],a,e.get("trigger"),e.get("borderColor")),d=v.color;if(c)if(nt(c)){var p=e.ecModel.get("useUTC"),g=K(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=qd(g.axisValue,h,p)),h=aU(h,a,!0)}else if(vt(c)){var m=it(function(w,_){w===this._ticket&&(f.setContent(_,u,e,d,s),this._updatePosition(e,s,A,o,f,a,l))},this);this._ticket=i,h=c(a,i,m)}else h=c;f.setContent(h,u,e,d,s),f.show(e,d),this._updatePosition(e,s,A,o,f,a,l)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||K(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!K(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,A,o,s){var l=this._api.getWidth(),u=this._api.getHeight();n=n||e.get("position");var f=A.getSize(),c=e.get("align"),h=e.get("verticalAlign"),v=s&&s.getBoundingRect().clone();if(s&&v.applyTransform(s.transform),vt(n)&&(n=n([a,i],o,A.el,v,{viewSize:[l,u],contentSize:f.slice()})),K(n))a=et(n[0],l),i=et(n[1],u);else if(yt(n)){var d=n;d.width=f[0],d.height=f[1];var p=Qe(d,{width:l,height:u});a=p.x,i=p.y,c=null,h=null}else if(nt(n)&&s){var g=ket(n,v,f,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=Het(a,i,A,l,u,c?null:20,h?null:20);a=g[0],i=g[1]}if(c&&(a-=ZF(c)?f[0]/2:c==="right"?f[0]:0),h&&(i-=ZF(h)?f[1]/2:h==="bottom"?f[1]:0),BH(e)){var g=Oet(a,i,A,l,u);a=g[0],i=g[1]}A.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,A=!!a&&a.length===e.length;return A&&T(a,function(o,s){var l=o.dataByAxis||[],u=e[s]||{},f=u.dataByAxis||[];A=A&&l.length===f.length,A&&T(l,function(c,h){var v=f[h]||{},d=c.seriesDataIndices||[],p=v.seriesDataIndices||[];A=A&&c.value===v.value&&c.axisType===v.axisType&&c.axisId===v.axisId&&d.length===p.length,A&&T(d,function(g,y){var m=p[y];A=A&&g.seriesIndex===m.seriesIndex&&g.dataIndex===m.dataIndex}),i&&T(c.seriesDataIndices,function(g){var y=g.seriesIndex,m=n[y],w=i[y];m&&w&&w.data!==m.data&&(A=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!A},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Ut.node||!n.getDom()||(sf(this,"_updatePosition"),this._tooltipContent.dispose(),Sw("itemTooltip",n))},t.type="tooltip",t}(de);function Ol(r,t,e){var n=t.ecModel,a;e?(a=new Yt(e,n,n),a=new Yt(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var A=r[i];A&&(A instanceof Yt&&(A=A.get("tooltip",!0)),nt(A)&&(A={formatter:A}),A&&(a=new Yt(A,a,n)))}return a}function YF(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function Het(r,t,e,n,a,i,A){var o=e.getSize(),s=o[0],l=o[1];return i!=null&&(r+s+i+2>n?r-=s+i:r+=i),A!=null&&(t+l+A>a?t-=l+A:t+=A),[r,t]}function Oet(r,t,e,n,a){var i=e.getSize(),A=i[0],o=i[1];return r=Math.min(r+A,n)-A,t=Math.min(t+o,a)-o,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function ket(r,t,e,n){var a=e[0],i=e[1],A=Math.ceil(Math.SQRT2*n)+8,o=0,s=0,l=t.width,u=t.height;switch(r){case"inside":o=t.x+l/2-a/2,s=t.y+u/2-i/2;break;case"top":o=t.x+l/2-a/2,s=t.y-i-A;break;case"bottom":o=t.x+l/2-a/2,s=t.y+u+A;break;case"left":o=t.x-a-A,s=t.y+u/2-i/2;break;case"right":o=t.x+l+A,s=t.y+u/2-i/2}return[o,s]}function ZF(r){return r==="center"||r==="middle"}function Net(r,t,e){var n=JB(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Df(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),A=i.models[0];if(A){var o=e.getViewOfComponentModel(A),s;if(o.group.traverse(function(l){var u=Ct(l).tooltipConfig;if(u&&u.name===r.name)return s=l,!0}),s)return{componentMainType:a,componentIndex:A.componentIndex,el:s}}}}function Vet(r){Lt($f),r.registerComponentModel(Cet),r.registerComponentView(Ret),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Be),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Be)}var Get=["rect","polygon","keep","clear"];function Ket(r,t){var e=qt(r?r.brush:[]);if(e.length){var n=[];T(e,function(s){var l=s.hasOwnProperty("toolbox")?s.toolbox:[];l instanceof Array&&(n=n.concat(l))});var a=r&&r.toolbox;K(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),A=i.brush||(i.brush={}),o=A.type||(A.type=[]);o.push.apply(o,n),zet(o),t&&!o.length&&o.push.apply(o,Get)}}function zet(r){var t={};T(r,function(e){t[e]=1}),r.length=0,T(t,function(e,n){r.push(n)})}var $F=T;function JF(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Ew(r,t,e){var n={};return $F(t,function(i){var A=n[i]=a();$F(r[i],function(o,s){if(Re.isValidType(s)){var l={type:s,visual:o};e&&e(l,i),A[s]=new Re(l),s==="opacity"&&(l=mt(l),l.type="colorAlpha",A.__hidden.__alphaForOpacity=new Re(l))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var A=new i;return A}}function xH(r,t,e){var n;T(e,function(a){t.hasOwnProperty(a)&&JF(t[a])&&(n=!0)}),n&&T(e,function(a){t.hasOwnProperty(a)&&JF(t[a])?r[a]=mt(t[a]):delete r[a]})}function Wet(r,t,e,n,a,i){var A={};T(r,function(f){var c=Re.prepareVisualTypes(t[f]);A[f]=c});var o;function s(f){return b_(e,o,f)}function l(f,c){XU(e,o,f,c)}e.each(u);function u(f,c){o=f;var h=e.getRawDataItem(o);if(!(h&&h.visualMap===!1))for(var v=n.call(a,f),d=t[v],p=A[v],g=0,y=p.length;gt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&rE(t)}};function rE(r){return new Et(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var trt=function(r){H(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){this.ecModel=e,this.api=n,this.model,(this._brushController=new lC(n.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){bH(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:mt(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:mt(a),$from:n})},t.type="brush",t}(de),ert="#ddd",rrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&xH(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:ert},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(n){return nE(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=nE(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Rt);function nE(r,t){return Ft({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Yt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var nrt=["rect","polygon","lineX","lineY","keep","clear"],art=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,A,o;n.eachComponent({mainType:"brush"},function(s){i=s.brushType,A=s.brushOption.brushMode||"single",o=o||!!s.areas.length}),this._brushType=i,this._brushMode=A,T(e.get("type",!0),function(s){e.setIconStatus(s,(s==="keep"?A==="multiple":s==="clear"?o:s===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return T(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,A=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?A==="multiple"?"single":"multiple":A}})},t.getDefaultOption=function(e){var n={show:!0,type:nrt.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(on);function irt(r){r.registerComponentView(trt),r.registerComponentModel(rrt),r.registerPreprocessor(Ket),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Zet),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Be),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Be),us("brush",art)}var Art=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Rt),ort=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,A=e.getModel("textStyle"),o=e.getModel("subtextStyle"),s=e.get("textAlign"),l=St(e.get("textBaseline"),e.get("textVerticalAlign")),u=new Gt({style:oe(A,{text:e.get("text"),fill:A.getTextColor()},{disableBox:!0}),z2:10}),f=u.getBoundingRect(),c=e.get("subtext"),h=new Gt({style:oe(o,{text:c,fill:o.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),d=e.get("sublink"),p=e.get("triggerEvent",!0);u.silent=!v&&!p,h.silent=!d&&!p,v&&u.on("click",function(){Lv(v,"_"+e.get("target"))}),d&&h.on("click",function(){Lv(d,"_"+e.get("subtarget"))}),Ct(u).eventData=Ct(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(u),c&&i.add(h);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=Qe(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));s||(s=e.get("left")||e.get("right"),s==="middle"&&(s="center"),s==="right"?m.x+=m.width:s==="center"&&(m.x+=m.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?m.y+=m.height:l==="middle"&&(m.y+=m.height/2),l=l||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var w={align:s,verticalAlign:l};u.setStyle(w),h.setStyle(w),g=i.getBoundingRect();var _=m.margin,B=e.getItemStyle(["color","opacity"]);B.fill=e.get("backgroundColor");var C=new Nt({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:B,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(de);function srt(r){r.registerComponentModel(Art),r.registerComponentView(ort)}var aE=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],a=e.axisType,i=this._names=[],A;a==="category"?(A=[],T(n,function(l,u){var f=Ee($s(l),""),c;yt(l)?(c=mt(l),c.value=u):c=u,A.push(c),i.push(f)})):A=n;var o={category:"ordinal",time:"time",value:"number"}[a]||"number",s=this._data=new mr([{name:"value",type:o}],this);s.initData(A,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Rt),TH=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=nA(aE.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(aE);Ie(TH,ip.prototype);var lrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(de),urt=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this,e,n,a)||this;return A.type=i||"value",A}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(On),rm=Math.PI,iE=Vt(),frt=function(r){H(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){this.api=n},t.prototype.render=function(e,n,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),A=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(l){var u=s.scale.getLabel({value:l});return Oe("nameValue",{noName:!0,value:u})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(l){this["_render"+l](i,A,s,e)},this),this._renderAxisLabel(i,o,s,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var a=e.get(["label","position"]),i=e.get("orient"),A=hrt(e,n),o;a==null||a==="auto"?o=i==="horizontal"?A.y+A.height/2=0||o==="+"?"left":"right"},l={horizontal:o>=0||o==="+"?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:rm/2},f=i==="vertical"?A.height:A.width,c=e.getModel("controlStyle"),h=c.get("show",!0),v=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,p=v+d,g=e.get(["label","rotate"])||0;g=g*rm/180;var y,m,w,_=c.get("position",!0),B=h&&c.get("showPlayBtn",!0),C=h&&c.get("showPrevBtn",!0),S=h&&c.get("showNextBtn",!0),x=0,b=f;_==="left"||_==="bottom"?(B&&(y=[0,0],x+=p),C&&(m=[x,0],x+=p),S&&(w=[b-v,0],b-=p)):(B&&(y=[b-v,0],b-=p),C&&(m=[0,0],x+=p),S&&(w=[b-v,0],b-=p));var I=[x,b];return e.get("inverse")&&I.reverse(),{viewRect:A,mainLength:f,orient:i,rotation:u[i],labelRotation:g,labelPosOpt:o,labelAlign:e.get(["label","align"])||s[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||l[i],playPosition:y,prevBtnPosition:m,nextBtnPosition:w,axisExtent:I,controlSize:v,controlGap:d}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,A=e.viewRect;if(e.orient==="vertical"){var o=Wr(),s=A.x,l=A.y+A.height;va(o,o,[-s,-l]),Co(o,o,-rm/2),va(o,o,[s,l]),A=A.clone(),A.applyTransform(o)}var u=y(A),f=y(a.getBoundingRect()),c=y(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=u[0][0];var d=e.labelPosOpt;if(d==null||nt(d)){var p=d==="+"?0:1;m(h,f,u,1,p),m(v,c,u,1,1-p)}else{var p=d>=0?0:1;m(h,f,u,1,p),v[1]=h[1]+d}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=e.rotation,g(a),g(i);function g(w){w.originX=u[0][0]-w.x,w.originY=u[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function m(w,_,B,C,S){w[C]+=B[C][S]-_[C][S]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType"),A=crt(n,i);A.getTicks=function(){return a.mapArray(["value"],function(l){return{value:l}})};var o=a.getDataExtent("value");A.setExtent(o[0],o[1]),A.calcNiceTicks();var s=new urt("value",A,e.axisExtent,i);return s.model=n,s},t.prototype._createGroup=function(e){var n=this[e]=new _t;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var A=a.getExtent();if(i.get(["lineStyle","show"])){var o=new Ue({shape:{x1:A[0],y1:0,x2:A[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(o);var s=this._progressLine=new Ue({shape:{x1:A[0],x2:this._currentPointer?this._currentPointer.x:A[0],y1:0,y2:0},style:gt({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(s)}},t.prototype._renderAxisTick=function(e,n,a,i){var A=this,o=i.getData(),s=a.scale.getTicks();this._tickSymbols=[],T(s,function(l){var u=a.dataToCoord(l.value),f=o.getItemModel(l.value),c=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),d={x:u,y:0,onclick:it(A._changeTimeline,A,l.value)},p=AE(f,c,n,d);p.ensureState("emphasis").style=h.getItemStyle(),p.ensureState("progress").style=v.getItemStyle(),no(p);var g=Ct(p);f.get("tooltip")?(g.dataIndex=l.value,g.dataModel=i):g.dataIndex=g.dataModel=null,A._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(e,n,a,i){var A=this,o=a.getLabelModel();if(o.get("show")){var s=i.getData(),l=a.getViewLabels();this._tickLabels=[],T(l,function(u){var f=u.tickValue,c=s.getItemModel(f),h=c.getModel("label"),v=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),p=a.dataToCoord(u.tickValue),g=new Gt({x:p,y:0,rotation:e.labelRotation-e.rotation,onclick:it(A._changeTimeline,A,f),silent:!1,style:oe(h,{text:u.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});g.ensureState("emphasis").style=oe(v),g.ensureState("progress").style=oe(d),n.add(g),no(g),iE(g).dataIndex=f,A._tickLabels.push(g)})}},t.prototype._renderControl=function(e,n,a,i){var A=e.controlSize,o=e.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),f=i.get("inverse",!0);c(e.nextBtnPosition,"next",it(this._changeTimeline,this,f?"-":"+")),c(e.prevBtnPosition,"prev",it(this._changeTimeline,this,f?"+":"-")),c(e.playPosition,u?"stop":"play",it(this._handlePlayClick,this,!u),!0);function c(h,v,d,p){if(h){var g=Pn(St(i.get(["controlStyle",v+"BtnSize"]),A),A),y=[0,-g/2,g,g],m=vrt(i,v+"Icon",y,{x:h[0],y:h[1],originX:A/2,originY:0,rotation:p?-o:0,rectHover:!0,style:s,onclick:d});m.ensureState("emphasis").style=l,n.add(m),no(m)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var A=i.getData(),o=i.getCurrentIndex(),s=A.getItemModel(o).getModel("checkpointStyle"),l=this,u={onCreate:function(f){f.draggable=!0,f.drift=it(l._handlePointerDrag,l),f.ondragend=it(l._handlePointerDragend,l),oE(f,l._progressLine,o,a,i,!0)},onUpdate:function(f){oE(f,l._progressLine,o,a,i)}};this._currentPointer=AE(s,s,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,A=fn(i.getExtent().slice());a>A[1]&&(a=A[1]),a=0&&(A[i]=+A[i].toFixed(c)),[A,f]}var nm={min:xt(ih,"min"),max:xt(ih,"max"),average:xt(ih,"average"),median:xt(ih,"median")};function _f(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!wrt(t)&&!K(t.coord)&&K(a)){var i=IH(t,e,n,r);if(t=mt(t),t.type&&nm[t.type]&&i.baseAxis&&i.valueAxis){var A=Qt(a,i.baseAxis.dim),o=Qt(a,i.valueAxis.dim),s=nm[t.type](e,i.baseDataDim,i.valueDataDim,A,o);t.coord=s[0],t.value=s[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!K(a))t.coord=[];else for(var l=t.coord,u=0;u<2;u++)nm[l[u]]&&(l[u]=HC(e,e.mapDimension(a[u]),l[u]));return t}}function IH(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(Brt(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function Brt(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Cf(r,t){return r&&r.containData&&t.coord&&!Qw(t)?r.containData(t.coord):!0}function _rt(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Qw(t)&&!Qw(e)?r.containZone(t.coord,e.coord):!0}function FH(r,t){return r?function(e,n,a,i){var A=i<2?e.coord&&e.coord[i]:e.value;return Oi(A,t[i])}:function(e,n,a,i){return Oi(e.value,t[i])}}function HC(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,A){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var am=Vt(),OC=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ft()},t.prototype.render=function(e,n,a){var i=this,A=this.markerGroupMap;A.each(function(o){am(o).keep=!1}),n.eachSeries(function(o){var s=Ja.getMarkerModelFromSeries(o,i.type);s&&i.renderSeries(o,s,n,a)}),A.each(function(o){!am(o).keep&&i.group.remove(o.group)})},t.prototype.markKeep=function(e){am(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;T(e,function(i){var A=Ja.getMarkerModelFromSeries(i,a.type);if(A){var o=A.getData();o.eachItemGraphicEl(function(s){s&&(n?BM(s):a_(s))})}})},t.type="marker",t}(de);function lE(r,t,e){var n=t.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),A,o=et(i.get("x"),e.getWidth()),s=et(i.get("y"),e.getHeight());if(!isNaN(o)&&!isNaN(s))A=[o,s];else if(t.getMarkerPosition)A=t.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var l=r.get(n.dimensions[0],a),u=r.get(n.dimensions[1],a);A=n.dataToPoint([l,u])}isNaN(o)||(A[0]=o),isNaN(s)||(A[1]=s),r.setItemLayout(a,A)})}var Crt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markPoint");A&&(lE(A.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new Gf),f=Srt(A,e,n);n.setData(f),lE(n.getData(),e,i),f.each(function(c){var h=f.getItemModel(c),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),p=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(vt(v)||vt(d)||vt(p)||vt(g)){var m=n.getRawValue(c),w=n.getDataParams(c);vt(v)&&(v=v(m,w)),vt(d)&&(d=d(m,w)),vt(p)&&(p=p(m,w)),vt(g)&&(g=g(m,w))}var _=h.getModel("itemStyle").getItemStyle(),B=Of(s,"color");_.fill||(_.fill=B),f.setItemVisual(c,{symbol:v,symbolSize:d,symbolRotate:p,symbolOffset:g,symbolKeepAspect:y,style:_})}),u.updateData(f),this.group.add(u.group),f.eachItemGraphicEl(function(c){c.traverse(function(h){Ct(h).dataModel=n})}),this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(OC);function Srt(r,t,e){var n;r?n=Y(r&&r.dimensions,function(o){var s=t.getData().getDimensionInfo(t.getData().mapDimension(o))||{};return V(V({},s),{name:o,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=Y(e.get("data"),xt(_f,t));r&&(i=Jt(i,xt(Cf,r)));var A=FH(!!r,n);return a.initData(i,null,A),a}function xrt(r){r.registerComponentModel(mrt),r.registerComponentView(Crt),r.registerPreprocessor(function(t){RC(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var brt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ja),Ah=Vt(),Trt=function(r,t,e,n){var a=r.getData(),i;if(K(n))i=n;else{var A=n.type;if(A==="min"||A==="max"||A==="average"||A==="median"||n.xAxis!=null||n.yAxis!=null){var o=void 0,s=void 0;if(n.yAxis!=null||n.xAxis!=null)o=t.getAxis(n.yAxis!=null?"y":"x"),s=Ve(n.yAxis,n.xAxis);else{var l=IH(n,a,t,r);o=l.valueAxis;var u=_2(a,l.valueDataDim);s=HC(a,u,A)}var f=o.dim==="x"?0:1,c=1-f,h=mt(n),v={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,v.coord[c]=1/0;var d=e.get("precision");d>=0&&Kt(s)&&(s=+s.toFixed(Math.min(d,20))),h.coord[f]=v.coord[f]=s,i=[h,v,{type:A,valueIndex:n.valueIndex,value:s}]}else i=[]}var p=[_f(r,i[0]),_f(r,i[1]),V({},i[2])];return p[2].type=p[2].type||null,Ft(p[2],p[0]),Ft(p[2],p[1]),p};function ad(r){return!isNaN(r)&&!isFinite(r)}function uE(r,t,e,n){var a=1-r,i=n.dimensions[r];return ad(t[a])&&ad(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function Irt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(uE(1,e,n,r)||uE(0,e,n,r)))return!0}return Cf(r,t[0])&&Cf(r,t[1])}function im(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get("x"),a.getWidth()),l=et(A.get("y"),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition)o=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var u=i.dimensions,f=r.get(u[0],t),c=r.get(u[1],t);o=i.dataToPoint([f,c])}if(To(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),u=i.dimensions;ad(r.get(u[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):ad(r.get(u[1],t))&&(o[1]=v.toGlobalCoord(v.getExtent()[e?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}r.setItemLayout(t,o)}var Frt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markLine");if(A){var o=A.getData(),s=Ah(A).from,l=Ah(A).to;s.each(function(u){im(s,u,!0,i,a),im(l,u,!1,i,a)}),o.each(function(u){o.setItemLayout(u,[s.getItemLayout(u),l.getItemLayout(u)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new sC);this.group.add(u.group);var f=Ert(A,e,n),c=f.from,h=f.to,v=f.line;Ah(n).from=c,Ah(n).to=h,n.setData(v);var d=n.get("symbol"),p=n.get("symbolSize"),g=n.get("symbolRotate"),y=n.get("symbolOffset");K(d)||(d=[d,d]),K(p)||(p=[p,p]),K(g)||(g=[g,g]),K(y)||(y=[y,y]),f.from.each(function(w){m(c,w,!0),m(h,w,!1)}),v.each(function(w){var _=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[c.getItemLayout(w),h.getItemLayout(w)]),_.stroke==null&&(_.stroke=c.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:c.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(w,"symbolOffset"),fromSymbolRotate:c.getItemVisual(w,"symbolRotate"),fromSymbolSize:c.getItemVisual(w,"symbolSize"),fromSymbol:c.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:_})}),u.updateData(v),f.line.eachItemGraphicEl(function(w){Ct(w).dataModel=n,w.traverse(function(_){Ct(_).dataModel=n})});function m(w,_,B){var C=w.getItemModel(_);im(w,_,B,e,i);var S=C.getModel("itemStyle").getItemStyle();S.fill==null&&(S.fill=Of(s,"color")),w.setItemVisual(_,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:St(C.get("symbolOffset",!0),y[B?0:1]),symbolRotate:St(C.get("symbolRotate",!0),g[B?0:1]),symbolSize:St(C.get("symbolSize"),p[B?0:1]),symbol:St(C.get("symbol",!0),d[B?0:1]),style:S})}this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(OC);function Ert(r,t,e){var n;r?n=Y(r&&r.dimensions,function(l){var u=t.getData().getDimensionInfo(t.getData().mapDimension(l))||{};return V(V({},u),{name:l,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=new mr(n,e),A=new mr([],e),o=Y(e.get("data"),xt(Trt,t,r,e));r&&(o=Jt(o,xt(Irt,r)));var s=FH(!!r,n);return a.initData(Y(o,function(l){return l[0]}),null,s),i.initData(Y(o,function(l){return l[1]}),null,s),A.initData(Y(o,function(l){return l[2]})),A.hasItemOption=!0,{from:a,to:i,line:A}}function Drt(r){r.registerComponentModel(brt),r.registerComponentView(Frt),r.registerPreprocessor(function(t){RC(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Qrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ja),oh=Vt(),Lrt=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var A=_f(r,a),o=_f(r,i),s=A.coord,l=o.coord;s[0]=Ve(s[0],-1/0),s[1]=Ve(s[1],-1/0),l[0]=Ve(l[0],1/0),l[1]=Ve(l[1],1/0);var u=kB([{},A,o]);return u.coord=[A.coord,o.coord],u.x0=A.x,u.y0=A.y,u.x1=o.x,u.y1=o.y,u}};function id(r){return!isNaN(r)&&!isFinite(r)}function fE(r,t,e,n){var a=1-r;return id(t[a])&&id(e[a])}function Mrt(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return To(r,"cartesian2d")?e&&n&&(fE(1,e,n)||fE(0,e,n))?!0:_rt(r,a,i):Cf(r,a)||Cf(r,i)}function cE(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get(e[0]),a.getWidth()),l=et(A.get(e[1]),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition){var u=r.getValues(["x0","y0"],t),f=r.getValues(["x1","y1"],t),c=i.clampData(u),h=i.clampData(f),v=[];e[0]==="x0"?v[0]=c[0]>h[0]?f[0]:u[0]:v[0]=c[0]>h[0]?u[0]:f[0],e[1]==="y0"?v[1]=c[1]>h[1]?f[1]:u[1]:v[1]=c[1]>h[1]?u[1]:f[1],o=n.getMarkerPosition(v,e,!0)}else{var d=r.get(e[0],t),p=r.get(e[1],t),g=[d,p];i.clampData&&i.clampData(g,g),o=i.dataToPoint(g,!0)}if(To(i,"cartesian2d")){var y=i.getAxis("x"),m=i.getAxis("y"),d=r.get(e[0],t),p=r.get(e[1],t);id(d)?o[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):id(p)&&(o[1]=m.toGlobalCoord(m.getExtent()[e[1]==="y0"?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}return o}var hE=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Urt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markArea");if(A){var o=A.getData();o.each(function(s){var l=Y(hE,function(f){return cE(o,s,f,i,a)});o.setItemLayout(s,l);var u=o.getItemGraphicEl(s);u.setShape("points",l)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new _t});this.group.add(u.group),this.markKeep(u);var f=Prt(A,e,n);n.setData(f),f.each(function(c){var h=Y(hE,function(S){return cE(f,c,S,e,i)}),v=A.getAxis("x").scale,d=A.getAxis("y").scale,p=v.getExtent(),g=d.getExtent(),y=[v.parse(f.get("x0",c)),v.parse(f.get("x1",c))],m=[d.parse(f.get("y0",c)),d.parse(f.get("y1",c))];fn(y),fn(m);var w=!(p[0]>y[1]||p[1]m[1]||g[1]=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}(Rt),Yo=xt,Mw=T,sh=_t,EH=function(r){H(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 sh),this.group.add(this._selectorGroup=new sh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var A=e.get("align"),o=e.get("orient");(!A||A==="auto")&&(A=e.get("left")==="right"&&o==="vertical"?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);s&&(!l||l==="auto")&&(l=o==="horizontal"?"end":"start"),this.renderInner(A,e,n,a,s,o,l);var u=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},c=e.get("padding"),h=Qe(u,f,c),v=this.layoutInner(e,A,h,i,s,l),d=Qe(gt({width:v.width,height:v.height},u),f,c);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yH(v,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,A,o,s){var l=this.getContentGroup(),u=ft(),f=n.get("selectedMode"),c=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&c.push(h.id)}),Mw(n.getData(),function(h,v){var d=h.get("name");if(!this.newlineDisabled&&(d===""||d===` +`)){var p=new sh;p.newline=!0,l.add(p);return}var g=a.getSeriesByName(d)[0];if(!u.get(d))if(g){var y=g.getData(),m=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),_=y.getVisual("style"),B=this._createItem(g,d,v,h,n,e,m,_,w,f,i);B.on("click",Yo(vE,d,null,i,c)).on("mouseover",Yo(Uw,g.name,null,i,c)).on("mouseout",Yo(Pw,g.name,null,i,c)),a.ssr&&B.eachChild(function(C){var S=Ct(C);S.seriesIndex=g.seriesIndex,S.dataIndex=v,S.ssrType="legend"}),u.set(d,!0)}else a.eachRawSeries(function(C){if(!u.get(d)&&C.legendVisualProvider){var S=C.legendVisualProvider;if(!S.containName(d))return;var x=S.indexOfName(d),b=S.getItemVisual(x,"style"),I=S.getItemVisual(x,"legendIcon"),F=Xr(b.fill);F&&F[3]===0&&(F[3]=.2,b=V(V({},b),{fill:Oa(F,"rgba")}));var E=this._createItem(C,d,v,h,n,e,{},b,I,f,i);E.on("click",Yo(vE,null,d,i,c)).on("mouseover",Yo(Uw,null,d,i,c)).on("mouseout",Yo(Pw,null,d,i,c)),a.ssr&&E.eachChild(function(D){var Q=Ct(D);Q.seriesIndex=C.seriesIndex,Q.dataIndex=v,Q.ssrType="legend"}),u.set(d,!0)}},this)},this),A&&this._createSelector(A,n,i,o,s)},t.prototype._createSelector=function(e,n,a,i,A){var o=this.getSelectorGroup();Mw(e,function(l){var u=l.type,f=new Gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});o.add(f);var c=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Je(f,{normal:c,emphasis:h},{defaultText:l.title}),no(f)})},t.prototype._createItem=function(e,n,a,i,A,o,s,l,u,f,c){var h=e.visualDrawType,v=A.get("itemWidth"),d=A.get("itemHeight"),p=A.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");u=m||u||"roundRect";var w=Ort(u,i,s,l,h,p,c),_=new sh,B=i.getModel("textStyle");if(vt(e.getLegendIcon)&&(!m||m==="inherit"))_.add(e.getLegendIcon({itemWidth:v,itemHeight:d,icon:u,iconRotate:g,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var C=m==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;_.add(krt({itemWidth:v,itemHeight:d,icon:u,iconRotate:C,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var S=o==="left"?v+5:-5,x=o,b=A.get("formatter"),I=n;nt(b)&&b?I=b.replace("{name}",n??""):vt(b)&&(I=b(n));var F=p?B.getTextColor():i.get("inactiveColor");_.add(new Gt({style:oe(B,{text:I,x:S,y:d/2,fill:F,align:x,verticalAlign:"middle"},{inheritColor:F})}));var E=new Nt({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&js({el:E,componentModel:A,itemName:n,itemTooltipOption:D.option}),_.add(E),_.eachChild(function(Q){Q.silent=!0}),E.silent=!f,this.getContentGroup().add(_),no(_),_.__legendDataIndex=a,_},t.prototype.layoutInner=function(e,n,a,i,A,o){var s=this.getContentGroup(),l=this.getSelectorGroup();io(e.get("orient"),s,e.get("itemGap"),a.width,a.height);var u=s.getBoundingRect(),f=[-u.x,-u.y];if(l.markRedraw(),s.markRedraw(),A){io("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),h=[-c.x,-c.y],v=e.get("selectorButtonGap",!0),d=e.getOrient().index,p=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";o==="end"?h[d]+=u[p]+v:f[d]+=c[p]+v,h[1-d]+=u[g]/2-c[g]/2,l.x=h[0],l.y=h[1],s.x=f[0],s.y=f[1];var m={x:0,y:0};return m[p]=u[p]+v+c[p],m[g]=Math.max(u[g],c[g]),m[y]=Math.min(0,c[y]+h[1-d]),m}else return s.x=f[0],s.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(de);function Ort(r,t,e,n,a,i,A){function o(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),Mw(p,function(y,m){p[m]==="inherit"&&(p[m]=g[m])})}var s=t.getModel("itemStyle"),l=s.getItemStyle(),u=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=s.getShallow("decal");l.decal=!f||f==="inherit"?n.decal:Hs(f,A),l.fill==="inherit"&&(l.fill=n[a]),l.stroke==="inherit"&&(l.stroke=n[u]),l.opacity==="inherit"&&(l.opacity=(a==="fill"?n:e).opacity),o(l,n);var c=t.getModel("lineStyle"),h=c.getLineStyle();if(o(h,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var v=t.get("inactiveBorderWidth"),d=l[u];l.lineWidth=v==="auto"?n.lineWidth>0&&d?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function krt(r){var t=r.icon||"roundRect",e=Te(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 vE(r,t,e,n){Pw(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Uw(r,t,e,n)}function DH(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[A],p=[-h.x,-h.y];n||(p[i]=u[l]);var g=[0,0],y=[-v.x,-v.y],m=St(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var w=e.get("pageButtonPosition",!0);w==="end"?y[i]+=a[A]-v[A]:g[i]+=v[A]+m}y[1-i]+=h[o]/2-v[o]/2,u.setPosition(p),f.setPosition(g),c.setPosition(y);var _={x:0,y:0};if(_[A]=d?a[A]:h[A],_[o]=Math.max(h[o],v[o]),_[s]=Math.min(0,v[s]+y[1-i]),f.__rectSize=a[A],d){var B={x:0,y:0};B[A]=Math.max(a[A]-v[A]-m,0),B[o]=_[o],f.setClipPath(new Nt({shape:B})),f.__rectSize=B[A]}else c.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&zt(u,{x:C.contentPosition[0],y:C.contentPosition[1]},d?e:null),this._updatePageInfoView(e,C),_},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;T(["pagePrev","pageNext"],function(u){var f=u+"DataIndex",c=n[f]!=null,h=a.childOfName(u);h&&(h.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),A=e.get("pageFormatter"),o=n.pageIndex,s=o!=null?o+1:0,l=n.pageCount;i&&A&&i.setStyle("text",nt(A)?A.replace("{current}",s==null?"":s+"").replace("{total}",l==null?"":l+""):A({current:s,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,A=e.getOrient().index,o=Am[A],s=om[A],l=this._findTargetItemIndex(n),u=a.children(),f=u[l],c=u.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var d=w(f);v.contentPosition[A]=-d.s;for(var p=l+1,g=d,y=d,m=null;p<=c;++p)m=w(u[p]),(!m&&y.e>g.s+i||m&&!_(m,g.s))&&(y.i>g.i?g=y:g=m,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=m;for(var p=l-1,g=d,y=d,m=null;p>=-1;--p)m=w(u[p]),(!m||!_(y,m.s))&&g.i=C&&B.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(A,o){var s=A.__legendDataIndex;i==null&&s!=null&&(i=o),s===e&&(n=o)}),n??i},t.type="legend.scroll",t}(EH);function zrt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Wrt(r){Lt(QH),r.registerComponentModel(Grt),r.registerComponentView(Krt),zrt(r)}function Xrt(r){Lt(QH),Lt(Wrt)}var Yrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=nA(Bf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Bf),kC=Vt();function Zrt(r,t,e){kC(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function $rt(r,t){for(var e=kC(r).coordSysRecordMap,n=e.keys(),a=0;an[e+t]&&(t=o),a=a&&A.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function ent(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=kC(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ft());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var A=dH(i);T(A.infoList,function(o){var s=o.model.uid,l=a.get(s)||a.set(s,Jrt(e,o.model)),u=l.dataZoomInfoMap||(l.dataZoomInfoMap=ft());u.set(i.uid,{dzReferCoordSysInfo:o,model:i,getRange:null})})}),a.each(function(i){var A=i.controller,o,s=i.dataZoomInfoMap;if(s){var l=s.keys()[0];l!=null&&(o=s.get(l))}if(!o){LH(a,i);return}var u=tnt(s);A.enable(u.controlType,u.opt),A.setPointerChecker(i.containsPoint),Al(i,"dispatchAction",o.model.get("throttle",!0),"fixRate")})})}var rnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Zrt(a,e,{pan:it(sm.pan,this),zoom:it(sm.zoom,this),scrollMove:it(sm.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){$rt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(DC),sm={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),A=r.axisModels[0];if(A){var o=lm[t](null,[n.originX,n.originY],A,e,r),s=(o.signal>0?o.pixelStart+o.pixelLength-o.pixel:o.pixel-o.pixelStart)/o.pixelLength*(i[1]-i[0])+i[0],l=Math.max(1/n.scale,0);i[0]=(i[0]-s)*l+s,i[1]=(i[1]-s)*l+s;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Fo(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:gE(function(r,t,e,n,a,i){var A=lm[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return A.signal*(r[1]-r[0])*A.pixel/A.pixelLength}),scrollMove:gE(function(r,t,e,n,a,i){var A=lm[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return A.signal*(r[1]-r[0])*i.scrollDelta})};function gE(r){return function(t,e,n,a){var i=this.range,A=i.slice(),o=t.axisModels[0];if(o){var s=r(A,o,t,e,n,a);if(Fo(s,A,[0,100],"all"),this.range=A,i[0]!==A[0]||i[1]!==A[1])return A}}}var lm={grid:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(A.pixel=t[0]-r[0],A.pixelLength=o.width,A.pixelStart=o.x,A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=o.height,A.pixelStart=o.y,A.signal=i.inverse?-1:1),A},polar:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return r=r?o.pointToCoord(r):[0,0],t=o.pointToCoord(t),e.mainType==="radiusAxis"?(A.pixel=t[0]-r[0],A.pixelLength=s[1]-s[0],A.pixelStart=s[0],A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=l[1]-l[0],A.pixelStart=l[0],A.signal=i.inverse?-1:1),A},singleAxis:function(r,t,e,n,a){var i=e.axis,A=a.model.coordinateSystem.getRect(),o={};return r=r||[0,0],i.orient==="horizontal"?(o.pixel=t[0]-r[0],o.pixelLength=A.width,o.pixelStart=A.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=A.height,o.pixelStart=A.y,o.signal=i.inverse?-1:1),o}};function MH(r){QC(r),r.registerComponentModel(Yrt),r.registerComponentView(rnt),ent(r)}var nnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=nA(Bf.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Bf),Vl=Nt,yE=7,ant=1,um=30,int=7,Gl="horizontal",mE="vertical",Ant=5,ont=["line","bar","candlestick","scatter"],snt={easing:"cubicOut",duration:100,delay:0},lnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),Al(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){sf(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new _t;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?int:0,A=this._findCoordRect(),o={width:n.getWidth(),height:n.getHeight()},s=this._orient===Gl?{right:o.width-A.x-A.width,top:o.height-um-yE-i,width:A.width,height:um}:{right:yE,top:A.y,width:um,height:A.height},l=nl(e.option);T(["right","top","width","height"],function(f){l[f]==="ph"&&(l[f]=s[f])});var u=Qe(l,o);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===mE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),A=i&&i.get("inverse"),o=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(a===Gl&&!A?{scaleY:s?1:-1,scaleX:1}:a===Gl&&A?{scaleY:s?1:-1,scaleX:-1}:a===mE&&!A?{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2});var l=e.getBoundingRect([o]);e.x=n.x-l.x,e.y=n.y-l.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Vl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var A=new Vl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),o=this.api.getZr();i?(A.on("mousedown",this._onBrushStart,this),A.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),a.add(A)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,A=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),s=o&&A.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(A!==this._shadowData||s!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=A.getDataExtent(s),c=(f[1]-f[0])*.3;f=[f[0]-c,f[1]+c];var h=[0,n[1]],v=[0,n[0]],d=[[n[0],0],[0,0]],p=[],g=v[1]/(A.count()-1),y=0,m=Math.round(A.count()/n[0]),w;A.each([s],function(x,b){if(m>0&&b%m){y+=g;return}var I=x==null||isNaN(x)||x==="",F=I?0:$t(x,f,h,!0);I&&!w&&b?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!I&&w&&(d.push([y,0]),p.push([y,0])),d.push([y,F]),p.push([y,F]),y+=g,w=I}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=A,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function B(x){var b=_.getModel(x?"selectedDataBackground":"dataBackground"),I=new _t,F=new Sr({shape:{points:l},segmentIgnoreThreshold:1,style:b.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new xr({shape:{points:u},segmentIgnoreThreshold:1,style:b.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(F),I.add(E),I}for(var C=0;C<3;C++){var S=B(C===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(A,o){var s=e.getAxisProxy(A,o).getTargetSeriesModels();T(s,function(l){if(!a&&!(n!==!0&&Qt(ont,l.get("type"))<0)){var u=i.getComponent(Li(A),o).axis,f=unt(A),c,h=l.coordinateSystem;f!=null&&h.getOtherAxis&&(c=h.getOtherAxis(u).inverse),f=l.getData().mapDimension(f),a={thisAxis:u,series:l,thisDim:A,otherDim:f,otherAxisInverse:c}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],A=this._displayables.sliderGroup,o=this._size,s=this.dataZoomModel,l=this.api,u=s.get("borderRadius")||0,f=s.get("brushSelect"),c=n.filler=new Vl({silent:f,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});A.add(c),A.add(new Vl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:ant,fill:"rgba(0,0,0,0)"}})),T([0,1],function(m){var w=s.get("handleIcon");!Pv[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var _=Te(w,-1,0,2,2,null,!0);_.attr({cursor:wE(this._orient),draggable:!0,drift:it(this._onDragMove,this,m),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var B=_.getBoundingRect(),C=s.get("handleSize");this._handleHeight=et(C,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,_.setStyle(s.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),no(_);var S=s.get("handleColor");S!=null&&(_.style.fill=S),A.add(a[m]=_);var x=s.getModel("textStyle");e.add(i[m]=new Gt({silent:!0,invisible:!0,style:oe(x,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:x.getTextColor(),font:x.getFont()}),z2:10}))},this);var h=c;if(f){var v=et(s.get("moveHandleSize"),o[1]),d=n.moveHandle=new Nt({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:v}}),p=v*.8,g=n.moveHandleIcon=Te(s.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+v/2-.5,d.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(v,10));h=n.moveZone=new Nt({invisible:!0,shape:{y:o[1]-y,height:v+y}}),h.on("mouseover",function(){l.enterEmphasis(d)}).on("mouseout",function(){l.leaveEmphasis(d)}),A.add(d),A.add(g),A.add(h)}h.attr({draggable:!0,cursor:wE(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[$t(e[0],[0,100],n,!0),$t(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,A=this._getViewExtent(),o=a.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];Fo(n,i,A,a.get("zoomLock")?"all":e,o.minSpan!=null?$t(o.minSpan,s,A,!0):null,o.maxSpan!=null?$t(o.maxSpan,s,A,!0):null);var l=this._range,u=this._range=fn([$t(i[0],A,s,!0),$t(i[1],A,s,!0)]);return!l||l[0]!==u[0]||l[1]!==u[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=fn(a.slice()),A=this._size;T([0,1],function(h){var v=n.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:A[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:A[1]});var o={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(o),n.moveZone.setShape(o),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",o.x+o.width/2));for(var s=n.dataShadowSegs,l=[0,i[0],i[1],A[0]],u=0;un[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,A=(i[0]+i[1])/2,o=this._updateInterval("all",a[0]-A);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new Tt(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var A=this._getViewExtent(),o=[0,100];this._range=fn([$t(a.x,A,o,!0),$t(a.x+a.width,A,o,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ka(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,A=a.brushRect;A||(A=a.brushRect=new Vl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(A)),A.attr("ignore",!1);var o=this._brushStart,s=this._displayables.sliderGroup,l=s.transformCoordToLocal(e,n),u=s.transformCoordToLocal(o.x,o.y),f=this._size;l[0]=Math.max(Math.min(f[0],l[0]),0),A.setShape({x:u[0],y:0,width:l[0]-u[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?snt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=dH(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),A=this.api.getHeight();e={x:i*.2,y:A*.2,width:i*.6,height:A*.6}}return e},t.type="dataZoom.slider",t}(DC);function unt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function wE(r){return r==="vertical"?"ns-resize":"ew-resize"}function UH(r){r.registerComponentModel(nnt),r.registerComponentView(lnt),QC(r)}function fnt(r){Lt(MH),Lt(UH)}var PH={get:function(r,t,e){var n=mt((cnt[r]||{})[t]);return e&&K(n)?n[n.length-1]:n}},cnt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},BE=Re.mapVisual,hnt=Re.eachVisual,vnt=K,_E=T,dnt=fn,pnt=$t,Ad=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&xH(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Ew(this.option.controller,n,e),this.targetVisuals=Ew(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){T(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,A=i.precision,o=this.dataBound,s=i.formatter,l;a=a||["<",">"],K(e)&&(e=e.slice(),l=!0);var u=n?e:l?[f(e[0]),f(e[1])]:f(e);if(nt(s))return s.replace("{value}",l?u[0]:u).replace("{value2}",l?u[1]:u);if(vt(s))return l?s(e[0],e[1]):s(e);if(l)return e[0]===o[0]?a[0]+" "+u[1]:e[1]===o[1]?a[1]+" "+u[0]:u[0]+" - "+u[1];return u;function f(c){return c===o[0]?"min":c===o[1]?"max":(+c).toFixed(Math.min(A,20))}},t.prototype.resetExtent=function(){var e=this.option,n=dnt([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var a=e.dimensions,i=a.length-1;i>=0;i--){var A=a[i],o=e.getDimensionInfo(A);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),A=n.controller||(n.controller={});Ft(i,a),Ft(A,a);var o=this.isCategory();s.call(this,i),s.call(this,A),l.call(this,i,"inRange","outOfRange"),u.call(this,A);function s(f){vnt(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function l(f,c,h){var v=f[c],d=f[h];v&&!d&&(d=f[h]={},_E(v,function(p,g){if(Re.isValidType(g)){var y=PH.get(g,"inactive",o);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function u(f){var c=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),p=d||"roundRect";_E(this.stateList,function(g){var y=this.itemSize,m=f[g];m||(m=f[g]={color:o?v:[v]}),m.symbol==null&&(m.symbol=c&&mt(c)||(o?p:[p])),m.symbolSize==null&&(m.symbolSize=h&&mt(h)||(o?y[0]:[y[0],y[0]])),m.symbol=BE(m.symbol,function(B){return B==="none"?p:B});var w=m.symbolSize;if(w!=null){var _=-1/0;hnt(w,function(B){B>_&&(_=B)}),m.symbolSize=BE(w,function(B){return pnt(B,[0,_],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Rt),CE=[20,140],gnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=CE[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=CE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):K(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=fn((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],A=a.getData();A.each(this.getDataDimensionIndex(A),function(o,s){e[0]<=o&&o<=e[1]&&i.push(s)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=SE(this,"outOfRange",this.getExtent()),a=SE(this,"inRange",this.option.range.slice()),i=[];function A(h,v){i.push({value:h,color:e(h,v)})}for(var o=0,s=0,l=a.length,u=n.length;se[1])break;i.push({color:this.getControllerVisual(s,"color",n),offset:o/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new _t(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,A=a.handleThumbs,o=a.handleLabels,s=i.itemSize,l=i.getExtent();ynt([0,1],function(u){var f=A[u];f.setStyle("fill",n.handlesColor[u]),f.y=e[u];var c=$n(e[u],[0,s[1]],l,!0),h=this.getControllerVisual(c,"symbolSize");f.scaleX=f.scaleY=h/s[0],f.x=s[0]-h/2;var v=Mn(a.handleLabelPoints[u],ao(f,this.group));o[u].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var A=this.visualMapModel,o=A.getExtent(),s=A.itemSize,l=[0,s[1]],u=this._shapes,f=u.indicator;if(f){f.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),v=this.getControllerVisual(e,"symbolSize"),d=$n(e,o,l,!0),p=s[0]-v/2,g={x:f.x,y:f.y};f.y=d,f.x=p;var y=Mn(u.indicatorLabelPoint,ao(f,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var w=this._applyTransform("left",u.mainGroup),_=this._orient,B=_==="horizontal";m.setStyle({text:(a||"")+A.formatValueText(n),verticalAlign:B?w:"middle",align:B?"center":w});var C={x:p,y:d,style:{fill:h}},S={style:{x:y[0],y:y[1]}};if(A.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(C,x),m.animateTo(S,x)}else f.attr(C),m.attr(S);this._firstShowIndicator=!1;var b=this._shapes.handleLabels;if(b)for(var I=0;IA[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(u,f[1],"< ",s):f[1]===1/0?this._showIndicator(u,f[0],"> ",s):this._showIndicator(u,u,"≈ ",s));var c=this._hoverLinkDataIndices,h=[];(n||IE(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=IK(c,h);this._dispatchHighDown("downplay",rv(v[0],a)),this._dispatchHighDown("highlight",rv(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(XA(e.target,function(s){var l=Ct(s);if(l.dataIndex!=null)return n=l,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var A=a.getData(n.dataType),o=A.getStore().get(i.getDataDimensionIndex(A),n.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=A,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function bnt(r,t,e,n){for(var a=t.targetVisuals[n],i=Re.prepareVisualTypes(a),A={color:Of(r.getData(),"color")},o=0,s=i.length;o0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Cnt,Snt),T(xnt,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Tnt))}function kH(r){r.registerComponentModel(gnt),r.registerComponentView(Bnt),OH(r)}var Int=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Fnt[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(A,o){a==="categories"?(A.mappingMethod="category",A.categories=mt(i)):(A.dataExtent=this.getExtent(),A.mappingMethod="piecewise",A.pieceList=Y(this._pieceList,function(s){return s=mt(s),o!=="inRange"&&(s.visual=null),s}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=Re.listVisualTypes(),i=this.isCategory();T(e.pieces,function(o){T(a,function(s){o.hasOwnProperty(s)&&(n[s]=1)})}),T(n,function(o,s){var l=!1;T(this.stateList,function(u){l=l||A(e,u,s)||A(e.target,u,s)},this),!l&&T(this.stateList,function(u){(e[u]||(e[u]={}))[s]=PH.get(s,u==="inRange"?"active":"inactive",i)})},this);function A(o,s,l){return o&&o[s]&&o[s].hasOwnProperty(l)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,A=(n?a:e).selected||{};if(a.selected=A,T(i,function(s,l){var u=this.getSelectedMapKey(s);A.hasOwnProperty(u)||(A[u]=!0)},this),a.selectedMode==="single"){var o=!1;T(i,function(s,l){var u=this.getSelectedMapKey(s);A[u]&&(o?A[u]=!1:o=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=mt(e)},t.prototype.getValueState=function(e){var n=Re.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var A=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){var u=Re.findPieceIndex(s,a);u===e&&A.push(l)},this),n.push({seriesId:i.id,dataIndex:A})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function A(u,f){var c=i.getRepresentValue({interval:u});f||(f=i.getValueState(c));var h=e(c,f);u[0]===-1/0?a[0]=h:u[1]===1/0?a[1]=h:n.push({value:u[0],color:h},{value:u[1],color:h})}var o=this._pieceList.slice();if(!o.length)o.push({interval:[-1/0,1/0]});else{var s=o[0].interval[0];s!==-1/0&&o.unshift({interval:[-1/0,s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}var l=-1/0;return T(o,function(u){var f=u.interval;f&&(f[0]>l&&A([l,f[0]],"outOfRange"),A(f.slice()),l=f[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=nA(Ad.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Ad),Fnt={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var A=0,o=n[0];A","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function QE(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Ent=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,A=i.getFont(),o=i.getTextColor(),s=this._getItemAlign(),l=n.itemSize,u=this._getViewData(),f=u.endsText,c=Ve(n.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],l,c,s),T(u.viewPieceList,function(h){var v=h.piece,d=new _t;d.onclick=it(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=n.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,l[0],l[1]]),c){var g=this.visualMapModel.getValueState(p);d.add(new Gt({style:{x:s==="right"?-a:l[0]+a,y:l[1]/2,text:v.text,verticalAlign:"middle",align:s,font:A,fill:o,opacity:g==="outOfRange"?.5:1}}))}e.add(d)},this),f&&this._renderEndsText(e,f[1],l,c,s),io(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(A){var o=a.visualMapModel;o.option.hoverLink&&a.api.dispatchAction({type:A,batch:rv(o.findTargetDataIndices(n),o)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return HH(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,A){if(n){var o=new _t,s=this.visualMapModel.textStyleModel;o.add(new Gt({style:oe(s,{x:i?A==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?A:"center",text:n})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=Y(e.getPieceList(),function(o,s){return{piece:o,indexInModelPieceList:s}}),a=e.get("text"),i=e.get("orient"),A=e.get("inverse");return(i==="horizontal"?A:!A)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(Te(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var A=mt(a.selected),o=n.getSelectedMapKey(e);i==="single"||i===!0?(A[o]=!0,T(A,function(s,l){A[l]=l===o})):A[o]=!A[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:A})}},t.type="visualMap.piecewise",t}(RH);function NH(r){r.registerComponentModel(Int),r.registerComponentView(Ent),OH(r)}function Dnt(r){Lt(kH),Lt(NH)}var Qnt={label:{enabled:!0},decal:{show:!1}},LE=Vt(),Lnt={};function Mnt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=mt(Qnt);Ft(n.label,r.getLocaleModel().get("aria"),!1),Ft(e.option,n,!1),a(),i();function a(){var l=e.getModel("decal"),u=l.get("show");if(u){var f=ft();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=f.get(c.type);h||(h={},f.set(c.type,h)),LE(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(vt(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=P0(c.ecModel,c.name,Lnt,r.getSeriesCount()),m=h.getVisual("decal");h.setVisual("decal",w(m,y))}else{var v=c.getRawData(),d={},p=LE(c).scope;h.each(function(_){var B=h.getRawIndex(_);d[B]=_});var g=v.count();v.each(function(_){var B=d[_],C=v.getName(_)||_+"",S=P0(c.ecModel,C,p,g),x=h.getItemVisual(B,"decal");h.setItemVisual(B,"decal",w(x,S))})}function w(_,B){var C=_?V(V({},B),_):B;return C.dirty=!0,C}})}}function i(){var l=t.getZr().dom;if(l){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=gt(f.option,u),!!f.get("enabled")){if(f.get("description")){l.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),p;if(!(c<1)){var g=o();if(g){var y=f.get(["general","withTitle"]);p=A(y,{title:g})}else p=f.get(["general","withoutTitle"]);var m=[],w=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=A(w,{seriesCount:c}),r.eachSeries(function(S,x){if(x1?f.get(["series","multiple",F]):f.get(["series","single",F]),b=A(b,{seriesId:S.seriesIndex,seriesName:S.get("name"),seriesType:s(S.subType)});var E=S.getData();if(E.count()>h){var D=f.get(["data","partialData"]);b+=A(D,{displayCnt:h})}else b+=f.get(["data","allData"]);for(var Q=f.get(["data","separator","middle"]),M=f.get(["data","separator","end"]),R=[],P=0;P":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Rnt=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):YV(t)?t:null;if(e==null){var n="";Xt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Kt(e)?this._condVal.test(t+""):!1},r}(),Hnt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Ont=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(a),a=[E,D]}function u(E,D,Q,M){gs(E,Q)&&gs(D,M)||a.push(E,D,Q,M,Q,M)}function f(E,D,Q,M,R,P){var O=Math.abs(D-E),G=Math.tan(O/4)*4/3,X=DS:I2&&n.push(a),n}function Hw(r,t,e,n,a,i,A,o,s,l){if(gs(r,e)&&gs(t,n)&&gs(a,A)&&gs(i,o)){s.push(A,o);return}var u=2/l,f=u*u,c=A-r,h=o-t,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=e-r,p=n-t,g=a-A,y=i-o,m=d*d+p*p,w=g*g+y*y;if(m=0&&S=0){s.push(A,o);return}var x=[],b=[];Wi(r,e,a,A,.5,x),Wi(t,n,i,o,.5,b),Hw(x[0],b[0],x[1],b[1],x[2],b[2],x[3],b[3],s,l),Hw(x[4],b[4],x[5],b[5],x[6],b[6],x[7],b[7],s,l)}function jnt(r,t){var e=Rw(r),n=[];t=t||1;for(var a=0;a0)for(var l=0;lMath.abs(l),f=GH([s,l],u?0:1,t),c=(u?o:l)/f.length,h=0;ha,A=GH([n,a],i?0:1,t),o=i?"width":"height",s=i?"height":"width",l=i?"x":"y",u=i?"y":"x",f=r[o]/A.length,c=0;c1?null:new Tt(d*s+r,d*l+t)}function rat(r,t,e){var n=new Tt;Tt.sub(n,e,t),n.normalize();var a=new Tt;Tt.sub(a,r,t);var i=a.dot(n);return i}function $o(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function nat(r,t,e){for(var n=r.length,a=[],i=0;iA?(l.x=u.x=o+i/2,l.y=s,u.y=s+A):(l.y=u.y=s+A/2,l.x=o,u.x=o+i),nat(t,l,u)}function od(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);od(r,i[0],a,n),od(r,i[1],e-a,n)}return n}function aat(r,t){for(var e=[],n=0;n0;l/=2){var u=0,f=0;(r&l)>0&&(u=1),(t&l)>0&&(f=1),o+=l*l*(3*u^f),f===0&&(u===1&&(r=l-1-r,t=l-1-t),s=r,r=t,t=s)}return o}function ud(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=Y(r,function(o){var s=o.getBoundingRect(),l=o.getComputedTransform(),u=s.x+s.width/2+(l?l[4]:0),f=s.y+s.height/2+(l?l[5]:0);return t=Math.min(u,t),e=Math.min(f,e),n=Math.max(u,n),a=Math.max(f,a),[u,f]}),A=Y(i,function(o,s){return{cp:o,z:hat(o[0],o[1],t,e,n,a),path:r[s]}});return A.sort(function(o,s){return o.z-s.z}).map(function(o){return o.path})}function WH(r){return oat(r.path,r.count)}function Ow(){return{fromIndividuals:[],toIndividuals:[],count:0}}function vat(r,t,e){var n=[];function a(_){for(var B=0;B<_.length;B++){var C=_[B];sd(C)?a(C.childrenRef()):C instanceof Mt&&n.push(C)}}a(r);var i=n.length;if(!i)return Ow();var A=e.dividePath||WH,o=A({path:t,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Ow();n=ud(n),o=ud(o);for(var s=e.done,l=e.during,u=e.individualDelay,f=new La,c=0;c=0;a--)if(!e[a].many.length){var s=e[o].many;if(s.length<=1)if(o)o=0;else return e;var i=s.length,l=Math.ceil(i/2);e[a].many=s.slice(l,i),e[o].many=s.slice(0,l),o++}return e}var pat={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var o=n.getModel("universalTransition").get("delay"),s=Object.assign({setToFinal:!0},A),l,u;VE(r)&&(l=r,u=t),VE(t)&&(l=t,u=r);function f(g,y,m,w,_){var B=g.many,C=g.one;if(B.length===1&&!_){var S=y?B[0]:C,x=y?C:B[0];if(sd(S))f({many:[S],one:x},!0,m,w,!0);else{var b=o?gt({delay:o(m,w)},s):s;VC(S,x,b),i(S,x,S,x,b)}}else for(var I=gt({dividePath:pat[e],individualDelay:o&&function(R,P,O,G){return o(R+m,w)}},s),F=y?vat(B,C,I):dat(C,B,I),E=F.fromIndividuals,D=F.toIndividuals,Q=E.length,M=0;Mt.length,h=l?GE(u,l):GE(c?t:r,[c?r:t]),v=0,d=0;dXH))for(var i=n.getIndices(),A=0;A0&&B.group.traverse(function(S){S instanceof Mt&&!S.animators.length&&S.animateFrom({style:{opacity:0}},C)})})}function YE(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function ZE(r){return K(r)?r.sort().join(","):r}function _i(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Cat(r,t){var e=ft(),n=ft(),a=ft();return T(r.oldSeries,function(i,A){var o=r.oldDataGroupIds[A],s=r.oldData[A],l=YE(i),u=ZE(l);n.set(u,{dataGroupId:o,data:s}),K(l)&&T(l,function(f){a.set(f,{key:u,dataGroupId:o,data:s})})}),T(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var A=i.get("dataGroupId"),o=i.getData(),s=YE(i),l=ZE(s),u=n.get(l);if(u)e.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:_i(u.data),data:u.data}],newSeries:[{dataGroupId:A,divide:_i(o),data:o}]});else if(K(s)){var f=[];T(s,function(v){var d=n.get(v);d.data&&f.push({dataGroupId:d.dataGroupId,divide:_i(d.data),data:d.data})}),f.length&&e.set(l,{oldSeries:f,newSeries:[{dataGroupId:A,data:o,divide:_i(o)}]})}else{var c=a.get(s);if(c){var h=e.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:_i(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({dataGroupId:A,data:o,divide:_i(o)})}}}}),e}function $E(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[o],data:t.oldData[o],divide:_i(t.oldData[o]),groupIdDim:A.dimension})}),T(qt(r.to),function(A){var o=$E(e.updatedSeries,A);if(o>=0){var s=e.updatedSeries[o].getData();i.push({dataGroupId:t.oldDataGroupIds[o],data:s,divide:_i(s),groupIdDim:A.dimension})}}),a.length>0&&i.length>0&&YH(a,i,n)}function xat(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){T(qt(n.seriesTransition),function(a){T(qt(a.to),function(i){for(var A=n.updatedSeries,o=0;o(Vr(),na("div",Iat,[Dt("div",{class:"dot",style:Ga({backgroundColor:t.color})},null,4),e.isOnline?(Vr(),na("div",{key:0,class:"pulse",style:Ga({backgroundColor:t.spreadColor})},null,4)):NN("",!0)]))}}),Eat=Ws(Fat,[["__scopeId","data-v-311f3e51"]]),Dat={class:"hover-text"},Qat={class:"left-text"},Lat={class:"disk-text"},Mat={class:"right-text"},Uat={class:"disk-text"},Pat=Bo({__name:"Disk",props:{mountpoint:{},device:{},used:{},total:{},fstype:{}},setup(r){const t=r,e=av(t.used/t.total*100),n=iv(t.used/t.total*100);return(a,i)=>(Vr(),na("div",{class:"disk",style:Ga({backgroundColor:la(n)})},[Dt("div",{class:"disk-used",style:Ga({width:t.used/t.total*100+"%",backgroundColor:la(e)})},null,4),Dt("div",Dat,[Dt("div",Qat,[Dt("span",Lat,ze(t.mountpoint),1)]),Dt("div",Mat,[Dt("span",Uat,ze(la(kw)(t.used,t.total))+" ["+ze(t.fstype)+"]",1)])])],4))}}),Rat=Ws(Pat,[["__scopeId","data-v-8693b273"]]);/*! + * html2canvas 1.4.1 + * Copyright (c) 2022 Niklas von Hertzen + * Released under MIT License + *//*! ***************************************************************************** +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 Nw=function(r,t){return Nw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Nw(r,t)};function kn(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nw(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Vw=function(){return Vw=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=55296&&a<=56319&&e>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},qE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oat=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var fh=0;fh"u"?[]:new Uint8Array(256);for(var ch=0;ch>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},Nat=function(r){for(var t=r.length,e=[],n=0;n>so,Kat=1<>so,Wat=$H+zat,Xat=Wat,Yat=32,Zat=Xat+Yat,$at=65536>>GC,Jat=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>so],e=(e<>so)],e=(e<>GC),e=this.index[e],e+=t>>so&qat,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var hh=0;hhrD?(a.push(!0),o-=rD):a.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(A),e.push(zw);if(o===iit||o===Gw){if(A===0)return n.push(A),e.push(VA);var s=e[A-1];return hit.indexOf(s)===-1?(n.push(n[A-1]),e.push(s)):(n.push(A),e.push(VA))}if(n.push(A),o===uit)return e.push(t==="strict"?Ww:Sf);if(o===tO||o===lit)return e.push(VA);if(o===fit)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Sf):e.push(VA);e.push(o)}),[n,e,a]},mm=function(r,t,e,n){var a=n[e];if(Array.isArray(r)?r.indexOf(a)!==-1:r===a)for(var i=e;i<=n.length;){i++;var A=n[i];if(A===t)return!0;if(A!==Mi)break}if(a===Mi)for(var i=e;i>0;){i--;var o=n[i];if(Array.isArray(r)?r.indexOf(o)!==-1:r===o)for(var s=e;s<=n.length;){s++;var A=n[s];if(A===t)return!0;if(A!==Mi)break}if(o!==Mi)break}return!1},lD=function(r,t){for(var e=r;e>=0;){var n=t[e];if(n===Mi)e--;else return n}return 0},pit=function(r,t,e,n,a){if(e[n]===0)return Wt;var i=n-1;if(Array.isArray(a)&&a[i]===!0)return Wt;var A=i-1,o=i+1,s=t[i],l=A>=0?t[A]:0,u=t[o];if(s===JH&&u===qH)return Wt;if(qw.indexOf(s)!==-1)return eO;if(qw.indexOf(u)!==-1||rO.indexOf(u)!==-1)return Wt;if(lD(i,t)===jH)return gh;if(Jw.get(r[i])===Gw||(s===dh||s===ph)&&Jw.get(r[o])===Gw||s===nD||u===nD||s===aD||[Mi,Kw,su].indexOf(s)===-1&&u===aD||[vh,Kl,sit,qo,jo].indexOf(u)!==-1||lD(i,t)===zl||mm(gm,zl,i,t)||mm([vh,Kl],Ww,i,t)||mm(iD,iD,i,t))return Wt;if(s===Mi)return gh;if(s===gm||u===gm)return Wt;if(u===zw||s===zw)return gh;if([Kw,su,Ww].indexOf(u)!==-1||s===oit||l===Zw&&vit.indexOf(s)!==-1||s===jo&&u===Zw||u===AD||Ia.indexOf(u)!==-1&&s===Or||Ia.indexOf(s)!==-1&&u===Or||s===uu&&[Sf,dh,ph].indexOf(u)!==-1||[Sf,dh,ph].indexOf(s)!==-1&&u===lu||Ia.indexOf(s)!==-1&&oD.indexOf(u)!==-1||oD.indexOf(s)!==-1&&Ia.indexOf(u)!==-1||[uu,lu].indexOf(s)!==-1&&(u===Or||[zl,su].indexOf(u)!==-1&&t[o+1]===Or)||[zl,su].indexOf(s)!==-1&&u===Or||s===Or&&[Or,jo,qo].indexOf(u)!==-1)return Wt;if([Or,jo,qo,vh,Kl].indexOf(u)!==-1)for(var f=i;f>=0;){var c=t[f];if(c===Or)return Wt;if([jo,qo].indexOf(c)!==-1)f--;else break}if([uu,lu].indexOf(u)!==-1)for(var f=[vh,Kl].indexOf(s)!==-1?A:i;f>=0;){var c=t[f];if(c===Or)return Wt;if([jo,qo].indexOf(c)!==-1)f--;else break}if($w===s&&[$w,Av,Xw,Yw].indexOf(u)!==-1||[Av,Xw].indexOf(s)!==-1&&[Av,ov].indexOf(u)!==-1||[ov,Yw].indexOf(s)!==-1&&u===ov||sD.indexOf(s)!==-1&&[AD,lu].indexOf(u)!==-1||sD.indexOf(u)!==-1&&s===uu||Ia.indexOf(s)!==-1&&Ia.indexOf(u)!==-1||s===qo&&Ia.indexOf(u)!==-1||Ia.concat(Or).indexOf(s)!==-1&&u===zl&&cit.indexOf(r[o])===-1||Ia.concat(Or).indexOf(u)!==-1&&s===Kl)return Wt;if(s===ym&&u===ym){for(var h=e[i],v=1;h>0&&(h--,t[h]===ym);)v++;if(v%2!==0)return Wt}return s===dh&&u===ph?Wt:gh},git=function(r,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=dit(r,t.lineBreak),n=e[0],a=e[1],i=e[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(a=a.map(function(o){return[Or,VA,tO].indexOf(o)!==-1?Sf:o}));var A=t.wordBreak==="keep-all"?i.map(function(o,s){return o&&r[s]>=19968&&r[s]<=40959}):void 0;return[n,a,A]},yit=function(){function r(t,e,n,a){this.codePoints=t,this.required=e===eO,this.start=n,this.end=a}return r.prototype.slice=function(){return Ce.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),mit=function(r,t){var e=_p(r),n=git(e,t),a=n[0],i=n[1],A=n[2],o=e.length,s=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var u=Wt;l=nO&&r<=57},jit=function(r){return r>=55296&&r<=57343},ts=function(r){return nr(r)||r>=AO&&r<=sO||r>=aO&&r<=Yit},tAt=function(r){return r>=aO&&r<=$it},eAt=function(r){return r>=AO&&r<=qit},rAt=function(r){return tAt(r)||eAt(r)},nAt=function(r){return r>=Hit},_h=function(r){return r===fd||r===_it||r===Cit},cd=function(r){return rAt(r)||nAt(r)||r===Tit},vD=function(r){return cd(r)||nr(r)||r===Ir},aAt=function(r){return r>=Vit&&r<=Git||r===Kit||r>=zit&&r<=Wit||r===Xit},Ci=function(r,t){return r!==Ru?!1:t!==fd},Ch=function(r,t,e){return r===Ir?cd(t)||Ci(t,e):cd(r)?!0:!!(r===Ru&&Ci(r,t))},Bm=function(r,t,e){return r===JA||r===Ir?nr(t)?!0:t===xf&&nr(e):nr(r===xf?t:r)},iAt=function(r){var t=0,e=1;(r[t]===JA||r[t]===Ir)&&(r[t]===Ir&&(e=-1),t++);for(var n=[];nr(r[t]);)n.push(r[t++]);var a=n.length?parseInt(Ce.apply(void 0,n),10):0;r[t]===xf&&t++;for(var i=[];nr(r[t]);)i.push(r[t++]);var A=i.length,o=A?parseInt(Ce.apply(void 0,i),10):0;(r[t]===oO||r[t]===iO)&&t++;var s=1;(r[t]===JA||r[t]===Ir)&&(r[t]===Ir&&(s=-1),t++);for(var l=[];nr(r[t]);)l.push(r[t++]);var u=l.length?parseInt(Ce.apply(void 0,l),10):0;return e*(a+o*Math.pow(10,-A))*Math.pow(10,s*u)},AAt={type:2},oAt={type:3},sAt={type:4},lAt={type:13},uAt={type:8},fAt={type:21},cAt={type:9},hAt={type:10},vAt={type:11},dAt={type:12},pAt={type:14},Sh={type:23},gAt={type:1},yAt={type:25},mAt={type:24},wAt={type:26},BAt={type:27},_At={type:28},CAt={type:29},SAt={type:31},jw={type:32},lO=function(){function r(){this._value=[]}return r.prototype.write=function(t){this._value=this._value.concat(_p(t))},r.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==jw;)t.push(e),e=this.consumeToken();return t},r.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case yh:return this.consumeStringToken(yh);case Sit:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(vD(e)||Ci(n,a)){var i=Ch(e,n,a)?Bit:wit,A=this.consumeName();return{type:5,value:A,flags:i}}break;case xit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),lAt;break;case mh:return this.consumeStringToken(mh);case wh:return AAt;case Xl:return oAt;case wm:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),pAt;break;case JA:if(Bm(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Oit:return sAt;case Ir:var o=t,s=this.peekCodePoint(0),l=this.peekCodePoint(1);if(Bm(o,s,l))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Ch(o,s,l))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(s===Ir&&l===Eit)return this.consumeCodePoint(),this.consumeCodePoint(),mAt;break;case xf:if(Bm(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case fD:if(this.peekCodePoint(0)===wm)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===wm&&(u=this.consumeCodePoint(),u===fD))return this.consumeToken();if(u===Yn)return this.consumeToken()}break;case kit:return wAt;case Nit:return BAt;case Fit:if(this.peekCodePoint(0)===Iit&&this.peekCodePoint(1)===Ir&&this.peekCodePoint(2)===Ir)return this.consumeCodePoint(),this.consumeCodePoint(),yAt;break;case Dit:var f=this.peekCodePoint(0),c=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Ch(f,c,h)){var A=this.consumeName();return{type:7,value:A}}break;case Qit:return _At;case Ru:if(Ci(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case Lit:return CAt;case Mit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),uAt;break;case Uit:return vAt;case Pit:return dAt;case Zit:case Jit:var v=this.peekCodePoint(0),d=this.peekCodePoint(1);return v===JA&&(ts(d)||d===Bh)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case cD:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),cAt;if(this.peekCodePoint(0)===cD)return this.consumeCodePoint(),fAt;break;case Rit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),hAt;break;case Yn:return jw}return _h(t)?(this.consumeWhiteSpace(),SAt):nr(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):cd(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Ce(t)}},r.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},r.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},r.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},r.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();ts(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;e===Bh&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(Ce.apply(void 0,t.map(function(s){return s===Bh?nO:s})),16),i=parseInt(Ce.apply(void 0,t.map(function(s){return s===Bh?sO:s})),16);return{type:30,start:a,end:i}}var A=parseInt(Ce.apply(void 0,t),16);if(this.peekCodePoint(0)===Ir&&ts(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var o=[];ts(e)&&o.length<6;)o.push(e),e=this.consumeCodePoint();var i=parseInt(Ce.apply(void 0,o),16);return{type:30,start:A,end:i}}else return{type:30,start:A,end:A}},r.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===wh?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===wh?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},r.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===mh||e===yh){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yn||this.peekCodePoint(0)===Xl)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Sh)}for(;;){var a=this.consumeCodePoint();if(a===Yn||a===Xl)return{type:22,value:Ce.apply(void 0,t)};if(_h(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Yn||this.peekCodePoint(0)===Xl?(this.consumeCodePoint(),{type:22,value:Ce.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Sh);if(a===yh||a===mh||a===wh||aAt(a))return this.consumeBadUrlRemnants(),Sh;if(a===Ru)if(Ci(a,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Sh;else t.push(a)}},r.prototype.consumeWhiteSpace=function(){for(;_h(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Xl||t===Yn)return;Ci(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(t){for(var e=5e4,n="";t>0;){var a=Math.min(e,t);n+=Ce.apply(void 0,this._value.splice(0,a)),t-=a}return this._value.shift(),n},r.prototype.consumeStringToken=function(t){var e="",n=0;do{var a=this._value[n];if(a===Yn||a===void 0||a===t)return e+=this.consumeStringSlice(n),{type:0,value:e};if(a===fd)return this._value.splice(0,n),gAt;if(a===Ru){var i=this._value[n+1];i!==Yn&&i!==void 0&&(i===fd?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ci(a,i)&&(e+=this.consumeStringSlice(n),e+=Ce(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var t=[],e=Jf,n=this.peekCodePoint(0);for((n===JA||n===Ir)&&t.push(this.consumeCodePoint());nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===xf&&nr(a))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=uD;nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===oO||n===iO)&&((a===JA||a===Ir)&&nr(i)||nr(a)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=uD;nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[iAt(t),e]},r.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),A=this.peekCodePoint(2);if(Ch(a,i,A)){var o=this.consumeName();return{type:15,number:e,flags:n,unit:o}}return a===bit?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ts(t)){for(var e=Ce(t);ts(this.peekCodePoint(0))&&e.length<6;)e+=Ce(this.consumeCodePoint());_h(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||jit(n)||n>1114111?hD:n}return t===Yn?hD:t},r.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(vD(e))t+=Ce(e);else if(Ci(e,this.peekCodePoint(0)))t+=Ce(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),t}},r}(),uO=function(){function r(t){this._tokens=t}return r.create=function(t){var e=new lO;return e.write(t),new r(e.read())},r.parseValue=function(t){return r.create(t).parseComponentValue()},r.parseValues=function(t){return r.create(t).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(e.type===32)return t;t.push(e),t.push()}},r.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},r.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||bAt(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?jw:t},r.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},r}(),qf=function(r){return r.type===15},ul=function(r){return r.type===17},le=function(r){return r.type===20},xAt=function(r){return r.type===0},tB=function(r,t){return le(r)&&r.value===t},fO=function(r){return r.type!==31},zs=function(r){return r.type!==31&&r.type!==4},Ba=function(r){var t=[],e=[];return r.forEach(function(n){if(n.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(e),e=[];return}n.type!==31&&e.push(n)}),e.length&&t.push(e),t},bAt=function(r,t){return t===11&&r.type===12||t===28&&r.type===29?!0:t===2&&r.type===3},qi=function(r){return r.type===17||r.type===15},Fe=function(r){return r.type===16||qi(r)},cO=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},Xe={type:17,number:0,flags:Jf},KC={type:16,number:50,flags:Jf},Ui={type:16,number:100,flags:Jf},fu=function(r,t,e){var n=r[0],a=r[1];return[ve(n,t),ve(typeof a<"u"?a:n,e)]},ve=function(r,t){if(r.type===16)return r.number/100*t;if(qf(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},hO="deg",vO="grad",dO="rad",pO="turn",Cp={name:"angle",parse:function(r,t){if(t.type===15)switch(t.unit){case hO:return Math.PI*t.number/180;case vO:return Math.PI/200*t.number;case dO:return t.number;case pO:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},gO=function(r){return r.type===15&&(r.unit===hO||r.unit===vO||r.unit===dO||r.unit===pO)},yO=function(r){var t=r.filter(le).map(function(e){return e.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xe,Xe];case"to top":case"bottom":return cn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xe,Ui];case"to right":case"left":return cn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ui,Ui];case"to bottom":case"top":return cn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ui,Xe];case"to left":case"right":return cn(270)}return 0},cn=function(r){return Math.PI*r/180},Ni={name:"color",parse:function(r,t){if(t.type===18){var e=TAt[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(r,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3);return Pi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3),A=t.value.substring(3,4);return Pi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),parseInt(A+A,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6);return Pi(parseInt(n,16),parseInt(a,16),parseInt(i,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6),A=t.value.substring(6,8);return Pi(parseInt(n,16),parseInt(a,16),parseInt(i,16),parseInt(A,16)/255)}}if(t.type===20){var o=Va[t.value.toUpperCase()];if(typeof o<"u")return o}return Va.TRANSPARENT}},Vi=function(r){return(255&r)===0},ke=function(r){var t=255&r,e=255&r>>8,n=255&r>>16,a=255&r>>24;return t<255?"rgba("+a+","+n+","+e+","+t/255+")":"rgb("+a+","+n+","+e+")"},Pi=function(r,t,e,n){return(r<<24|t<<16|e<<8|Math.round(n*255)<<0)>>>0},dD=function(r,t){if(r.type===17)return r.number;if(r.type===16){var e=t===3?1:255;return t===3?r.number/100*e:Math.round(r.number/100*e)}return 0},pD=function(r,t){var e=t.filter(zs);if(e.length===3){var n=e.map(dD),a=n[0],i=n[1],A=n[2];return Pi(a,i,A,1)}if(e.length===4){var o=e.map(dD),a=o[0],i=o[1],A=o[2],s=o[3];return Pi(a,i,A,s)}return 0};function _m(r,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-r)*e*6+r:e<1/2?t:e<2/3?(t-r)*6*(2/3-e)+r:r}var gD=function(r,t){var e=t.filter(zs),n=e[0],a=e[1],i=e[2],A=e[3],o=(n.type===17?cn(n.number):Cp.parse(r,n))/(Math.PI*2),s=Fe(a)?a.number/100:0,l=Fe(i)?i.number/100:0,u=typeof A<"u"&&Fe(A)?ve(A,1):1;if(s===0)return Pi(l*255,l*255,l*255,1);var f=l<=.5?l*(s+1):l+s-l*s,c=l*2-f,h=_m(c,f,o+1/3),v=_m(c,f,o),d=_m(c,f,o-1/3);return Pi(h*255,v*255,d*255,u)},TAt={hsl:gD,hsla:gD,rgb:pD,rgba:pD},Hu=function(r,t){return Ni.parse(r,uO.create(t).parseComponentValue())},Va={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},IAt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},FAt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Sp=function(r,t){var e=Ni.parse(r,t[0]),n=t[1];return n&&Fe(n)?{color:e,stop:n}:{color:e,stop:null}},yD=function(r,t){var e=r[0],n=r[r.length-1];e.stop===null&&(e.stop=Xe),n.stop===null&&(n.stop=Ui);for(var a=[],i=0,A=0;Ai?a.push(s):a.push(i),i=s}else a.push(null)}for(var l=null,A=0;AA.optimumDistance)?{optimumCorner:o,optimumDistance:u}:A},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},QAt=function(r,t,e,n,a){var i=0,A=0;switch(r.size){case 0:r.shape===0?i=A=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-n)),A=Math.min(Math.abs(e),Math.abs(e-a)));break;case 2:if(r.shape===0)i=A=Math.min(xn(t,e),xn(t,e-a),xn(t-n,e),xn(t-n,e-a));else if(r.shape===1){var o=Math.min(Math.abs(e),Math.abs(e-a))/Math.min(Math.abs(t),Math.abs(t-n)),s=mD(n,a,t,e,!0),l=s[0],u=s[1];i=xn(l-t,(u-e)/o),A=o*i}break;case 1:r.shape===0?i=A=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-n)),A=Math.max(Math.abs(e),Math.abs(e-a)));break;case 3:if(r.shape===0)i=A=Math.max(xn(t,e),xn(t,e-a),xn(t-n,e),xn(t-n,e-a));else if(r.shape===1){var o=Math.max(Math.abs(e),Math.abs(e-a))/Math.max(Math.abs(t),Math.abs(t-n)),f=mD(n,a,t,e,!1),l=f[0],u=f[1];i=xn(l-t,(u-e)/o),A=o*i}break}return Array.isArray(r.size)&&(i=ve(r.size[0],n),A=r.size.length===2?ve(r.size[1],a):i),[i,A]},LAt=function(r,t){var e=cn(180),n=[];return Ba(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&A.value==="to"){e=yO(a);return}else if(gO(A)){e=Cp.parse(r,A);return}}var o=Sp(r,a);n.push(o)}),{angle:e,stops:n,type:1}},xh=function(r,t){var e=cn(180),n=[];return Ba(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&["top","left","right","bottom"].indexOf(A.value)!==-1){e=yO(a);return}else if(gO(A)){e=(Cp.parse(r,A)+cn(270))%cn(360);return}}var o=Sp(r,a);n.push(o)}),{angle:e,stops:n,type:1}},MAt=function(r,t){var e=cn(180),n=[],a=1,i=0,A=3,o=[];return Ba(t).forEach(function(s,l){var u=s[0];if(l===0){if(le(u)&&u.value==="linear"){a=1;return}else if(le(u)&&u.value==="radial"){a=2;return}}if(u.type===18){if(u.name==="from"){var f=Ni.parse(r,u.values[0]);n.push({stop:Xe,color:f})}else if(u.name==="to"){var f=Ni.parse(r,u.values[0]);n.push({stop:Ui,color:f})}else if(u.name==="color-stop"){var c=u.values.filter(zs);if(c.length===2){var f=Ni.parse(r,c[1]),h=c[0];ul(h)&&n.push({stop:{type:16,number:h.number*100,flags:h.flags},color:f})}}}}),a===1?{angle:(e+cn(180))%cn(360),stops:n,type:a}:{size:A,shape:i,stops:n,position:o,type:a}},mO="closest-side",wO="farthest-side",BO="closest-corner",_O="farthest-corner",CO="circle",SO="ellipse",xO="cover",bO="contain",UAt=function(r,t){var e=0,n=3,a=[],i=[];return Ba(t).forEach(function(A,o){var s=!0;if(o===0){var l=!1;s=A.reduce(function(f,c){if(l)if(le(c))switch(c.value){case"center":return i.push(KC),f;case"top":case"left":return i.push(Xe),f;case"right":case"bottom":return i.push(Ui),f}else(Fe(c)||qi(c))&&i.push(c);else if(le(c))switch(c.value){case CO:return e=0,!1;case SO:return e=1,!1;case"at":return l=!0,!1;case mO:return n=0,!1;case xO:case wO:return n=1,!1;case bO:case BO:return n=2,!1;case _O:return n=3,!1}else if(qi(c)||Fe(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return f},s)}if(s){var u=Sp(r,A);a.push(u)}}),{size:n,shape:e,stops:a,position:i,type:2}},bh=function(r,t){var e=0,n=3,a=[],i=[];return Ba(t).forEach(function(A,o){var s=!0;if(o===0?s=A.reduce(function(u,f){if(le(f))switch(f.value){case"center":return i.push(KC),!1;case"top":case"left":return i.push(Xe),!1;case"right":case"bottom":return i.push(Ui),!1}else if(Fe(f)||qi(f))return i.push(f),!1;return u},s):o===1&&(s=A.reduce(function(u,f){if(le(f))switch(f.value){case CO:return e=0,!1;case SO:return e=1,!1;case bO:case mO:return n=0,!1;case wO:return n=1,!1;case BO:return n=2,!1;case xO:case _O:return n=3,!1}else if(qi(f)||Fe(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return u},s)),s){var l=Sp(r,A);a.push(l)}}),{size:n,shape:e,stops:a,position:i,type:2}},PAt=function(r){return r.type===1},RAt=function(r){return r.type===2},zC={name:"image",parse:function(r,t){if(t.type===22){var e={url:t.value,type:0};return r.cache.addImage(t.value),e}if(t.type===18){var n=TO[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(r,t.values)}throw new Error("Unsupported image type "+t.type)}};function HAt(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!TO[r.name])}var TO={"linear-gradient":LAt,"-moz-linear-gradient":xh,"-ms-linear-gradient":xh,"-o-linear-gradient":xh,"-webkit-linear-gradient":xh,"radial-gradient":UAt,"-moz-radial-gradient":bh,"-ms-radial-gradient":bh,"-o-radial-gradient":bh,"-webkit-radial-gradient":bh,"-webkit-gradient":MAt},OAt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t.filter(function(n){return zs(n)&&HAt(n)}).map(function(n){return zC.parse(r,n)})}},kAt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},NAt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(Fe)}).map(cO)}},VAt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(le).map(function(n){return n.value}).join(" ")}).map(GAt)}},GAt=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Es;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(Es||(Es={}));var KAt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(zAt)})}},zAt=function(r){return le(r)||Fe(r)},xp=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},WAt=xp("top"),XAt=xp("right"),YAt=xp("bottom"),ZAt=xp("left"),bp=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return cO(e.filter(Fe))}}},$At=bp("top-left"),JAt=bp("top-right"),qAt=bp("bottom-right"),jAt=bp("bottom-left"),Tp=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},tot=Tp("top"),eot=Tp("right"),rot=Tp("bottom"),not=Tp("left"),Ip=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return qf(e)?e.number:0}}},aot=Ip("top"),iot=Ip("right"),Aot=Ip("bottom"),oot=Ip("left"),sot={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},lot={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},uot={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,t){return t.filter(le).reduce(function(e,n){return e|fot(n.value)},0)}},fot=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},cot={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},hot={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},hd;(function(r){r.NORMAL="normal",r.STRICT="strict"})(hd||(hd={}));var vot={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"strict":return hd.STRICT;case"normal":default:return hd.NORMAL}}},dot={name:"line-height",initialValue:"normal",prefix:!1,type:4},wD=function(r,t){return le(r)&&r.value==="normal"?1.2*t:r.type===17?t*r.number:Fe(r)?ve(r,t):t},pot={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,t){return t.type===20&&t.value==="none"?null:zC.parse(r,t)}},got={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},eB={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Fp=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},yot=Fp("top"),mot=Fp("right"),wot=Fp("bottom"),Bot=Fp("left"),_ot={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Cot={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ep=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Sot=Ep("top"),xot=Ep("right"),bot=Ep("bottom"),Tot=Ep("left"),Iot={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Fot={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Eot={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.length===1&&tB(t[0],"none")?[]:Ba(t).map(function(e){for(var n={color:Va.TRANSPARENT,offsetX:Xe,offsetY:Xe,blur:Xe},a=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},Lot=function(r){var t=r.filter(function(e){return e.type===17}).map(function(e){return e.number});return t.length===6?t:null},Mot=function(r){var t=r.filter(function(s){return s.type===17}).map(function(s){return s.number}),e=t[0],n=t[1];t[2],t[3];var a=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var A=t[12],o=t[13];return t[14],t[15],t.length===16?[e,n,a,i,A,o]:null},Uot={matrix:Lot,matrix3d:Mot},BD={type:16,number:50,flags:Jf},Pot=[BD,BD],Rot={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,t){var e=t.filter(Fe);return e.length!==2?Pot:[e[0],e[1]]}},Hot={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ou;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(Ou||(Ou={}));var Oot={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-all":return Ou.BREAK_ALL;case"keep-all":return Ou.KEEP_ALL;case"normal":default:return Ou.NORMAL}}},kot={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,t){if(t.type===20)return{auto:!0,order:0};if(ul(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},IO={name:"time",parse:function(r,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},Not={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,t){return ul(t)?t.number:1}},Vot={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Got={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},Kot={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,t){var e=[],n=[];return t.forEach(function(a){switch(a.type){case 20:case 0:e.push(a.value);break;case 17:e.push(a.number.toString());break;case 4:n.push(e.join(" ")),e.length=0;break}}),e.length&&n.push(e.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},zot={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Wot={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,t){if(ul(t))return t.number;if(le(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Xot={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.filter(le).map(function(e){return e.value})}},Yot={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Me=function(r,t){return(r&t)!==0},Zot={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t}},$ot={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;for(var n=[],a=t.filter(fO),i=0;i1?1:0],this.overflowWrap=pt(t,Cot,e.overflowWrap),this.paddingTop=pt(t,Sot,e.paddingTop),this.paddingRight=pt(t,xot,e.paddingRight),this.paddingBottom=pt(t,bot,e.paddingBottom),this.paddingLeft=pt(t,Tot,e.paddingLeft),this.paintOrder=pt(t,est,e.paintOrder),this.position=pt(t,Fot,e.position),this.textAlign=pt(t,Iot,e.textAlign),this.textDecorationColor=pt(t,Vot,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=pt(t,Got,(a=e.textDecorationLine)!==null&&a!==void 0?a:e.textDecoration),this.textShadow=pt(t,Eot,e.textShadow),this.textTransform=pt(t,Dot,e.textTransform),this.transform=pt(t,Qot,e.transform),this.transformOrigin=pt(t,Rot,e.transformOrigin),this.visibility=pt(t,Hot,e.visibility),this.webkitTextStrokeColor=pt(t,rst,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=pt(t,nst,e.webkitTextStrokeWidth),this.wordBreak=pt(t,Oot,e.wordBreak),this.zIndex=pt(t,kot,e.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return Vi(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return Me(this.display,4)||Me(this.display,33554432)||Me(this.display,268435456)||Me(this.display,536870912)||Me(this.display,67108864)||Me(this.display,134217728)},r}(),ist=function(){function r(t,e){this.content=pt(t,Zot,e.content),this.quotes=pt(t,jot,e.quotes)}return r}(),CD=function(){function r(t,e){this.counterIncrement=pt(t,$ot,e.counterIncrement),this.counterReset=pt(t,Jot,e.counterReset)}return r}(),pt=function(r,t,e){var n=new lO,a=e!==null&&typeof e<"u"?e.toString():t.initialValue;n.write(a);var i=new uO(n.read());switch(t.type){case 2:var A=i.parseComponentValue();return t.parse(r,le(A)?A.value:t.initialValue);case 0:return t.parse(r,i.parseComponentValue());case 1:return t.parse(r,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return Cp.parse(r,i.parseComponentValue());case"color":return Ni.parse(r,i.parseComponentValue());case"image":return zC.parse(r,i.parseComponentValue());case"length":var o=i.parseComponentValue();return qi(o)?o:Xe;case"length-percentage":var s=i.parseComponentValue();return Fe(s)?s:Xe;case"time":return IO.parse(r,i.parseComponentValue())}break}},Ast="data-html2canvas-debug",ost=function(r){var t=r.getAttribute(Ast);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},rB=function(r,t){var e=ost(r);return e===1||t===e},_a=function(){function r(t,e){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,rB(e,3))debugger;this.styles=new ast(t,window.getComputedStyle(e,null)),iB(e)&&(this.styles.animationDuration.some(function(n){return n>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Bp(this.context,e),rB(e,4)&&(this.flags|=16)}return r}(),sst="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",SD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Th=0;Th>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},ust=function(r){for(var t=r.length,e=[],n=0;n>lo,hst=1<>lo,dst=FO+vst,pst=dst,gst=32,yst=pst+gst,mst=65536>>WC,wst=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>lo],e=(e<>lo)],e=(e<>WC),e=this.index[e],e+=t>>lo&Bst,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var Ih=0;Ih=55296&&a<=56319&&e>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},Est=Cst(sst),rn="×",Em="÷",Dst=function(r){return Est.get(r)},Qst=function(r,t,e){var n=e-2,a=t[n],i=t[e-1],A=t[e];if(i===xm&&A===bm)return rn;if(i===xm||i===bm||i===TD||A===xm||A===bm||A===TD)return Em;if(i===FD&&[FD,Tm,ED,DD].indexOf(A)!==-1||(i===ED||i===Tm)&&(A===Tm||A===Im)||(i===DD||i===Im)&&A===Im||A===QD||A===ID||A===Tst||i===bst)return rn;if(i===QD&&A===LD){for(;a===ID;)a=t[--n];if(a===LD)return rn}if(i===Fm&&A===Fm){for(var o=0;a===Fm;)o++,a=t[--n];if(o%2===0)return rn}return Em},Lst=function(r){var t=Ist(r),e=t.length,n=0,a=0,i=t.map(Dst);return{next:function(){if(n>=e)return{done:!0,value:null};for(var A=rn;nA.x||u.y>A.y;return A=u,l===0?!0:f});return r.body.removeChild(t),o},Rst=function(){return typeof new Image().crossOrigin<"u"},Hst=function(){return typeof new XMLHttpRequest().responseType=="string"},Ost=function(r){var t=new Image,e=r.createElement("canvas"),n=e.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,";try{n.drawImage(t,0,0),e.toDataURL()}catch{return!1}return!0},MD=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},kst=function(r){var t=r.createElement("canvas"),e=100;t.width=e,t.height=e;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,e,e);var a=new Image,i=t.toDataURL();a.src=i;var A=nB(e,e,0,0,a);return n.fillStyle="red",n.fillRect(0,0,e,e),UD(A).then(function(o){n.drawImage(o,0,0);var s=n.getImageData(0,0,e,e).data;n.fillStyle="red",n.fillRect(0,0,e,e);var l=r.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=e+"px",MD(s)?UD(nB(e,e,0,0,l)):Promise.reject(!1)}).then(function(o){return n.drawImage(o,0,0),MD(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},nB=function(r,t,e,n,a){var i="http://www.w3.org/2000/svg",A=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return A.setAttributeNS(null,"width",r.toString()),A.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),A.appendChild(o),o.appendChild(a),A},UD=function(r){return new Promise(function(t,e){var n=new Image;n.onload=function(){return t(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},We={get SUPPORT_RANGE_BOUNDS(){var r=Ust(document);return Object.defineProperty(We,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=We.SUPPORT_RANGE_BOUNDS&&Pst(document);return Object.defineProperty(We,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=Ost(document);return Object.defineProperty(We,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?kst(document):Promise.resolve(!1);return Object.defineProperty(We,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=Rst();return Object.defineProperty(We,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=Hst();return Object.defineProperty(We,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(We,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(We,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},ku=function(){function r(t,e){this.text=t,this.bounds=e}return r}(),Nst=function(r,t,e,n){var a=Kst(t,e),i=[],A=0;return a.forEach(function(o){if(e.textDecorationLine.length||o.trim().length>0)if(We.SUPPORT_RANGE_BOUNDS){var s=PD(n,A,o.length).getClientRects();if(s.length>1){var l=XC(o),u=0;l.forEach(function(c){i.push(new ku(c,qa.fromDOMRectList(r,PD(n,u+A,c.length).getClientRects()))),u+=c.length})}else i.push(new ku(o,qa.fromDOMRectList(r,s)))}else{var f=n.splitText(o.length);i.push(new ku(o,Vst(r,n))),n=f}else We.SUPPORT_RANGE_BOUNDS||(n=n.splitText(o.length));A+=o.length}),i},Vst=function(r,t){var e=t.ownerDocument;if(e){var n=e.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var a=t.parentNode;if(a){a.replaceChild(n,t);var i=Bp(r,n);return n.firstChild&&a.replaceChild(n.firstChild,n),i}}return qa.EMPTY},PD=function(r,t,e){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(r,t),a.setEnd(r,t+e),a},XC=function(r){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(r)).map(function(e){return e.segment})}return Mst(r)},Gst=function(r,t){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(r)).map(function(n){return n.segment})}return Wst(r,t)},Kst=function(r,t){return t.letterSpacing!==0?XC(r):Gst(r,t)},zst=[32,160,4961,65792,65793,4153,4241],Wst=function(r,t){for(var e=mit(r,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],a,i=function(){if(a.value){var A=a.value.slice(),o=_p(A),s="";o.forEach(function(l){zst.indexOf(l)===-1?s+=Ce(l):(s.length&&n.push(s),n.push(Ce(l)),s="")}),s.length&&n.push(s)}};!(a=e.next()).done;)i();return n},Xst=function(){function r(t,e,n){this.text=Yst(e.data,n.textTransform),this.textBounds=Nst(t,this.text,n,e)}return r}(),Yst=function(r,t){switch(t){case 1:return r.toLowerCase();case 3:return r.replace(Zst,$st);case 2:return r.toUpperCase();default:return r}},Zst=/(^|\s|:|-|\(|\))([a-z])/g,$st=function(r,t,e){return r.length>0?t+e.toUpperCase():r},EO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return t}(_a),DO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return t}(_a),QO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this,i=new XMLSerializer,A=Bp(e,n);return n.setAttribute("width",A.width+"px"),n.setAttribute("height",A.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return t}(_a),LO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.value=n.value,a}return t}(_a),aB=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return t}(_a),Jst=[{type:15,flags:0,unit:"px",number:3}],qst=[{type:16,flags:0,number:50}],jst=function(r){return r.width>r.height?new qa(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)e.textNodes.push(new Xst(r,a,e.styles));else if(ys(a))if(GO(a)&&a.assignedNodes)a.assignedNodes().forEach(function(o){return sv(r,o,e,n)});else{var A=RO(r,a);A.styles.isVisible()&&(nlt(a,A,n)?A.flags|=4:alt(A.styles)&&(A.flags|=2),rlt.indexOf(a.tagName)!==-1&&(A.flags|=8),e.elements.push(A),a.slot,a.shadowRoot?sv(r,a.shadowRoot,A,n):!pd(a)&&!kO(a)&&!gd(a)&&sv(r,a,A,n))}},RO=function(r,t){return AB(t)?new EO(r,t):NO(t)?new DO(r,t):kO(t)?new QO(r,t):ilt(t)?new LO(r,t):Alt(t)?new aB(r,t):olt(t)?new YC(r,t):gd(t)?new MO(r,t):pd(t)?new UO(r,t):VO(t)?new PO(r,t):new _a(r,t)},HO=function(r,t){var e=RO(r,t);return e.flags|=4,sv(r,t,e,e),e},nlt=function(r,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||ZC(r)&&e.styles.isTransparent()},alt=function(r){return r.isPositioned()||r.isFloating()},OO=function(r){return r.nodeType===Node.TEXT_NODE},ys=function(r){return r.nodeType===Node.ELEMENT_NODE},iB=function(r){return ys(r)&&typeof r.style<"u"&&!lv(r)},lv=function(r){return typeof r.className=="object"},ilt=function(r){return r.tagName==="LI"},Alt=function(r){return r.tagName==="OL"},olt=function(r){return r.tagName==="INPUT"},slt=function(r){return r.tagName==="HTML"},kO=function(r){return r.tagName==="svg"},ZC=function(r){return r.tagName==="BODY"},NO=function(r){return r.tagName==="CANVAS"},HD=function(r){return r.tagName==="VIDEO"},AB=function(r){return r.tagName==="IMG"},VO=function(r){return r.tagName==="IFRAME"},OD=function(r){return r.tagName==="STYLE"},llt=function(r){return r.tagName==="SCRIPT"},pd=function(r){return r.tagName==="TEXTAREA"},gd=function(r){return r.tagName==="SELECT"},GO=function(r){return r.tagName==="SLOT"},kD=function(r){return r.tagName.indexOf("-")>0},ult=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},r.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},r.prototype.pop=function(t){var e=this;t.forEach(function(n){return e.counters[n].pop()})},r.prototype.parse=function(t){var e=this,n=t.counterIncrement,a=t.counterReset,i=!0;n!==null&&n.forEach(function(o){var s=e.counters[o.counter];s&&o.increment!==0&&(i=!1,s.length||s.push(1),s[Math.max(0,s.length-1)]+=o.increment)});var A=[];return i&&a.forEach(function(o){var s=e.counters[o.counter];A.push(o.counter),s||(s=e.counters[o.counter]=[]),s.push(o.reset)}),A},r}(),ND={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},VD={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},flt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},clt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},es=function(r,t,e,n,a,i){return re?bf(r,a,i.length>0):n.integers.reduce(function(A,o,s){for(;r>=o;)r-=o,A+=n.values[s];return A},"")+i},KO=function(r,t,e,n){var a="";do e||r--,a=n(r)+a,r/=t;while(r*t>=t);return a},_e=function(r,t,e,n,a){var i=e-t+1;return(r<0?"-":"")+(KO(Math.abs(r),i,n,function(A){return Ce(Math.floor(A%i)+t)})+a)},EA=function(r,t,e){e===void 0&&(e=". ");var n=t.length;return KO(Math.abs(r),n,!1,function(a){return t[Math.floor(a%n)]})+e},fs=1,pi=2,gi=4,hu=8,Fa=function(r,t,e,n,a,i){if(r<-9999||r>9999)return bf(r,4,a.length>0);var A=Math.abs(r),o=a;if(A===0)return t[0]+o;for(var s=0;A>0&&s<=4;s++){var l=A%10;l===0&&Me(i,fs)&&o!==""?o=t[l]+o:l>1||l===1&&s===0||l===1&&s===1&&Me(i,pi)||l===1&&s===1&&Me(i,gi)&&r>100||l===1&&s>1&&Me(i,hu)?o=t[l]+(s>0?e[s-1]:"")+o:l===1&&s>0&&(o=e[s-1]+o),A=Math.floor(A/10)}return(r<0?n:"")+o},GD="十百千萬",KD="拾佰仟萬",zD="マイナス",Dm="마이너스",bf=function(r,t,e){var n=e?". ":"",a=e?"、":"",i=e?", ":"",A=e?" ":"";switch(t){case 0:return"•"+A;case 1:return"◦"+A;case 2:return"◾"+A;case 5:var o=_e(r,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return EA(r,"〇一二三四五六七八九",a);case 6:return es(r,1,3999,ND,3,n).toLowerCase();case 7:return es(r,1,3999,ND,3,n);case 8:return _e(r,945,969,!1,n);case 9:return _e(r,97,122,!1,n);case 10:return _e(r,65,90,!1,n);case 11:return _e(r,1632,1641,!0,n);case 12:case 49:return es(r,1,9999,VD,3,n);case 35:return es(r,1,9999,VD,3,n).toLowerCase();case 13:return _e(r,2534,2543,!0,n);case 14:case 30:return _e(r,6112,6121,!0,n);case 15:return EA(r,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return EA(r,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return Fa(r,"零一二三四五六七八九",GD,"負",a,pi|gi|hu);case 47:return Fa(r,"零壹貳參肆伍陸柒捌玖",KD,"負",a,fs|pi|gi|hu);case 42:return Fa(r,"零一二三四五六七八九",GD,"负",a,pi|gi|hu);case 41:return Fa(r,"零壹贰叁肆伍陆柒捌玖",KD,"负",a,fs|pi|gi|hu);case 26:return Fa(r,"〇一二三四五六七八九","十百千万",zD,a,0);case 25:return Fa(r,"零壱弐参四伍六七八九","拾百千万",zD,a,fs|pi|gi);case 31:return Fa(r,"영일이삼사오육칠팔구","십백천만",Dm,i,fs|pi|gi);case 33:return Fa(r,"零一二三四五六七八九","十百千萬",Dm,i,0);case 32:return Fa(r,"零壹貳參四五六七八九","拾百千",Dm,i,fs|pi|gi);case 18:return _e(r,2406,2415,!0,n);case 20:return es(r,1,19999,clt,3,n);case 21:return _e(r,2790,2799,!0,n);case 22:return _e(r,2662,2671,!0,n);case 22:return es(r,1,10999,flt,3,n);case 23:return EA(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return EA(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return _e(r,3302,3311,!0,n);case 28:return EA(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return EA(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return _e(r,3792,3801,!0,n);case 37:return _e(r,6160,6169,!0,n);case 38:return _e(r,4160,4169,!0,n);case 39:return _e(r,2918,2927,!0,n);case 40:return _e(r,1776,1785,!0,n);case 43:return _e(r,3046,3055,!0,n);case 44:return _e(r,3174,3183,!0,n);case 45:return _e(r,3664,3673,!0,n);case 46:return _e(r,3872,3881,!0,n);case 3:default:return _e(r,48,57,!0,n)}},zO="data-html2canvas-ignore",WD=function(){function r(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new ult,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(t,e){var n=this,a=hlt(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,A=t.defaultView.pageYOffset,o=a.contentWindow,s=o.document,l=plt(a).then(function(){return hr(n,void 0,void 0,function(){var u,f;return er(this,function(c){switch(c.label){case 0:return this.scrolledElements.forEach(wlt),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),u=this.options.onclone,f=this.clonedReferenceElement,typeof f>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:s.fonts&&s.fonts.ready?[4,s.fonts.ready]:[3,2];case 1:c.sent(),c.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,dlt(s)]:[3,4];case 3:c.sent(),c.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(s,f)}).then(function(){return a})]:[2,a]}})})});return s.open(),s.write(ylt(document.doctype)+""),mlt(this.referenceElement.ownerDocument,i,A),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),l},r.prototype.createElementClone=function(t){if(rB(t,2))debugger;if(NO(t))return this.createCanvasClone(t);if(HD(t))return this.createVideoClone(t);if(OD(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return AB(e)&&(AB(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),kD(e)?this.createCustomElementClone(e):e},r.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return Qm(t.style,e),e},r.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(i,A){return A&&typeof A.cssText=="string"?i+A.cssText:i},""),a=t.cloneNode(!1);return a.textContent=n,a}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},r.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var a=t.cloneNode(!1);try{a.width=t.width,a.height=t.height;var i=t.getContext("2d"),A=a.getContext("2d");if(A)if(!this.options.allowTaint&&i)A.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=(e=t.getContext("webgl2"))!==null&&e!==void 0?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();(s==null?void 0:s.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}A.drawImage(t,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return a},r.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var a=t.ownerDocument.createElement("canvas");return a.width=t.offsetWidth,a.height=t.offsetHeight,a},r.prototype.appendChildNode=function(t,e,n){(!ys(e)||!llt(e)&&!e.hasAttribute(zO)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!ys(e)||!OD(e))&&t.appendChild(this.cloneNode(e,n))},r.prototype.cloneChildNodes=function(t,e,n){for(var a=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(ys(i)&&GO(i)&&typeof i.assignedNodes=="function"){var A=i.assignedNodes();A.length&&A.forEach(function(o){return a.appendChildNode(e,o,n)})}else this.appendChildNode(e,i,n)},r.prototype.cloneNode=function(t,e){if(OO(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&ys(t)&&(iB(t)||lv(t))){var a=this.createElementClone(t);a.style.transitionProperty="none";var i=n.getComputedStyle(t),A=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&iB(a)&&(this.clonedReferenceElement=a),ZC(a)&&Clt(a);var s=this.counters.parse(new CD(this.context,i)),l=this.resolvePseudoContent(t,a,A,Nu.BEFORE);kD(t)&&(e=!0),HD(t)||this.cloneChildNodes(t,a,e),l&&a.insertBefore(l,a.firstChild);var u=this.resolvePseudoContent(t,a,o,Nu.AFTER);return u&&a.appendChild(u),this.counters.pop(s),(i&&(this.options.copyStyles||lv(t))&&!VO(t)||e)&&Qm(i,a),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([a,t.scrollLeft,t.scrollTop]),(pd(t)||gd(t))&&(pd(a)||gd(a))&&(a.value=t.value),a}return t.cloneNode(!1)},r.prototype.resolvePseudoContent=function(t,e,n,a){var i=this;if(n){var A=n.content,o=e.ownerDocument;if(!(!o||!A||A==="none"||A==="-moz-alt-content"||n.display==="none")){this.counters.parse(new CD(this.context,n));var s=new ist(this.context,n),l=o.createElement("html2canvaspseudoelement");Qm(n,l),s.content.forEach(function(f){if(f.type===0)l.appendChild(o.createTextNode(f.value));else if(f.type===22){var c=o.createElement("img");c.src=f.value,c.style.opacity="1",l.appendChild(c)}else if(f.type===18){if(f.name==="attr"){var h=f.values.filter(le);h.length&&l.appendChild(o.createTextNode(t.getAttribute(h[0].value)||""))}else if(f.name==="counter"){var v=f.values.filter(zs),d=v[0],p=v[1];if(d&&le(d)){var g=i.counters.getCounterValue(d.value),y=p&&le(p)?eB.parse(i.context,p.value):3;l.appendChild(o.createTextNode(bf(g,y,!1)))}}else if(f.name==="counters"){var m=f.values.filter(zs),d=m[0],w=m[1],p=m[2];if(d&&le(d)){var _=i.counters.getCounterValues(d.value),B=p&&le(p)?eB.parse(i.context,p.value):3,C=w&&w.type===0?w.value:"",S=_.map(function(I){return bf(I,B,!1)}).join(C);l.appendChild(o.createTextNode(S))}}}else if(f.type===20)switch(f.value){case"open-quote":l.appendChild(o.createTextNode(_D(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(_D(s.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(f.value))}}),l.className=oB+" "+sB;var u=a===Nu.BEFORE?" "+oB:" "+sB;return lv(e)?e.className.baseValue+=u:e.className+=u,l}}},r.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},r}(),Nu;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Nu||(Nu={}));var hlt=function(r,t){var e=r.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(zO,"true"),r.body.appendChild(e),e},vlt=function(r){return new Promise(function(t){if(r.complete){t();return}if(!r.src){t();return}r.onload=t,r.onerror=t})},dlt=function(r){return Promise.all([].slice.call(r.images,0).map(vlt))},plt=function(r){return new Promise(function(t,e){var n=r.contentWindow;if(!n)return e("No window assigned for iframe");var a=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var i=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(i),t(r))},50)}})},glt=["all","d","content"],Qm=function(r,t){for(var e=r.length-1;e>=0;e--){var n=r.item(e);glt.indexOf(n)===-1&&t.style.setProperty(n,r.getPropertyValue(n))}return t},ylt=function(r){var t="";return r&&(t+=""),t},mlt=function(r,t,e){r&&r.defaultView&&(t!==r.defaultView.pageXOffset||e!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(t,e)},wlt=function(r){var t=r[0],e=r[1],n=r[2];t.scrollLeft=e,t.scrollTop=n},Blt=":before",_lt=":after",oB="___html2canvas___pseudoelement_before",sB="___html2canvas___pseudoelement_after",XD=`{ + content: "" !important; + display: none !important; +}`,Clt=function(r){Slt(r,"."+oB+Blt+XD+` + .`+sB+_lt+XD)},Slt=function(r,t){var e=r.ownerDocument;if(e){var n=e.createElement("style");n.textContent=t,r.appendChild(n)}},WO=function(){function r(){}return r.getOrigin=function(t){var e=r._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},r.isSameOrigin=function(t){return r.getOrigin(t)===r._origin},r.setContext=function(t){r._link=t.document.createElement("a"),r._origin=r.getOrigin(t.location.href)},r._origin="about:blank",r}(),xlt=function(){function r(t,e){this.context=t,this._options=e,this._cache={}}return r.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)||(Mm(t)||Flt(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),e},r.prototype.match=function(t){return this._cache[t]},r.prototype.loadImage=function(t){return hr(this,void 0,void 0,function(){var e,n,a,i,A=this;return er(this,function(o){switch(o.label){case 0:return e=WO.isSameOrigin(t),n=!Lm(t)&&this._options.useCORS===!0&&We.SUPPORT_CORS_IMAGES&&!e,a=!Lm(t)&&!e&&!Mm(t)&&typeof this._options.proxy=="string"&&We.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!Lm(t)&&!Mm(t)&&!a&&!n?[2]:(i=t,a?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(s,l){var u=new Image;u.onload=function(){return s(u)},u.onerror=l,(Elt(i)||n)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return s(u)},500),A._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+A._options.imageTimeout+"ms) loading image")},A._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},r.prototype.has=function(t){return typeof this._cache[t]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(i,A){var o=We.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o==="text")i(s.response);else{var f=new FileReader;f.addEventListener("load",function(){return i(f.result)},!1),f.addEventListener("error",function(c){return A(c)},!1),f.readAsDataURL(s.response)}else A("Failed to proxy resource "+a+" with status code "+s.status)},s.onerror=A;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var u=e._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return A("Timed out ("+u+"ms) proxying "+a)}}s.send()})},r}(),blt=/^data:image\/svg\+xml/i,Tlt=/^data:image\/.*;base64,/i,Ilt=/^data:image\/.*/i,Flt=function(r){return We.SUPPORT_SVG_DRAWING||!Dlt(r)},Lm=function(r){return Ilt.test(r)},Elt=function(r){return Tlt.test(r)},Mm=function(r){return r.substr(0,4)==="blob"},Dlt=function(r){return r.substr(-3).toLowerCase()==="svg"||blt.test(r)},ht=function(){function r(t,e){this.type=0,this.x=t,this.y=e}return r.prototype.add=function(t,e){return new r(this.x+t,this.y+e)},r}(),rs=function(r,t,e){return new ht(r.x+(t.x-r.x)*e,r.y+(t.y-r.y)*e)},Fh=function(){function r(t,e,n,a){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=a}return r.prototype.subdivide=function(t,e){var n=rs(this.start,this.startControl,t),a=rs(this.startControl,this.endControl,t),i=rs(this.endControl,this.end,t),A=rs(n,a,t),o=rs(a,i,t),s=rs(A,o,t);return e?new r(this.start,n,A,s):new r(s,o,i,this.end)},r.prototype.add=function(t,e){return new r(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),sn=function(r){return r.type===1},Qlt=function(){function r(t){var e=t.styles,n=t.bounds,a=fu(e.borderTopLeftRadius,n.width,n.height),i=a[0],A=a[1],o=fu(e.borderTopRightRadius,n.width,n.height),s=o[0],l=o[1],u=fu(e.borderBottomRightRadius,n.width,n.height),f=u[0],c=u[1],h=fu(e.borderBottomLeftRadius,n.width,n.height),v=h[0],d=h[1],p=[];p.push((i+s)/n.width),p.push((v+f)/n.width),p.push((A+d)/n.height),p.push((l+c)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,A/=g,s/=g,l/=g,f/=g,c/=g,v/=g,d/=g);var y=n.width-s,m=n.height-c,w=n.width-f,_=n.height-d,B=e.borderTopWidth,C=e.borderRightWidth,S=e.borderBottomWidth,x=e.borderLeftWidth,b=ve(e.paddingTop,t.bounds.width),I=ve(e.paddingRight,t.bounds.width),F=ve(e.paddingBottom,t.bounds.width),E=ve(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||A>0?pe(n.left+x/3,n.top+B/3,i-x/3,A-B/3,ee.TOP_LEFT):new ht(n.left+x/3,n.top+B/3),this.topRightBorderDoubleOuterBox=i>0||A>0?pe(n.left+y,n.top+B/3,s-C/3,l-B/3,ee.TOP_RIGHT):new ht(n.left+n.width-C/3,n.top+B/3),this.bottomRightBorderDoubleOuterBox=f>0||c>0?pe(n.left+w,n.top+m,f-C/3,c-S/3,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C/3,n.top+n.height-S/3),this.bottomLeftBorderDoubleOuterBox=v>0||d>0?pe(n.left+x/3,n.top+_,v-x/3,d-S/3,ee.BOTTOM_LEFT):new ht(n.left+x/3,n.top+n.height-S/3),this.topLeftBorderDoubleInnerBox=i>0||A>0?pe(n.left+x*2/3,n.top+B*2/3,i-x*2/3,A-B*2/3,ee.TOP_LEFT):new ht(n.left+x*2/3,n.top+B*2/3),this.topRightBorderDoubleInnerBox=i>0||A>0?pe(n.left+y,n.top+B*2/3,s-C*2/3,l-B*2/3,ee.TOP_RIGHT):new ht(n.left+n.width-C*2/3,n.top+B*2/3),this.bottomRightBorderDoubleInnerBox=f>0||c>0?pe(n.left+w,n.top+m,f-C*2/3,c-S*2/3,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C*2/3,n.top+n.height-S*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||d>0?pe(n.left+x*2/3,n.top+_,v-x*2/3,d-S*2/3,ee.BOTTOM_LEFT):new ht(n.left+x*2/3,n.top+n.height-S*2/3),this.topLeftBorderStroke=i>0||A>0?pe(n.left+x/2,n.top+B/2,i-x/2,A-B/2,ee.TOP_LEFT):new ht(n.left+x/2,n.top+B/2),this.topRightBorderStroke=i>0||A>0?pe(n.left+y,n.top+B/2,s-C/2,l-B/2,ee.TOP_RIGHT):new ht(n.left+n.width-C/2,n.top+B/2),this.bottomRightBorderStroke=f>0||c>0?pe(n.left+w,n.top+m,f-C/2,c-S/2,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C/2,n.top+n.height-S/2),this.bottomLeftBorderStroke=v>0||d>0?pe(n.left+x/2,n.top+_,v-x/2,d-S/2,ee.BOTTOM_LEFT):new ht(n.left+x/2,n.top+n.height-S/2),this.topLeftBorderBox=i>0||A>0?pe(n.left,n.top,i,A,ee.TOP_LEFT):new ht(n.left,n.top),this.topRightBorderBox=s>0||l>0?pe(n.left+y,n.top,s,l,ee.TOP_RIGHT):new ht(n.left+n.width,n.top),this.bottomRightBorderBox=f>0||c>0?pe(n.left+w,n.top+m,f,c,ee.BOTTOM_RIGHT):new ht(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=v>0||d>0?pe(n.left,n.top+_,v,d,ee.BOTTOM_LEFT):new ht(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||A>0?pe(n.left+x,n.top+B,Math.max(0,i-x),Math.max(0,A-B),ee.TOP_LEFT):new ht(n.left+x,n.top+B),this.topRightPaddingBox=s>0||l>0?pe(n.left+Math.min(y,n.width-C),n.top+B,y>n.width+C?0:Math.max(0,s-C),Math.max(0,l-B),ee.TOP_RIGHT):new ht(n.left+n.width-C,n.top+B),this.bottomRightPaddingBox=f>0||c>0?pe(n.left+Math.min(w,n.width-x),n.top+Math.min(m,n.height-S),Math.max(0,f-C),Math.max(0,c-S),ee.BOTTOM_RIGHT):new ht(n.left+n.width-C,n.top+n.height-S),this.bottomLeftPaddingBox=v>0||d>0?pe(n.left+x,n.top+Math.min(_,n.height-S),Math.max(0,v-x),Math.max(0,d-S),ee.BOTTOM_LEFT):new ht(n.left+x,n.top+n.height-S),this.topLeftContentBox=i>0||A>0?pe(n.left+x+E,n.top+B+b,Math.max(0,i-(x+E)),Math.max(0,A-(B+b)),ee.TOP_LEFT):new ht(n.left+x+E,n.top+B+b),this.topRightContentBox=s>0||l>0?pe(n.left+Math.min(y,n.width+x+E),n.top+B+b,y>n.width+x+E?0:s-x+E,l-(B+b),ee.TOP_RIGHT):new ht(n.left+n.width-(C+I),n.top+B+b),this.bottomRightContentBox=f>0||c>0?pe(n.left+Math.min(w,n.width-(x+E)),n.top+Math.min(m,n.height+B+b),Math.max(0,f-(C+I)),c-(S+F),ee.BOTTOM_RIGHT):new ht(n.left+n.width-(C+I),n.top+n.height-(S+F)),this.bottomLeftContentBox=v>0||d>0?pe(n.left+x+E,n.top+_,Math.max(0,v-(x+E)),d-(S+F),ee.BOTTOM_LEFT):new ht(n.left+x+E,n.top+n.height-(S+F))}return r}(),ee;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ee||(ee={}));var pe=function(r,t,e,n,a){var i=4*((Math.sqrt(2)-1)/3),A=e*i,o=n*i,s=r+e,l=t+n;switch(a){case ee.TOP_LEFT:return new Fh(new ht(r,l),new ht(r,l-o),new ht(s-A,t),new ht(s,t));case ee.TOP_RIGHT:return new Fh(new ht(r,t),new ht(r+A,t),new ht(s,l-o),new ht(s,l));case ee.BOTTOM_RIGHT:return new Fh(new ht(s,t),new ht(s,t+o),new ht(r+A,l),new ht(r,l));case ee.BOTTOM_LEFT:default:return new Fh(new ht(s,l),new ht(s-A,l),new ht(r,t+o),new ht(r,t))}},yd=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},Llt=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},md=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},Mlt=function(){function r(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return r}(),Eh=function(){function r(t,e){this.path=t,this.target=e,this.type=1}return r}(),Ult=function(){function r(t){this.opacity=t,this.type=2,this.target=6}return r}(),Plt=function(r){return r.type===0},XO=function(r){return r.type===1},Rlt=function(r){return r.type===2},YD=function(r,t){return r.length===t.length?r.some(function(e,n){return e===t[n]}):!1},Hlt=function(r,t,e,n,a){return r.map(function(i,A){switch(A){case 0:return i.add(t,e);case 1:return i.add(t+n,e);case 2:return i.add(t+n,e+a);case 3:return i.add(t,e+a)}return i})},YO=function(){function r(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),ZO=function(){function r(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Qlt(this.container),this.container.styles.opacity<1&&this.effects.push(new Ult(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Mlt(n,a,i))}if(this.container.styles.overflowX!==0){var A=yd(this.curves),o=md(this.curves);YD(A,o)?this.effects.push(new Eh(A,6)):(this.effects.push(new Eh(A,2)),this.effects.push(new Eh(o,4)))}}return r.prototype.getEffects=function(t){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var i=n.effects.filter(function(s){return!XO(s)});if(e||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var A=yd(n.curves),o=md(n.curves);YD(A,o)||a.unshift(new Eh(o,6))}}else a.unshift.apply(a,i);n=n.parent}return a.filter(function(s){return Me(s.target,t)})},r}(),lB=function(r,t,e,n){r.container.elements.forEach(function(a){var i=Me(a.flags,4),A=Me(a.flags,2),o=new ZO(a,r);Me(a.styles.display,2048)&&n.push(o);var s=Me(a.flags,8)?[]:n;if(i||A){var l=i||a.styles.isPositioned()?e:t,u=new YO(o);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var f=a.styles.zIndex.order;if(f<0){var c=0;l.negativeZIndex.some(function(v,d){return f>v.element.container.styles.zIndex.order?(c=d,!1):c>0}),l.negativeZIndex.splice(c,0,u)}else if(f>0){var h=0;l.positiveZIndex.some(function(v,d){return f>=v.element.container.styles.zIndex.order?(h=d+1,!1):h>0}),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);lB(o,u,i?u:e,s)}else a.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),lB(o,t,e,s);Me(a.flags,8)&&$O(a,s)})},$O=function(r,t){for(var e=r instanceof aB?r.start:1,n=r instanceof aB?r.reversed:!1,a=0;a"u"?r[0]:e},Wlt=function(r,t,e,n,a){var i=t[0],A=t[1],o=e[0],s=e[1];switch(r){case 2:return[new ht(Math.round(n.left),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(s+n.top+A)),new ht(Math.round(n.left),Math.round(s+n.top+A))];case 3:return[new ht(Math.round(n.left+i),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.height+n.top)),new ht(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new ht(Math.round(n.left+i),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A+s)),new ht(Math.round(n.left+i),Math.round(n.top+A+s))];default:return[new ht(Math.round(a.left),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.height+a.top)),new ht(Math.round(a.left),Math.round(a.height+a.top))]}},Xlt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",$D="Hidden Text",Ylt=function(){function r(t){this._data={},this._document=t}return r.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),A=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",A.appendChild(n),a.src=Xlt,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode($D)),n.appendChild(i),n.appendChild(a);var o=a.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode($D)),n.style.lineHeight="normal",a.style.verticalAlign="super";var s=a.offsetTop-n.offsetTop+2;return A.removeChild(n),{baseline:o,middle:s}},r.prototype.getMetrics=function(t,e){var n=t+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},r}(),qO=function(){function r(t,e){this.context=t,this.options=e}return r}(),Zlt=1e4,$lt=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new Ylt(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return t.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(a){return n.applyEffect(a)})},t.prototype.applyEffect=function(e){this.ctx.save(),Rlt(e)&&(this.ctx.globalAlpha=e.opacity),Plt(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),XO(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return hr(this,void 0,void 0,function(){var n;return er(this,function(a){switch(a.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(e){return hr(this,void 0,void 0,function(){return er(this,function(n){switch(n.label){case 0:if(Me(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(e,n,a){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+a);else{var A=XC(e.text);A.reduce(function(o,s){return i.ctx.fillText(s,o,e.bounds.top+a),o+i.ctx.measureText(s).width},e.bounds.left)}},t.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join(""),a=eut(e.fontFamily).join(", "),i=qf(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,a].join(" "),a,i]},t.prototype.renderTextNode=function(e,n){return hr(this,void 0,void 0,function(){var a,i,A,o,s,l,u,f,c=this;return er(this,function(h){return a=this.createFontStyle(n),i=a[0],A=a[1],o=a[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(A,o),l=s.baseline,u=s.middle,f=n.paintOrder,e.textBounds.forEach(function(v){f.forEach(function(d){switch(d){case 0:c.ctx.fillStyle=ke(n.color),c.renderTextWithLetterSpacing(v,n.letterSpacing,l);var p=n.textShadow;p.length&&v.text.trim().length&&(p.slice(0).reverse().forEach(function(g){c.ctx.shadowColor=ke(g.color),c.ctx.shadowOffsetX=g.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=g.offsetY.number*c.options.scale,c.ctx.shadowBlur=g.blur.number,c.renderTextWithLetterSpacing(v,n.letterSpacing,l)}),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),n.textDecorationLine.length&&(c.ctx.fillStyle=ke(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+l),v.bounds.width,1);break;case 2:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:c.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+u),v.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&v.text.trim().length&&(c.ctx.strokeStyle=ke(n.webkitTextStrokeColor),c.ctx.lineWidth=n.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+l)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(e,n,a){if(a&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=wd(e),A=md(n);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return hr(this,void 0,void 0,function(){var n,a,i,A,o,s,y,y,l,u,f,c,w,h,v,_,d,p,g,y,m,w,_;return er(this,function(B){switch(B.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,a=e.curves,i=n.styles,A=0,o=n.textNodes,B.label=1;case 1:return A0&&D>0&&(S=i.ctx.createPattern(_,"repeat"),i.renderRepeat(b,S,M,R))):RAt(u)&&(x=Um(e,n,[null,null,null]),b=x[0],I=x[1],F=x[2],E=x[3],D=x[4],Q=u.position.length===0?[KC]:u.position,M=ve(Q[0],E),R=ve(Q[Q.length-1],D),P=QAt(u,M,R,E,D),O=P[0],G=P[1],O>0&&G>0&&(X=i.ctx.createRadialGradient(I+M,F+R,0,I+M,F+R,O),yD(u.stops,O*2).forEach(function(N){return X.addColorStop(N.stop,ke(N.color))}),i.path(b),i.ctx.fillStyle=X,O!==G?(J=e.bounds.left+.5*e.bounds.width,At=e.bounds.top+.5*e.bounds.height,lt=G/O,wt=1/lt,i.ctx.save(),i.ctx.translate(J,At),i.ctx.transform(1,0,0,lt,0,0),i.ctx.translate(-J,-At),i.ctx.fillRect(I,wt*(F-At)+At,E,D*wt),i.ctx.restore()):i.ctx.fill())),Bt.label=6;case 6:return n--,[2]}})},i=this,A=0,o=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return A0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,2)]:[3,11]):[3,13];case 4:return c.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,3)];case 6:return c.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,e.curves)];case 8:return c.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,e.curves)];case 10:c.sent(),c.label=11;case 11:o++,c.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(e,n,a,i,A){return hr(this,void 0,void 0,function(){var o,s,l,u,f,c,h,v,d,p,g,y,m,w,_,B,_,B;return er(this,function(C){return this.ctx.save(),o=Vlt(i,a),s=ZD(i,a),A===2&&(this.path(s),this.ctx.clip()),sn(s[0])?(l=s[0].start.x,u=s[0].start.y):(l=s[0].x,u=s[0].y),sn(s[1])?(f=s[1].end.x,c=s[1].end.y):(f=s[1].x,c=s[1].y),a===0||a===2?h=Math.abs(l-f):h=Math.abs(u-c),this.ctx.beginPath(),A===3?this.formatPath(o):this.formatPath(s.slice(0,2)),v=n<3?n*3:n*2,d=n<3?n*2:n,A===3&&(v=n,d=n),p=!0,h<=v*2?p=!1:h<=v*2+d?(g=h/(2*v+d),v*=g,d*=g):(y=Math.floor((h+d)/(v+d)),m=(h-y*v)/(y-1),w=(h-(y+1)*v)/y,d=w<=0||Math.abs(d-m)t.status),n=qn(JE(e.value.meta.uptime)),a=qn(null),i=qn(null),A=qn(null),o=qn(null);let s=[];const l=qn(!0),u=xe(()=>l.value?"#22c55e":"#ff4d4f"),f=xe(()=>l.value?"#80ffb0":"#fd8182"),c=qn("0"),h=xe(()=>bat(e.value.meta.os.name,e.value.meta.os.version)),v=xe(()=>kw(e.value.hardware.mem.used,e.value.hardware.mem.total)),d=xe(()=>e.value.hardware.swap.total>0?kw(e.value.hardware.swap.used,e.value.hardware.swap.total):"N/A"),p=xe(()=>({borderColor:`linear-gradient(90deg, ${u.value}, ${f.value})`})),g=xe(()=>u.value);function y(){const w=Qc(a.value),_=Qc(i.value),B=Qc(A.value),C=Qc(o.value),S={color:"rgba(0, 0, 0, 0.8)",fontSize:15},x=["65%","90%"],b=["#a2d8f4","#0194e3"],I="center",F={label:{show:!0,fontSize:15,position:["50%","20%"]}};setInterval(()=>{if(l.value){const D=Date.now()/1e3-e.value.meta.observed_at;n.value=JE(e.value.meta.uptime+D)}},1e3);function E(){const D=Date.now()/1e3-e.value.meta.observed_at;c.value=D.toFixed(1),(s.length===0||s[s.length-1][0]!==e.value.meta.observed_at)&&s.push([e.value.meta.observed_at,e.value.hardware.net.up,e.value.hardware.net.down]),s.length>20&&s.shift(),l.value=D<=ZH,w.setOption({color:[av(e.value.hardware.cpu.percent),iv(e.value.hardware.cpu.percent)],title:{text:e.value.hardware.cpu.percent+"%",left:"center",top:"center",textStyle:S},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:xe(()=>[{value:e.value.hardware.cpu.percent,name:"Used"},{value:100-e.value.hardware.cpu.percent,name:"Free"}]).value}]}),_.setOption({color:[av(e.value.hardware.mem.used/e.value.hardware.mem.total*100),iv(e.value.hardware.mem.used/e.value.hardware.mem.total*100)],title:{text:`${(e.value.hardware.mem.used/e.value.hardware.mem.total*100).toFixed(1)}%`,left:"center",top:"center",textStyle:S},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.mem.used,name:"Used"},{value:e.value.hardware.mem.total-e.value.hardware.mem.used,name:"Free"}]}]}),B.setOption({color:[av(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0),iv(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0)],title:{text:e.value.hardware.swap.total>0?`${(e.value.hardware.swap.used/e.value.hardware.swap.total*100).toFixed(1)}%`:"N/A",left:"center",top:"center",textStyle:S},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.swap.total>0?e.value.hardware.swap.used:0,name:"Used"},{value:e.value.hardware.swap.total>0?e.value.hardware.swap.total-e.value.hardware.swap.used:100,name:"Free"}]}]}),C.setOption({color:b,tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#0f7bc5",borderRadius:50,formatter:function(Q){return Q.axisDimension==="y"?nv(Q.value*8,null,"bps"):lh(Q.value,!0)}}},formatter:function(Q){let M=lh(Q[0].name,!0)+"
";return Q.forEach(function(R){M+=R.marker+(R.seriesName=="Tx"?"↑":"↓")+": "+nv(R.value*8,null,"bps")+"
"}),M}},toolbox:{feature:{saveAsImage:{}}},grid:{top:"25%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:s.map(Q=>Q[0]),axisLabel:{formatter:function(Q){return lh(Q,!0)}}}],yAxis:[{type:"value",axisLabel:{formatter:function(Q){return nv(Q*8,null,"b")}}}],series:[{name:"Tx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(Q=>Q[1]),showSymbol:!1,lineStyle:{type:"dashed"}},{name:"Rx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(Q=>Q[2]),showSymbol:!1}]})}E(),gu(()=>e.value,()=>{E()})}function m(){const w=document.querySelector(".host#"+e.value.meta.id);w&&Aut(w,{scale:2}).then(_=>{const B=_.toDataURL("image/png"),C=document.createElement("a");C.href=B,C.download=`screenshot-${e.value.meta.id}-${lh(Date.now(),!1)}.png`,C.click()})}return TB(()=>{y()}),(w,_)=>(Vr(),na("div",{class:"host",style:Ga([p.value,{"--hover-border-color":g.value}]),id:e.value.meta.id},[Dt("div",uut,[Dt("div",fut,[yr(Eat,{class:"outline-anime",color:u.value,spreadColor:f.value,"is-online":l.value},null,8,["color","spreadColor","is-online"]),Dt("span",cut,ze(e.value.meta.name),1)]),Dt("div",hut,[Dt("div",{class:"uptime",style:Ga([{"margin-right":"5px"},{backgroundColor:f.value,borderColor:u.value}])},ze(n.value),5),_[0]||(_[0]=vv("  ")),Dt("img",{onClick:m,class:"icon",src:FV,alt:"download",style:{width:"20px",height:"20px"}})])]),Dt("div",vut,[Dt("div",dut,[Dt("img",{class:"icon",src:h.value.icon,alt:"system"},null,8,put),Dt("span",gut,ze(h.value.name),1)]),Dt("div",yut,[_[1]||(_[1]=Dt("img",{class:"icon",src:EV,alt:"location"},null,-1)),Dt("span",mut,ze(e.value.meta.location)+" · "+ze(e.value.meta.timezone),1)]),Dt("div",wut,[_[2]||(_[2]=Dt("img",{class:"icon",src:DV,alt:"labels"},null,-1)),(Vr(!0),na(Fr,null,Nm(e.value.meta.labels,B=>(Vr(),na("span",{class:"label",key:B},ze(B),1))),128))])]),_[8]||(_[8]=Dt("div",{class:"section-name"}," Hardware ",-1)),Dt("div",But,[Dt("div",_ut,[Dt("div",{class:"chart",ref_key:"cpuChartRef",ref:a},null,512),_[3]||(_[3]=Dt("div",{class:"hw-title"},"CPU",-1)),Dt("div",Cut,ze(e.value.hardware.cpu.cores)+"C "+ze(e.value.hardware.cpu.logics)+"T",1)]),Dt("div",Sut,[Dt("div",{class:"chart",ref_key:"memoryChartRef",ref:i},null,512),_[4]||(_[4]=Dt("div",{class:"hw-title"},"Mem",-1)),Dt("div",xut,ze(v.value),1)]),Dt("div",but,[Dt("div",{class:"chart",ref_key:"swapChartRef",ref:A},null,512),_[5]||(_[5]=Dt("div",{class:"hw-title"},"Swap",-1)),Dt("div",Tut,ze(d.value),1)])]),Dt("div",Iut,[_[6]||(_[6]=Dt("div",{class:"section-name"}," Network ",-1)),Dt("div",{class:"net-chart",ref_key:"netChartRef",ref:o},null,512)]),Dt("div",Fut,[_[7]||(_[7]=Dt("div",{class:"section-name"}," Storage ",-1)),(Vr(!0),na(Fr,null,Nm(e.value.hardware.disks,B=>(Vr(),DB(Rat,{key:B.mountpoint,mountpoint:B.mountpoint,device:B.device,used:B.used,total:B.total,fstype:B.fstype},null,8,["mountpoint","device","used","total","fstype"]))),128))])],12,lut))}}),Dut=Ws(Eut,[["__scopeId","data-v-f7ea790e"]]),Qut={class:"overview",style:{}},Lut={class:"grid-container"},Mut=Bo({__name:"Home",setup(r){const t=qn({}),e=qn(0),n=xe(()=>{const i=Date.now()/1e3;let A=0;for(const o of Object.values(t.value))i-o.meta.observed_at{t.value=await X1()},1e3);return TB(async()=>{t.value=await X1()}),IB(()=>{clearInterval(a)}),(i,A)=>(Vr(),na(Fr,null,[Dt("div",Qut,[Dt("h2",null,"Overview: "+ze(n.value)+" Online "+ze(e.value)+" Offline",1)]),Dt("div",Lut,[(Vr(!0),na(Fr,null,Nm(t.value,(o,s)=>(Vr(),DB(Dut,{class:"grid-item",key:s,status:o},null,8,["status"]))),128))])],64))}}),Uut=Ws(Mut,[["__scopeId","data-v-8e280492"]]),Put={};function Rut(r,t){return" Test "}const Hut=Ws(Put,[["render",Rut]]),Out=[{path:"/",name:"主页",component:Uut},{path:"/test",name:"测试",component:Hut}],kut=bV({history:rV("/"),routes:Out}),jO=B4(x4);jO.use(kut);jO.mount("#app"); diff --git a/api/frontend/web/assets/index-Box2hhZm.css b/api/frontend/web/assets/index-Box2hhZm.css deleted file mode 100644 index 94f9bad..0000000 --- a/api/frontend/web/assets/index-Box2hhZm.css +++ /dev/null @@ -1 +0,0 @@ -:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#000;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.dark{color:#fff;background-color:#000}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.logo[data-v-13414ec4]{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo[data-v-13414ec4]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-13414ec4]:hover{filter:drop-shadow(0 0 2em #42b883aa)}footer[data-v-13414ec4]{text-align:center;padding:1em;color:#666}.online-status[data-v-311f3e51]{position:relative;width:15px;height:15px}.dot[data-v-311f3e51]{width:100%;height:100%;border-radius:50%;z-index:1}.pulse[data-v-311f3e51]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;animation:pulse-311f3e51 1.5s infinite;z-index:0}@keyframes pulse-311f3e51{0%{transform:scale(1);opacity:1}to{transform:scale(2);opacity:0}}[data-v-dcf8aa52]:root{--text-color-1: #000;--text-color-2: #383838;--liteyuki-color-1: #d0e9ff;--liteyuki-color-2: #a2d8f4}.meta-1 .outline-anime[data-v-dcf8aa52]{margin-right:.5em}.meta-1 .meta1-left .host-name[data-v-dcf8aa52]{text-align:center;font-size:1.2rem;font-weight:700}.meta-2[data-v-dcf8aa52]{margin-top:.5em}.meta-2 .meta2-text[data-v-dcf8aa52]{font-size:.9rem;color:var(--text-color-2)}.labels[data-v-dcf8aa52]{margin-top:.5em}.labels .label[data-v-dcf8aa52]{padding:.05rem .5rem;border:2px dashed;border-color:var(--text-color-1);border-radius:50px;margin-right:10px;background-color:#dfdfdf;color:var(--text-color-1);font-size:.8rem}.host[data-v-dcf8aa52]{padding:1em;border:1px solid #ccc;border-radius:20px;flex-direction:column;justify-content:space-between}.icon[data-v-dcf8aa52]{margin-right:.3em;height:16px}.section[data-v-dcf8aa52]{display:flex;margin-right:10px;align-items:center}.charts-container[data-v-dcf8aa52]{margin-top:.5rem}.charts-container .hw-info[data-v-dcf8aa52]{width:30%;align-items:center}.charts-container .hw-info .chart[data-v-dcf8aa52]{width:100%;aspect-ratio:1}.charts-container .hw-info .hw-title[data-v-dcf8aa52]{text-align:center;font-size:.9rem}.charts-container .hw-info .hw-detail[data-v-dcf8aa52]{text-align:center;font-size:.7rem}.net[data-v-dcf8aa52]{margin-top:.5rem}.net .net-chart[data-v-dcf8aa52]{width:100%;aspect-ratio:2}.overview[data-v-050eb678]{display:flex;justify-content:space-between;padding:10px}.grid-container[data-v-050eb678]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px;padding:10px} diff --git a/api/frontend/web/assets/index-Btb24tzF.css b/api/frontend/web/assets/index-Btb24tzF.css new file mode 100644 index 0000000..32d2cfd --- /dev/null +++ b/api/frontend/web/assets/index-Btb24tzF.css @@ -0,0 +1 @@ +:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#000;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--text-color-1: #000;--text-color-2: #383838}.dark{color:#fff;background-color:#000}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.logo[data-v-ffc01d8f]{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo[data-v-ffc01d8f]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-ffc01d8f]:hover{filter:drop-shadow(0 0 2em #42b883aa)}footer[data-v-ffc01d8f]{text-align:center;padding:1em;color:#666}a[data-v-ffc01d8f]{color:#36a7ec}.online-status[data-v-311f3e51]{position:relative;width:15px;height:15px}.dot[data-v-311f3e51]{width:100%;height:100%;border-radius:50%;z-index:1}.pulse[data-v-311f3e51]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;animation:pulse-311f3e51 1.5s infinite;z-index:0}@keyframes pulse-311f3e51{0%{transform:scale(1);opacity:1}to{transform:scale(2);opacity:0}}[data-v-8693b273]:host{--text-size: 2px}.disk[data-v-8693b273]{margin-top:.5rem;height:2rem;width:100%;border-radius:100px;position:relative;display:flex;align-items:center;justify-content:center}.disk-used[data-v-8693b273]{height:100%;position:absolute;left:0;top:0;border-radius:100px 0 0 100px}.hover-text[data-v-8693b273]{position:absolute;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-align:center;padding:0 1rem}.left-text[data-v-8693b273]{margin-left:1rem;display:flex;justify-content:flex-start}.right-text[data-v-8693b273]{margin-right:1rem;display:flex;justify-content:flex-end}.disk-text[data-v-8693b273]{font-size:var(--text-size);color:var(--text-color-2)}[data-v-f7ea790e]:root{--liteyuki-color-1: #d0e9ff;--liteyuki-color-2: #a2d8f4;--hover-border-color: #ccc}.host[data-v-f7ea790e]{padding:1em;border:2px solid #ccc;border-radius:20px;flex-direction:column;justify-content:space-between;transition:border-color .3s ease}.host[data-v-f7ea790e]:hover{border-color:var(--hover-border-color)}.meta-1 .outline-anime[data-v-f7ea790e]{margin-right:.5em}.meta-1 .meta1-left .host-name[data-v-f7ea790e]{text-align:center;font-size:1.2rem;font-weight:700}.meta-2[data-v-f7ea790e]{margin-top:.5em}.meta-2 .meta2-text[data-v-f7ea790e]{font-size:.9rem;color:var(--text-color-2)}.meta-2 .section[data-v-f7ea790e]{margin-bottom:.5rem}.labels[data-v-f7ea790e]{margin-top:.5em}.labels .label[data-v-f7ea790e]{padding:.05rem .5rem;border:1px dashed;border-color:var(--text-color-1);border-radius:50px;margin-right:10px;background-color:#dfdfdf;color:var(--text-color-1);font-size:.8rem}.icon[data-v-f7ea790e]{margin-right:.3em;height:16px}.section[data-v-f7ea790e]{display:flex;margin-right:10px;align-items:center}.uptime[data-v-f7ea790e]{padding:.1em .5rem;font-size:.8rem;border-radius:50px;border:1px dashed;align-items:center}.charts-container[data-v-f7ea790e]{margin-top:.5rem}.charts-container .hw-info[data-v-f7ea790e]{width:30%;align-items:center}.charts-container .hw-info .chart[data-v-f7ea790e]{width:100%;aspect-ratio:1}.charts-container .hw-info .hw-title[data-v-f7ea790e]{text-align:center;font-size:.9rem}.charts-container .hw-info .hw-detail[data-v-f7ea790e]{text-align:center;font-size:.7rem}.section-name[data-v-f7ea790e]{font-size:1rem;font-weight:700;margin-top:1rem}.net[data-v-f7ea790e]{margin-top:1rem}.net .net-chart[data-v-f7ea790e]{width:100%;aspect-ratio:2}.disks[data-v-f7ea790e]{margin-top:1rem}.overview[data-v-8e280492]{display:flex;justify-content:space-between;padding:10px}.grid-container[data-v-8e280492]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px;padding:10px} diff --git a/api/frontend/web/assets/index-CjDL14HW.js b/api/frontend/web/assets/index-CjDL14HW.js deleted file mode 100644 index 4d9c988..0000000 --- a/api/frontend/web/assets/index-CjDL14HW.js +++ /dev/null @@ -1,80 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function e(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=e(a);fetch(a.href,i)}})();/** -* @vue/shared v3.5.10 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Qm(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const le={},gs=[],kn=()=>{},Nk=()=>!1,lv=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Jm=r=>r.startsWith("onUpdate:"),ke=Object.assign,t0=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},Bk=Object.prototype.hasOwnProperty,Qt=(r,t)=>Bk.call(r,t),Nt=Array.isArray,ys=r=>uv(r)==="[object Map]",ED=r=>uv(r)==="[object Set]",Bt=r=>typeof r=="function",Se=r=>typeof r=="string",fi=r=>typeof r=="symbol",fe=r=>r!==null&&typeof r=="object",kD=r=>(fe(r)||Bt(r))&&Bt(r.then)&&Bt(r.catch),OD=Object.prototype.toString,uv=r=>OD.call(r),Vk=r=>uv(r).slice(8,-1),ND=r=>uv(r)==="[object Object]",e0=r=>Se(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,jl=Qm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fv=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},zk=/-(\w)/g,$r=fv(r=>r.replace(zk,(t,e)=>e?e.toUpperCase():"")),Fk=/\B([A-Z])/g,Do=fv(r=>r.replace(Fk,"-$1").toLowerCase()),cv=fv(r=>r.charAt(0).toUpperCase()+r.slice(1)),lp=fv(r=>r?`on${cv(r)}`:""),ei=(r,t)=>!Object.is(r,t),up=(r,...t)=>{for(let e=0;e{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},Gk=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let R1;const VD=()=>R1||(R1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Su(r){if(Nt(r)){const t={};for(let e=0;e{if(e){const n=e.split(Wk);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function r0(r){let t="";if(Se(r))t=r;else if(Nt(r))for(let e=0;e!!(r&&r.__v_isRef===!0),Sr=r=>Se(r)?r:r==null?"":Nt(r)||fe(r)&&(r.toString===OD||!Bt(r.toString))?FD(r)?Sr(r.value):JSON.stringify(r,GD,2):String(r),GD=(r,t)=>FD(t)?GD(r,t.value):ys(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,a],i)=>(e[fp(n,i)+" =>"]=a,e),{})}:ED(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>fp(e))}:fi(t)?fp(t):fe(t)&&!Nt(t)&&!ND(t)?String(t):t,fp=(r,t="")=>{var e;return fi(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/** -* @vue/reactivity v3.5.10 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let xr;class Zk{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xr,!t&&xr&&(this.index=(xr.scopes||(xr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t0)return;let r;for(;cs;){let t=cs,e;for(;t;)t.flags&1||(t.flags&=-9),t=t.next;for(t=cs,cs=void 0;t;){if(e=t.next,t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){r||(r=n)}t=e}}if(r)throw r}function $D(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function YD(r){let t,e=r.depsTail,n=e;for(;n;){const a=n.prevDep;n.version===-1?(n===e&&(e=a),i0(n),Kk(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=a}r.deps=t,r.depsTail=e}function Zg(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(XD(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function XD(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===xu))return;r.globalVersion=xu;const t=r.dep;if(r.flags|=2,t.version>0&&!r.isSSR&&r.deps&&!Zg(r)){r.flags&=-3;return}const e=se,n=sn;se=r,sn=!0;try{$D(r);const a=r.fn(r._value);(t.version===0||ei(a,r._value))&&(r._value=a,t.version++)}catch(a){throw t.version++,a}finally{se=e,sn=n,YD(r),r.flags&=-3}}function i0(r,t=!1){const{dep:e,prevSub:n,nextSub:a}=r;if(n&&(n.nextSub=a,r.prevSub=void 0),a&&(a.prevSub=n,r.nextSub=void 0),e.subs===r&&(e.subs=n),!e.subs&&e.computed){e.computed.flags&=-5;for(let i=e.computed.deps;i;i=i.nextDep)i0(i,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function Kk(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let sn=!0;const ZD=[];function ci(){ZD.push(sn),sn=!1}function hi(){const r=ZD.pop();sn=r===void 0?!0:r}function E1(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=se;se=void 0;try{t()}finally{se=e}}}let xu=0;class jk{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class o0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!se||!sn||se===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==se)e=this.activeLink=new jk(se,this),se.deps?(e.prevDep=se.depsTail,se.depsTail.nextDep=e,se.depsTail=e):se.deps=se.depsTail=e,qD(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=se.depsTail,e.nextDep=void 0,se.depsTail.nextDep=e,se.depsTail=e,se.deps===e&&(se.deps=n)}return e}trigger(t){this.version++,xu++,this.notify(t)}notify(t){n0();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{a0()}}}function qD(r){if(r.dep.sc++,r.sub.flags&4){const t=r.dep.computed;if(t&&!r.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)qD(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const qg=new WeakMap,oo=Symbol(""),Kg=Symbol(""),bu=Symbol("");function Ue(r,t,e){if(sn&&se){let n=qg.get(r);n||qg.set(r,n=new Map);let a=n.get(e);a||(n.set(e,a=new o0),a.target=r,a.map=n,a.key=e),a.track()}}function na(r,t,e,n,a,i){const o=qg.get(r);if(!o){xu++;return}const s=l=>{l&&l.trigger()};if(n0(),t==="clear")o.forEach(s);else{const l=Nt(r),u=l&&e0(e);if(l&&e==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===bu||!fi(h)&&h>=f)&&s(c)})}else switch(e!==void 0&&s(o.get(e)),u&&s(o.get(bu)),t){case"add":l?u&&s(o.get("length")):(s(o.get(oo)),ys(r)&&s(o.get(Kg)));break;case"delete":l||(s(o.get(oo)),ys(r)&&s(o.get(Kg)));break;case"set":ys(r)&&s(o.get(oo));break}}a0()}function No(r){const t=Jt(r);return t===r?t:(Ue(t,"iterate",bu),Wr(r)?t:t.map(Ge))}function hv(r){return Ue(r=Jt(r),"iterate",bu),r}const Qk={__proto__:null,[Symbol.iterator](){return hp(this,Symbol.iterator,Ge)},concat(...r){return No(this).concat(...r.map(t=>Nt(t)?No(t):t))},entries(){return hp(this,"entries",r=>(r[1]=Ge(r[1]),r))},every(r,t){return Xn(this,"every",r,t,void 0,arguments)},filter(r,t){return Xn(this,"filter",r,t,e=>e.map(Ge),arguments)},find(r,t){return Xn(this,"find",r,t,Ge,arguments)},findIndex(r,t){return Xn(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return Xn(this,"findLast",r,t,Ge,arguments)},findLastIndex(r,t){return Xn(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return Xn(this,"forEach",r,t,void 0,arguments)},includes(...r){return vp(this,"includes",r)},indexOf(...r){return vp(this,"indexOf",r)},join(r){return No(this).join(r)},lastIndexOf(...r){return vp(this,"lastIndexOf",r)},map(r,t){return Xn(this,"map",r,t,void 0,arguments)},pop(){return ol(this,"pop")},push(...r){return ol(this,"push",r)},reduce(r,...t){return k1(this,"reduce",r,t)},reduceRight(r,...t){return k1(this,"reduceRight",r,t)},shift(){return ol(this,"shift")},some(r,t){return Xn(this,"some",r,t,void 0,arguments)},splice(...r){return ol(this,"splice",r)},toReversed(){return No(this).toReversed()},toSorted(r){return No(this).toSorted(r)},toSpliced(...r){return No(this).toSpliced(...r)},unshift(...r){return ol(this,"unshift",r)},values(){return hp(this,"values",Ge)}};function hp(r,t,e){const n=hv(r),a=n[t]();return n!==r&&!Wr(r)&&(a._next=a.next,a.next=()=>{const i=a._next();return i.value&&(i.value=e(i.value)),i}),a}const Jk=Array.prototype;function Xn(r,t,e,n,a,i){const o=hv(r),s=o!==r&&!Wr(r),l=o[t];if(l!==Jk[t]){const c=l.apply(r,i);return s?Ge(c):c}let u=e;o!==r&&(s?u=function(c,h){return e.call(this,Ge(c),h,r)}:e.length>2&&(u=function(c,h){return e.call(this,c,h,r)}));const f=l.call(o,u,n);return s&&a?a(f):f}function k1(r,t,e,n){const a=hv(r);let i=e;return a!==r&&(Wr(r)?e.length>3&&(i=function(o,s,l){return e.call(this,o,s,l,r)}):i=function(o,s,l){return e.call(this,o,Ge(s),l,r)}),a[t](i,...n)}function vp(r,t,e){const n=Jt(r);Ue(n,"iterate",bu);const a=n[t](...e);return(a===-1||a===!1)&&f0(e[0])?(e[0]=Jt(e[0]),n[t](...e)):a}function ol(r,t,e=[]){ci(),n0();const n=Jt(r)[t].apply(r,e);return a0(),hi(),n}const tO=Qm("__proto__,__v_isRef,__isVue"),KD=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(fi));function eO(r){fi(r)||(r=String(r));const t=Jt(this);return Ue(t,"has",r),t.hasOwnProperty(r)}class jD{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const a=this._isReadonly,i=this._isShallow;if(e==="__v_isReactive")return!a;if(e==="__v_isReadonly")return a;if(e==="__v_isShallow")return i;if(e==="__v_raw")return n===(a?i?pO:eM:i?tM:JD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Nt(t);if(!a){let l;if(o&&(l=Qk[e]))return l;if(e==="hasOwnProperty")return eO}const s=Reflect.get(t,e,We(t)?t:n);return(fi(e)?KD.has(e):tO(e))||(a||Ue(t,"get",e),i)?s:We(s)?o&&e0(e)?s:s.value:fe(s)?a?nM(s):pv(s):s}}class QD extends jD{constructor(t=!1){super(!1,t)}set(t,e,n,a){let i=t[e];if(!this._isShallow){const l=mo(i);if(!Wr(n)&&!mo(n)&&(i=Jt(i),n=Jt(n)),!Nt(t)&&We(i)&&!We(n))return l?!1:(i.value=n,!0)}const o=Nt(t)&&e0(e)?Number(e)r,vv=r=>Reflect.getPrototypeOf(r);function Mf(r,t,e=!1,n=!1){r=r.__v_raw;const a=Jt(r),i=Jt(t);e||(ei(t,i)&&Ue(a,"get",t),Ue(a,"get",i));const{has:o}=vv(a),s=n?s0:e?c0:Ge;if(o.call(a,t))return s(r.get(t));if(o.call(a,i))return s(r.get(i));r!==a&&r.get(t)}function If(r,t=!1){const e=this.__v_raw,n=Jt(e),a=Jt(r);return t||(ei(r,a)&&Ue(n,"has",r),Ue(n,"has",a)),r===a?e.has(r):e.has(r)||e.has(a)}function Lf(r,t=!1){return r=r.__v_raw,!t&&Ue(Jt(r),"iterate",oo),Reflect.get(r,"size",r)}function O1(r,t=!1){!t&&!Wr(r)&&!mo(r)&&(r=Jt(r));const e=Jt(this);return vv(e).has.call(e,r)||(e.add(r),na(e,"add",r,r)),this}function N1(r,t,e=!1){!e&&!Wr(t)&&!mo(t)&&(t=Jt(t));const n=Jt(this),{has:a,get:i}=vv(n);let o=a.call(n,r);o||(r=Jt(r),o=a.call(n,r));const s=i.call(n,r);return n.set(r,t),o?ei(t,s)&&na(n,"set",r,t):na(n,"add",r,t),this}function B1(r){const t=Jt(this),{has:e,get:n}=vv(t);let a=e.call(t,r);a||(r=Jt(r),a=e.call(t,r)),n&&n.call(t,r);const i=t.delete(r);return a&&na(t,"delete",r,void 0),i}function V1(){const r=Jt(this),t=r.size!==0,e=r.clear();return t&&na(r,"clear",void 0,void 0),e}function Pf(r,t){return function(n,a){const i=this,o=i.__v_raw,s=Jt(o),l=t?s0:r?c0:Ge;return!r&&Ue(s,"iterate",oo),o.forEach((u,f)=>n.call(a,l(u),l(f),i))}}function Rf(r,t,e){return function(...n){const a=this.__v_raw,i=Jt(a),o=ys(i),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=a[r](...n),f=e?s0:t?c0:Ge;return!t&&Ue(i,"iterate",l?Kg:oo),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function ba(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function oO(){const r={get(i){return Mf(this,i)},get size(){return Lf(this)},has:If,add:O1,set:N1,delete:B1,clear:V1,forEach:Pf(!1,!1)},t={get(i){return Mf(this,i,!1,!0)},get size(){return Lf(this)},has:If,add(i){return O1.call(this,i,!0)},set(i,o){return N1.call(this,i,o,!0)},delete:B1,clear:V1,forEach:Pf(!1,!0)},e={get(i){return Mf(this,i,!0)},get size(){return Lf(this,!0)},has(i){return If.call(this,i,!0)},add:ba("add"),set:ba("set"),delete:ba("delete"),clear:ba("clear"),forEach:Pf(!0,!1)},n={get(i){return Mf(this,i,!0,!0)},get size(){return Lf(this,!0)},has(i){return If.call(this,i,!0)},add:ba("add"),set:ba("set"),delete:ba("delete"),clear:ba("clear"),forEach:Pf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=Rf(i,!1,!1),e[i]=Rf(i,!0,!1),t[i]=Rf(i,!1,!0),n[i]=Rf(i,!0,!0)}),[r,e,t,n]}const[sO,lO,uO,fO]=oO();function l0(r,t){const e=t?r?fO:uO:r?lO:sO;return(n,a,i)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(Qt(e,a)&&a in n?e:n,a,i)}const cO={get:l0(!1,!1)},hO={get:l0(!1,!0)},vO={get:l0(!0,!1)};const JD=new WeakMap,tM=new WeakMap,eM=new WeakMap,pO=new WeakMap;function dO(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gO(r){return r.__v_skip||!Object.isExtensible(r)?0:dO(Vk(r))}function pv(r){return mo(r)?r:u0(r,!1,nO,cO,JD)}function rM(r){return u0(r,!1,iO,hO,tM)}function nM(r){return u0(r,!0,aO,vO,eM)}function u0(r,t,e,n,a){if(!fe(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const i=a.get(r);if(i)return i;const o=gO(r);if(o===0)return r;const s=new Proxy(r,o===2?n:e);return a.set(r,s),s}function ms(r){return mo(r)?ms(r.__v_raw):!!(r&&r.__v_isReactive)}function mo(r){return!!(r&&r.__v_isReadonly)}function Wr(r){return!!(r&&r.__v_isShallow)}function f0(r){return r?!!r.__v_raw:!1}function Jt(r){const t=r&&r.__v_raw;return t?Jt(t):r}function yO(r){return!Qt(r,"__v_skip")&&Object.isExtensible(r)&&BD(r,"__v_skip",!0),r}const Ge=r=>fe(r)?pv(r):r,c0=r=>fe(r)?nM(r):r;function We(r){return r?r.__v_isRef===!0:!1}function Cn(r){return aM(r,!1)}function mO(r){return aM(r,!0)}function aM(r,t){return We(r)?r:new _O(r,t)}class _O{constructor(t,e){this.dep=new o0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Jt(t),this._value=e?t:Ge(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||Wr(t)||mo(t);t=n?t:Jt(t),ei(t,e)&&(this._rawValue=t,this._value=n?t:Ge(t),this.dep.trigger())}}function so(r){return We(r)?r.value:r}const SO={get:(r,t,e)=>t==="__v_raw"?r:so(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const a=r[t];return We(a)&&!We(e)?(a.value=e,!0):Reflect.set(r,t,e,n)}};function iM(r){return ms(r)?r:new Proxy(r,SO)}class xO{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new o0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&se!==this)return UD(this),!0}get value(){const t=this.dep.track();return XD(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function bO(r,t,e=!1){let n,a;return Bt(r)?n=r:(n=r.get,a=r.set),new xO(n,a,e)}const Ef={},lh=new WeakMap;let Gi;function wO(r,t=!1,e=Gi){if(e){let n=lh.get(e);n||lh.set(e,n=[]),n.push(r)}}function TO(r,t,e=le){const{immediate:n,deep:a,once:i,scheduler:o,augmentJob:s,call:l}=e,u=S=>a?S:Wr(S)||a===!1||a===0?Fa(S,1):Fa(S);let f,c,h,v,p=!1,d=!1;if(We(r)?(c=()=>r.value,p=Wr(r)):ms(r)?(c=()=>u(r),p=!0):Nt(r)?(d=!0,p=r.some(S=>ms(S)||Wr(S)),c=()=>r.map(S=>{if(We(S))return S.value;if(ms(S))return u(S);if(Bt(S))return l?l(S,2):S()})):Bt(r)?t?c=l?()=>l(r,2):r:c=()=>{if(h){ci();try{h()}finally{hi()}}const S=Gi;Gi=f;try{return l?l(r,3,[v]):r(v)}finally{Gi=S}}:c=kn,t&&a){const S=c,b=a===!0?1/0:a;c=()=>Fa(S(),b)}const g=qk(),y=()=>{f.stop(),g&&t0(g.effects,f)};if(i&&t){const S=t;t=(...b)=>{S(...b),y()}}let m=d?new Array(r.length).fill(Ef):Ef;const _=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(t){const b=f.run();if(a||p||(d?b.some((x,w)=>ei(x,m[w])):ei(b,m))){h&&h();const x=Gi;Gi=f;try{const w=[b,m===Ef?void 0:d&&m[0]===Ef?[]:m,v];l?l(t,3,w):t(...w),m=b}finally{Gi=x}}}else f.run()};return s&&s(_),f=new HD(c),f.scheduler=o?()=>o(_,!1):_,v=S=>wO(S,!1,f),h=f.onStop=()=>{const S=lh.get(f);if(S){if(l)l(S,4);else for(const b of S)b();lh.delete(f)}},t?n?_(!0):m=f.run():o?o(_.bind(null,!0),!0):f.run(),y.pause=f.pause.bind(f),y.resume=f.resume.bind(f),y.stop=y,y}function Fa(r,t=1/0,e){if(t<=0||!fe(r)||r.__v_skip||(e=e||new Set,e.has(r)))return r;if(e.add(r),t--,We(r))Fa(r.value,t,e);else if(Nt(r))for(let n=0;n{Fa(n,t,e)});else if(ND(r)){for(const n in r)Fa(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&Fa(r[n],t,e)}return r}/** -* @vue/runtime-core v3.5.10 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function rf(r,t,e,n){try{return n?r(...n):r()}catch(a){dv(a,t,e)}}function Vn(r,t,e,n){if(Bt(r)){const a=rf(r,t,e,n);return a&&kD(a)&&a.catch(i=>{dv(i,t,e)}),a}if(Nt(r)){const a=[];for(let i=0;i>>1,a=Je[n],i=Tu(a);i=Tu(e)?Je.push(r):Je.splice(AO(t),0,r),r.flags|=1,lM()}}function lM(){!wu&&!jg&&(jg=!0,h0=oM.then(fM))}function DO(r){Nt(r)?_s.push(...r):Oa&&r.id===-1?Oa.splice(as+1,0,r):r.flags&1||(_s.push(r),r.flags|=1),lM()}function z1(r,t,e=wu?Tn+1:0){for(;eTu(e)-Tu(n));if(_s.length=0,Oa){Oa.push(...t);return}for(Oa=t,as=0;asr.id==null?r.flags&2?-1:1/0:r.id;function fM(r){jg=!1,wu=!0;try{for(Tn=0;Tn{n._d&&Z1(-1);const i=uh(t);let o;try{o=r(...a)}finally{uh(i),n._d&&Z1(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function di(r,t,e,n){const a=r.dirs,i=t&&t.dirs;for(let o=0;or.__isTeleport;function p0(r,t){r.shapeFlag&6&&r.component?(r.transition=t,p0(r.component.subTree,t)):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Gs(r,t){return Bt(r)?ke({name:r.name},t,{setup:r}):r}function hM(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function Qg(r,t,e,n,a=!1){if(Nt(r)){r.forEach((p,d)=>Qg(p,t&&(Nt(t)?t[d]:t),e,n,a));return}if(Ql(n)&&!a)return;const i=n.shapeFlag&4?S0(n.component):n.el,o=a?null:i,{i:s,r:l}=r,u=t&&t.r,f=s.refs===le?s.refs={}:s.refs,c=s.setupState,h=Jt(c),v=c===le?()=>!1:p=>Qt(h,p);if(u!=null&&u!==l&&(Se(u)?(f[u]=null,v(u)&&(c[u]=null)):We(u)&&(u.value=null)),Bt(l))rf(l,s,12,[o,f]);else{const p=Se(l),d=We(l);if(p||d){const g=()=>{if(r.f){const y=p?v(l)?c[l]:f[l]:l.value;a?Nt(y)&&t0(y,i):Nt(y)?y.includes(i)||y.push(i):p?(f[l]=[i],v(l)&&(c[l]=f[l])):(l.value=[i],r.k&&(f[r.k]=l.value))}else p?(f[l]=o,v(l)&&(c[l]=o)):d&&(l.value=o,r.k&&(f[r.k]=o))};o?(g.id=-1,_r(g,e)):g()}}}const Ql=r=>!!r.type.__asyncLoader,vM=r=>r.type.__isKeepAlive;function PO(r,t){pM(r,"a",t)}function RO(r,t){pM(r,"da",t)}function pM(r,t,e=He){const n=r.__wdc||(r.__wdc=()=>{let a=e;for(;a;){if(a.isDeactivated)return;a=a.parent}return r()});if(gv(t,n,e),e){let a=e.parent;for(;a&&a.parent;)vM(a.parent.vnode)&&EO(n,t,e,a),a=a.parent}}function EO(r,t,e,n){const a=gv(t,r,n,!0);g0(()=>{t0(n[t],a)},e)}function gv(r,t,e=He,n=!1){if(e){const a=e[r]||(e[r]=[]),i=t.__weh||(t.__weh=(...o)=>{ci();const s=nf(e),l=Vn(t,e,r,o);return s(),hi(),l});return n?a.unshift(i):a.push(i),i}}const ma=r=>(t,e=He)=>{(!_v||r==="sp")&&gv(r,(...n)=>t(...n),e)},kO=ma("bm"),d0=ma("m"),OO=ma("bu"),NO=ma("u"),BO=ma("bum"),g0=ma("um"),VO=ma("sp"),zO=ma("rtg"),FO=ma("rtc");function GO(r,t=He){gv("ec",r,t)}const HO="components";function WO(r,t){return $O(HO,r,!0,t)||r}const UO=Symbol.for("v-ndc");function $O(r,t,e=!0,n=!1){const a=nn||He;if(a){const i=a.type;{const s=RN(i,!1);if(s&&(s===t||s===$r(t)||s===cv($r(t))))return i}const o=F1(a[r]||i[r],t)||F1(a.appContext[r],t);return!o&&n?i:o}}function F1(r,t){return r&&(r[t]||r[$r(t)]||r[cv($r(t))])}function dM(r,t,e,n){let a;const i=e,o=Nt(r);if(o||Se(r)){const s=o&&ms(r);let l=!1;s&&(l=!Wr(r),r=hv(r)),a=new Array(r.length);for(let u=0,f=r.length;ut(s,l,void 0,i));else{const s=Object.keys(r);a=new Array(s.length);for(let l=0,u=s.length;lr?NM(r)?S0(r):Jg(r.parent):null,Jl=ke(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>Jg(r.parent),$root:r=>Jg(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>y0(r),$forceUpdate:r=>r.f||(r.f=()=>{v0(r.update)}),$nextTick:r=>r.n||(r.n=sM.bind(r.proxy)),$watch:r=>hN.bind(r)}),pp=(r,t)=>r!==le&&!r.__isScriptSetup&&Qt(r,t),YO={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:a,props:i,accessCache:o,type:s,appContext:l}=r;let u;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return a[t];case 4:return e[t];case 3:return i[t]}else{if(pp(n,t))return o[t]=1,n[t];if(a!==le&&Qt(a,t))return o[t]=2,a[t];if((u=r.propsOptions[0])&&Qt(u,t))return o[t]=3,i[t];if(e!==le&&Qt(e,t))return o[t]=4,e[t];ty&&(o[t]=0)}}const f=Jl[t];let c,h;if(f)return t==="$attrs"&&Ue(r.attrs,"get",""),f(r);if((c=s.__cssModules)&&(c=c[t]))return c;if(e!==le&&Qt(e,t))return o[t]=4,e[t];if(h=l.config.globalProperties,Qt(h,t))return h[t]},set({_:r},t,e){const{data:n,setupState:a,ctx:i}=r;return pp(a,t)?(a[t]=e,!0):n!==le&&Qt(n,t)?(n[t]=e,!0):Qt(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(i[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:a,propsOptions:i}},o){let s;return!!e[o]||r!==le&&Qt(r,o)||pp(t,o)||(s=i[0])&&Qt(s,o)||Qt(n,o)||Qt(Jl,o)||Qt(a.config.globalProperties,o)},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:Qt(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function G1(r){return Nt(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let ty=!0;function XO(r){const t=y0(r),e=r.proxy,n=r.ctx;ty=!1,t.beforeCreate&&H1(t.beforeCreate,r,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:v,updated:p,activated:d,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:_,unmounted:S,render:b,renderTracked:x,renderTriggered:w,errorCaptured:T,serverPrefetch:C,expose:A,inheritAttrs:M,components:I,directives:L,filters:P}=t;if(u&&ZO(u,n,null),o)for(const B in o){const N=o[B];Bt(N)&&(n[B]=N.bind(e))}if(a){const B=a.call(e,e);fe(B)&&(r.data=pv(B))}if(ty=!0,i)for(const B in i){const N=i[B],F=Bt(N)?N.bind(e,e):Bt(N.get)?N.get.bind(e,e):kn,U=!Bt(N)&&Bt(N.set)?N.set.bind(e):kn,Z=we({get:F,set:U});Object.defineProperty(n,B,{enumerable:!0,configurable:!0,get:()=>Z.value,set:Q=>Z.value=Q})}if(s)for(const B in s)gM(s[B],n,e,B);if(l){const B=Bt(l)?l.call(e):l;Reflect.ownKeys(B).forEach(N=>{Vc(N,B[N])})}f&&H1(f,r,"c");function O(B,N){Nt(N)?N.forEach(F=>B(F.bind(e))):N&&B(N.bind(e))}if(O(kO,c),O(d0,h),O(OO,v),O(NO,p),O(PO,d),O(RO,g),O(GO,T),O(FO,x),O(zO,w),O(BO,m),O(g0,S),O(VO,C),Nt(A))if(A.length){const B=r.exposed||(r.exposed={});A.forEach(N=>{Object.defineProperty(B,N,{get:()=>e[N],set:F=>e[N]=F})})}else r.exposed||(r.exposed={});b&&r.render===kn&&(r.render=b),M!=null&&(r.inheritAttrs=M),I&&(r.components=I),L&&(r.directives=L),C&&hM(r)}function ZO(r,t,e=kn){Nt(r)&&(r=ey(r));for(const n in r){const a=r[n];let i;fe(a)?"default"in a?i=aa(a.from||n,a.default,!0):i=aa(a.from||n):i=aa(a),We(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function H1(r,t,e){Vn(Nt(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function gM(r,t,e,n){let a=n.includes(".")?LM(e,n):()=>e[n];if(Se(r)){const i=t[r];Bt(i)&&tu(a,i)}else if(Bt(r))tu(a,r.bind(e));else if(fe(r))if(Nt(r))r.forEach(i=>gM(i,t,e,n));else{const i=Bt(r.handler)?r.handler.bind(e):t[r.handler];Bt(i)&&tu(a,i,r)}}function y0(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=r.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!e&&!n?l=t:(l={},a.length&&a.forEach(u=>fh(l,u,o,!0)),fh(l,t,o)),fe(t)&&i.set(t,l),l}function fh(r,t,e,n=!1){const{mixins:a,extends:i}=t;i&&fh(r,i,e,!0),a&&a.forEach(o=>fh(r,o,e,!0));for(const o in t)if(!(n&&o==="expose")){const s=qO[o]||e&&e[o];r[o]=s?s(r[o],t[o]):t[o]}return r}const qO={data:W1,props:U1,emits:U1,methods:Vl,computed:Vl,beforeCreate:Ze,created:Ze,beforeMount:Ze,mounted:Ze,beforeUpdate:Ze,updated:Ze,beforeDestroy:Ze,beforeUnmount:Ze,destroyed:Ze,unmounted:Ze,activated:Ze,deactivated:Ze,errorCaptured:Ze,serverPrefetch:Ze,components:Vl,directives:Vl,watch:jO,provide:W1,inject:KO};function W1(r,t){return t?r?function(){return ke(Bt(r)?r.call(this,this):r,Bt(t)?t.call(this,this):t)}:t:r}function KO(r,t){return Vl(ey(r),ey(t))}function ey(r){if(Nt(r)){const t={};for(let e=0;e1)return e&&Bt(t)?t.call(n&&n.proxy):t}}const mM={},_M=()=>Object.create(mM),SM=r=>Object.getPrototypeOf(r)===mM;function tN(r,t,e,n=!1){const a={},i=_M();r.propsDefaults=Object.create(null),xM(r,t,a,i);for(const o in r.propsOptions[0])o in a||(a[o]=void 0);e?r.props=n?a:rM(a):r.type.props?r.props=a:r.props=i,r.attrs=i}function eN(r,t,e,n){const{props:a,attrs:i,vnode:{patchFlag:o}}=r,s=Jt(a),[l]=r.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=r.vnode.dynamicProps;for(let c=0;c{l=!0;const[h,v]=bM(c,t,!0);ke(o,h),v&&s.push(...v)};!e&&t.mixins.length&&t.mixins.forEach(f),r.extends&&f(r.extends),r.mixins&&r.mixins.forEach(f)}if(!i&&!l)return fe(r)&&n.set(r,gs),gs;if(Nt(i))for(let f=0;fr[0]==="_"||r==="$stable",m0=r=>Nt(r)?r.map(Dn):[Dn(r)],nN=(r,t,e)=>{if(t._n)return t;const n=MO((...a)=>m0(t(...a)),e);return n._c=!1,n},TM=(r,t,e)=>{const n=r._ctx;for(const a in r){if(wM(a))continue;const i=r[a];if(Bt(i))t[a]=nN(a,i,n);else if(i!=null){const o=m0(i);t[a]=()=>o}}},CM=(r,t)=>{const e=m0(t);r.slots.default=()=>e},AM=(r,t,e)=>{for(const n in t)(e||n!=="_")&&(r[n]=t[n])},aN=(r,t,e)=>{const n=r.slots=_M();if(r.vnode.shapeFlag&32){const a=t._;a?(AM(n,t,e),e&&BD(n,"_",a,!0)):TM(t,n)}else t&&CM(r,t)},iN=(r,t,e)=>{const{vnode:n,slots:a}=r;let i=!0,o=le;if(n.shapeFlag&32){const s=t._;s?e&&s===1?i=!1:AM(a,t,e):(i=!t.$stable,TM(t,a)),o=t}else t&&(CM(r,t),o={default:1});if(i)for(const s in a)!wM(s)&&o[s]==null&&delete a[s]},_r=_N;function oN(r){return sN(r)}function sN(r,t){const e=VD();e.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:v=kn,insertStaticContent:p}=r,d=(E,k,z,q=null,Y=null,tt=null,ot=void 0,lt=null,at=!!k.dynamicChildren)=>{if(E===k)return;E&&!sl(E,k)&&(q=G(E),Q(E,Y,tt,!0),E=null),k.patchFlag===-2&&(at=!1,k.dynamicChildren=null);const{type:rt,ref:At,shapeFlag:pt}=k;switch(rt){case mv:g(E,k,z,q);break;case _o:y(E,k,z,q);break;case yp:E==null&&m(k,z,q,ot);break;case br:I(E,k,z,q,Y,tt,ot,lt,at);break;default:pt&1?b(E,k,z,q,Y,tt,ot,lt,at):pt&6?L(E,k,z,q,Y,tt,ot,lt,at):(pt&64||pt&128)&&rt.process(E,k,z,q,Y,tt,ot,lt,at,j)}At!=null&&Y&&Qg(At,E&&E.ref,tt,k||E,!k)},g=(E,k,z,q)=>{if(E==null)n(k.el=s(k.children),z,q);else{const Y=k.el=E.el;k.children!==E.children&&u(Y,k.children)}},y=(E,k,z,q)=>{E==null?n(k.el=l(k.children||""),z,q):k.el=E.el},m=(E,k,z,q)=>{[E.el,E.anchor]=p(E.children,k,z,q,E.el,E.anchor)},_=({el:E,anchor:k},z,q)=>{let Y;for(;E&&E!==k;)Y=h(E),n(E,z,q),E=Y;n(k,z,q)},S=({el:E,anchor:k})=>{let z;for(;E&&E!==k;)z=h(E),a(E),E=z;a(k)},b=(E,k,z,q,Y,tt,ot,lt,at)=>{k.type==="svg"?ot="svg":k.type==="math"&&(ot="mathml"),E==null?x(k,z,q,Y,tt,ot,lt,at):C(E,k,Y,tt,ot,lt,at)},x=(E,k,z,q,Y,tt,ot,lt)=>{let at,rt;const{props:At,shapeFlag:pt,transition:wt,dirs:Et}=E;if(at=E.el=o(E.type,tt,At&&At.is,At),pt&8?f(at,E.children):pt&16&&T(E.children,at,null,q,Y,dp(E,tt),ot,lt),Et&&di(E,null,q,"created"),w(at,E,E.scopeId,ot,q),At){for(const oe in At)oe!=="value"&&!jl(oe)&&i(at,oe,null,At[oe],tt,q);"value"in At&&i(at,"value",null,At.value,tt),(rt=At.onVnodeBeforeMount)&&gn(rt,q,E)}Et&&di(E,null,q,"beforeMount");const $t=lN(Y,wt);$t&&wt.beforeEnter(at),n(at,k,z),((rt=At&&At.onVnodeMounted)||$t||Et)&&_r(()=>{rt&&gn(rt,q,E),$t&&wt.enter(at),Et&&di(E,null,q,"mounted")},Y)},w=(E,k,z,q,Y)=>{if(z&&v(E,z),q)for(let tt=0;tt{for(let rt=at;rt{const lt=k.el=E.el;let{patchFlag:at,dynamicChildren:rt,dirs:At}=k;at|=E.patchFlag&16;const pt=E.props||le,wt=k.props||le;let Et;if(z&&gi(z,!1),(Et=wt.onVnodeBeforeUpdate)&&gn(Et,z,k,E),At&&di(k,E,z,"beforeUpdate"),z&&gi(z,!0),(pt.innerHTML&&wt.innerHTML==null||pt.textContent&&wt.textContent==null)&&f(lt,""),rt?A(E.dynamicChildren,rt,lt,z,q,dp(k,Y),tt):ot||N(E,k,lt,null,z,q,dp(k,Y),tt,!1),at>0){if(at&16)M(lt,pt,wt,z,Y);else if(at&2&&pt.class!==wt.class&&i(lt,"class",null,wt.class,Y),at&4&&i(lt,"style",pt.style,wt.style,Y),at&8){const $t=k.dynamicProps;for(let oe=0;oe<$t.length;oe++){const te=$t[oe],dr=pt[te],Be=wt[te];(Be!==dr||te==="value")&&i(lt,te,dr,Be,Y,z)}}at&1&&E.children!==k.children&&f(lt,k.children)}else!ot&&rt==null&&M(lt,pt,wt,z,Y);((Et=wt.onVnodeUpdated)||At)&&_r(()=>{Et&&gn(Et,z,k,E),At&&di(k,E,z,"updated")},q)},A=(E,k,z,q,Y,tt,ot)=>{for(let lt=0;lt{if(k!==z){if(k!==le)for(const tt in k)!jl(tt)&&!(tt in z)&&i(E,tt,k[tt],null,Y,q);for(const tt in z){if(jl(tt))continue;const ot=z[tt],lt=k[tt];ot!==lt&&tt!=="value"&&i(E,tt,lt,ot,Y,q)}"value"in z&&i(E,"value",k.value,z.value,Y)}},I=(E,k,z,q,Y,tt,ot,lt,at)=>{const rt=k.el=E?E.el:s(""),At=k.anchor=E?E.anchor:s("");let{patchFlag:pt,dynamicChildren:wt,slotScopeIds:Et}=k;Et&&(lt=lt?lt.concat(Et):Et),E==null?(n(rt,z,q),n(At,z,q),T(k.children||[],z,At,Y,tt,ot,lt,at)):pt>0&&pt&64&&wt&&E.dynamicChildren?(A(E.dynamicChildren,wt,z,Y,tt,ot,lt),(k.key!=null||Y&&k===Y.subTree)&&DM(E,k,!0)):N(E,k,z,At,Y,tt,ot,lt,at)},L=(E,k,z,q,Y,tt,ot,lt,at)=>{k.slotScopeIds=lt,E==null?k.shapeFlag&512?Y.ctx.activate(k,z,q,ot,at):P(k,z,q,Y,tt,ot,at):R(E,k,at)},P=(E,k,z,q,Y,tt,ot)=>{const lt=E.component=DN(E,q,Y);if(vM(E)&&(lt.ctx.renderer=j),MN(lt,!1,ot),lt.asyncDep){if(Y&&Y.registerDep(lt,O,ot),!E.el){const at=lt.subTree=tr(_o);y(null,at,k,z)}}else O(lt,E,k,z,Y,tt,ot)},R=(E,k,z)=>{const q=k.component=E.component;if(yN(E,k,z))if(q.asyncDep&&!q.asyncResolved){B(q,k,z);return}else q.next=k,q.update();else k.el=E.el,q.vnode=k},O=(E,k,z,q,Y,tt,ot)=>{const lt=()=>{if(E.isMounted){let{next:pt,bu:wt,u:Et,parent:$t,vnode:oe}=E;{const gr=MM(E);if(gr){pt&&(pt.el=oe.el,B(E,pt,ot)),gr.asyncDep.then(()=>{E.isUnmounted||lt()});return}}let te=pt,dr;gi(E,!1),pt?(pt.el=oe.el,B(E,pt,ot)):pt=oe,wt&&up(wt),(dr=pt.props&&pt.props.onVnodeBeforeUpdate)&&gn(dr,$t,pt,oe),gi(E,!0);const Be=gp(E),Kr=E.subTree;E.subTree=Be,d(Kr,Be,c(Kr.el),G(Kr),E,Y,tt),pt.el=Be.el,te===null&&mN(E,Be.el),Et&&_r(Et,Y),(dr=pt.props&&pt.props.onVnodeUpdated)&&_r(()=>gn(dr,$t,pt,oe),Y)}else{let pt;const{el:wt,props:Et}=k,{bm:$t,m:oe,parent:te,root:dr,type:Be}=E,Kr=Ql(k);if(gi(E,!1),$t&&up($t),!Kr&&(pt=Et&&Et.onVnodeBeforeMount)&&gn(pt,te,k),gi(E,!0),wt&&ct){const gr=()=>{E.subTree=gp(E),ct(wt,E.subTree,E,Y,null)};Kr&&Be.__asyncHydrate?Be.__asyncHydrate(wt,E,gr):gr()}else{dr.ce&&dr.ce._injectChildStyle(Be);const gr=E.subTree=gp(E);d(null,gr,z,q,E,Y,tt),k.el=gr.el}if(oe&&_r(oe,Y),!Kr&&(pt=Et&&Et.onVnodeMounted)){const gr=k;_r(()=>gn(pt,te,gr),Y)}(k.shapeFlag&256||te&&Ql(te.vnode)&&te.vnode.shapeFlag&256)&&E.a&&_r(E.a,Y),E.isMounted=!0,k=z=q=null}};E.scope.on();const at=E.effect=new HD(lt);E.scope.off();const rt=E.update=at.run.bind(at),At=E.job=at.runIfDirty.bind(at);At.i=E,At.id=E.uid,at.scheduler=()=>v0(At),gi(E,!0),rt()},B=(E,k,z)=>{k.component=E;const q=E.vnode.props;E.vnode=k,E.next=null,eN(E,k.props,q,z),iN(E,k.children,z),ci(),z1(E),hi()},N=(E,k,z,q,Y,tt,ot,lt,at=!1)=>{const rt=E&&E.children,At=E?E.shapeFlag:0,pt=k.children,{patchFlag:wt,shapeFlag:Et}=k;if(wt>0){if(wt&128){U(rt,pt,z,q,Y,tt,ot,lt,at);return}else if(wt&256){F(rt,pt,z,q,Y,tt,ot,lt,at);return}}Et&8?(At&16&&xt(rt,Y,tt),pt!==rt&&f(z,pt)):At&16?Et&16?U(rt,pt,z,q,Y,tt,ot,lt,at):xt(rt,Y,tt,!0):(At&8&&f(z,""),Et&16&&T(pt,z,q,Y,tt,ot,lt,at))},F=(E,k,z,q,Y,tt,ot,lt,at)=>{E=E||gs,k=k||gs;const rt=E.length,At=k.length,pt=Math.min(rt,At);let wt;for(wt=0;wtAt?xt(E,Y,tt,!0,!1,pt):T(k,z,q,Y,tt,ot,lt,at,pt)},U=(E,k,z,q,Y,tt,ot,lt,at)=>{let rt=0;const At=k.length;let pt=E.length-1,wt=At-1;for(;rt<=pt&&rt<=wt;){const Et=E[rt],$t=k[rt]=at?Na(k[rt]):Dn(k[rt]);if(sl(Et,$t))d(Et,$t,z,null,Y,tt,ot,lt,at);else break;rt++}for(;rt<=pt&&rt<=wt;){const Et=E[pt],$t=k[wt]=at?Na(k[wt]):Dn(k[wt]);if(sl(Et,$t))d(Et,$t,z,null,Y,tt,ot,lt,at);else break;pt--,wt--}if(rt>pt){if(rt<=wt){const Et=wt+1,$t=Etwt)for(;rt<=pt;)Q(E[rt],Y,tt,!0),rt++;else{const Et=rt,$t=rt,oe=new Map;for(rt=$t;rt<=wt;rt++){const yr=k[rt]=at?Na(k[rt]):Dn(k[rt]);yr.key!=null&&oe.set(yr.key,rt)}let te,dr=0;const Be=wt-$t+1;let Kr=!1,gr=0;const il=new Array(Be);for(rt=0;rt=Be){Q(yr,Y,tt,!0);continue}let dn;if(yr.key!=null)dn=oe.get(yr.key);else for(te=$t;te<=wt;te++)if(il[te-$t]===0&&sl(yr,k[te])){dn=te;break}dn===void 0?Q(yr,Y,tt,!0):(il[dn-$t]=rt+1,dn>=gr?gr=dn:Kr=!0,d(yr,k[dn],z,null,Y,tt,ot,lt,at),dr++)}const L1=Kr?uN(il):gs;for(te=L1.length-1,rt=Be-1;rt>=0;rt--){const yr=$t+rt,dn=k[yr],P1=yr+1{const{el:tt,type:ot,transition:lt,children:at,shapeFlag:rt}=E;if(rt&6){Z(E.component.subTree,k,z,q);return}if(rt&128){E.suspense.move(k,z,q);return}if(rt&64){ot.move(E,k,z,j);return}if(ot===br){n(tt,k,z);for(let pt=0;ptlt.enter(tt),Y);else{const{leave:pt,delayLeave:wt,afterLeave:Et}=lt,$t=()=>n(tt,k,z),oe=()=>{pt(tt,()=>{$t(),Et&&Et()})};wt?wt(tt,$t,oe):oe()}else n(tt,k,z)},Q=(E,k,z,q=!1,Y=!1)=>{const{type:tt,props:ot,ref:lt,children:at,dynamicChildren:rt,shapeFlag:At,patchFlag:pt,dirs:wt,cacheIndex:Et}=E;if(pt===-2&&(Y=!1),lt!=null&&Qg(lt,null,z,E,!0),Et!=null&&(k.renderCache[Et]=void 0),At&256){k.ctx.deactivate(E);return}const $t=At&1&&wt,oe=!Ql(E);let te;if(oe&&(te=ot&&ot.onVnodeBeforeUnmount)&&gn(te,k,E),At&6)Tt(E.component,z,q);else{if(At&128){E.suspense.unmount(z,q);return}$t&&di(E,null,k,"beforeUnmount"),At&64?E.type.remove(E,k,z,j,q):rt&&!rt.hasOnce&&(tt!==br||pt>0&&pt&64)?xt(rt,k,z,!1,!0):(tt===br&&pt&384||!Y&&At&16)&&xt(at,k,z),q&&ft(E)}(oe&&(te=ot&&ot.onVnodeUnmounted)||$t)&&_r(()=>{te&&gn(te,k,E),$t&&di(E,null,k,"unmounted")},z)},ft=E=>{const{type:k,el:z,anchor:q,transition:Y}=E;if(k===br){ht(z,q);return}if(k===yp){S(E);return}const tt=()=>{a(z),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(E.shapeFlag&1&&Y&&!Y.persisted){const{leave:ot,delayLeave:lt}=Y,at=()=>ot(z,tt);lt?lt(E.el,tt,at):at()}else tt()},ht=(E,k)=>{let z;for(;E!==k;)z=h(E),a(E),E=z;a(k)},Tt=(E,k,z)=>{const{bum:q,scope:Y,job:tt,subTree:ot,um:lt,m:at,a:rt}=E;Y1(at),Y1(rt),q&&up(q),Y.stop(),tt&&(tt.flags|=8,Q(ot,E,k,z)),lt&&_r(lt,k),_r(()=>{E.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&E.asyncDep&&!E.asyncResolved&&E.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},xt=(E,k,z,q=!1,Y=!1,tt=0)=>{for(let ot=tt;ot{if(E.shapeFlag&6)return G(E.component.subTree);if(E.shapeFlag&128)return E.suspense.next();const k=h(E.anchor||E.el),z=k&&k[IO];return z?h(z):k};let $=!1;const K=(E,k,z)=>{E==null?k._vnode&&Q(k._vnode,null,null,!0):d(k._vnode||null,E,k,null,null,null,z),k._vnode=E,$||($=!0,z1(),uM(),$=!1)},j={p:d,um:Q,m:Z,r:ft,mt:P,mc:T,pc:N,pbc:A,n:G,o:r};let J,ct;return{render:K,hydrate:J,createApp:JO(K,J)}}function dp({type:r,props:t},e){return e==="svg"&&r==="foreignObject"||e==="mathml"&&r==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function gi({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function lN(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function DM(r,t,e=!1){const n=r.children,a=t.children;if(Nt(n)&&Nt(a))for(let i=0;i>1,r[e[s]]0&&(t[n]=e[i-1]),e[i]=n)}}for(i=e.length,o=e[i-1];i-- >0;)e[i]=o,o=t[o];return e}function MM(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:MM(t)}function Y1(r){if(r)for(let t=0;taa(fN);function tu(r,t,e){return IM(r,t,e)}function IM(r,t,e=le){const{immediate:n,deep:a,flush:i,once:o}=e,s=ke({},e);let l;if(_v)if(i==="sync"){const h=cN();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||n)s.once=!0;else{const h=()=>{};return h.stop=kn,h.resume=kn,h.pause=kn,h}const u=He;s.call=(h,v,p)=>Vn(h,u,v,p);let f=!1;i==="post"?s.scheduler=h=>{_r(h,u&&u.suspense)}:i!=="sync"&&(f=!0,s.scheduler=(h,v)=>{v?h():v0(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=TO(r,t,s);return l&&l.push(c),c}function hN(r,t,e){const n=this.proxy,a=Se(r)?r.includes(".")?LM(n,r):()=>n[r]:r.bind(n,n);let i;Bt(t)?i=t:(i=t.handler,e=t);const o=nf(this),s=IM(a,i.bind(n),e);return o(),s}function LM(r,t){const e=t.split(".");return()=>{let n=r;for(let a=0;at==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${$r(t)}Modifiers`]||r[`${Do(t)}Modifiers`];function pN(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||le;let a=e;const i=t.startsWith("update:"),o=i&&vN(n,t.slice(7));o&&(o.trim&&(a=e.map(f=>Se(f)?f.trim():f)),o.number&&(a=e.map(Gk)));let s,l=n[s=lp(t)]||n[s=lp($r(t))];!l&&i&&(l=n[s=lp(Do(t))]),l&&Vn(l,r,6,a);const u=n[s+"Once"];if(u){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,Vn(u,r,6,a)}}function PM(r,t,e=!1){const n=t.emitsCache,a=n.get(r);if(a!==void 0)return a;const i=r.emits;let o={},s=!1;if(!Bt(r)){const l=u=>{const f=PM(u,t,!0);f&&(s=!0,ke(o,f))};!e&&t.mixins.length&&t.mixins.forEach(l),r.extends&&l(r.extends),r.mixins&&r.mixins.forEach(l)}return!i&&!s?(fe(r)&&n.set(r,null),null):(Nt(i)?i.forEach(l=>o[l]=null):ke(o,i),fe(r)&&n.set(r,o),o)}function yv(r,t){return!r||!lv(t)?!1:(t=t.slice(2).replace(/Once$/,""),Qt(r,t[0].toLowerCase()+t.slice(1))||Qt(r,Do(t))||Qt(r,t))}function gp(r){const{type:t,vnode:e,proxy:n,withProxy:a,propsOptions:[i],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:v,ctx:p,inheritAttrs:d}=r,g=uh(r);let y,m;try{if(e.shapeFlag&4){const S=a||n,b=S;y=Dn(u.call(b,S,f,c,v,h,p)),m=s}else{const S=t;y=Dn(S.length>1?S(c,{attrs:s,slots:o,emit:l}):S(c,null)),m=t.props?s:dN(s)}}catch(S){eu.length=0,dv(S,r,1),y=tr(_o)}let _=y;if(m&&d!==!1){const S=Object.keys(m),{shapeFlag:b}=_;S.length&&b&7&&(i&&S.some(Jm)&&(m=gN(m,i)),_=Ds(_,m,!1,!0))}return e.dirs&&(_=Ds(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&p0(_,e.transition),y=_,uh(g),y}const dN=r=>{let t;for(const e in r)(e==="class"||e==="style"||lv(e))&&((t||(t={}))[e]=r[e]);return t},gN=(r,t)=>{const e={};for(const n in r)(!Jm(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function yN(r,t,e){const{props:n,children:a,component:i}=r,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?X1(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;cr.__isSuspense;function _N(r,t){t&&t.pendingBranch?Nt(r)?t.effects.push(...r):t.effects.push(r):DO(r)}const br=Symbol.for("v-fgt"),mv=Symbol.for("v-txt"),_o=Symbol.for("v-cmt"),yp=Symbol.for("v-stc"),eu=[];let Tr=null;function On(r=!1){eu.push(Tr=r?null:[])}function SN(){eu.pop(),Tr=eu[eu.length-1]||null}let Cu=1;function Z1(r){Cu+=r,r<0&&Tr&&(Tr.hasOnce=!0)}function EM(r){return r.dynamicChildren=Cu>0?Tr||gs:null,SN(),Cu>0&&Tr&&Tr.push(r),r}function Ka(r,t,e,n,a,i){return EM(Yt(r,t,e,n,a,i,!0))}function kM(r,t,e,n,a){return EM(tr(r,t,e,n,a,!0))}function ch(r){return r?r.__v_isVNode===!0:!1}function sl(r,t){return r.type===t.type&&r.key===t.key}const OM=({key:r})=>r??null,zc=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?Se(r)||We(r)||Bt(r)?{i:nn,r,k:t,f:!!e}:r:null);function Yt(r,t=null,e=null,n=0,a=null,i=r===br?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&OM(t),ref:t&&zc(t),scopeId:cM,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:nn};return s?(_0(l,e),i&128&&r.normalize(l)):e&&(l.shapeFlag|=Se(e)?8:16),Cu>0&&!o&&Tr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Tr.push(l),l}const tr=xN;function xN(r,t=null,e=null,n=0,a=null,i=!1){if((!r||r===UO)&&(r=_o),ch(r)){const s=Ds(r,t,!0);return e&&_0(s,e),Cu>0&&!i&&Tr&&(s.shapeFlag&6?Tr[Tr.indexOf(r)]=s:Tr.push(s)),s.patchFlag=-2,s}if(EN(r)&&(r=r.__vccOpts),t){t=bN(t);let{class:s,style:l}=t;s&&!Se(s)&&(t.class=r0(s)),fe(l)&&(f0(l)&&!Nt(l)&&(l=ke({},l)),t.style=Su(l))}const o=Se(r)?1:RM(r)?128:LO(r)?64:fe(r)?4:Bt(r)?2:0;return Yt(r,t,e,n,a,o,i,!0)}function bN(r){return r?f0(r)||SM(r)?ke({},r):r:null}function Ds(r,t,e=!1,n=!1){const{props:a,ref:i,patchFlag:o,children:s,transition:l}=r,u=t?TN(a||{},t):a,f={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&OM(u),ref:t&&t.ref?e&&i?Nt(i)?i.concat(zc(t)):[i,zc(t)]:zc(t):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:s,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==br?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:l,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Ds(r.ssContent),ssFallback:r.ssFallback&&Ds(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return l&&n&&p0(f,l.clone(f)),f}function ny(r=" ",t=0){return tr(mv,null,r,t)}function wN(r="",t=!1){return t?(On(),kM(_o,null,r)):tr(_o,null,r)}function Dn(r){return r==null||typeof r=="boolean"?tr(_o):Nt(r)?tr(br,null,r.slice()):ch(r)?Na(r):tr(mv,null,String(r))}function Na(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Ds(r)}function _0(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(Nt(t))e=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),_0(r,a()),a._c&&(a._d=!0));return}else{e=32;const a=t._;!a&&!SM(t)?t._ctx=nn:a===3&&nn&&(nn.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else Bt(t)?(t={default:t,_ctx:nn},e=32):(t=String(t),n&64?(e=16,t=[ny(t)]):e=8);r.children=t,r.shapeFlag|=e}function TN(...r){const t={};for(let e=0;e{let a;return(a=r[e])||(a=r[e]=[]),a.push(n),i=>{a.length>1?a.forEach(o=>o(i)):a[0](i)}};hh=t("__VUE_INSTANCE_SETTERS__",e=>He=e),ay=t("__VUE_SSR_SETTERS__",e=>_v=e)}const nf=r=>{const t=He;return hh(r),r.scope.on(),()=>{r.scope.off(),hh(t)}},q1=()=>{He&&He.scope.off(),hh(null)};function NM(r){return r.vnode.shapeFlag&4}let _v=!1;function MN(r,t=!1,e=!1){t&&ay(t);const{props:n,children:a}=r.vnode,i=NM(r);tN(r,n,i,t),aN(r,a,e);const o=i?IN(r,t):void 0;return t&&ay(!1),o}function IN(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,YO);const{setup:n}=e;if(n){const a=r.setupContext=n.length>1?PN(r):null,i=nf(r);ci();const o=rf(n,r,0,[r.props,a]);if(hi(),i(),kD(o)){if(Ql(r)||hM(r),o.then(q1,q1),t)return o.then(s=>{K1(r,s,t)}).catch(s=>{dv(s,r,0)});r.asyncDep=o}else K1(r,o,t)}else BM(r,t)}function K1(r,t,e){Bt(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:fe(t)&&(r.setupState=iM(t)),BM(r,e)}let j1;function BM(r,t,e){const n=r.type;if(!r.render){if(!t&&j1&&!n.render){const a=n.template||y0(r).template;if(a){const{isCustomElement:i,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:l}=n,u=ke(ke({isCustomElement:i,delimiters:s},o),l);n.render=j1(a,u)}}r.render=n.render||kn}{const a=nf(r);ci();try{XO(r)}finally{hi(),a()}}}const LN={get(r,t){return Ue(r,"get",""),r[t]}};function PN(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,LN),slots:r.slots,emit:r.emit,expose:t}}function S0(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(iM(yO(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in Jl)return Jl[e](r)},has(t,e){return e in t||e in Jl}})):r.proxy}function RN(r,t=!0){return Bt(r)?r.displayName||r.name:r.name||t&&r.__name}function EN(r){return Bt(r)&&"__vccOpts"in r}const we=(r,t)=>bO(r,t,_v);function VM(r,t,e){const n=arguments.length;return n===2?fe(t)&&!Nt(t)?ch(t)?tr(r,null,[t]):tr(r,t):tr(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&ch(e)&&(e=[e]),tr(r,t,e))}const kN="3.5.10";/** -* @vue/runtime-dom v3.5.10 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let iy;const Q1=typeof window<"u"&&window.trustedTypes;if(Q1)try{iy=Q1.createPolicy("vue",{createHTML:r=>r})}catch{}const zM=iy?r=>iy.createHTML(r):r=>r,ON="http://www.w3.org/2000/svg",NN="http://www.w3.org/1998/Math/MathML",Qn=typeof document<"u"?document:null,J1=Qn&&Qn.createElement("template"),BN={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,n)=>{const a=t==="svg"?Qn.createElementNS(ON,r):t==="mathml"?Qn.createElementNS(NN,r):e?Qn.createElement(r,{is:e}):Qn.createElement(r);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>Qn.createTextNode(r),createComment:r=>Qn.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Qn.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,a,i){const o=e?e.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),e),!(a===i||!(a=a.nextSibling)););else{J1.innerHTML=zM(n==="svg"?`${r}`:n==="mathml"?`${r}`:r);const s=J1.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},VN=Symbol("_vtc");function zN(r,t,e){const n=r[VN];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const tS=Symbol("_vod"),FN=Symbol("_vsh"),GN=Symbol(""),HN=/(^|;)\s*display\s*:/;function WN(r,t,e){const n=r.style,a=Se(e);let i=!1;if(e&&!a){if(t)if(Se(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();e[s]==null&&Fc(n,s,"")}else for(const o in t)e[o]==null&&Fc(n,o,"");for(const o in e)o==="display"&&(i=!0),Fc(n,o,e[o])}else if(a){if(t!==e){const o=n[GN];o&&(e+=";"+o),n.cssText=e,i=HN.test(e)}}else t&&r.removeAttribute("style");tS in r&&(r[tS]=i?n.display:"",r[FN]&&(n.display="none"))}const eS=/\s*!important$/;function Fc(r,t,e){if(Nt(e))e.forEach(n=>Fc(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=UN(r,t);eS.test(e)?r.setProperty(Do(n),e.replace(eS,""),"important"):r[n]=e}}const rS=["Webkit","Moz","ms"],mp={};function UN(r,t){const e=mp[t];if(e)return e;let n=$r(t);if(n!=="filter"&&n in r)return mp[t]=n;n=cv(n);for(let a=0;a_p||(qN.then(()=>_p=0),_p=Date.now());function jN(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Vn(QN(n,e.value),t,5,[n])};return e.value=r,e.attached=KN(),e}function QN(r,t){if(Nt(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const lS=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,JN=(r,t,e,n,a,i)=>{const o=a==="svg";t==="class"?zN(r,n,o):t==="style"?WN(r,e,n):lv(t)?Jm(t)||XN(r,t,e,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tB(r,t,n,o))?(iS(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&aS(r,t,n,o,i,t!=="value")):r._isVueCE&&(/[A-Z]/.test(t)||!Se(n))?iS(r,$r(t),n):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),aS(r,t,n,o))};function tB(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&lS(t)&&Bt(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return lS(t)&&Se(e)?!1:t in r}const eB=ke({patchProp:JN},BN);let uS;function rB(){return uS||(uS=oN(eB))}const nB=(...r)=>{const t=rB().createApp(...r),{mount:e}=t;return t.mount=n=>{const a=iB(n);if(!a)return;const i=t._component;!Bt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const o=e(a,!1,aB(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function aB(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function iB(r){return Se(r)?document.querySelector(r):r}const oB=Gs({__name:"App",setup(r){console.log("App.vue");const t=new Date().getFullYear();return(e,n)=>{const a=WO("router-view");return On(),Ka(br,null,[n[2]||(n[2]=Yt("h1",{style:{"text-align":"center"}},"Server Status",-1)),tr(a),Yt("footer",null,[ny(" © Copyright 2024-"+Sr(so(t))+" ",1),n[0]||(n[0]=Yt("a",{href:"https://sfkm.me",target:"_blank"},"snowykami",-1)),n[1]||(n[1]=ny(" All Rights Reserved "))])],64)}}}),af=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e},sB=af(oB,[["__scopeId","data-v-13414ec4"]]);/*! - * vue-router v4.4.5 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const is=typeof document<"u";function FM(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function lB(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&FM(r.default)}const ee=Object.assign;function Sp(r,t){const e={};for(const n in t){const a=t[n];e[n]=fn(a)?a.map(r):r(a)}return e}const ru=()=>{},fn=Array.isArray,GM=/#/g,uB=/&/g,fB=/\//g,cB=/=/g,hB=/\?/g,HM=/\+/g,vB=/%5B/g,pB=/%5D/g,WM=/%5E/g,dB=/%60/g,UM=/%7B/g,gB=/%7C/g,$M=/%7D/g,yB=/%20/g;function x0(r){return encodeURI(""+r).replace(gB,"|").replace(vB,"[").replace(pB,"]")}function mB(r){return x0(r).replace(UM,"{").replace($M,"}").replace(WM,"^")}function oy(r){return x0(r).replace(HM,"%2B").replace(yB,"+").replace(GM,"%23").replace(uB,"%26").replace(dB,"`").replace(UM,"{").replace($M,"}").replace(WM,"^")}function _B(r){return oy(r).replace(cB,"%3D")}function SB(r){return x0(r).replace(GM,"%23").replace(hB,"%3F")}function xB(r){return r==null?"":SB(r).replace(fB,"%2F")}function Au(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const bB=/\/$/,wB=r=>r.replace(bB,"");function xp(r,t,e="/"){let n,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=r(i)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=DB(n??t,e),{fullPath:n+(i&&"?")+i+o,path:n,query:a,hash:Au(o)}}function TB(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function fS(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function CB(r,t,e){const n=t.matched.length-1,a=e.matched.length-1;return n>-1&&n===a&&Ms(t.matched[n],e.matched[a])&&YM(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Ms(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function YM(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(!AB(r[e],t[e]))return!1;return!0}function AB(r,t){return fn(r)?cS(r,t):fn(t)?cS(t,r):r===t}function cS(r,t){return fn(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function DB(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let i=e.length-1,o,s;for(o=0;o1&&i--;else break;return e.slice(0,i).join("/")+"/"+n.slice(o).join("/")}const wa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Du;(function(r){r.pop="pop",r.push="push"})(Du||(Du={}));var nu;(function(r){r.back="back",r.forward="forward",r.unknown=""})(nu||(nu={}));function MB(r){if(!r)if(is){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),wB(r)}const IB=/^[^#]+#/;function LB(r,t){return r.replace(IB,"#")+t}function PB(r,t){const e=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:t.behavior,left:n.left-e.left-(t.left||0),top:n.top-e.top-(t.top||0)}}const Sv=()=>({left:window.scrollX,top:window.scrollY});function RB(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),a=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!a)return;t=PB(a,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function hS(r,t){return(history.state?history.state.position-t:-1)+r}const sy=new Map;function EB(r,t){sy.set(r,t)}function kB(r){const t=sy.get(r);return sy.delete(r),t}let OB=()=>location.protocol+"//"+location.host;function XM(r,t){const{pathname:e,search:n,hash:a}=t,i=r.indexOf("#");if(i>-1){let s=a.includes(r.slice(i))?r.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),fS(l,"")}return fS(e,r)+n+a}function NB(r,t,e,n){let a=[],i=[],o=null;const s=({state:h})=>{const v=XM(r,location),p=e.value,d=t.value;let g=0;if(h){if(e.value=v,t.value=h,o&&o===p){o=null;return}g=d?h.position-d.position:0}else n(v);a.forEach(y=>{y(e.value,p,{delta:g,type:Du.pop,direction:g?g>0?nu.forward:nu.back:nu.unknown})})};function l(){o=e.value}function u(h){a.push(h);const v=()=>{const p=a.indexOf(h);p>-1&&a.splice(p,1)};return i.push(v),v}function f(){const{history:h}=window;h.state&&h.replaceState(ee({},h.state,{scroll:Sv()}),"")}function c(){for(const h of i)h();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:u,destroy:c}}function vS(r,t,e,n=!1,a=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:a?Sv():null}}function BB(r){const{history:t,location:e}=window,n={value:XM(r,e)},a={value:t.state};a.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,f){const c=r.indexOf("#"),h=c>-1?(e.host&&document.querySelector("base")?r:r.slice(c))+l:OB()+r+l;try{t[f?"replaceState":"pushState"](u,"",h),a.value=u}catch(v){console.error(v),e[f?"replace":"assign"](h)}}function o(l,u){const f=ee({},t.state,vS(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,f,!0),n.value=l}function s(l,u){const f=ee({},a.value,t.state,{forward:l,scroll:Sv()});i(f.current,f,!0);const c=ee({},vS(n.value,l,null),{position:f.position+1},u);i(l,c,!1),n.value=l}return{location:n,state:a,push:s,replace:o}}function VB(r){r=MB(r);const t=BB(r),e=NB(r,t.state,t.location,t.replace);function n(i,o=!0){o||e.pauseListeners(),history.go(i)}const a=ee({location:"",base:r,go:n,createHref:LB.bind(null,r)},t,e);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function zB(r){return typeof r=="string"||r&&typeof r=="object"}function ZM(r){return typeof r=="string"||typeof r=="symbol"}const qM=Symbol("");var pS;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(pS||(pS={}));function Is(r,t){return ee(new Error,{type:r,[qM]:!0},t)}function Zn(r,t){return r instanceof Error&&qM in r&&(t==null||!!(r.type&t))}const dS="[^/]+?",FB={sensitive:!1,strict:!1,start:!0,end:!0},GB=/[.+*?^${}()[\]/\\]/g;function HB(r,t){const e=ee({},FB,t),n=[];let a=e.start?"^":"";const i=[];for(const u of r){const f=u.length?[]:[90];e.strict&&!u.length&&(a+="/");for(let c=0;ct.length?t.length===1&&t[0]===80?1:-1:0}function KM(r,t){let e=0;const n=r.score,a=t.score;for(;e0&&t[t.length-1]<0}const UB={type:0,value:""},$B=/[a-zA-Z0-9_]/;function YB(r){if(!r)return[[]];if(r==="/")return[[UB]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(v){throw new Error(`ERR (${e})/"${u}": ${v}`)}let e=0,n=e;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",f="";function c(){u&&(e===0?i.push({type:0,value:u}):e===1||e===2||e===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s{o(_)}:ru}function o(c){if(ZM(c)){const h=n.get(c);h&&(n.delete(c),e.splice(e.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=e.indexOf(c);h>-1&&(e.splice(h,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return e}function l(c){const h=jB(c,e);e.splice(h,0,c),c.record.name&&!_S(c)&&n.set(c.record.name,c)}function u(c,h){let v,p={},d,g;if("name"in c&&c.name){if(v=n.get(c.name),!v)throw Is(1,{location:c});g=v.record.name,p=ee(yS(h.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&yS(c.params,v.keys.map(_=>_.name))),d=v.stringify(p)}else if(c.path!=null)d=c.path,v=e.find(_=>_.re.test(d)),v&&(p=v.parse(d),g=v.record.name);else{if(v=h.name?n.get(h.name):e.find(_=>_.re.test(h.path)),!v)throw Is(1,{location:c,currentLocation:h});g=v.record.name,p=ee({},h.params,c.params),d=v.stringify(p)}const y=[];let m=v;for(;m;)y.unshift(m.record),m=m.parent;return{name:g,path:d,params:p,matched:y,meta:KB(y)}}r.forEach(c=>i(c));function f(){e.length=0,n.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:s,getRecordMatcher:a}}function yS(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function mS(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:qB(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function qB(r){const t={},e=r.props||!1;if("component"in r)t.default=e;else for(const n in r.components)t[n]=typeof e=="object"?e[n]:e;return t}function _S(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function KB(r){return r.reduce((t,e)=>ee(t,e.meta),{})}function SS(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}function jB(r,t){let e=0,n=t.length;for(;e!==n;){const i=e+n>>1;KM(r,t[i])<0?n=i:e=i+1}const a=QB(r);return a&&(n=t.lastIndexOf(a,n-1)),n}function QB(r){let t=r;for(;t=t.parent;)if(jM(t)&&KM(r,t)===0)return t}function jM({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function JB(r){const t={};if(r===""||r==="?")return t;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let a=0;ai&&oy(i)):[n&&oy(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function tV(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=fn(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const eV=Symbol(""),bS=Symbol(""),b0=Symbol(""),QM=Symbol(""),ly=Symbol("");function ll(){let r=[];function t(n){return r.push(n),()=>{const a=r.indexOf(n);a>-1&&r.splice(a,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function Ba(r,t,e,n,a,i=o=>o()){const o=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(Is(4,{from:e,to:t})):h instanceof Error?l(h):zB(h)?l(Is(2,{from:t,to:h})):(o&&n.enterCallbacks[a]===o&&typeof h=="function"&&o.push(h),s())},f=i(()=>r.call(n&&n.instances[a],t,e,u));let c=Promise.resolve(f);r.length<3&&(c=c.then(u)),c.catch(h=>l(h))})}function bp(r,t,e,n,a=i=>i()){const i=[];for(const o of r)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(FM(l)){const f=(l.__vccOpts||l)[t];f&&i.push(Ba(f,e,n,o,s,a))}else{let u=l();i.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const c=lB(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const v=(c.__vccOpts||c)[t];return v&&Ba(v,e,n,o,s,a)()}))}}return i}function wS(r){const t=aa(b0),e=aa(QM),n=we(()=>{const l=so(r.to);return t.resolve(l)}),a=we(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=e.matched;if(!f||!c.length)return-1;const h=c.findIndex(Ms.bind(null,f));if(h>-1)return h;const v=TS(l[u-2]);return u>1&&TS(f)===v&&c[c.length-1].path!==v?c.findIndex(Ms.bind(null,l[u-2])):h}),i=we(()=>a.value>-1&&iV(e.params,n.value.params)),o=we(()=>a.value>-1&&a.value===e.matched.length-1&&YM(e.params,n.value.params));function s(l={}){return aV(l)?t[so(r.replace)?"replace":"push"](so(r.to)).catch(ru):Promise.resolve()}return{route:n,href:we(()=>n.value.href),isActive:i,isExactActive:o,navigate:s}}const rV=Gs({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:wS,setup(r,{slots:t}){const e=pv(wS(r)),{options:n}=aa(b0),a=we(()=>({[CS(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[CS(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const i=t.default&&t.default(e);return r.custom?i:VM("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:a.value},i)}}}),nV=rV;function aV(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const t=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return r.preventDefault&&r.preventDefault(),!0}}function iV(r,t){for(const e in t){const n=t[e],a=r[e];if(typeof n=="string"){if(n!==a)return!1}else if(!fn(a)||a.length!==n.length||n.some((i,o)=>i!==a[o]))return!1}return!0}function TS(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const CS=(r,t,e)=>r??t??e,oV=Gs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=aa(ly),a=we(()=>r.route||n.value),i=aa(bS,0),o=we(()=>{let u=so(i);const{matched:f}=a.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=we(()=>a.value.matched[o.value]);Vc(bS,we(()=>o.value+1)),Vc(eV,s),Vc(ly,a);const l=Cn();return tu(()=>[l.value,s.value,r.name],([u,f,c],[h,v,p])=>{f&&(f.instances[c]=u,v&&v!==f&&u&&u===h&&(f.leaveGuards.size||(f.leaveGuards=v.leaveGuards),f.updateGuards.size||(f.updateGuards=v.updateGuards))),u&&f&&(!v||!Ms(f,v)||!h)&&(f.enterCallbacks[c]||[]).forEach(d=>d(u))},{flush:"post"}),()=>{const u=a.value,f=r.name,c=s.value,h=c&&c.components[f];if(!h)return AS(e.default,{Component:h,route:u});const v=c.props[f],p=v?v===!0?u.params:typeof v=="function"?v(u):v:null,g=VM(h,ee({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return AS(e.default,{Component:g,route:u})||g}}});function AS(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const sV=oV;function lV(r){const t=ZB(r.routes,r),e=r.parseQuery||JB,n=r.stringifyQuery||xS,a=r.history,i=ll(),o=ll(),s=ll(),l=mO(wa);let u=wa;is&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Sp.bind(null,G=>""+G),c=Sp.bind(null,xB),h=Sp.bind(null,Au);function v(G,$){let K,j;return ZM(G)?(K=t.getRecordMatcher(G),j=$):j=G,t.addRoute(j,K)}function p(G){const $=t.getRecordMatcher(G);$&&t.removeRoute($)}function d(){return t.getRoutes().map(G=>G.record)}function g(G){return!!t.getRecordMatcher(G)}function y(G,$){if($=ee({},$||l.value),typeof G=="string"){const k=xp(e,G,$.path),z=t.resolve({path:k.path},$),q=a.createHref(k.fullPath);return ee(k,z,{params:h(z.params),hash:Au(k.hash),redirectedFrom:void 0,href:q})}let K;if(G.path!=null)K=ee({},G,{path:xp(e,G.path,$.path).path});else{const k=ee({},G.params);for(const z in k)k[z]==null&&delete k[z];K=ee({},G,{params:c(k)}),$.params=c($.params)}const j=t.resolve(K,$),J=G.hash||"";j.params=f(h(j.params));const ct=TB(n,ee({},G,{hash:mB(J),path:j.path})),E=a.createHref(ct);return ee({fullPath:ct,hash:J,query:n===xS?tV(G.query):G.query||{}},j,{redirectedFrom:void 0,href:E})}function m(G){return typeof G=="string"?xp(e,G,l.value.path):ee({},G)}function _(G,$){if(u!==G)return Is(8,{from:$,to:G})}function S(G){return w(G)}function b(G){return S(ee(m(G),{replace:!0}))}function x(G){const $=G.matched[G.matched.length-1];if($&&$.redirect){const{redirect:K}=$;let j=typeof K=="function"?K(G):K;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=m(j):{path:j},j.params={}),ee({query:G.query,hash:G.hash,params:j.path!=null?{}:G.params},j)}}function w(G,$){const K=u=y(G),j=l.value,J=G.state,ct=G.force,E=G.replace===!0,k=x(K);if(k)return w(ee(m(k),{state:typeof k=="object"?ee({},J,k.state):J,force:ct,replace:E}),$||K);const z=K;z.redirectedFrom=$;let q;return!ct&&CB(n,j,K)&&(q=Is(16,{to:z,from:j}),Z(j,j,!0,!1)),(q?Promise.resolve(q):A(z,j)).catch(Y=>Zn(Y)?Zn(Y,2)?Y:U(Y):N(Y,z,j)).then(Y=>{if(Y){if(Zn(Y,2))return w(ee({replace:E},m(Y.to),{state:typeof Y.to=="object"?ee({},J,Y.to.state):J,force:ct}),$||z)}else Y=I(z,j,!0,E,J);return M(z,j,Y),Y})}function T(G,$){const K=_(G,$);return K?Promise.reject(K):Promise.resolve()}function C(G){const $=ht.values().next().value;return $&&typeof $.runWithContext=="function"?$.runWithContext(G):G()}function A(G,$){let K;const[j,J,ct]=uV(G,$);K=bp(j.reverse(),"beforeRouteLeave",G,$);for(const k of j)k.leaveGuards.forEach(z=>{K.push(Ba(z,G,$))});const E=T.bind(null,G,$);return K.push(E),xt(K).then(()=>{K=[];for(const k of i.list())K.push(Ba(k,G,$));return K.push(E),xt(K)}).then(()=>{K=bp(J,"beforeRouteUpdate",G,$);for(const k of J)k.updateGuards.forEach(z=>{K.push(Ba(z,G,$))});return K.push(E),xt(K)}).then(()=>{K=[];for(const k of ct)if(k.beforeEnter)if(fn(k.beforeEnter))for(const z of k.beforeEnter)K.push(Ba(z,G,$));else K.push(Ba(k.beforeEnter,G,$));return K.push(E),xt(K)}).then(()=>(G.matched.forEach(k=>k.enterCallbacks={}),K=bp(ct,"beforeRouteEnter",G,$,C),K.push(E),xt(K))).then(()=>{K=[];for(const k of o.list())K.push(Ba(k,G,$));return K.push(E),xt(K)}).catch(k=>Zn(k,8)?k:Promise.reject(k))}function M(G,$,K){s.list().forEach(j=>C(()=>j(G,$,K)))}function I(G,$,K,j,J){const ct=_(G,$);if(ct)return ct;const E=$===wa,k=is?history.state:{};K&&(j||E?a.replace(G.fullPath,ee({scroll:E&&k&&k.scroll},J)):a.push(G.fullPath,J)),l.value=G,Z(G,$,K,E),U()}let L;function P(){L||(L=a.listen((G,$,K)=>{if(!Tt.listening)return;const j=y(G),J=x(j);if(J){w(ee(J,{replace:!0}),j).catch(ru);return}u=j;const ct=l.value;is&&EB(hS(ct.fullPath,K.delta),Sv()),A(j,ct).catch(E=>Zn(E,12)?E:Zn(E,2)?(w(E.to,j).then(k=>{Zn(k,20)&&!K.delta&&K.type===Du.pop&&a.go(-1,!1)}).catch(ru),Promise.reject()):(K.delta&&a.go(-K.delta,!1),N(E,j,ct))).then(E=>{E=E||I(j,ct,!1),E&&(K.delta&&!Zn(E,8)?a.go(-K.delta,!1):K.type===Du.pop&&Zn(E,20)&&a.go(-1,!1)),M(j,ct,E)}).catch(ru)}))}let R=ll(),O=ll(),B;function N(G,$,K){U(G);const j=O.list();return j.length?j.forEach(J=>J(G,$,K)):console.error(G),Promise.reject(G)}function F(){return B&&l.value!==wa?Promise.resolve():new Promise((G,$)=>{R.add([G,$])})}function U(G){return B||(B=!G,P(),R.list().forEach(([$,K])=>G?K(G):$()),R.reset()),G}function Z(G,$,K,j){const{scrollBehavior:J}=r;if(!is||!J)return Promise.resolve();const ct=!K&&kB(hS(G.fullPath,0))||(j||!K)&&history.state&&history.state.scroll||null;return sM().then(()=>J(G,$,ct)).then(E=>E&&RB(E)).catch(E=>N(E,G,$))}const Q=G=>a.go(G);let ft;const ht=new Set,Tt={currentRoute:l,listening:!0,addRoute:v,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:d,resolve:y,options:r,push:S,replace:b,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:F,install(G){const $=this;G.component("RouterLink",nV),G.component("RouterView",sV),G.config.globalProperties.$router=$,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>so(l)}),is&&!ft&&l.value===wa&&(ft=!0,S(a.location).catch(J=>{}));const K={};for(const J in wa)Object.defineProperty(K,J,{get:()=>l.value[J],enumerable:!0});G.provide(b0,$),G.provide(QM,rM(K)),G.provide(ly,l);const j=G.unmount;ht.add(G),G.unmount=function(){ht.delete(G),ht.size<1&&(u=wa,L&&L(),L=null,l.value=wa,ft=!1,B=!1),j()}}};function xt(G){return G.reduce(($,K)=>$.then(()=>C(K)),Promise.resolve())}return Tt}function uV(r,t){const e=[],n=[],a=[],i=Math.max(t.matched.length,r.matched.length);for(let o=0;oMs(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Ms(u,l))||a.push(l))}return[e,n,a]}const fV="";async function DS(){return(await fetch(`${fV}/api/status`)).json()}/*! ***************************************************************************** -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 uy=function(r,t){return uy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},uy(r,t)};function V(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");uy(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var cV=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),hV=function(){function r(){this.browser=new cV,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}(),Rt=new hV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Rt.wxa=!0,Rt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Rt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Rt.node=!0,Rt.svgSupported=!0):vV(navigator.userAgent,Rt);function vV(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var w0=12,JM="sans-serif",ri=w0+"px "+JM,pV=20,dV=100,gV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function yV(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function VV(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&i&&h===i[c]&&v===i[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=e?PS(s,o):PS(o,s))}function oI(r){return r.nodeName.toUpperCase()==="CANVAS"}var zV=/([&<>"'])/g,FV={"&":"&","<":"<",">":">",'"':""","'":"'"};function fr(r){return r==null?"":(r+"").replace(zV,function(t,e){return FV[e]})}var GV=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Tp=[],HV=Rt.browser.firefox&&+Rt.browser.version.split(".")[0]<39;function gy(r,t,e,n){return e=e||{},n?ES(r,t,e):HV&&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):ES(r,t,e),e}function ES(r,t,e){if(Rt.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(oI(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(dy(Tp,r,n,a)){e.zrX=Tp[0],e.zrY=Tp[1];return}}e.zrX=e.zrY=0}function L0(r){return r||window.event}function kr(r,t,e){if(t=L0(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&gy(r,o,t,e)}else{gy(r,t,t,e);var i=WV(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&GV.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function WV(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function yy(r,t,e,n){r.addEventListener(t,e,n)}function UV(r,t,e,n){r.removeEventListener(t,e,n)}var fa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function kS(r){return r.which===2||r.which===3}var $V=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},o=0,s=a.length;o1&&n&&n.length>1){var i=OS(n)/OS(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=YV(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Ar(){return[1,0,0,1,0,0]}function Tv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function P0(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 oa(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Fn(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 Io(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),c=Math.cos(e);return r[0]=a*c+s*f,r[1]=-a*f+s*c,r[2]=i*c+l*f,r[3]=-i*f+c*l,r[4]=c*(o-n[0])+f*(u-n[1])+n[0],r[5]=c*(u-n[1])-f*(o-n[0])+n[1],r}function R0(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function Us(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-e*s)*l,r):null}function XV(r){var t=Ar();return P0(t,r),t}var Ct=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}(),Of=Math.min,Nf=Math.max,yi=new Ct,mi=new Ct,_i=new Ct,Si=new Ct,ul=new Ct,fl=new Ct,Mt=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=Of(t.x,this.x),n=Of(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Nf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Nf(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,a=t.height/e.height,i=Ar();return Fn(i,i,[-e.x,-e.y]),R0(i,i,[n,a]),Fn(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,h=!(ip&&(p=_,dp&&(p=S,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=e.x*a+o,t.y=e.y*i+s,t.width=e.width*a,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}yi.x=_i.x=e.x,yi.y=Si.y=e.y,mi.x=Si.x=e.x+e.width,mi.y=_i.y=e.y+e.height,yi.transform(n),Si.transform(n),mi.transform(n),_i.transform(n),t.x=Of(yi.x,mi.x,_i.x,Si.x),t.y=Of(yi.y,mi.y,_i.y,Si.y);var l=Nf(yi.x,mi.x,_i.x,Si.x),u=Nf(yi.y,mi.y,_i.y,Si.y);t.width=l-t.x,t.height=u-t.y},r}(),sI="silent";function ZV(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:qV}}function qV(){fa(this.event)}var KV=function(r){V(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}(Xr),cl=function(){function r(t,e){this.x=t,this.y=e}return r}(),jV=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ap=new Mt(0,0,0,0),lI=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this)||this;return s._hovered=new cl(0,0),s.storage=e,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new KV,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new kV(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(D(jV,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,a=e.zrY,i=uI(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new cl(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new cl(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+n,s=ZV(n,e,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),o=new cl(e,n);if(NS(i,o,e,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Mt(e-u,n-u,l,l),c=i.length-1;c>=0;c--){var h=i[c];h!==a&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Ap.copy(h.getBoundingRect()),h.transform&&Ap.applyTransform(h.transform),Ap.intersect(f)&&s.push(h))}if(s.length)for(var v=4,p=Math.PI/12,d=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function QV(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?sI:!0}return!1}function NS(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=QV(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==sI)){t.target=o;break}}}function uI(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var fI=32,hl=7;function JV(r){for(var t=0;r>=fI;)t|=r&1,r>>=1;return r+t}function BS(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a=0;)a++;return a-t}function tz(r,t,e){for(e--;t>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Dp(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])>0){for(s=n-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function Mp(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function ez(r,t){var e=hl,n,a,i=0,o=[];n=[],a=[];function s(v,p){n[i]=v,a[i]=p,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]a[v+1])break;f(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]=hl||w>=hl);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),p===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=e;;){var T=0,C=0,A=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--p===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)=0;y--)r[x+y]=r[b+y];if(p===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-Dp(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y=hl||C>=hl);if(A)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),VS(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),a-=i,e+=i}while(a!==0);o.forceMergeRuns()}}var wr=1,zl=2,os=4,zS=!1;function Ip(){zS||(zS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function FS(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var rz=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=FS}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(Ip(),f.z=0),isNaN(f.z2)&&(Ip(),f.z2=0),isNaN(f.zlevel)&&(Ip(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,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=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),dh;dh=Rt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var iu={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-iu.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?iu.bounceIn(r*2)*.5:iu.bounceOut(r*2-1)*.5+.5}},Bf=Math.pow,ja=Math.sqrt,gh=1e-8,cI=1e-4,GS=ja(3),Vf=1/3,Mn=Mo(),Vr=Mo(),xs=Mo();function Ua(r){return r>-gh&&rgh||r<-gh}function be(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function HS(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function yh(r,t,e,n,a,i){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-a,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Ua(f)&&Ua(c))if(Ua(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[v++]=p)}else{var d=c*c-4*f*h;if(Ua(d)){var g=c/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[v++]=p),y>=0&&y<=1&&(i[v++]=y)}else if(d>0){var m=ja(d),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-Bf(-_,Vf):_=Bf(_,Vf),S<0?S=-Bf(-S,Vf):S=Bf(S,Vf);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[v++]=p)}else{var b=(2*f*s-3*o*c)/(2*ja(f*f*f)),x=Math.acos(b)/3,w=ja(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+GS*Math.sin(x)))/(3*o),C=(-s+w*(T-GS*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[v++]=p),y>=0&&y<=1&&(i[v++]=y),C>=0&&C<=1&&(i[v++]=C)}}return v}function vI(r,t,e,n,a){var i=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Ua(o)){if(hI(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(Ua(f))a[0]=-i/(2*o);else if(f>0){var c=ja(f),u=(-i+c)/(2*o),h=(-i-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function ai(r,t,e,n,a,i){var o=(t-r)*a+r,s=(e-t)*a+t,l=(n-e)*a+e,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=n}function pI(r,t,e,n,a,i,o,s,l,u,f){var c,h=.005,v=1/0,p,d,g,y;Mn[0]=l,Mn[1]=u;for(var m=0;m<1;m+=.05)Vr[0]=be(r,e,a,o,m),Vr[1]=be(t,n,i,s,m),g=lo(Mn,Vr),g=0&&g=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(Ua(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=ja(f),u=(-o+c)/(2*i),h=(-o-c)/(2*i);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function dI(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Iu(r,t,e,n,a){var i=(t-r)*n+r,o=(e-t)*n+t,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=e}function gI(r,t,e,n,a,i,o,s,l){var u,f=.005,c=1/0;Mn[0]=o,Mn[1]=s;for(var h=0;h<1;h+=.05){Vr[0]=Ie(r,e,a,h),Vr[1]=Ie(t,n,i,h);var v=lo(Mn,Vr);v=0&&v=1?1:yh(0,n,i,1,l,s)&&be(0,a,o,1,s[0])}}}var sz=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||pe,this.ondestroy=t.ondestroy||pe,this.onrestart=t.onrestart||pe,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=vt(t)?t:iu[t]||E0(t)},r}(),yI=function(){function r(t){this.value=t}return r}(),lz=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new yI(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}(),of=function(){function r(t){this._list=new lz,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new yI(e),s.key=t,n.insertEntry(s),a[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),WS={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 ln(r){return r=Math.round(r),r<0?0:r>255?255:r}function uz(r){return r=Math.round(r),r<0?0:r>360?360:r}function Lu(r){return r<0?0:r>1?1:r}function Lp(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?ln(parseFloat(t)/100*255):ln(parseInt(t,10))}function uo(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Lu(parseFloat(t)/100):Lu(parseFloat(t))}function Pp(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 $a(r,t,e){return r+(t-r)*e}function Er(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function _y(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var mI=new of(20),zf=null;function Vo(r,t){zf&&_y(zf,t),zf=mI.put(r,zf||t.slice())}function Dr(r,t){if(r){t=t||[];var e=mI.get(r);if(e)return _y(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in WS)return _y(t,WS[n]),Vo(r,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Er(t,0,0,0,1);return}return Er(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Vo(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Er(t,0,0,0,1);return}return Er(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Vo(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Er(t,+u[0],+u[1],+u[2],1):Er(t,0,0,0,1);f=uo(u.pop());case"rgb":if(u.length>=3)return Er(t,Lp(u[0]),Lp(u[1]),Lp(u[2]),u.length===3?f:uo(u[3])),Vo(r,t),t;Er(t,0,0,0,1);return;case"hsla":if(u.length!==4){Er(t,0,0,0,1);return}return u[3]=uo(u[3]),Sy(u,t),Vo(r,t),t;case"hsl":if(u.length!==3){Er(t,0,0,0,1);return}return Sy(u,t),Vo(r,t),t;default:return}}Er(t,0,0,0,1)}}function Sy(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=uo(r[1]),a=uo(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Er(t,ln(Pp(o,i,e+1/3)*255),ln(Pp(o,i,e)*255),ln(Pp(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function fz(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-t)/6+o/2)/o,c=((i-e)/6+o/2)/o,h=((i-n)/6+o/2)/o;t===i?l=h-c:e===i?l=1/3+f-h:n===i&&(l=2/3+c-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 xy(r,t){var e=Dr(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 sa(e,e.length===4?"rgba":"rgb")}}function Rp(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return e[0]=ln($a(o[0],s[0],l)),e[1]=ln($a(o[1],s[1],l)),e[2]=ln($a(o[2],s[2],l)),e[3]=Lu($a(o[3],s[3],l)),e}}function cz(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Dr(t[a]),s=Dr(t[i]),l=n-a,u=sa([ln($a(o[0],s[0],l)),ln($a(o[1],s[1],l)),ln($a(o[2],s[2],l)),Lu($a(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function ou(r,t,e,n){var a=Dr(r);if(r)return a=fz(a),t!=null&&(a[0]=uz(t)),e!=null&&(a[1]=uo(e)),n!=null&&(a[2]=uo(n)),sa(Sy(a),"rgba")}function mh(r,t){var e=Dr(r);if(e&&t!=null)return e[3]=Lu(t),sa(e,"rgba")}function sa(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 _h(r,t){var e=Dr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var US=new of(100);function by(r){if(nt(r)){var t=US.get(r);return t||(t=xy(r,-.1),US.put(r,t)),t}else if(bv(r)){var e=H({},r);return e.colorStops=X(r.colorStops,function(n){return{offset:n.offset,color:xy(n.color,-.1)}}),e}return r}var Sh=Math.round;function Pu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Dr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var $S=1e-4;function Ya(r){return r<$S&&r>-$S}function Ff(r){return Sh(r*1e3)/1e3}function wy(r){return Sh(r*1e4)/1e4}function hz(r){return"matrix("+Ff(r[0])+","+Ff(r[1])+","+Ff(r[2])+","+Ff(r[3])+","+wy(r[4])+","+wy(r[5])+")"}var vz={left:"start",right:"end",center:"middle",middle:"middle"};function pz(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function dz(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function gz(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function _I(r){return r&&!!r.image}function yz(r){return r&&!!r.svgElement}function k0(r){return _I(r)||yz(r)}function SI(r){return r.type==="linear"}function xI(r){return r.type==="radial"}function bI(r){return r&&(r.type==="linear"||r.type==="radial")}function Cv(r){return"url(#"+r+")"}function wI(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function TI(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Gc,a=St(r.scaleX,1),i=St(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Sh(o*Gc)+"deg, "+Sh(s*Gc)+"deg)"),l.join(" ")}var mz=function(){return Rt.hasGlobalWindow&&vt(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}}(),Ty=Array.prototype.slice;function Jn(r,t,e){return(t-r)*e+r}function Ep(r,t,e,n){for(var a=t.length,i=0;in?t:r,i=Math.min(e,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)n.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=XS,l=e;if($e(e)){var u=bz(e);s=u,(u===1&&!Gt(e[0])||u===2&&!Gt(e[0][0]))&&(o=!0)}else if(Gt(e)&&!Mu(e))s=Hf;else if(nt(e))if(!isNaN(+e))s=Hf;else{var f=Dr(e);f&&(l=f,s=Fl)}else if(bv(e)){var c=H({},l);c.colorStops=X(e.colorStops,function(v){return{offset:v.offset,color:Dr(v.color)}}),SI(e)?s=Cy:xI(e)&&(s=Ay),l=c}i===0?this.valType=s:(s!==this.valType||s===XS)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=vt(n)?n:iu[n]||E0(n)),a.push(h),h},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(d,g){return d.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=Wf(a),u=ZS(a),f=0;f=0&&!(o[f].percent<=e);f--);f=h(f,s-2)}else{for(f=c;fe);f++);f=h(f-1,s-2)}p=o[f+1],v=o[f]}if(v&&p){this._lastFr=f,this._lastFrP=e;var g=p.percent-v.percent,y=g===0?1:h((e-v.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=n?this._additiveValue:u?vl:t[l];if((Wf(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:p.rawValue;else if(Wf(i))i===Yc?Ep(m,v[a],p[a],y):_z(m,v[a],p[a],y);else if(ZS(i)){var _=v[a],S=p[a],b=i===Cy;t[l]={type:b?"linear":"radial",x:Jn(_.x,S.x,y),y:Jn(_.y,S.y,y),colorStops:X(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Jn(w.offset,C.offset,y),color:$c(Ep([],w.color,C.color,y))}}),global:S.global},b?(t[l].x2=Jn(_.x2,S.x2,y),t[l].y2=Jn(_.y2,S.y2,y)):t[l].r=Jn(_.r,S.r,y)}else if(u)Ep(m,v[a],p[a],y),n||(t[l]=$c(m));else{var x=Jn(v[a],p[a],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===Hf?t[n]=t[n]+a:e===Fl?(Dr(t[n],vl),Gf(vl,vl,a,1),t[n]=$c(vl)):e===Yc?Gf(t[n],t[n],a,1):e===CI&&YS(t[n],t[n],a,1)},r}(),O0=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){A0("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Ot(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,su(u),a),this._trackKeys.push(s)}l.addKeyframe(t,su(e[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function hs(){return new Date().getTime()}var Tz=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,a=e.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=hs()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(dh(n),!e._paused&&e.update())}dh(n)},t.prototype.start=function(){this._running||(this._time=hs(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=hs(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=hs()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var a=new O0(e,n.loop);return this.addAnimator(a),a},t}(Xr),Cz=300,kp=Rt.domSupported,Op=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=X(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),qS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},KS=!1;function Dy(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Az(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 Np(r){r&&(r.zrByTouch=!0)}function Dz(r,t){return kr(r.dom,new Mz(r,t),!0)}function AI(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 Mz=function(){function r(t,e){this.stopPropagation=pe,this.stopImmediatePropagation=pe,this.preventDefault=pe,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),tn={mousedown:function(r){r=kr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=kr(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=kr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=kr(this.dom,r);var t=r.toElement||r.relatedTarget;AI(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){KS=!0,r=kr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){KS||(r=kr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=kr(this.dom,r),Np(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),tn.mousemove.call(this,r),tn.mousedown.call(this,r)},touchmove:function(r){r=kr(this.dom,r),Np(r),this.handler.processGesture(r,"change"),tn.mousemove.call(this,r)},touchend:function(r){r=kr(this.dom,r),Np(r),this.handler.processGesture(r,"end"),tn.mouseup.call(this,r),+new Date-+this.__lastTouchMomentJS||r<-JS}var bi=[],zo=[],Vp=Ar(),zp=Math.abs,ea=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 xi(this.rotation)||xi(this.x)||xi(this.y)||xi(this.scaleX-1)||xi(this.scaleY-1)||xi(this.skewX)||xi(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(QS(n),this.invTransform=null);return}n=n||Ar(),e?this.getLocalTransform(n):QS(n),t&&(e?oa(n,t,n):P0(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(bi);var n=bi[0]<0?-1:1,a=bi[1]<0?-1:1,i=((bi[0]-n)*e+n)/bi[0]||0,o=((bi[1]-a)*e+a)/bi[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ar(),Us(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ar(),oa(zo,t.invTransform,e),e=zo);var n=this.originX,a=this.originY;(n||a)&&(Vp[4]=n,Vp[5]=a,oa(zo,e,Vp),zo[4]-=n,zo[5]-=a,e=zo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],a=this.invTransform;return a&&Ee(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&Ee(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&zp(t[0]-1)>1e-10&&zp(t[3]-1)>1e-10?Math.sqrt(zp(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){MI(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var p=n+s,d=a+l;e[4]=-p*i-h*d*o,e[5]=-d*o-v*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=v*i,e[2]=h*o,u&&Io(e,e,u),e[4]+=n+f,e[5]+=a+c,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}(),Gn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function MI(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function bh(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",c="top";if(n instanceof Array)l+=cn(n[0],e.width),u+=cn(n[1],e.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Fp="__zr_normal__",Gp=Gn.concat(["ignore"]),Ez=zn(Gn,function(r,t){return r[t]=!0,r},{ignore:!1}),Fo={},kz=new Mt(0,0,0,0),Dv=function(){function r(t){this.id=rI(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(e),n.position!=null){var f=kz;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fo,n,f):bh(Fo,n,f),i.x=Fo.x,i.y=Fo.y,o=Fo.align,s=Fo.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=cn(c[0],f.width),v=cn(c[1],f.height)),u=!0,i.originX=-i.x+h+(a?0:f.x),i.originY=-i.y+v+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&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!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=wr,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()?Py:Ly},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Dr(e);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,sa(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||{},H(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(gt(t))for(var n=t,a=Ot(n),i=0;i0},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(Fp,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===Fp,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(It(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){A0("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,f),h&&h.useState(t,e,n,f),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~wr),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~wr)}},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=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var a=this.currentStates.slice(),i=It(a,t),o=It(a,e)>=0;i>=0?o?a.splice(i,1):a[i]=e:n&&!o&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,a=n.length,i=[],o=0;o0&&e.during&&i[0].during(function(p,d){e.during(d)});for(var h=0;h0||a.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},h&&(T={});for(var S=0;S<_;S++){var y=d[S];C[y]=e[y],h?T[y]=n[y]:e[y]=n[y]}}else if(h){A={};for(var S=0;S<_;S++){var y=d[S];A[y]=su(e[y]),Nz(e,n,y)}}var b=new O0(e,!1,!1,c?Zt(p,function(I){return I.targetName===t}):null);b.targetName=t,a.scope&&(b.scope=a.scope),h&&T&&b.whenWithKeys(0,T,d),A&&b.whenWithKeys(0,A,d),b.whenWithKeys(u??500,s?C:n,d).delay(f||0),r.addAnimator(b,t),o.push(b)}}var mt=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,a=0;a=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=It(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,a=this._children,i=It(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;a0&&(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;e0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function et(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 nt(r)?$z(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function he(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),PI),r=(+r).toFixed(t),e?r:+r}function Hr(r){return r.sort(function(t,e){return t-e}),r}function Ln(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 Yz(r)}function Yz(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function RI(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Xz(r,t){var e=zn(r,function(v,p){return v+(isNaN(p)?0:p)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=X(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=X(a,function(v){return Math.floor(v)}),s=zn(o,function(v,p){return v+p},0),l=X(a,function(v,p){return v-o[p]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return X(o,function(v){return v/n})}function Zz(r,t){var e=Math.max(Ln(r),Ln(t)),n=r+t;return e>PI?n:he(n,e)}var ax=9007199254740991;function EI(r){var t=Math.PI*2;return(r%t+t)%t}function Ru(r){return r>-nx&&r=10&&t++,t}function kI(r,t){var e=N0(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Up(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),a=+r[n-1],i=e-n;return i?a+i*(r[n]-a):a}function ix(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n=0||i&&It(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var S5=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],x5=bo(S5),b5=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return x5(this,t,e)},r}(),ky=new of(50);function w5(r){if(typeof r=="string"){var t=ky.get(r);return t&&t.image}else return r}function F0(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=ky.get(r),o={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!Iv(t)&&i.pending.push(o)):(t=ni.loadImage(r,ux,ux),t.__zrImageSrc=r,ky.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function ux(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Mr(e,t);return u>s&&(e="",u=0),s=r-u,a.ellipsis=e,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function XI(r,t){var e=t.containerWidth,n=t.font,a=t.contentWidth;if(!e)return"";var i=Mr(r,n);if(i<=e)return r;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?C5(r,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*a/i):0;r=r.substr(0,s),i=Mr(r,n)}return r===""&&(r=t.placeholder),r}function C5(r,t,e,n){for(var a=0,i=0,o=r.length;iv&&u){var p=Math.floor(v/s);c=c.slice(0,p)}if(r&&i&&f!=null)for(var d=YI(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&Yp(e,r.substring(s,u),t,o),Yp(e,l[2],t,o,l[1]),s=$p.lastIndex}sa){b>0?(m.tokens=m.tokens.slice(0,b),g(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var I=w.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=Mr(x.text,A);else{if(L){var P=w.backgroundColor,R=P&&P.image;R&&(R=w5(R),Iv(R)&&(x.width=Math.max(x.width,R.width*M/R.height)))}var O=p&&n!=null?n-S:null;O!=null&&O0&&p+n.accumWidth>n.width&&(f=t.split(` -`),u=!0),n.accumWidth=p}else{var d=ZI(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+v,c=d.linesWidths,f=d.lines}}else f=t.split(` -`);for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var P5=zn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function R5(r){return L5(r)?!!P5[r]:!0}function ZI(r,t,e,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,c=0;ce:a+f+v>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=v)):p?(i.push(l),o.push(u),l=h,u=v):(i.push(h),o.push(v));continue}f+=v,p?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}var Oy="__zr_style_"+Math.round(Math.random()*10),fo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Lv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fo[Oy]=!0;var cx=["z","z2","invisible"],E5=["invisible"],Yr=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Ot(e),a=0;a1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(Uf[0]=Kp(a)*e+r,Uf[1]=qp(a)*n+t,$f[0]=Kp(i)*e+r,$f[1]=qp(i)*n+t,u(s,Uf,$f),f(l,Uf,$f),a=a%Ti,a<0&&(a=a+Ti),i=i%Ti,i<0&&(i=i+Ti),a>i&&!o?i+=Ti:aa&&(Yf[0]=Kp(v)*e+r,Yf[1]=qp(v)*n+t,u(s,Yf,s),f(l,Yf,l))}var jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ci=[],Ai=[],yn=[],Ta=[],mn=[],_n=[],jp=Math.min,Qp=Math.max,Di=Math.cos,Mi=Math.sin,qn=Math.abs,Ny=Math.PI,Ea=Ny*2,Jp=typeof Float32Array<"u",pl=[];function td(r){var t=Math.round(r/Ny*1e8)/1e8;return t%2*Ny}function G0(r,t){var e=td(r[0]);e<0&&(e+=Ea);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=Ea?a=e+Ea:t&&e-a>=Ea?a=e-Ea:!t&&e>a?a=e+(Ea-td(e-a)):t&&e0&&(this._ux=qn(n/xh/t)||0,this._uy=qn(n/xh/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(jt.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=qn(t-this._xi),a=qn(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(jt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,o){return this._drawPendingPt(),this.addData(jt.C,t,e,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(jt.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,o){this._drawPendingPt(),pl[0]=a,pl[1]=i,G0(pl,o),a=pl[0],i=pl[1];var s=i-a;return this.addData(jt.A,t,e,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,o),this._xi=Di(i)*n+t,this._yi=Mi(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(jt.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(jt.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)&&Jp&&(this.data=new Float32Array(e));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(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;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){yn[0]=yn[1]=mn[0]=mn[1]=Number.MAX_VALUE,Ta[0]=Ta[1]=_n[0]=_n[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,o;for(o=0;on||qn(_)>a||h===e-1)&&(d=Math.sqrt(m*m+_*_),i=g,o=y);break}case jt.C:{var S=t[h++],b=t[h++],g=t[h++],y=t[h++],x=t[h++],w=t[h++];d=nz(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case jt.Q:{var S=t[h++],b=t[h++],g=t[h++],y=t[h++];d=iz(i,o,S,b,g,y,10),i=g,o=y;break}case jt.A:var T=t[h++],C=t[h++],A=t[h++],M=t[h++],I=t[h++],L=t[h++],P=L+I;h+=1,p&&(s=Di(I)*A+T,l=Mi(I)*M+C),d=Qp(A,M)*jp(Ea,Math.abs(L)),i=Di(P)*A+T,o=Mi(P)*M+C;break;case jt.R:{s=i=t[h++],l=o=t[h++];var R=t[h++],O=t[h++];d=R*2+O*2;break}case jt.Z:{var m=s-i,_=l-o;d=Math.sqrt(m*m+_*_),i=s,o=l;break}}d>=0&&(u[c++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,c,h,v=e<1,p,d,g=0,y=0,m,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=e*d,!m)))t:for(var x=0;x0&&(t.lineTo(S,b),_=0),w){case jt.M:s=u=n[x++],l=f=n[x++],t.moveTo(u,f);break;case jt.L:{c=n[x++],h=n[x++];var C=qn(c-u),A=qn(h-f);if(C>a||A>i){if(v){var M=p[y++];if(g+M>m){var I=(m-g)/M;t.lineTo(u*(1-I)+c*I,f*(1-I)+h*I);break t}g+=M}t.lineTo(c,h),u=c,f=h,_=0}else{var L=C*C+A*A;L>_&&(S=c,b=h,_=L)}break}case jt.C:{var P=n[x++],R=n[x++],O=n[x++],B=n[x++],N=n[x++],F=n[x++];if(v){var M=p[y++];if(g+M>m){var I=(m-g)/M;ai(u,P,O,N,I,Ci),ai(f,R,B,F,I,Ai),t.bezierCurveTo(Ci[1],Ai[1],Ci[2],Ai[2],Ci[3],Ai[3]);break t}g+=M}t.bezierCurveTo(P,R,O,B,N,F),u=N,f=F;break}case jt.Q:{var P=n[x++],R=n[x++],O=n[x++],B=n[x++];if(v){var M=p[y++];if(g+M>m){var I=(m-g)/M;Iu(u,P,O,I,Ci),Iu(f,R,B,I,Ai),t.quadraticCurveTo(Ci[1],Ai[1],Ci[2],Ai[2]);break t}g+=M}t.quadraticCurveTo(P,R,O,B),u=O,f=B;break}case jt.A:var U=n[x++],Z=n[x++],Q=n[x++],ft=n[x++],ht=n[x++],Tt=n[x++],xt=n[x++],G=!n[x++],$=Q>ft?Q:ft,K=qn(Q-ft)>.001,j=ht+Tt,J=!1;if(v){var M=p[y++];g+M>m&&(j=ht+Tt*(m-g)/M,J=!0),g+=M}if(K&&t.ellipse?t.ellipse(U,Z,Q,ft,xt,ht,j,G):t.arc(U,Z,$,ht,j,G),J)break t;T&&(s=Di(ht)*Q+U,l=Mi(ht)*ft+Z),u=Di(j)*Q+U,f=Mi(j)*ft+Z;break;case jt.R:s=u=n[x],l=f=n[x+1],c=n[x++],h=n[x++];var ct=n[x++],E=n[x++];if(v){var M=p[y++];if(g+M>m){var k=m-g;t.moveTo(c,h),t.lineTo(c+jp(k,ct),h),k-=ct,k>0&&t.lineTo(c+ct,h+jp(k,E)),k-=E,k>0&&t.lineTo(c+Qp(ct-k,0),h+E),k-=ct,k>0&&t.lineTo(c,h+Qp(E-k,0));break t}g+=M}t.rect(c,h,ct,E);break;case jt.Z:if(v){var M=p[y++];if(g+M>m){var I=(m-g)/M;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=M}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=jt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Va(r,t,e,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>t+s&&o>n+s||or+s&&i>e+s||it+c&&f>n+c&&f>i+c&&f>s+c||fr+c&&u>e+c&&u>a+c&&u>o+c||ut+u&&l>n+u&&l>i+u||lr+u&&s>e+u&&s>a+u||se||f+ua&&(a+=dl);var h=Math.atan2(l,s);return h<0&&(h+=dl),h>=n&&h<=a||h+dl>=n&&h+dl<=a}function ta(r,t,e,n,a,i){if(i>t&&i>n||ia?s:0}var Ca=Wn.CMD,Ii=Math.PI*2,F5=1e-4;function G5(r,t){return Math.abs(r-t)t&&u>n&&u>i&&u>s||u1&&H5(),v=be(t,n,i,s,Nr[0]),h>1&&(p=be(t,n,i,s,Nr[1]))),h===2?gt&&s>n&&s>i||s=0&&u<=1){for(var f=0,c=Ie(t,n,i,u),h=0;he||s<-e)return 0;var l=Math.sqrt(e*e-s*s);je[0]=-l,je[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Ii-1e-4){n=0,a=Ii;var f=i?1:-1;return o>=je[0]+r&&o<=je[1]+r?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=Ii,a+=Ii);for(var h=0,v=0;v<2;v++){var p=je[v];if(p+r>o){var d=Math.atan2(s,p),f=i?1:-1;d<0&&(d=Ii+d),(d>=n&&d<=a||d+Ii>=n&&d+Ii<=a)&&(d>Math.PI/2&&d1&&(e||(s+=ta(l,u,f,c,n,a))),g&&(l=i[p],u=i[p+1],f=l,c=u),d){case Ca.M:f=i[p++],c=i[p++],l=f,u=c;break;case Ca.L:if(e){if(Va(l,u,i[p],i[p+1],t,n,a))return!0}else s+=ta(l,u,i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Ca.C:if(e){if(V5(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=W5(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Ca.Q:if(e){if(qI(l,u,i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=U5(l,u,i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Ca.A:var y=i[p++],m=i[p++],_=i[p++],S=i[p++],b=i[p++],x=i[p++];p+=1;var w=!!(1-i[p++]);h=Math.cos(b)*_+y,v=Math.sin(b)*S+m,g?(f=h,c=v):s+=ta(l,u,h,v,n,a);var T=(n-y)*S/_+y;if(e){if(z5(y,m,S,b,b+x,w,t,T,a))return!0}else s+=$5(y,m,S,b,b+x,w,T,a);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case Ca.R:f=l=i[p++],c=u=i[p++];var C=i[p++],A=i[p++];if(h=f+C,v=c+A,e){if(Va(f,c,h,c,t,n,a)||Va(h,c,h,v,t,n,a)||Va(h,v,f,v,t,n,a)||Va(f,v,f,c,t,n,a))return!0}else s+=ta(h,c,h,v,n,a),s+=ta(f,v,f,c,n,a);break;case Ca.Z:if(e){if(Va(l,u,f,c,t,n,a))return!0}else s+=ta(l,u,f,c,n,a);l=f,u=c;break}}return!e&&!G5(u,c)&&(s+=ta(l,u,f,c,n,a)||0),s!==0}function Y5(r,t,e){return KI(r,0,!1,t,e)}function X5(r,t,e,n){return KI(r,t,!0,e,n)}var wh=dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fo),Z5={style:dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Lv.style)},ed=Gn.concat(["invisible","culling","z","z2","zlevel","parent"]),Pt=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){e.buildPath(l,e.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Ly:n>.2?Rz:Py}else if(e)return Py}return Ly},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=_h(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&os)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),o=this.style;if(e=a[0],n=a[1],i.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),X5(s,l/u,e,n)))return!0}if(this.hasFill())return Y5(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=os,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:H(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&os)},t.prototype.createStyle=function(e){return wv(wh,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=H({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,o,s){r.prototype._applyStateObj.call(this,e,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=H({},a.shape),H(u,n.shape)):(u=H({},i?this.shape:a.shape),H(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=H({},this.shape);for(var f={},c=Ot(u),h=0;h0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return wv(q5,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var a=sf(n,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Yr);Ps.prototype.type="tspan";var K5=dt({x:0,y:0},fo),j5={style:dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Lv.style)};function Q5(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Pe=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return wv(K5,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=Q5(n.image)?n.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return j5},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Mt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Yr);Pe.prototype.type="image";function J5(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,f;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),r.moveTo(e+s,n),r.lineTo(e+a-l,n),l!==0&&r.arc(e+a-l,n+l,l,-Math.PI/2,0),r.lineTo(e+a,n+i-u),u!==0&&r.arc(e+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(e+f,n+i),f!==0&&r.arc(e+f,n+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var vs=Math.round;function jI(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(vs(n*2)===vs(a*2)&&(r.x1=r.x2=Ji(n,s,!0)),vs(i*2)===vs(o*2)&&(r.y1=r.y2=Ji(i,s,!0))),r}}function QI(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Ji(n,s,!0),r.y=Ji(a,s,!0),r.width=Math.max(Ji(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Ji(a+o,s,!1)-r.y,o===0?0:1)),r}}function Ji(r,t,e){if(!t)return r;var n=vs(r*2);return(n+vs(t))%2===0?n/2:(n+(e?1:-1))/2}var tF=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),eF={},Vt=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new tF},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=QI(eF,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?J5(e,n):e.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Pt);Vt.prototype.type="rect";var gx={fill:"#000"},yx=2,rF={style:dt({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},Lv.style)},Ft=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=gx,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;e0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P=0&&(P=x[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(M+=(i-(M-g)-(m-I)-C)/2;A<=L;)P=x[A],this._placeToken(P,e,T,y,M+P.width/2,"center",_),M+=P.width,A++;y+=T}},t.prototype._placeToken=function(e,n,a,i,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,c=i+a/2;f==="top"?c=i+e.height/2:f==="bottom"&&(c=i+a-e.height/2);var h=!e.isLineHolder&&rd(u);h&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,c-e.height/2,e.width,e.height);var v=!!u.backgroundColor,p=e.textPadding;p&&(o=Tx(o,s,p),c-=e.height/2-p[0]-e.innerHeight/2);var d=this._getOrCreateChild(Ps),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=bx("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=xx("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=yx,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=c,x&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||ri,g.opacity=Nn(u.opacity,n.opacity,1),_x(g,u),b&&(g.lineWidth=Nn(u.lineWidth,n.lineWidth,_),g.lineDash=St(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=e.contentWidth,T=e.contentHeight;d.setBoundingRect(new Mt(Gl(g.x,w,g.textAlign),ss(g.y,T,g.textBaseline),w,T))},t.prototype._renderBackground=function(e,n,a,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,c=l&&l.image,h=l&&!c,v=e.borderRadius,p=this,d,g;if(h||e.lineHeight||u&&f){d=this._getOrCreateChild(Vt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=v,d.dirtyShape()}if(h){var m=d.style;m.fill=l||null,m.fillOpacity=St(e.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Pe),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=St(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Nn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return tL(e)&&(n=[e.fontStyle,e.fontWeight,JI(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&an(n)||e.textFont||e.font},t}(Yr),nF={left:!0,right:1,center:1},aF={top:1,bottom:1,middle:1},mx=["fontStyle","fontWeight","fontSize","fontFamily"];function JI(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?w0+"px":r+"px"}function _x(r,t){for(var e=0;e=0,i=!1;if(r instanceof Pt){var o=eL(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Go(s)||Go(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=H({},n),u=H({},u),u.fill=s):!Go(u.fill)&&Go(s)?(i=!0,n=H({},n),u=H({},u),u.fill=by(s)):!Go(u.stroke)&&Go(l)&&(i||(n=H({},n),u=H({},u)),u.stroke=by(l)),n.style=u}}if(n&&n.z2==null){i||(n=H({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??Ys)}return n}function cF(r,t,e){if(e&&e.z2==null){e=H({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??oF)}return e}function hF(r,t,e){var n=It(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:uF(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=H({},e),o=H({opacity:n?a:i.opacity*.1},o),e.style=o),e}function nd(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return fF(this,r,t,e);if(r==="blur")return hF(this,r,e);if(r==="select")return cF(this,r,e)}return e}function wo(r){r.stateProxy=nd;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=nd),e&&(e.stateProxy=nd)}function Ix(r,t){!lL(r,t)&&!r.__highByOuter&&_a(r,rL)}function Lx(r,t){!lL(r,t)&&!r.__highByOuter&&_a(r,nL)}function ha(r,t){r.__highByOuter|=1<<(t||0),_a(r,rL)}function va(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&_a(r,nL)}function iL(r){_a(r,U0)}function $0(r){_a(r,aL)}function oL(r){_a(r,sF)}function sL(r){_a(r,lF)}function lL(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function uL(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=H0(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){aL(u)}),s&&e.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function Vy(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function ho(r,t,e){to(r,!0),_a(r,wo),Fy(r,t,e)}function mF(r){to(r,!1)}function ce(r,t,e,n){n?mF(r):ho(r,t,e)}function Fy(r,t,e){var n=_t(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Rx=["emphasis","blur","select"],_F={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Oe(r,t,e,n){e=e||"itemStyle";for(var a=0;a1&&(o*=ad(p),s*=ad(p));var d=(a===i?-1:1)*ad((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=d*o*v/s,y=d*-s*h/o,m=(r+e)/2+Zf(c)*g-Xf(c)*y,_=(t+n)/2+Xf(c)*g+Zf(c)*y,S=Nx([1,0],[(h-g)/o,(v-y)/s]),b=[(h-g)/o,(v-y)/s],x=[(-1*h-g)/o,(-1*v-y)/s],w=Nx(b,x);if(Hy(b,x)<=-1&&(w=gl),Hy(b,x)>=1&&(w=0),w<0){var T=Math.round(w/gl*1e6)/1e6;w=gl*2+T%2*gl}f.addData(u,m,_,o,s,S,w,c,i)}var CF=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,AF=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function DF(r){var t=new Wn;if(!r)return t;var e=0,n=0,a=e,i=n,o,s=Wn.CMD,l=r.match(CF);if(!l)return t;for(var u=0;uP*P+R*R&&(T=A,C=M),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(a/b-1),y1:C*(a/b-1)}}function kF(r){var t;if(W(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 OF(r,t){var e,n=Hl(t.r,0),a=Hl(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,h=!!t.clockwise,v=Vx(u-l),p=v>id&&v%id;if(p>Jr&&(v=p),!(n>Jr))r.moveTo(f,c);else if(v>id-Jr)r.moveTo(f+n*Wo(l),c+n*Li(l)),r.arc(f,c,n,l,u,!h),a>Jr&&(r.moveTo(f+a*Wo(u),c+a*Li(u)),r.arc(f,c,a,u,l,h));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,A=void 0,M=void 0,I=void 0,L=void 0,P=void 0,R=n*Wo(l),O=n*Li(l),B=a*Wo(u),N=a*Li(u),F=v>Jr;if(F){var U=t.cornerRadius;U&&(e=kF(U),d=e[0],g=e[1],y=e[2],m=e[3]);var Z=Vx(n-a)/2;if(_=Sn(Z,y),S=Sn(Z,m),b=Sn(Z,d),x=Sn(Z,g),C=w=Hl(_,S),A=T=Hl(b,x),(w>Jr||T>Jr)&&(M=n*Wo(u),I=n*Li(u),L=a*Wo(l),P=a*Li(l),vJr){var K=Sn(y,C),j=Sn(m,C),J=qf(L,P,R,O,n,K,h),ct=qf(M,I,B,N,n,j,h);r.moveTo(f+J.cx+J.x0,c+J.cy+J.y0),C0&&r.arc(f+J.cx,c+J.cy,K,Ve(J.y0,J.x0),Ve(J.y1,J.x1),!h),r.arc(f,c,n,Ve(J.cy+J.y1,J.cx+J.x1),Ve(ct.cy+ct.y1,ct.cx+ct.x1),!h),j>0&&r.arc(f+ct.cx,c+ct.cy,j,Ve(ct.y1,ct.x1),Ve(ct.y0,ct.x0),!h))}else r.moveTo(f+R,c+O),r.arc(f,c,n,l,u,!h);if(!(a>Jr)||!F)r.lineTo(f+B,c+N);else if(A>Jr){var K=Sn(d,A),j=Sn(g,A),J=qf(B,N,M,I,a,-j,h),ct=qf(R,O,L,P,a,-K,h);r.lineTo(f+J.cx+J.x0,c+J.cy+J.y0),A0&&r.arc(f+J.cx,c+J.cy,j,Ve(J.y0,J.x0),Ve(J.y1,J.x1),!h),r.arc(f,c,a,Ve(J.cy+J.y1,J.cx+J.x1),Ve(ct.cy+ct.y1,ct.cx+ct.x1),h),K>0&&r.arc(f+ct.cx,c+ct.cy,K,Ve(ct.y1,ct.x1),Ve(ct.y0,ct.x0),!h))}else r.lineTo(f+B,c+N),r.arc(f,c,a,u,l,h)}r.closePath()}}}var NF=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}(),ir=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new NF},t.prototype.buildPath=function(e,n){OF(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Pt);ir.prototype.type="sector";var BF=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),ff=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new BF},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,o,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,o,!0)},t}(Pt);ff.prototype.type="ring";function VF(r,t,e,n){var a=[],i=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=r.length;h=2){if(n){var i=VF(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;sRi[1]){if(s=!1,i)return s;var f=Math.abs(Ri[0]-Pi[1]),c=Math.abs(Pi[0]-Ri[1]);Math.min(f,c)>a.len()&&(f0){var c=f.duration,h=f.delay,v=f.easing,p={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,p):t.animateTo(e,p)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function Ht(r,t,e,n,a,i){q0("update",r,t,e,n,a,i)}function ie(r,t,e,n,a,i){q0("enter",r,t,e,n,a,i)}function bs(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Gx(r){return!r.isGroup}function QF(r){return r.shape!=null}function vf(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Gx(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return QF(o)&&(s.shape=H({},o.shape)),s}var i=n(r);t.traverse(function(o){if(Gx(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Ht(o,l,e,_t(o).dataIndex)}}})}function wL(r,t){return X(r,function(e){var n=e[0];n=Ah(n,t.x),n=Dh(n,t.x+t.width);var a=e[1];return a=Ah(a,t.y),a=Dh(a,t.y+t.height),[n,a]})}function JF(r,t){var e=Ah(r.x,t.x),n=Dh(r.x+r.width,t.x+t.width),a=Ah(r.y,t.y),i=Dh(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function pf(r,t,e){var n=H({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),dt(a,e),new Pe(n)):Nv(r.replace("path://",""),n,e,"center")}function Wl(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=od(v,p,f,c)/h;return!(g<0||g>1)}function od(r,t,e,n){return r*n-e*t}function tG(r){return r<=1e-6&&r>=-1e-6}function Zs(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=nt(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&D(Ot(l),function(f){st(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=_t(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:dt({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Hx(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function vi(r,t){if(r)if(W(r))for(var e=0;e=0&&s.push(l)}),s}}function pi(r,t){return Dt(Dt({},r,!0),t,!0)}const hG={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:". "}}}},vG={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 Ih="ZH",Q0="EN",ws=Q0,Qc={},J0={},LL=Rt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ws).toUpperCase();return r.indexOf(Ih)>-1?Ih:ws}():ws;function PL(r,t){r=r.toUpperCase(),J0[r]=new Ut(t),Qc[r]=t}function pG(r){if(nt(r)){var t=Qc[r.toUpperCase()]||{};return r===Ih||r===Q0?yt(t):Dt(yt(t),yt(Qc[ws]),!1)}else return Dt(yt(r),yt(Qc[ws]),!1)}function $y(r){return J0[r]}function dG(){return J0[ws]}PL(Q0,hG);PL(Ih,vG);var t_=1e3,e_=t_*60,vu=e_*60,Gr=vu*24,Xx=Gr*365,Ul={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}"},Qf="{yyyy}-{MM}-{dd}",Zx={year:"{yyyy}",month:"{yyyy}-{MM}",day:Qf,hour:Qf+" "+Ul.hour,minute:Qf+" "+Ul.minute,second:Qf+" "+Ul.second,millisecond:Ul.none},ud=["year","month","day","hour","minute","second","millisecond"],RL=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Aa(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ts(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 gG(r){return r===Ts(r)}function yG(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function zv(r,t,e,n){var a=Hn(r),i=a[r_(e)](),o=a[Cs(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Fv(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[Bu(e)](),c=(f-1)%12+1,h=a[Gv(e)](),v=a[Hv(e)](),p=a[Wv(e)](),d=f>=12?"pm":"am",g=d.toUpperCase(),y=n instanceof Ut?n:$y(n||LL)||dG(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Aa(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Aa(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Aa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Aa(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Aa(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Aa(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Aa(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Aa(p,3)).replace(/{S}/g,p+"")}function mG(r,t,e,n,a){var i=null;if(nt(e))i=e;else if(vt(e))i=e(r.value,t,{level:r.level});else{var o=H({},Ul);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(W(i)){var c=r.level==null?0:r.level>=0?r.level:i.length+r.level;c=Math.min(c,i.length-1),i=i[c]}}return zv(new Date(r.value),i,a,n)}function EL(r,t){var e=Hn(r),n=e[Cs(t)]()+1,a=e[Fv(t)](),i=e[Bu(t)](),o=e[Gv(t)](),s=e[Hv(t)](),l=e[Wv(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,p=v&&n===1;return p?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function qx(r,t,e){var n=Gt(r)?Hn(r):r;switch(t=t||EL(r,e),t){case"year":return n[r_(e)]();case"half-year":return n[Cs(e)]()>=6?1:0;case"quarter":return Math.floor((n[Cs(e)]()+1)/4);case"month":return n[Cs(e)]();case"day":return n[Fv(e)]();case"half-day":return n[Bu(e)]()/24;case"hour":return n[Bu(e)]();case"minute":return n[Gv(e)]();case"second":return n[Hv(e)]();case"millisecond":return n[Wv(e)]()}}function r_(r){return r?"getUTCFullYear":"getFullYear"}function Cs(r){return r?"getUTCMonth":"getMonth"}function Fv(r){return r?"getUTCDate":"getDate"}function Bu(r){return r?"getUTCHours":"getHours"}function Gv(r){return r?"getUTCMinutes":"getMinutes"}function Hv(r){return r?"getUTCSeconds":"getSeconds"}function Wv(r){return r?"getUTCMilliseconds":"getMilliseconds"}function _G(r){return r?"setUTCFullYear":"setFullYear"}function kL(r){return r?"setUTCMonth":"setMonth"}function OL(r){return r?"setUTCDate":"setDate"}function NL(r){return r?"setUTCHours":"setHours"}function BL(r){return r?"setUTCMinutes":"setMinutes"}function VL(r){return r?"setUTCSeconds":"setSeconds"}function zL(r){return r?"setUTCMilliseconds":"setMilliseconds"}function FL(r){if(!OI(r))return nt(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function GL(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 js=I0;function Yy(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&an(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Hn(r):r;if(isNaN(+l)){if(s)return"-"}else return zv(l,n,e)}if(t==="ordinal")return fy(r)?a(r):Gt(r)&&i(r)?r+"":"-";var u=ca(r);return i(u)?FL(u):fy(r)?a(r):typeof r=="boolean"?r+"":"-"}var Kx=["a","b","c","d","e","f","g"],fd=function(r,t){return"{"+r+(t??"")+"}"};function HL(r,t,e){W(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function To(r,t){return t=t||"transparent",nt(r)?r:gt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Lh(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Jc=D,WL=["left","right","top","bottom","width","height"],eo=[["width","left","right"],["height","top","bottom"]];function n_(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,p;if(r==="horizontal"){var d=f.width+(h?-h.x+f.x:0);v=i+d,v>n||l.newline?(i=0,v=d,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);p=o+g,p>a||l.newline?(i+=s+e,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=p+e)})}var po=n_;bt(n_,"vertical");bt(n_,"horizontal");function bG(r,t,e){var n=t.width,a=t.height,i=et(r.left,n),o=et(r.top,a),s=et(r.right,n),l=et(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=a),e=js(e||0),{width:Math.max(s-i-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function xe(r,t,e){e=js(e||0);var n=t.width,a=t.height,i=et(r.left,n),o=et(r.top,a),s=et(r.right,n),l=et(r.bottom,a),u=et(r.width,n),f=et(r.height,a),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var p=new Mt(i+e[3],o+e[0],u,f);return p.margin=e,p}function Uv(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Mt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=xe(dt({width:u.width,height:u.height},t),e,n),h=o?c.x-u.x:0,v=s?c.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function wG(r,t){return r[eo[t][0]]!=null||r[eo[t][1]]!=null&&r[eo[t][2]]!=null}function Vu(r){var t=r.layoutMode||r.constructor.layoutMode;return gt(t)?t:t?{type:t}:null}function oi(r,t,e){var n=e&&e.ignoreSize;!W(n)&&(n=[n,n]);var a=o(eo[0],0),i=o(eo[1],1);u(eo[0],r,a),u(eo[1],r,i);function o(f,c){var h={},v=0,p={},d=0,g=2;if(Jc(f,function(_){p[_]=r[_]}),Jc(f,function(_){s(t,_)&&(h[_]=p[_]=t[_]),l(h,_)&&v++,l(p,_)&&d++}),n[c])return l(t,f[1])?p[f[2]]=null:l(t,f[2])&&(p[f[1]]=null),p;if(d===g||!v)return p;if(v>=g)return h;for(var y=0;y=0;l--)s=Dt(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return lf(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Ut);$I(kt,Ut);Mv(kt);fG(kt);cG(kt,CG);function CG(r){var t=[];return D(kt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=X(t,function(e){return Pn(e).main}),r!=="dataset"&&It(t,"dataset")<=0&&t.unshift("dataset"),t}var $L="";typeof navigator<"u"&&($L=navigator.platform||"");var Uo="rgba(0, 0, 0, 0.2)";const AG={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Uo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Uo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Uo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Uo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Uo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Uo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$L.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 YL=ut(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Zr="original",Ye="arrayRows",qr="objectRows",Un="keyedColumns",Qa="typedArray",XL="unknown",Bn="column",Js="row",Re={Must:1,Might:2,Not:3},ZL=zt();function DG(r){ZL(r).datasetMap=ut()}function qL(r,t,e){var n={},a=i_(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=ZL(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),D(r,function(d,g){var y=gt(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,c=p(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});D(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=h.valueWayDim;v(n[y],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===g)v(n[y],0,m),v(i,0,m);else{var _=h.categoryWayDim;v(n[y],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(d,g,y){for(var m=0;mt)return r[n];return r[e-1]}function QL(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:RG(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function EG(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Jf,yl,Qx,Jx="\0_ec_inner",kG=1,s_=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ut(i),this._locale=new Ut(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=rb(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,rb(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Qx(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&D(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ut(),u=n&&n.replaceMergeMainTypeMap;DG(this),D(e,function(c,h){c!=null&&(kt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?yt(c):Dt(a[h],c,!0))}),u&&u.each(function(c,h){kt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),kt.topologicalTravel(s,kt.getAllClassMainTypes(),f,this);function f(c){var h=LG(this,c,qt(e[c])),v=i.get(c),p=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=FI(v,h,p);i5(d,c,kt),a[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;D(d,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",C=kt.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var A=H({componentIndex:b},S.keyInfo);x=new C(w,this,this,A),H(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),a[c]=g,i.set(c,y),o.set(c,m),c==="series"&&Jf(this)}this._seriesIndices||Jf(this)},t.prototype.getOption=function(){var e=yt(this.option);return D(e,function(n,a){if(kt.hasClass(a)){for(var i=qt(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Eu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[Jx],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function WG(r,t){return r.join(",")===t.join(",")}var jr=D,zu=gt,nb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hd(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=nb.length;e=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,v)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=Zz(h,m),d=m;break}}}return n[0]=h,n[1]=d,n})})}var $v=function(){function r(t){this.data=t.data||(t.sourceFormat===Un?{}:[]),this.sourceFormat=t.sourceFormat||XL,this.seriesLayoutBy=t.seriesLayoutBy||Bn,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;nd&&(d=_)}v[0]=p,v[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};fb=(t={},t[Ye+"_"+Bn]={pure:!0,appendData:i},t[Ye+"_"+Js]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[qr]={pure:!0,appendData:i},t[Un]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Zr]={appendData:i},t[Qa]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return Es(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function pb(r){var t,e;return gt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function pu(r){return new o3(r)}var o3=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=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,p=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},l3=function(){function r(t,e){if(!Gt(e)){var n="";Wt(n)}this._opFn=u2[t],this._rvalFloat=ca(e)}return r.prototype.evaluate=function(t){return Gt(t)?this._opFn(t,this._rvalFloat):this._opFn(ca(t),this._rvalFloat)},r}(),f2=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=Gt(t)?t:ca(t),a=Gt(e)?e:ca(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=nt(t),l=nt(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),u3=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ca(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=ca(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function f3(r,t){return r==="eq"||r==="ne"?new u3(r==="eq",t):st(u2,r)?new l3(r,t):null}var c3=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 Ja(t,e)},r}();function h3(r,t){var e=new c3,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Bn&&Wt(o);var s=[],l={},u=r.dimensionsDefine;if(u)D(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";st(l,y)&&Wt(_),l[y]=m}});else for(var f=0;f65535?S3:x3}function $o(){return[1/0,-1/0]}function b3(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function yb(r,t,e,n,a){var i=v2[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=X(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=p,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=c&&m<=h||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],y=0;y=c&&m<=h||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(i===1)for(var y=0;y=c&&m<=h||isNaN(m))&&(l[u++]=w)}else for(var y=0;yt[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(_l(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var p=1;pf&&(f=c,h=S)}M>0&&Mf-p&&(l=f-p,s.length=l);for(var d=0;dc[1]&&(c[1]=y),h[v++]=m}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return Ja(e[i],this._dimensions[i])}dd={arrayRows:t,objectRows:function(e,n,a,i){return Ja(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return Ja(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),p2=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(tc(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=pr(s)?Qa:Zr,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=St(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=St(c.sourceHeader,h.sourceHeader),d=St(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||d;a=g?[qy(s,{seriesLayoutBy:v,sourceHeader:p,dimensions:d},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[qy(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&_b(i)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&_b(c),s.push(f),l.push(u._getVersionSign())}),n?o=m3(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[JG(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return D(r.blocks,function(a){var i=m2(a);i>=t&&(t=i+ +(n&&(!i||jy(a)&&!a.noHeader)))}),t}return 0}function C3(r,t,e,n){var a=t.noHeader,i=D3(m2(t)),o=[],s=t.blocks||[];nr(!s||W(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(st(u,l)){var f=new f2(u[l],null);s.sort(function(p,d){return f.evaluate(p.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,d){var g=t.valueFormatter,y=y2(p)(g?H(H({},r),{valueFormatter:g}):r,p,d>0?i.html:0,n);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(i.richText):Qy(o.join(""),a?e:i.html);if(a)return c;var h=Yy(t.header,"ordinal",r.useUTC),v=g2(n,r.renderMode).nameStyle;return r.renderMode==="richText"?_2(r,h,v)+i.richText+c:Qy('
'+fr(h)+"
"+c,e)}function A3(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=W(S)?S:[S],X(S,function(b,x){return Yy(b,W(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Yy(l,"ordinal",u),v=t.valueType,p=o?[]:f(t.value,t.dataIndex),d=!s||!i,g=!s&&i,y=g2(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":_2(r,h,m))+(o?"":L3(r,p,d,g,_)):Qy((s?"":c)+(i?"":M3(h,!s,m))+(o?"":I3(p,d,g,_)),e)}}function Sb(r,t,e,n,a,i){if(r){var o=y2(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function D3(r){return{html:w3[r],richText:T3[r]}}function Qy(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function M3(r,t,e){var n=t?"margin-left:2px":"";return''+fr(r)+""}function I3(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=W(r)?r:[r],''+X(r,function(o){return fr(o)}).join("  ")+""}function _2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function L3(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(W(t)?t.join(" "):t,i)}function S2(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return To(n)}function x2(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var gd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=NI()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=xG({color:e,type:t,renderMode:n,markerId:a});return nt(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};W(e)?D(e,function(i){return H(n,i)}):H(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function b2(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=W(s),u=S2(t,e),f,c,h,v;if(o>1||l&&!o){var p=P3(s,t,e,i,u);f=p.inlineValues,c=p.inlineValueTypes,h=p.blocks,v=p.inlineValues[0]}else if(o){var d=a.getDimensionInfo(i[0]);v=f=Es(a,e,i[0]),c=d.type}else v=f=l?s[0]:s;var g=B0(t),y=g&&t.name||"",m=a.getName(e),_=n?y:m;return Me("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[Me("nameValue",{markerType:"item",markerColor:u,name:_,noName:!an(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function P3(r,t,e,n,a){var i=t.getData(),o=zn(r,function(c,h,v){var p=i.getDimensionInfo(v);return c=c||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(c){f(Es(i,e,c),c)}):D(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Me("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Da=zt();function ec(r,t){return r.getName(t)||r.getId(t)}var th="__universalTransitionEnabled",ae=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=pu({count:E3,reset:k3}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=Da(this).sourceManager=new p2(this);i.prepareSource();var o=this.getInitialData(e,a);bb(o,this),this.dataTask.context.data=o,Da(this).dataBeforeProcessed=o,xb(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Vu(this),i=a?Qs(e):{},o=this.subType;kt.hasClass(o)&&(o+="Series"),Dt(e,n.getTheme().get(this.subType)),Dt(e,this.getDefaultOption()),So(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&oi(e,i,a)},t.prototype.mergeOption=function(e,n){e=Dt(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Vu(this);a&&oi(this.option,e,a);var i=Da(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);bb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Da(this).dataBeforeProcessed=o,xb(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!pr(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=o_.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[ec(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[th])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){gt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return kt.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}(kt);me(ae,Yv);me(ae,o_);$I(ae,kt);function xb(r){var t=r.name;B0(r)||(r.name=R3(r)||t)}function R3(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return D(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function E3(r){return r.model.getRawData().count()}function k3(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),O3}function O3(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function bb(r,t){D(ph(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(N3,t))})}function N3(r,t){var e=Jy(r);return e&&e.setOutputEnd((t||this).count()),t}function Jy(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var ue=function(){function r(){this.group=new mt,this.uid=Ks("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();z0(ue);Mv(ue);function tl(){var r=zt();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var w2=zt(),B3=tl(),Kt=function(){function r(){this.group=new mt,this.uid=Ks("viewChart"),this.renderTask=pu({plan:V3,reset:z3}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Tb(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Tb(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){vi(this.group,t)},r.markUpdateMethod=function(t,e){w2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function wb(r,t,e){r&&Ou(r)&&(t==="emphasis"?ha:va)(r,e)}function Tb(r,t,e){var n=xo(r,t),a=t&&t.highlightKey!=null?xF(t.highlightKey):null;n!=null?D(qt(n),function(i){wb(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){wb(i,e,a)})}z0(Kt);Mv(Kt);function V3(r){return B3(r.model)}function z3(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&w2(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),F3[l]}var F3={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)}}},Ph="\0__throttleOriginMethod",Cb="\0__throttleRate",Ab="\0__throttleType";function h_(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],p=0;p=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function el(r,t,e,n){var a=r[t];if(a){var i=a[Ph]||a,o=a[Ab],s=a[Cb];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=h_(i,e,n==="debounce"),a[Ph]=i,a[Ab]=n,a[Cb]=e}return a}}function Fu(r,t){var e=r[t];e&&e[Ph]&&(e.clear&&e.clear(),r[t]=e[Ph])}var Db=zt(),Mb={itemStyle:bo(IL,!0),lineStyle:bo(ML,!0)},G3={lineStyle:"stroke",itemStyle:"fill"};function T2(r,t){var e=r.visualStyleMapper||Mb[t];return e||(console.warn("Unknown style type '"+t+"'."),Mb.itemStyle)}function C2(r,t){var e=r.visualDrawType||G3[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var H3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=T2(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=C2(r,n),u=o[l],f=vt(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||vt(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||vt(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,p){var d=r.getDataParams(p),g=H({},o);g[l]=f(d),v.setItemVisual(p,"style",g)}}}},Sl=new Ut,W3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=T2(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Sl.option=l[n];var u=a(Sl),f=o.ensureUniqueItemVisual(s,"style");H(f,u),Sl.option.decal&&(o.setItemVisual(s,"decal",Sl.option.decal),Sl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},U3={performRawSeries:!0,overallReset:function(r){var t=ut();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Db(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Db(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=C2(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",p=n.count();h[l]=e.getColorFromPalette(v,o,p)}})}})}},rc=Math.PI;function $3(r,t){t=t||{},dt(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 mt,n=new Vt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Ft({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Vt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Ov({shape:{startAngle:-rc/2,endAngle:-rc/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:rc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:rc*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var A2=function(){function r(t,e,n,a){this._stageTaskMap=ut(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ut();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;D(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";nr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;D(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,p=h.agentStubMap;p.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var d=o.getPerformArgs(h,a.block);p.each(function(g){g.perform(d)}),h.perform(d)&&(i=!0)}else c&&c.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=ut(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||pu({plan:K3,reset:j3,count:J3}));v.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||pu({reset:Y3});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ut(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";nr(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,p):f?f(n,a).each(p):(c=!1,D(n.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(h=!0,pu({reset:X3,onDirty:q3})));y.context={model:d,overallProgress:c},y.agent=o,y.__block=c,i._pipe(d,y)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return vt(t)&&(t={overallReset:t,seriesType:tH(t)}),t.uid=Ks("stageHandler"),e&&(t.visualType=e),t},r}();function Y3(r){r.overallReset(r.ecModel,r.api,r.payload)}function X3(r){return r.overallProgress&&Z3}function Z3(){this.agent.dirty(),this.getDownstream().dirty()}function q3(){this.agent&&this.agent.dirty()}function K3(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function j3(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?X(t,function(e,n){return D2(n)}):Q3}var Q3=D2(0);function D2(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var p=u.slice(0,v);p!=="data"&&(e.mainType=p,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(c,h,v,p){return c[v]==null||h[p||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),tm=["symbol","symbolSize","symbolRotate","symbolOffset"],Rb=tm.concat(["symbolKeepAspect"]),nH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o=0&&no(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function em(r,t,e){for(var n=t.type==="radial"?mH(r,t,e):yH(r,t,e),a=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Gt(r)?[r]:W(r)?r:null}function p_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&SH(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=X(e,function(i){return i/a}),n/=a)}return[e,n]}var xH=new Wn(!0);function kh(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Eb(r){return typeof r=="string"&&r!=="none"}function Oh(r){var t=r.fill;return t!=null&&t!=="none"}function kb(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 Ob(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 rm(r,t,e){var n=F0(t.image,t.__image,e);if(Iv(n)){var a=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Gc),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function bH(r,t,e,n){var a,i=kh(e),o=Oh(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||xH,c=t.__dirty;if(!n){var h=e.fill,v=e.stroke,p=o&&!!h.colorStops,d=i&&!!v.colorStops,g=o&&!!h.image,y=i&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(p||d)&&(x=t.getBoundingRect()),p&&(m=c?em(r,h,x):t.__canvasFillGradient,t.__canvasFillGradient=m),d&&(_=c?em(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?rm(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=c||!t.__canvasStrokePattern?rm(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(a=p_(t),T=a[0],C=a[1]);var A=!0;(u||c&os)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(e.strokeFirst?(i&&Ob(r,e),o&&kb(r,e)):(o&&kb(r,e),i&&Ob(r,e))),T&&r.setLineDash([])}function wH(r,t,e){var n=t.__image=F0(e.image,t.__image,t,t.onload);if(!(!n||!Iv(n))){var a=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,a,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,c=o-u,h=s-f;r.drawImage(n,u,f,c,h,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function TH(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||ri,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=p_(t),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(kh(e)&&r.strokeText(a,e.x,e.y),Oh(e)&&r.fillText(a,e.x,e.y)):(Oh(e)&&r.fillText(a,e.x,e.y),kh(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var Nb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Bb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function E2(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){vr(r,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?fo.opacity:o}(n||t.blend!==e.blend)&&(i||(vr(r,a),i=!0),r.globalCompositeOperation=t.blend||fo.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[ze]){if(this._disposed){this.id;return}var i,o,s;if(gt(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ze]=!0,!this._model||n){var l=new zG(this._api),u=this._theme,f=this._model=new s_;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},am);var c={seriesTransition:s,optionChanged:!0};if(a)this[ur]={silent:i,updateParams:c},this[ze]=!1,this.getZr().wakeUp();else{try{Xo(this),Ma.update.call(this,null,c)}catch(h){throw this[ur]=null,this[ze]=!1,h}this._ssr||this._zr.flush(),this[ur]=null,this[ze]=!1,xl.call(this,i),bl.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Rt.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(Rt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return D(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;D(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return D(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Qb[a]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();D(gu,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(yt(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var p=f-l,d=c-u,g=ni.createCanvas(),y=rx(g,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:d}),n){var m="";return D(h,function(_){var S=_.left-l,b=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Vt({shape:{x:0,y:0,width:p,height:d},style:{fill:e.connectedBackgroundColor}})),D(h,function(_){var S=new Pe({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return xd(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return xd(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=uu(a,e);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=uu(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?v_(s,l,n):gf(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;D(qH,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&ro(s,function(p){var d=_t(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=H({},d.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),D(du,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),D(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),iH(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&&HI(this.getDom(),y_,"");var n=this,a=n._api,i=n._model;D(n._componentsViews,function(o){o.dispose(i,a)}),D(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete gu[n.id]},t.prototype.resize=function(e){if(!this[ze]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[ur]&&(i==null&&(i=this[ur].silent),a=!0,this[ur]=null),this[ze]=!0;try{a&&Xo(this),Ma.update.call(this,{type:"resize",animation:H({duration:0},e&&e.animation)})}catch(o){throw this[ze]=!1,o}this[ze]=!1,xl.call(this,i),bl.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(gt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!im[e]){var a=im[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=H({},e);return n.type=du[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(gt(n)||(n={silent:!!n}),!!Nh[e.type]&&this._model){if(this[ze]){this._pendingActions.push(e);return}var a=n.silent;wd.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&Rt.browser.weChat&&this._throttledZrFlush(),xl.call(this,a),bl.call(this,a)}},t.prototype.updateLabelLayout=function(){en.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Xo=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Sd(c,!0),Sd(c,!1),h.plan()},Sd=function(c,h){for(var v=c._model,p=c._scheduler,d=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_h.get("hoverLayerThreshold")&&!Rt.node&&!Rt.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(p){p.isGroup||(p.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,p=c.get("zlevel")||0;h.eachRendered(function(d){return l(d,v,p,-1/0),!0})}}function l(c,h,v,p){var d=c.getTextContent(),g=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),_=0;_0?{duration:d,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(bs(y))return;if(y instanceof Pt&&bF(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}Kb=function(c){return new(function(h){V(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);p=p.parent}},v.prototype.enterEmphasis=function(p,d){ha(p,d),Ir(c)},v.prototype.leaveEmphasis=function(p,d){va(p,d),Ir(c)},v.prototype.enterBlur=function(p){iL(p),Ir(c)},v.prototype.leaveBlur=function(p){$0(p),Ir(c)},v.prototype.enterSelect=function(p){oL(p),Ir(c)},v.prototype.leaveSelect=function(p){sL(p),Ir(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(p){return c.getViewOfComponentModel(p)},v.prototype.getViewOfSeriesModel=function(p){return c.getViewOfSeriesModel(p)},v}(JL))(c)},Z2=function(c){function h(v,p){for(var d=0;d=0)){Jb.push(e);var i=A2.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function tP(r,t){im[r]=t}function r4(r,t,e){var n=kH("registerMap");n&&n(r,t,e)}var n4=y3;Ro(d_,H3);Ro(Zv,W3);Ro(Zv,U3);Ro(d_,nH);Ro(Zv,aH);Ro(H2,RH);Q2(e2);J2(BH,jG);tP("default",$3);$n({type:co,event:co,update:co},pe);$n({type:qc,event:qc,update:qc},pe);$n({type:fu,event:fu,update:fu},pe);$n({type:Kc,event:Kc,update:Kc},pe);$n({type:cu,event:cu,update:cu},pe);j2("light",eH);j2("dark",L2);var tw=[],a4={registerPreprocessor:Q2,registerProcessor:J2,registerPostInit:QH,registerPostUpdate:JH,registerUpdateLifecycle:m_,registerAction:$n,registerCoordinateSystem:t4,registerLayout:e4,registerVisual:Ro,registerTransform:n4,registerLoading:tP,registerMap:r4,registerImpl:EH,PRIORITY:YH,ComponentModel:kt,ComponentView:ue,SeriesModel:ae,ChartView:Kt,registerComponentModel:function(r){kt.registerClass(r)},registerComponentView:function(r){ue.registerClass(r)},registerSeriesModel:function(r){ae.registerClass(r)},registerChartView:function(r){Kt.registerClass(r)},registerSubTypeDefaulter:function(r,t){kt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){Hz(r,t)}};function Lt(r){if(W(r)){D(r,function(t){Lt(t)});return}It(tw,r)>=0||(tw.push(r),vt(r)&&(r={install:r}),r.install(a4))}function wl(r){return r==null?0:r.length||1}function ew(r){return r}var pa=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||ew,this._newKeyGetter=a||ew,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var v=0;v1)for(var s=0;s30}var Tl=gt,Ia=X,f4=typeof Int32Array>"u"?Array:Int32Array,c4="e\0\0",rw=-1,h4=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],v4=["_approximateExtent"],nw,lc,Cl,Al,Ad,uc,Dd,er=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;rP(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Zr;if(l&&!a.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),W(i)?i=i.slice():Tl(i)&&(i=H({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Tl(e)?H(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Tl(t)?H(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?H(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;By(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){D(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Ia(this.dimensions,this._getDimInfo,this),this.hostModel)),Ad(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];vt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(M0(arguments)))})},r.internalField=function(){nw=function(t){var e=t._invertedIndicesMap;D(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new f4(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),a[e]=l}}}(),r}();function yf(r,t){l_(r)||(r=u_(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=ut(),i=[],o=d4(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&iP(o),l=n===r.dimensionsDefine,u=l?aP(r):nP(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=ut(f),h=new h2(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function d4(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return D(t,function(i){var o;gt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function g4(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 y4=function(){function r(t){this.coordSysDims=[],this.axisMap=ut(),this.categoryAxisMap=ut(),this.coordSysName=t}return r}();function m4(r){var t=r.get("coordinateSystem"),e=new y4(t),n=_4[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var _4={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",ge).models[0],i=r.getReferringComponents("yAxis",ge).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),Zo(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Zo(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",ge).models[0];t.coordSysDims=["single"],e.set("single",a),Zo(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",ge).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Zo(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Zo(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();D(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Zo(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Zo(r){return r.get("type")==="category"}function S4(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;x4(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(D(i,function(m,_){nt(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,p=f.type,d=0;D(i,function(m){m.coordDim===v&&d++});var g={name:c,coordDim:v,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,p),y.storeDimIndex=s.ensureCalculationDimension(c,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function x4(r){return!rP(r.schema)}function si(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function oP(r,t){return si(r,t)?r.getCalculationInfo("stackResultDimension"):t}function b4(r,t){var e=r.get("coordinateSystem"),n=df.get(e),a;return t&&t.coordSysDims&&(a=X(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Vh(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function w4(r,t,e){var n,a;return e&&D(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function xa(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=u_(r)):(a=n.getSource(),i=a.sourceFormat===Zr);var o=m4(t),s=b4(t,o),l=e.useEncodeDefaulter,u=vt(l)?l:l?bt(qL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=yf(a,f),h=w4(c.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),p=S4(t,{schema:c,store:v}),d=new er(c,t);d.setCalculationInfo(p);var g=h!=null&&T4(a)?function(y,m,_,S){return S===h?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(i?a:v,null,g),d}function T4(r){if(r.sourceFormat===Zr){var t=C4(r.data||[]);return!W($s(t))}}function C4(r){for(var t=0;te[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}();Mv(Yn);var A4=0,om=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++A4}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&X(n,D4);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!nt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ut(this.categories))},r}();function D4(r){return gt(r)&&r.value!=null?r.value:r+""}function sm(r){return r.type==="interval"||r.type==="log"}function M4(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=kI(i/t);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=sP(o),l=a.niceTickExtent=[he(Math.ceil(r[0]/o)*o,s),he(Math.floor(r[1]/o)*o,s)];return I4(l,r),a}function Md(r){var t=Math.pow(10,N0(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,he(e*t)}function sP(r){return Ln(r)+2}function aw(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function I4(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),aw(r,0,t),aw(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function qv(r,t){return r>=t[0]&&r<=t[1]}function Kv(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function jv(r,t){return r*(t[1]-t[0])+t[0]}var Qv=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new om({})),W(a)&&(a=new om({categories:X(a,function(i){return gt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:nt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),qv(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Kv(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(jv(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Yn);Yn.registerClass(Qv);var Ni=he,da=function(r){V(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 qv(e,this._extent)},t.prototype.normalize=function(e){return Kv(e,this._extent)},t.prototype.scale=function(e){return jv(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[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=sP(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(e?s.push({value:Ni(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function fP(r){var t=R4(r),e=[];return D(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var p=et(n.get("barWidth"),s),d=et(n.get("barMaxWidth"),s),g=et(n.get("barMinWidth")||(dP(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:x_(i),stackId:S_(n)})}),cP(e)}function cP(r){var t={};D(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var e={};return D(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ot(i).length;s=Math.max(35-l*4,15)+"%"}var u=et(s,o),f=et(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),D(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,c-=S+f*S,h--}else{var S=v;m&&mS&&(S=_),S!==v&&(y.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var p=0,d;D(i,function(y,m){y.width||(y.width=v),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;D(i,function(y,m){e[a][m]=e[a][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function E4(r,t,e){if(r&&t){var n=r[x_(t)];return n!=null&&e!=null?n[S_(e)]:n}}function hP(r,t){var e=uP(r,t),n=fP(e);D(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=S_(a),u=n[x_(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function vP(r){return{seriesType:r,plan:tl(),reset:function(t){if(pP(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=si(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=k4(a,i),p=dP(t),d=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=p&&Rn(b*3),w=p&&l&&Rn(b*3),T=p&&Rn(b),C=n.master.getRect(),A=h?C.width:C.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(c?g:o,M),R=I.get(s,M),O=v,B=void 0;c&&(B=+P-I.get(o,M));var N=void 0,F=void 0,U=void 0,Z=void 0;if(h){var Q=n.dataToPoint([P,R]);if(c){var ft=n.dataToPoint([B,R]);O=ft[0]}N=O,F=Q[1]+m,U=Q[0]-O,Z=y,Math.abs(U)0?e:1:e))}var O4=function(r,t,e,n){for(;e>>1;r[a][1]a&&(this._approxInterval=a);var s=fc.length,l=Math.min(O4(fc,this._approxInterval,0,s),s-1);this._interval=fc[l][1],this._minLevelUnit=fc[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Gt(e)?e:+Hn(e)},t.prototype.contain=function(e){return qv(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Kv(this.parse(e),this._extent)},t.prototype.scale=function(e){return jv(e,this._extent)},t.type="time",t}(da),fc=[["second",t_],["minute",e_],["hour",vu],["quarter-day",vu*6],["half-day",vu*12],["day",Gr*1.2],["half-week",Gr*3.5],["week",Gr*7],["month",Gr*31],["quarter",Gr*95],["half-year",Xx/2],["year",Xx]];function N4(r,t,e,n){var a=Hn(t),i=Hn(e),o=function(p){return qx(a,p,n)===qx(i,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function B4(r,t){return r/=Gr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function V4(r){var t=30*Gr;return r/=t,r>6?6:r>3?3:r>2?2:1}function z4(r){return r/=vu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function iw(r,t){return r/=t?e_:t_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function F4(r){return kI(r)}function G4(r,t,e){var n=new Date(r);switch(Ts(t)){case"year":case"month":n[kL(e)](0);case"day":n[OL(e)](1);case"hour":n[NL(e)](0);case"minute":n[BL(e)](0);case"second":n[VL(e)](0),n[zL(e)](0)}return n.getTime()}function H4(r,t,e,n){var a=1e4,i=RL,o=0;function s(A,M,I,L,P,R,O){for(var B=new Date(M),N=M,F=B[L]();N1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R=n[0]&&m<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(g),c>_||r===i[v]))break}f=[]}}}for(var S=Zt(X(u,function(A){return Zt(A,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(A){return A.length>0}),b=[],x=S.length-1,v=0;v0;)i*=10;var s=[he($4(n[0]/i)*i),he(U4(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){yu.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=Qr(e)/Qr(this.base),qv(e,this._extent)},t.prototype.normalize=function(e){return e=Qr(e)/Qr(this.base),Kv(e,this._extent)},t.prototype.scale=function(e){return e=jv(e,this._extent),cc(this.base,e)},t.type="log",t}(Yn),gP=w_.prototype;gP.getMinorTicks=yu.getMinorTicks;gP.getLabel=yu.getLabel;function hc(r,t){return W4(r,Ln(t))}Yn.registerClass(w_);var Y4=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[Z4[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=X4[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),X4={min:"_determinedMin",max:"_determinedMax"},Z4={min:"_dataMin",max:"_dataMax"};function yP(r,t,e){var n=r.rawExtentInfo;return n||(n=new Y4(r,t,e),r.rawExtentInfo=n,n)}function vc(r,t){return t==null?null:Mu(t)?NaN:r.parse(t)}function mP(r,t){var e=r.type,n=yP(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=uP("bar",o),l=!1;if(D(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=fP(s),f=q4(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function q4(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=E4(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;D(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;D(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,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Os(r,t){var e=t,n=mP(r,e),a=n.extent,i=e.get("splitNumber");r instanceof w_&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Jv(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Qv({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new b_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Yn.getClass(t)||da)}}function K4(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function nl(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):nt(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):vt(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(T_(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function T_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function j4(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof Qv?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=nl(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;fr[1]&&(r[1]=a[1])})}var mf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),tW=1e-8;function sw(r,t){return Math.abs(r-t)a&&(n=o,a=l)}if(n)return rW(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 a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?lw(s.exterior,a,i,e):D(s.points,function(l){lw(l,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Mt(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/e,l/e])}return n}function iW(r,t){return r=aW(r),X(Zt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new uw(o[0],o.slice(1)));break;case"MultiPolygon":D(a.coordinates,function(l){l[0]&&i.push(new uw(l[0],l.slice(1)))});break;case"LineString":i.push(new fw([a.coordinates]));break;case"MultiLineString":i.push(new fw(a.coordinates))}var s=new xP(n[t||"name"],i,n.cp);return s.properties=n,s})}var Wu=zt();function wP(r,t){var e=X(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 oW(r){var t=r.getLabelModel().get("customValues");if(t){var e=nl(r);return{labels:wP(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?lW(r):fW(r)}function sW(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:wP(r,e)}:r.type==="category"?uW(r,t):{ticks:X(r.scale.getTicks(),function(n){return n.value})}}function lW(r){var t=r.getLabelModel(),e=TP(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function TP(r,t){var e=CP(r,"labels"),n=C_(t),a=AP(e,n);if(a)return a;var i,o;return vt(n)?i=IP(r,n):(o=n==="auto"?cW(r):n,i=MP(r,o)),DP(e,n,{labels:i,labelCategoryInterval:o})}function uW(r,t){var e=CP(r,"ticks"),n=C_(t),a=AP(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),vt(n))i=IP(r,n,!0);else if(n==="auto"){var s=TP(r,r.getLabelModel());o=s.labelCategoryInterval,i=X(s.labels,function(l){return l.tickValue})}else o=n,i=MP(r,o,!0);return DP(e,n,{ticks:i,tickCategoryInterval:o})}function fW(r){var t=r.scale.getTicks(),e=nl(r);return{labels:X(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function CP(r,t){return Wu(r)[t]||(Wu(r)[t]=[])}function AP(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var p=0,d=0,g=sf(e({value:l}),t.font,"center","top");p=g.width*1.3,d=g.height*1.3,h=Math.max(h,p,7),v=Math.max(v,d,7)}var y=h/f,m=v/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Wu(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function vW(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 MP(r,t,e){var n=nl(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=_P(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);v&&p-l!==i[1]&&d(i[1]);function d(g){var y={value:g};s.push(e?g:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function IP(r,t,e){var n=r.scale,a=nl(r),i=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var cw=[0,1],pn=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return RI(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),hw(n,a.count())),Xt(t,cw,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),hw(n,a.count()));var i=Xt(t,n,cw,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=sW(this,e),a=n.ticks,i=X(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return pW(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=X(n,function(i){return X(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return oW(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return hW(this)},r}();function hw(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function pW(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;D(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,p){return v=he(v),p=he(p),c?v>p:va&&(a+=Dl);var v=Math.atan2(s,o);if(v<0&&(v+=Dl),v>=n&&v<=a||v+Dl>=n&&v+Dl<=a)return l[0]=f,l[1]=c,u-e;var p=e*Math.cos(n)+r,d=e*Math.sin(n)+t,g=e*Math.cos(a)+r,y=e*Math.sin(a)+t,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Fh(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,p=v/h;s&&(p=Math.min(Math.max(p,0),1)),p*=h;var d=o[0]=r+p*f,g=o[1]=t+p*c;return Math.sqrt((d-a)*(d-a)+(g-i)*(g-i))}function LP(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var rn=[];function mW(r,t,e){var n=LP(t.x,t.y,t.width,t.height,r.x,r.y,rn);return e.set(rn[0],rn[1]),n}function _W(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,on.fromArray(r[0]),re.fromArray(r[1]),ve.fromArray(r[2]),Ct.sub(En,on,re),Ct.sub(In,ve,re);var e=En.len(),n=In.len();if(!(e<.001||n<.001)){En.scale(1/e),In.scale(1/n);var a=En.dot(In),i=Math.cos(t);if(i1&&Ct.copy(Qe,ve),Qe.toArray(r[1])}}}}function SW(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,on.fromArray(r[0]),re.fromArray(r[1]),ve.fromArray(r[2]),Ct.sub(En,re,on),Ct.sub(In,ve,re);var n=En.len(),a=In.len();if(!(n<.001||a<.001)){En.scale(1/n),In.scale(1/a);var i=En.dot(t),o=Math.cos(e);if(i=l)Ct.copy(Qe,ve);else{Qe.scaleAndAdd(In,s/Math.tan(Math.PI/2-f));var c=ve.x!==re.x?(Qe.x-re.x)/(ve.x-re.x):(Qe.y-re.y)/(ve.y-re.y);if(isNaN(c))return;c<0?Ct.copy(Qe,re):c>1&&Ct.copy(Qe,ve)}Qe.toArray(r[1])}}}}function Pd(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function xW(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=Ga(n[0],n[1]),i=Ga(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=Wc([],n[1],n[0],o/a),l=Wc([],n[1],n[2],o/i),u=Wc([],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;f0&&i&&b(-f/o,0,o);var d=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=d.rect[t]-n,m=a-g.rect[t]-g.rect[e]}function S(T,C,A){if(T<0){var M=Math.min(C,-T);if(M>0){b(M*A,0,o);var I=M+T;I<0&&x(-I*A,1)}else x(-T*A,1)}}function b(T,C,A){T!==0&&(u=!0);for(var M=C;M0)for(var I=0;I0;I--){var O=A[I-1]*R;b(-O,I,o)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),M=0;M0?b(A,0,M+1):b(-A,o-M-1,o),T-=A,T<=0)return}return u}function bW(r,t,e,n){return EP(r,"x","width",t,e,n)}function kP(r,t,e,n){return EP(r,"y","height",t,e,n)}function OP(r){var t=[];r.sort(function(d,g){return g.priority-d.priority});var e=new Mt(0,0,0,0);function n(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),It(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Ht(n,u,e,l)}else if(n.attr(u),!qs(n).valueAnimation){var c=St(n.style.opacity,1);n.style.opacity=0,ie(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};pc(v,u,dc),pc(v,n.states.select,dc)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};pc(p,u,dc),pc(p,n.states.emphasis,dc)}DL(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=CW(a),o=i.oldLayout,d={points:a.shape.points};o?(a.attr({shape:o}),Ht(a,{shape:d},e)):(a.setShape(d),a.style.strokePercent=0,ie(a,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),Ed=zt();function DW(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Ed(e).labelManager;a||(a=Ed(e).labelManager=new AW),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Ed(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var kd=Math.sin,Od=Math.cos,NP=Math.PI,Vi=Math.PI*2,MW=180/NP,BP=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,a,i,o){this._add("C",t,e,n,a,i,o)},r.prototype.quadraticCurveTo=function(t,e,n,a){this._add("Q",t,e,n,a)},r.prototype.arc=function(t,e,n,a,i,o){this.ellipse(t,e,n,n,0,a,i,o)},r.prototype.ellipse=function(t,e,n,a,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),h=Ya(c-Vi)||(f?u>=Vi:-u>=Vi),v=u>0?u%Vi:u%Vi+Vi,p=!1;h?p=!0:Ya(c)?p=!1:p=v>=NP==!!f;var d=t+n*Od(o),g=e+a*kd(o);this._start&&this._add("M",d,g);var y=Math.round(i*MW);if(h){var m=1/this._p,_=(f?1:-1)*(Vi-m);this._add("A",n,a,y,1,+f,t+n*Od(o+_),e+a*kd(o+_)),m>.01&&this._add("A",n,a,y,0,+f,d,g)}else{var S=t+n*Od(s),b=e+a*kd(s);this._add("A",n,a,y,+p,+f,S,b)}},r.prototype.rect=function(t,e,n,a){this._add("M",t,e),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,a,i,o,s,l,u){for(var f=[],c=this._p,h=1;h"}function BW(r){return""}function I_(r,t){t=t||{};var e=t.newline?` -`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return NW(o,s)+(o!=="style"?fr(l):l||"")+(i?""+e+X(i,function(u){return n(u)}).join(e)+e:"")+BW(o)}return n(r)}function VW(r,t,e){e=e||{};var n=e.newline?` -`:"",a=" {"+n,i=n+"}",o=X(Ot(r),function(l){return l+a+X(Ot(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=X(Ot(t),function(l){return"@keyframes "+l+a+X(Ot(t[l]),function(u){return u+a+X(Ot(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":[""].join(n)}function fm(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function gw(r,t,e,n){return Ce("svg","root",{width:r,height:t,xmlns:VP,"xmlns:xlink":zP,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var zW=0;function GP(){return zW++}var yw={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Hi="transform-origin";function FW(r,t,e){var n=H({},r.shape);H(n,t),r.buildPath(e,n);var a=new BP;return a.reset(wI(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function GW(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[Hi]=e+"px "+n+"px")}var HW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function HP(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function WW(r,t,e){var n=r.shape.paths,a={},i,o;if(D(n,function(l){var u=fm(e.zrId);u.animation=!0,tp(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=Ot(f),v=h.length;if(v){o=h[v-1];var p=f[o];for(var d in p){var g=p[d];a[d]=a[d]||{d:""},a[d].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=HP(a,e);return i.replace(o,s)}}function mw(r){return nt(r)?yw[r]?"cubic-bezier("+yw[r]+")":E0(r)?r:"":""}function tp(r,t,e,n){var a=r.animators,i=a.length,o=[];if(r instanceof Z0){var s=WW(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var G=HP(w,e);return G+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+GP();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function UW(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};_w(n,t,e)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=by(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),_w(n,t,e)}}function _w(r,t,e,n){var a=JSON.stringify(r),i=e.cssStyleCache[a];i||(i=e.zrId+"-cls-"+GP(),e.cssStyleCache[a]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var Uu=Math.round;function WP(r){return r&&nt(r.src)}function UP(r){return r&&vt(r.toDataURL)}function L_(r,t,e,n){EW(function(a,i){var o=a==="fill"||a==="stroke";o&&bI(i)?YP(t,r,a,n):o&&k0(i)?XP(e,r,a,n):o&&i==="none"?r[a]="transparent":r[a]=i},t,e,!1),jW(e,r,n)}function P_(r,t){var e=Wz(t);e&&(e.each(function(n,a){n!=null&&(r[(dw+a).toLowerCase()]=n+"")}),t.isSilent()&&(r[dw+"silent"]="true"))}function Sw(r){return Ya(r[0]-1)&&Ya(r[1])&&Ya(r[2])&&Ya(r[3]-1)}function $W(r){return Ya(r[4])&&Ya(r[5])}function R_(r,t,e){if(t&&!($W(t)&&Sw(t))){var n=1e4;r.transform=Sw(t)?"translate("+Uu(t[4]*n)/n+" "+Uu(t[5]*n)/n+")":hz(t)}}function xw(r,t,e){for(var n=r.points,a=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";nr(h,g),nr(v,g)}else if(h==null||v==null){var y=function(A,M){if(A){var I=A.elm,L=h||M.width,P=v||M.height;A.tag==="pattern"&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),A.attrs.width=L,A.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=F0(p,null,r,function(A){l||y(x,A),y(c,A)});m&&m.width&&m.height&&(h=h||m.width,v=v||m.height)}c=Ce("image","img",{href:p,width:h,height:v}),o.width=h,o.height=v}else a.svgElement&&(c=yt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=TI(a);b&&(o.patternTransform=b);var x=Ce("pattern","",o,[c]),w=I_(x),T=n.patternCache,C=T[w];C||(C=n.zrId+"-p"+n.patternIdx++,T[w]=C,o.id=C,x=n.defs[C]=Ce("pattern",C,o,[c])),t[e]=Cv(C)}}function QW(r,t,e){var n=e.clipPathCache,a=e.defs,i=n[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=Ce("clipPath",i,o,[$P(r,e)])}t["clip-path"]=Cv(i)}function Tw(r){return document.createTextNode(r)}function qi(r,t,e){r.insertBefore(t,e)}function Cw(r,t){r.removeChild(t)}function Aw(r,t){r.appendChild(t)}function ZP(r){return r.parentNode}function qP(r){return r.nextSibling}function Nd(r,t){r.textContent=t}var Dw=58,JW=120,t6=Ce("","");function cm(r){return r===void 0}function An(r){return r!==void 0}function e6(r,t,e){for(var n={},a=t;a<=e;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function Yl(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function $u(r){var t,e=r.children,n=r.tag;if(An(n)){var a=r.elm=FP(n);if(E_(t6,r),W(e))for(t=0;ti?(p=e[l+1]==null?null:e[l+1].elm,KP(r,p,e,a,l)):Hh(r,t,n,i))}function ls(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(E_(r,t),cm(t.text)?An(n)&&An(a)?n!==a&&r6(e,n,a):An(a)?(An(r.text)&&Nd(e,""),KP(e,null,a,0,a.length-1)):An(n)?Hh(e,n,0,n.length-1):An(r.text)&&Nd(e,""):r.text!==t.text&&(An(n)&&Hh(e,n,0,n.length-1),Nd(e,t.text)))}function n6(r,t){if(Yl(r,t))ls(r,t);else{var e=r.elm,n=ZP(e);$u(t),n!==null&&(qi(n,t.elm,qP(e)),Hh(n,[r],0,0))}return t}var a6=0,i6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=Mw(),this.configLayer=Mw(),this.storage=e,this._opts=n=H({},n),this.root=t,this._id="zr"+a6++,this._oldVNode=gw(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=FP("svg");E_(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",n6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return ww(t,fm(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=fm(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var o=[],s=this._bgVNode=o6(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Ce("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=X(Ot(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(Ce("defs","defs",{},u)),t.animation){var f=VW(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=Ce("style","stl",{},[],f);o.push(c)}}return gw(n,a,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},I_(this.renderToVNode({animation:St(t.cssAnimation,!0),emphasis:St(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:St(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var a=t.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(h&&l&&h[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=i[o-1];for(var y=d+1;y=s)}}for(var c=this.__startIndex;c15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var A=v.dpr,M=0;M0&&t>a[0]){for(l=0;lt);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,a=0;a0?gc:0),this._needsManuallyCompositing),f.__builtin__||A0("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),a.__dirty&wr&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__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,D(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Dt(n[t],e,!0):n[t]=e;for(var a=0;a-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}(ae);function Ns(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Es(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var _f=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=ye(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=p6,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(){ha(this.childAt(0))},t.prototype.downplay=function(){va(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):Ht(h,v,s,n),hn(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ie(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,p,d,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),p=_.get("disabled"),d=De(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Po(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(n,"style"),w=x.fill;if(s instanceof Pe){var T=s.style;s.useStyle(H({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(H({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Ne(s,d,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(R){return M?e.getName(R):Ns(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),ce(this,h,v,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=_t(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&ii(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ii(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return rl(e.getItemVisual(n,"symbolSize"))},t}(mt);function p6(r,t){this.parent.drift(r,t)}function Vd(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 Pw(r){return r!=null&&!gt(r)&&(r={isIgnore:r}),r||{}}function Rw(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:De(t),cursorStyle:t.get("cursor")}}var Sf=function(){function r(t){this.group=new mt,this._SymbolCtor=t||_f}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Pw(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Rw(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var h=f(c);if(Vd(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),p=f(c);if(!Vd(t,p,c,e)){n.remove(v);return}var d=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==d)n.remove(v),v=new o(t,c,l,u),v.setPosition(p);else{v.updateData(t,c,l,u);var y={x:p[0],y:p[1]};s?v.attr(y):Ht(v,y,a)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Rw(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Pw(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=n[0]:n[1]<0&&(e=n[1]),e}function JP(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function g6(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function y6(r,t,e,n,a,i,o,s){for(var l=g6(r,t),u=[],f=[],c=[],h=[],v=[],p=[],d=[],g=QP(a,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=a||d<0)break;if(go(y,m)){if(l){d+=i;continue}break}if(d===e)r[i>0?"moveTo":"lineTo"](y,m),c=y,h=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var b=d+i,x=t[b*2],w=t[b*2+1];x===y&&w===m&&g=n||go(x,w))v=y,p=m;else{A=x-u,M=w-f;var P=y-u,R=x-y,O=m-f,B=w-m,N=void 0,F=void 0;if(s==="x"){N=Math.abs(P),F=Math.abs(R);var U=A>0?1:-1;v=y-U*N*o,p=m,I=y+U*F*o,L=m}else if(s==="y"){N=Math.abs(O),F=Math.abs(B);var Z=M>0?1:-1;v=y,p=m-Z*N*o,I=y,L=m+Z*F*o}else N=Math.sqrt(P*P+O*O),F=Math.sqrt(R*R+B*B),C=F/(F+N),v=y-A*o*(1-C),p=m-M*o*(1-C),I=y+A*o*C,L=m+M*o*C,I=La(I,Pa(x,y)),L=La(L,Pa(w,m)),I=Pa(I,La(x,y)),L=Pa(L,La(w,m)),A=I-y,M=L-m,v=y-A*N/F,p=m-M*N/F,v=La(v,Pa(u,y)),p=La(p,Pa(f,m)),v=Pa(v,La(u,y)),p=Pa(p,La(f,m)),A=y-v,M=m-p,I=y+A*F/N,L=m+M*F/N}r.bezierCurveTo(c,h,v,p,y,m),c=I,h=L}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var tR=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),m6=function(r){V(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 tR},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&go(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=p;break;case o.C:v=i[c++],p=i[c++],d=i[c++],g=i[c++],y=i[c++],m=i[c++];var b=u?yh(s,v,d,y,e,f):yh(l,p,g,m,e,f);if(b>0)for(var x=0;x=0){var S=u?be(l,p,g,m,w):be(s,v,d,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Pt),_6=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(tR),eR=function(r){V(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 _6},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&go(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function b6(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=X(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=x6(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var p=10,d=h[0].coord-p,g=h[v-1].coord+p,y=g-d;if(y<.001)return"transparent";D(h,function(_){_.offset=(_.coord-d)/y}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new hf(0,0,0,0,h,!0);return m[a]=d,m[a+"2"]=g,m}}}function w6(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&T6(i,t))){var o=t.mapDimension(i.dim),s={};return D(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function T6(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function C6(r,t){return isNaN(r)||isNaN(t)}function A6(r){for(var t=r.length/2;t>0&&C6(r[t*2-2],r[t*2-1]);t--);return t-1}function Bw(r,t){return[r[t*2],r[t*2+1]]}function D6(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function aR(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var U=d.getState("emphasis").style;U.lineWidth=+d.style.lineWidth+1}_t(d).seriesIndex=e.seriesIndex,ce(d,B,N,F);var Z=Nw(e.get("smooth")),Q=e.get("smoothMonotone");if(d.setShape({smooth:Z,smoothMonotone:Q,connectNulls:T}),g){var ft=l.getCalculationInfo("stackedOnSeries"),ht=0;g.useStyle(dt(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ft&&(ht=Nw(ft.get("smooth"))),g.setShape({smooth:Z,stackedOnSmooth:ht,smoothMonotone:Q,connectNulls:T}),Oe(g,e,"areaStyle"),_t(g).seriesIndex=e.seriesIndex,ce(g,B,N,F)}var Tt=function(xt){i._changePolyState(xt)};l.eachItemGraphicEl(function(xt){xt&&(xt.onHoverStateChange=Tt)}),this._polyline.onHoverStateChange=Tt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=M,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,d),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){_t(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=xo(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new _f(o,s),u.x=f,u.y=c,u.setZ(h,v);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=v,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Kt.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=xo(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Kt.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Th(this._polyline,e),n&&Th(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new m6({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new eR({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");vt(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=vt(c)?c(null):c;e.eachItemGraphicEl(function(v,p){var d=v;if(d){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=a;i?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=vt(c)?c(p):f*w+h,C=d.getSymbolPath(),A=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(aR(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 Ft({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=A6(l);f>=0&&(Ne(s,De(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?jP(o,v):Ns(o,c)},enableTextSetter:!0},M6(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?"x":"y",T=D6(c,S,w),C=T.range,A=C[1]-C[0],M=void 0;if(A>=1){if(A>1&&!v){var I=Bw(c,C[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(M=h.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(C[0]),P=h.getRawValue(C[1]);o&&(M=WI(a,p,L,P,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,I=Bw(c,R);o&&(M=h.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var O=qs(u);typeof O.setLabelText=="function"&&O.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=y6(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,p=h.stackedOnCurrent,d=h.next,g=h.stackedOnNext;if(o&&(v=Ra(h.current,a,o,l),p=Ra(h.stackedOnCurrent,a,o,l),d=Ra(h.next,a,o,l),g=Ra(h.stackedOnNext,a,o,l)),Ow(v,d)>3e3||f&&Ow(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:d}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),Ht(u,y,c),f&&(f.setShape({points:v,stackedOnPoints:p}),f.stopAnimation(),Ht(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},P6=function(r){return Math.round(r.length/2)};function iR(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var p=void 0;nt(i)?p=L6[i]:vt(i)&&(p=i),p&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,p,P6))}}}}}function R6(r){r.registerChartView(I6),r.registerSeriesModel(v6),r.registerLayout(bf("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,iR("line"))}var Yu=function(r){V(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 xa(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)D(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var p=h.getTicksCoords(),d=h.getTickModel().get("alignWithLabel"),g=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;bg){_=(x+m)/2;break}b===1&&(S=w-p[0].tickValue)}_==null&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=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}(ae);ae.registerClass(Yu);var E6=function(r){V(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 xa(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=pi(Yu.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}(Yu),k6=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}(),Wh=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new k6},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,p=h?c-fMath.PI/2&&fs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Nu(i,e,_t(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Kt),Vw={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=Fd(t.x,r.x),s=Gd(t.x+t.width,a),l=Fd(t.y,r.y),u=Gd(t.y+t.height,i),f=sa?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=Gd(t.r,r.r),i=Fd(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},zw={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new Vt({shape:H({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?Wh:ir,f=new u({shape:n,z2:1});f.name="item";var c=oR(a);if(f.calculateTextPosition=O6(c,{isRoundCap:u===Wh}),i){var h=f.shape,v=a?"r":"endAngle",p={};h[v]=a?n.r0:n.startAngle,p[v]=n[v],(s?Ht:ie)(f,{shape:p},i)}return f}};function z6(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 Fw(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ht:ie)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Ht:ie)(e,{shape:u},f,a)}function Gw(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function H6(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function oR(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 Ww(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=io(n.getModel("itemStyle"),f,!0);H(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=De(n);Ne(r,p,{labelFetcher:i,labelDataIndex:e,defaultText:Ns(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var d=r.getTextContent();if(s&&d){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,N6(r,g==="outside"?v:g,oR(o),n.get(["label","rotate"]))}AL(d,p,i.getRawValue(e),function(m){return jP(t,m)});var y=n.getModel(["emphasis"]);ce(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Oe(r,n),H6(a)&&(r.style.fill="none",r.style.stroke="none",D(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function W6(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var U6=function(){function r(){}return r}(),Uw=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new U6},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function $6(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function sR(r,t,e){if(Eo(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Y6(r,t,e){var n=r.type==="polar"?ir:Vt;return new n({shape:sR(t,e,r),silent:!0,z2:0})}function X6(r){r.registerChartView(V6),r.registerSeriesModel(E6),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(hP,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vP("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,iR("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var Xw=Math.PI*2,Sc=Math.PI/180;function lR(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function uR(r,t){var e=lR(r,t),n=r.get("center"),a=r.get("radius");W(a)||(a=[0,a]);var i=et(e.width,t.getWidth()),o=et(e.height,t.getHeight()),s=Math.min(i,o),l=et(a[0],s/2),u=et(a[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else W(n)||(n=[n,n]),f=et(n[0],i)+e.x,c=et(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function Z6(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=lR(n,e),s=uR(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*Sc,v=n.get("endAngle"),p=n.get("padAngle")*Sc;v=v==="auto"?h-Xw:-v*Sc;var d=n.get("minAngle")*Sc,g=d+p,y=0;a.each(i,function(B){!isNaN(B)&&y++});var m=a.getSum(i),_=Math.PI/(m||y)*2,S=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var T=S?1:-1,C=[h,v],A=T*p/2;G0(C,!S),h=C[0],v=C[1];var M=fR(n);M.startAngle=h,M.endAngle=v,M.clockwise=S;var I=Math.abs(v-h),L=I,P=0,R=h;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(B,N){var F;if(isNaN(B)){a.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:c,r:b?NaN:f});return}b!=="area"?F=m===0&&x?_:B*_:F=I/y,FF?(Z=R+T*F/2,Q=Z):(Z=R+A,Q=U-A),a.setItemLayout(N,{angle:F,startAngle:Z,endAngle:Q,clockwise:S,cx:l,cy:u,r0:c,r:b?Xt(B,w,[c,f]):f}),R=U}),Le?y:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,w=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",p)}var d=n.getBoundingRect();i.width=d.width;var g=(n.style.margin||0)+2.1;i.height=d.height+g,i.y-=(i.height-c)/2}}}function Hd(r){return r.position==="center"}function j6(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*q6,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),A=w.getTextGuideLine(),M=t.getItemModel(x),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),O=et(I.get("edgeDistance"),u),B=I.get("bleedMargin"),N=M.getModel("labelLine"),F=N.get("length");F=et(F,u);var U=N.get("length2");if(U=et(U,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Q>0?"left":"right"}var z=Math.PI,q=0,Y=I.get("rotate");if(Gt(Y))q=Y*(z/180);else if(L==="center")q=0;else if(Y==="radial"||Y===!0){var tt=Q<0?-Z+z:-Z;q=tt}else if(Y==="tangential"&&L!=="outside"&&L!=="outer"){var ot=Math.atan2(Q,ft);ot<0&&(ot=z*2+ot);var lt=ft>0;lt&&(ot=z+ot),q=ot-z}if(i=!!q,C.x=ht,C.y=Tt,C.rotation=q,C.setStyle({verticalAlign:"middle"}),$){C.setStyle({align:G});var At=C.states.select;At&&(At.x+=C.x,At.y+=C.y)}else{var at=C.getBoundingRect().clone();at.applyTransform(C.getComputedTransform());var rt=(C.style.margin||0)+2.1;at.y-=rt/2,at.height+=rt,e.push({label:C,labelLine:A,position:L,len:F,len2:U,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Ct(Q,ft),linePoints:xt,textAlign:G,labelDistance:P,labelAlignTo:R,edgeDistance:O,bleedMargin:B,rect:at,unconstrainedWidth:at.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:$})}}),!i&&r.get("avoidLabelOverlap")&&K6(e,n,a,l,u,h,f,c);for(var d=0;d0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=i.r0}},t.type="pie",t}(Kt);function al(r,t,e){t=W(t)&&{coordDimensions:t}||H({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=yf(n,t).dimensions,i=new er(a,r);return i.initData(n,e),i}var Tf=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}(),tU=zt(),eU=function(r){V(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 Tf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return al(this,{coordDimensions:["value"],encodeDefaulter:bt(a_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=tU(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Xz(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){So(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ae);function rU(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Gt(o)&&!isNaN(o)&&o<0)})}}}function nU(r){r.registerChartView(J6),r.registerSeriesModel(eU),R2("pie",r.registerAction),r.registerLayout(bt(Z6,"pie")),r.registerProcessor(wf("pie")),r.registerProcessor(rU("pie"))}var aU=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return xa(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(ae),hR=4,iU=function(){function r(){}return r}(),oU=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new iU},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var f=u*2,c=i[f]-s/2,h=i[f+1]-l/2;if(e>=c&&n>=h&&e<=c+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),lU=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=bf("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new sU:new Sf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Kt),uU=function(r){V(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}(kt),vm=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ge).models[0]},t.type="cartesian2dAxis",t}(kt);me(vm,mf);var vR={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},fU=Dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vR),k_=Dt({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}}},vR),cU=Dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},k_),hU=dt({logBase:10},k_);const pR={category:fU,value:k_,time:cU,log:hU};var vU={value:1,category:1,time:1,log:1};function Bs(r,t,e,n){D(vU,function(a,i){var o=Dt(Dt({},pR[i],!0),n,!0),s=function(l){V(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Vu(this),v=h?Qs(f):{},p=c.getTheme();Dt(f,p.get(i+"Axis")),Dt(f,this.getDefaultOption()),f.type=qw(f),h&&oi(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=om.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",qw)}function qw(r){return r.type||(r.data?"category":"value")}var pU=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 X(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Zt(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}(),pm=["x","y"];function Kw(r){return r.type==="interval"||r.type==="time"}var dU=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=pm,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Kw(e)||!Kw(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,p=this._transform=[f,0,0,c,h,v];this._invTransform=Us([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Mt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ee(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return Ee(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new Mt(i,o,s,l)},t}(pU),gU=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(pn);function dm(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,p=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[h.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=[u==="y"?p[h[l]]:c[0],u==="x"?p[h[l]]:c[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[h[s]]-p[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Le(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function jw(r){return r.get("coordinateSystem")==="cartesian2d"}function Qw(r){var t={xAxisModel:null,yAxisModel:null};return D(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,ge).models[0];t[n]=i}),t}var Wd=Math.log;function dR(r,t,e){var n=da.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=mP(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=Wd(r.base);u=[Wd(u[0])/h,Wd(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var p=n.getInterval.call(r),d=u[0],g=u[1];if(f&&c)p=(g-d)/o;else if(f)for(g=u[0]+p*o;gu[0]&&isFinite(d)&&isFinite(u[0]);)p=Md(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=Md(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=he(g-m),d<0&&u[0]>=0?(d=0,g=he(m)):g>0&&u[1]<=0&&(g=0,d=-he(m))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,d+p*_,g+p*S),n.setInterval.call(r,p),(_||S)&&n.setNiceExtent.call(r,d+p,g-p)}var yU=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pm,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Ot(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],p=v.model,d=v.scale;sm(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(Os(d,p),sm(d)&&(s=v))}f.length&&(s||(s=f.pop(),Os(s.scale,s.model)),D(f,function(g){dR(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};D(n.x,function(o){Jw(n,"y",o,i)}),D(n.y,function(o){Jw(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=xe(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=j4(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),mU(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]}gt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Ru(a-Xa)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),eT={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Ee(s,s,o),Ee(l,l,o));var f=H({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Te({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Rs(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);nt(h)&&(h=[h,h]),(nt(v)||Gt(v))&&(v=[v,v]);var p=Po(t.get(["axisLine","symbolOffset"])||0,v),d=v[0],g=v[1];D([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(h[m]!=="none"&&h[m]!=null){var _=ye(h[m],-d/2,-g/2,d,g,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 a=xU(e,n,t,r),i=wU(e,n,t,r);if(SU(t,i,a),bU(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=RP(X(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));OP(o)}},axisName:function(r,t,e,n){var a=Le(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,nT(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Xa/180);var p;nT(i)?h=rr.innerTextLayout(r.rotation,v??r.rotation,o):(h=_U(r.rotation,i,v||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(h.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Le(r.nameTruncateMaxWidth,g.maxWidth,p),_=new Ft({x:c[0],y:c[1],rotation:h.rotation,silent:rr.isLabelSilent(t),style:ne(s,{text:a,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Zs({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=rr.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,_t(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function _U(r,t,e,n){var a=EI(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ru(a-Xa/2)?(o=l?"bottom":"top",i="center"):Ru(a-Xa*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aXa/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function SU(r,t,e){if(!_P(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],c=e[e.length-1],h=e[e.length-2];n===!1?(Lr(i),Lr(u)):rT(i,o)&&(n?(Lr(o),Lr(f)):(Lr(i),Lr(u))),a===!1?(Lr(s),Lr(c)):rT(l,s)&&(a?(Lr(l),Lr(h)):(Lr(s),Lr(c)))}}function Lr(r){r&&(r.ignore=!0)}function rT(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Tv([]);return Io(a,a,-r.rotation),e.applyTransform(oa([],a,r.getLocalTransform())),n.applyTransform(oa([],a,t.getLocalTransform())),e.intersect(n)}}function nT(r){return r==="middle"||r==="center"}function gR(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function IU(r){var t=O_(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=gm(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=dt({color:p.color},l));var g=Dt(yt(p),{boundaryGap:e,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:h},!1);if(nt(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else vt(f)&&(g.name=f(g.name,g));var m=new Ut(g,null,this.ecModel);return me(m,mf.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Dt({lineStyle:{color:"#bbb"}},Ml.axisLine),axisLabel:xc(Ml.axisLabel,!1),axisTick:xc(Ml.axisTick,!1),splitLine:xc(Ml.splitLine,!0),splitArea:xc(Ml.splitArea,!0),indicator:[]},t}(kt),HU=["axisLine","axisTickLabel","axisName"],WU=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes(),i=X(a,function(o){var s=o.model.get("showName")?o.name:"",l=new rr(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(i,function(o){D(HU,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),p=W(h)?h:[h],d=W(v)?v:[v],g=[],y=[];function m(R,O,B){var N=B%O.length;return R[N]=R[N]||[],N}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,b=n.cy,x=0;x<_.length;x++){if(f){var w=m(g,p,x);g[w].push(new Sa({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,d,x);y[w].push(new ff({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=X(a,function(R,O){var B=R.getTicksCoords();return T=T==null?B.length-1:Math.min(B.length-1,T),X(B,function(N){return n.coordToPoint(N.coord,O)})}),A=[],x=0;x<=T;x++){for(var M=[],I=0;I3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;Yd(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);Yd(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!uT(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;Yd(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Xr);function Yd(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(fa(n.event),bR(r,t,e,n,a))}function bR(r,t,e,n,a){a.isAvailableBehavior=it(rh,null,e,n),r.trigger(t,a)}function rh(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}function B_(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function V_(r,t,e,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(e-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var KU={axisPointer:1,tooltip:1,brush:1};function ep(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!KU.hasOwnProperty(n.mainType)&&a&&a.model!==e}function wR(r){if(nt(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Xd,Uh={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},fT=Ot(Uh),$h={"alignment-baseline":"textBaseline","stop-color":"stopColor"},cT=Ot($h),jU=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=wR(t);this._defsUsePending=[];var a=new mt;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),mr(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;t8(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=rp(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(c=CR(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var v=a;a=new mt,a.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!e.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Vt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(t,e,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=Xd[s];if(f&&st(Xd,s)){l=f.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});e.add(l)}}var v=hT[s];if(v&&st(hT,s)){var p=v.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var n=new Ps({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Pr(e,n),mr(t,n,this._defsUsePending,!1,!1),QU(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,e.add(n),n},r.internalField=function(){Xd={g:function(t,e){var n=new mt;return Pr(e,n),mr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Vt;return Pr(e,n),mr(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Sa;return Pr(e,n),mr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Te;return Pr(e,n),mr(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new kv;return Pr(e,n),mr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),a;n&&(a=dT(n));var i=new or({shape:{points:a||[]},silent:!0});return Pr(e,i),mr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=dT(n));var i=new sr({shape:{points:a||[]},silent:!0});return Pr(e,i),mr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Pe;return Pr(e,n),mr(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new mt;return Pr(e,s),mr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new mt;return Pr(e,s),mr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var n=t.getAttribute("d")||"",a=pL(n);return Pr(e,a),mr(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),hT={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new hf(t,e,n,a);return vT(r,i),pT(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new mL(t,e,n);return vT(r,a),pT(r,a),a}};function vT(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function pT(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};TR(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}e=e.nextSibling}}function Pr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),dt(t.__inheritedStyle,r.__inheritedStyle))}function dT(r){for(var t=rp(r),e=[],n=0;n0;i-=2){var o=n[i],s=n[i-1],l=rp(o);switch(a=a||Ar(),s){case"translate":Fn(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":R0(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Io(a,a,-parseFloat(l[0])*Zd,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Zd);oa(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Zd);oa(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var yT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function TR(r,t,e){var n=r.getAttribute("style");if(n){yT.lastIndex=0;for(var a;(a=yT.exec(n))!=null;){var i=a[1],o=st(Uh,i)?Uh[i]:null;o&&(t[o]=a[2]);var s=st($h,i)?$h[i]:null;s&&(e[s]=a[2])}}}function a8(r,t,e){for(var n=0;n0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,u,n,a)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ut(),n=ut(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(v,p){return p&&(v=p(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function c(v){for(var p=[],d=!u&&l&&l.project,g=0;g=0)&&(h=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Ne(t,De(n),{labelFetcher:h,labelDataIndex:c,defaultText:e},v);var p=t.getTextContent();if(p&&(AR(p).ignore=p.ignore,t.textConfig&&o)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function bT(r,t,e,n,a,i){r.data?r.data.setItemGraphicEl(i,t):_t(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:e,region:n&&n.option||{}}}function wT(r,t,e,n,a){r.data||Zs({el:t,componentModel:a,itemName:e,itemTooltipOption:n.get("tooltip")})}function TT(r,t,e,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return ce(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&SF(t,a,e),o}function CT(r,t,e){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),D(r,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(ae);function T8(r,t){var e={};return D(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);e[o]=e[o]||[],isNaN(a)||e[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=e[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=xe(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function M8(r,t){D(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var I8=function(){function r(){this.dimensions=MR}return r.prototype.create=function(t,e){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new _m(l+s,l,H({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=IT,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),D(i,function(o,s){var l=X(o,function(f){return f.get("nameMap")}),u=new _m(s,s,H({nameMap:D0(l)},a(o[0])));u.zoomLimit=Le.apply(null,X(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=IT,u.resize(o[0],e),D(o,function(f){f.coordinateSystem=u,M8(u,f)})}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),o=ut(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function O8(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){V8(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+t(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+t(r,a));r.parentNode.hierNode.defaultAncestor=z8(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function N8(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function PT(r){return arguments.length?r:H8}function Xl(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function B8(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function V8(r){for(var t=r.children,e=t.length,n=0,a=0;--e>=0;){var i=t[e];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function z8(r,t,e,n){if(t){for(var a=r,i=r,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=qd(s),i=Kd(i),s&&i;){a=qd(a),o=Kd(o),a.hierNode.ancestor=r;var h=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);h>0&&(G8(F8(s,r,e),r,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!qd(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!Kd(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function qd(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Kd(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function F8(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function G8(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function H8(r,t){return r.parentNode===t.parentNode?1:2}var W8=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),U8=function(r){V(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 W8},t.prototype.buildPath=function(e,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,h=et(n.forkPosition,1),v=[];v[f]=o[f],v[c]=o[c]+(l[c]-o[c])*h,e.moveTo(o[0],o[1]),e.lineTo(v[0],v[1]),e.moveTo(s[0],s[1]),v[f]=s[f],e.lineTo(v[0],v[1]),v[f]=l[f],e.lineTo(v[0],v[1]),e.lineTo(l[0],l[1]);for(var p=1;pm.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),A=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?ph(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(_t(e).focus=L),Y8(a,o,f,e,p,v,d,n),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===uf||Th(e.__edge,P)}})}function Y8(r,t,e,n,a,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=n.__edge=new cf({shape:Sm(f,c,h,a,a)})),Ht(d,{shape:Sm(f,c,h,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;me&&(e=a.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,a=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var n=e.getData().tree.root,a=r.targetNode;if(nt(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function kR(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function W_(r,t){var e=kR(r);return It(e,t)>=0}function np(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var e$=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},a=e.leaves||{},i=new Ut(a,this,this.ecModel),o=H_.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(h,v){var p=o.getNodeByDataIndex(v);return p&&p.children.length&&p.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var h=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=h&&h.collapsed!=null?!h.collapsed:c.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Me("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=np(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(ae);function r$(r,t,e){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)e.push(a[i])}}function n$(r,t){r.eachSeriesByType("tree",function(e){a$(e,t)})}function a$(r,t){var e=B8(r,t);r.layoutInfo=e;var n=r.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(e.height,e.width)/2,o=PT(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=e.width,i=e.height,o=PT());var s=r.getData().tree.root,l=s.children[0];if(l){k8(s),r$(l,O8,o),s.hierNode.modifier=-l.hierNode.prelim,Ll(l,N8);var u=l,f=l,c=l;Ll(l,function(_){var S=_.getLayout().x;Sf.getLayout().x&&(f=_),_.depth>c.depth&&(c=_)});var h=u===f?1:o(u,f)/2,v=h-u.getLayout().x,p=0,d=0,g=0,y=0;if(n==="radial")p=a/(f.getLayout().x+h+v),d=i/(c.depth-1||1),Ll(l,function(_){g=(_.getLayout().x+v)*p,y=(_.depth-1)*d;var S=Xl(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=i/(f.getLayout().x+h+v),p=a/(c.depth-1||1),Ll(l,function(_){y=(_.getLayout().x+v)*d,g=m==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=a/(f.getLayout().x+h+v),d=i/(c.depth-1||1),Ll(l,function(_){g=(_.getLayout().x+v)*p,y=m==="TB"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function i$(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(a.dataIndex,"style");H(s,o)})})}function o$(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=F_(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function s$(r){r.registerChartView($8),r.registerSeriesModel(e$),r.registerLayout(n$),r.registerVisual(i$),o$(r)}var NT=["treemapZoomToNode","treemapRender","treemapMove"];function l$(r){for(var t=0;t1;)i=i.parentNode;var o=Zy(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var u$=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};NR(a);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new Ut({itemStyle:o},this,n);i=e.levels=f$(i,n);var l=X(i||[],function(c){return new Ut(c,s,n)},this),u=H_.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(h,v){var p=u.getNodeByDataIndex(v),d=p?l[p.depth]:null;return h.parentModel=d||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return Me("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=np(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},H(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ut(),this._idIndexMapCount=0);var a=n.get(e);return a==null&&n.set(e,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){OR(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(ae);function NR(r){var t=0;D(r.children,function(n){NR(n);var a=n.value;W(a)&&(a=a[0]),t+=a});var e=r.value;W(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),W(r.value)?r.value[0]=e:r.value=e}function f$(r,t){var e=qt(t.get("color")),n=qt(t.get(["aria","decal","decals"]));if(e){r=r||[];var a,i;D(r,function(s){var l=new Ut(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=e.slice()),!i&&n&&(o.decal=n.slice()),r}}var c$=8,BT=8,jd=5,h$=function(){function r(t){this.group=new mt,t.add(this.group)}return r.prototype.render=function(t,e,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(t,c,s,l,u,f,a),Uv(o,c.pos,c.box)}},r.prototype._prepare=function(t,e,n){for(var a=t;a;a=a.parentNode){var i=_e(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+c$*2,e.emptyItemWidth);e.totalWidth+=s+BT,e.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(t,e,n,a,i,o,s){for(var l=0,u=e.emptyItemWidth,f=t.get(["breadcrumb","height"]),c=bG(e.pos,e.box),h=e.totalWidth,v=e.renderList,p=a.getModel("itemStyle").getItemStyle(),d=v.length-1;d>=0;d--){var g=v[d],y=g.node,m=g.width,_=g.text;h>c.width&&(h-=m-u,m=u,_=null);var S=new or({shape:{points:v$(l,0,m,f,d===v.length-1,d===0)},style:dt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ft({style:ne(i,{text:_})}),textConfig:{position:"inside"},z2:Ys*1e4,onclick:bt(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=ne(o,{text:_}),S.ensureState("emphasis").style=p,ce(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),p$(S,t,y),l+=m+BT}},r.prototype.remove=function(){this.group.removeAll()},r}();function v$(r,t,e,n,a,i){var o=[[a?r:r-jd,t],[r+e,t],[r+e,t+n],[a?r:r-jd,t+n]];return!i&&o.splice(2,0,[r+e+jd,t+n/2]),!a&&o.push([r,t+n/2]),o}function p$(r,t,e){_t(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&np(e,t)}}var d$=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;azT||Math.abs(e.dy)>zT)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var n=e.originX,a=e.originY,i=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Mt(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var c=f.zoom=f.zoom||1;if(c*=i,u){var h=u.min||0,v=u.max||1/0;c=Math.max(Math.min(v,c),h)}var p=c/f.zoom;f.zoom=c;var d=this.seriesModel.layoutInfo;n-=d.x,a-=d.y;var g=Ar();Fn(g,g,[-n,-a]),R0(g,g,[p,p]),Fn(g,g,[n,a]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Lh(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,a){var i=this;a||(a=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new h$(this.group))).render(e,n,a.node,function(o){i._state!=="animating"&&(W_(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Pl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(Kt);function Pl(){return{nodeGroup:[],background:[],content:[]}}function x$(r,t,e,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),A=x.get("borderRadius")||0,M=ht("nodeGroup",xm);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),Yh(M).nodeWidth=v,Yh(M).nodeHeight=p,f.isAboveViewRoot)return M;var I=ht("background",VT,u,m$);I&&F(M,I,b&&f.upperLabelHeight);var L=h.getModel("emphasis"),P=L.get("focus"),R=L.get("blurScope"),O=L.get("disabled"),B=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)Ou(M)&&to(M,!1),I&&(to(I,!O),c.setItemGraphicEl(o.dataIndex,I),Fy(I,B,R));else{var N=ht("content",VT,u,_$);N&&U(M,N),I.disableMorphing=!0,I&&Ou(I)&&to(I,!1),to(M,!O),c.setItemGraphicEl(o.dataIndex,M),Fy(M,B,R)}return M;function F(G,$,K){var j=_t($);if(j.dataIndex=o.dataIndex,j.seriesIndex=r.seriesIndex,$.setShape({x:0,y:0,width:v,height:p,r:A}),g)Z($);else{$.invisible=!1;var J=o.getVisual("style"),ct=J.stroke,E=HT(x);E.fill=ct;var k=Ui(w);k.fill=w.get("borderColor");var z=Ui(T);z.fill=T.get("borderColor");var q=Ui(C);if(q.fill=C.get("borderColor"),K){var Y=v-2*d;Q($,ct,J.opacity,{x:d,y:0,width:Y,height:S})}else $.removeTextContent();$.setStyle(E),$.ensureState("emphasis").style=k,$.ensureState("blur").style=z,$.ensureState("select").style=q,wo($)}G.add($)}function U(G,$){var K=_t($);K.dataIndex=o.dataIndex,K.seriesIndex=r.seriesIndex;var j=Math.max(v-2*d,0),J=Math.max(p-2*d,0);if($.culling=!0,$.setShape({x:d,y:d,width:j,height:J,r:A}),g)Z($);else{$.invisible=!1;var ct=o.getVisual("style"),E=ct.fill,k=HT(x);k.fill=E,k.decal=ct.decal;var z=Ui(w),q=Ui(T),Y=Ui(C);Q($,E,ct.opacity,null),$.setStyle(k),$.ensureState("emphasis").style=z,$.ensureState("blur").style=q,$.ensureState("select").style=Y,wo($)}G.add($)}function Z(G){!G.invisible&&i.push(G)}function Q(G,$,K,j){var J=h.getModel(j?GT:FT),ct=_e(h.get("name"),null),E=J.getShallow("show");Ne(G,De(h,j?GT:FT),{defaultText:E?ct:null,inheritColor:$,defaultOpacity:K,labelFetcher:r,labelDataIndex:o.dataIndex});var k=G.getTextContent();if(k){var z=k.style,q=I0(z.padding||0);j&&(G.setTextConfig({layoutRect:j}),k.disableLabelLayout=!0),k.beforeUpdate=function(){var tt=Math.max((j?j.width:G.shape.width)-q[1]-q[3],0),ot=Math.max((j?j.height:G.shape.height)-q[0]-q[2],0);(z.width!==tt||z.height!==ot)&&k.setStyle({width:tt,height:ot})},z.truncateMinChar=2,z.lineOverflow="truncate",ft(z,j,f);var Y=k.getState("emphasis");ft(Y?Y.style:null,j,f)}}function ft(G,$,K){var j=G?G.text:null;if(!$&&K.isLeafRoot&&j!=null){var J=r.get("drillDownIcon",!0);G.text=J?J+" "+j:j}}function ht(G,$,K,j){var J=m!=null&&e[G][m],ct=a[G];return J?(e[G][m]=null,Tt(ct,J)):g||(J=new $,J instanceof Yr&&(J.z2=b$(K,j)),xt(ct,J)),t[G][y]=J}function Tt(G,$){var K=G[y]={};$ instanceof xm?(K.oldX=$.x,K.oldY=$.y):K.oldShape=H({},$.shape)}function xt(G,$){var K=G[y]={},j=o.parentNode,J=$ instanceof mt;if(j&&(!n||n.direction==="drillDown")){var ct=0,E=0,k=a.background[j.getRawIndex()];!n&&k&&k.oldShape&&(ct=k.oldShape.width,E=k.oldShape.height),J?(K.oldX=0,K.oldY=E):K.oldShape={x:ct,y:E,width:0,height:0}}K.fadein=!J}}function b$(r,t){return r*y$+t}var qu=D,w$=gt,Xh=-1,Ae=function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=yt(t);this.type=n,this.mappingMethod=e,this._normalizeData=A$[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(Qd(a),T$(a)):e==="category"?a.categories?C$(a):Qd(a,!0):(nr(e!=="linear"||a.dataExtent),Qd(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return it(this._normalizeData,this)},r.listVisualTypes=function(){return Ot(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){gt(t)?D(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var a,i=W(t)?[]:gt(t)?{}:(a=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},n;return t&&qu(r.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(e[i]=t[i],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(W(t))t=t.slice();else if(w$(t)){var e=[];qu(t,function(n,a){e.push(a)}),t=e}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var a,i=1/0,o=0,s=e.length;o=0;i--)n[i]==null&&(delete e[t[i]],t.pop())}function Qd(r,t){var e=r.visual,n=[];gt(e)?qu(e,function(i){n.push(i)}):e!=null&&n.push(e);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),BR(r,n)}function wc(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:bm([0,1])}}function WT(r){var t=this.option.visual;return t[Math.round(Xt(r,[0,1],[0,t.length-1],!0))]||{}}function Rl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function Zl(r){var t=this.option.visual;return t[this.option.loop&&r!==Xh?r%t.length:r]}function $i(){return this.option.visual[0]}function bm(r){return{linear:function(t){return Xt(t,r,this.option.visual,!0)},category:Zl,piecewise:function(t,e){var n=wm.call(this,e);return n==null&&(n=Xt(t,r,this.option.visual,!0)),n},fixed:$i}}function wm(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=Ae.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function BR(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=X(t,function(e){var n=Dr(e);return n||[0,0,0,1]})),t}var A$={linear:function(r){return Xt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Ae.findPieceIndex(r,t,!0);if(e!=null)return Xt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Xh},fixed:pe};function Tc(r,t,e){return r?t<=e:t=e.length||d===e[d.depth]){var y=R$(a,l,d,g,p,n);zR(d,y,e,n)}})}}}function I$(r,t,e){var n=H({},t),a=e.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function UT(r){var t=Jd(r,"color");if(t){var e=Jd(r,"colorAlpha"),n=Jd(r,"colorSaturation");return n&&(t=ou(t,null,null,n)),e&&(t=mh(t,e)),t}}function L$(r,t){return t!=null?ou(t,null,null,r):null}function Jd(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function P$(r,t,e,n,a,i){if(!(!i||!i.length)){var o=tg(t,"color")||a.color!=null&&a.color!=="none"&&(tg(t,"colorAlpha")||tg(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new Ae(c);return VR(h).drColorMappingBy=f,h}}}function tg(r,t){var e=r.get(t);return W(e)&&e.length?{name:t,range:e}:null}function R$(r,t,e,n,a,i){var o=H({},t);if(a){var s=a.type,l=s==="color"&&VR(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Ku=Math.max,Zh=Math.min,$T=Le,U_=D,FR=["itemStyle","borderWidth"],E$=["itemStyle","gapWidth"],k$=["upperLabel","show"],O$=["upperLabel","height"];const N$={seriesType:"treemap",reset:function(r,t,e,n){var a=e.getWidth(),i=e.getHeight(),o=r.option,s=xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=et($T(s.width,l[0]),a),f=et($T(s.height,l[1]),i),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=Zu(n,h,r),p=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),g=kR(d);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?H$(r,v,d,u,f):p?[p.width,p.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),GR(d,_,!1,0),S=d.getLayout(),U_(g,function(x,w){var T=(g[w+1]||d).getValue();x.setLayout(H({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout(W$(s,p,v),!0),r.setLayoutInfo(s),HR(b,new Mt(-s.x,-s.y,a,i),g,d,0)}};function GR(r,t,e,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(FR),u=s.get(E$)/2,f=WR(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=Ku(a-2*h,0),i=Ku(i-h-v,0);var p=a*i,d=B$(r,s,p,t,e,n);if(d.length){var g={x:h,y:v,width:a,height:i},y=Zh(a,i),m=1/0,_=[];_.area=0;for(var S=0,b=d.length;S=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/e*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function G$(r,t,e){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;in&&(n=o));var l=r.area*r.area,u=t*t*e;return l?Ku(u*n/l,l/(u*a)):1/0}function YT(r,t,e,n,a){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(a||f>e[l[o]])&&(f=e[l[o]]);for(var c=0,h=r.length;cax&&(u=ax),i=s}un&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0].8?"left":h[0]<-.8?"right":"center",d=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+f[0],i.y=-h[1]*m+f[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",d=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,p="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+C,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},t}(mt),q_=function(){function r(t){this.group=new mt,this._LineCtor=t||Z_}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=QT(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=QT(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!sY(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function QT(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:De(t)}}function JT(r){return isNaN(r[0])||isNaN(r[1])}function ig(r){return r&&!JT(r[0])&&!JT(r[1])}var og=[],sg=[],lg=[],jo=Ie,ug=lo,tC=Math.abs;function eC(r,t,e){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){og[0]=jo(n[0],a[0],i[0],f),og[1]=jo(n[1],a[1],i[1],f);var c=tC(ug(og,t)-l);c=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function fg(r,t){var e=[],n=Iu,a=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[ia(u[0]),ia(u[1])],u[2]&&u.__original.push(ia(u[2])));var h=u.__original;if(u[2]!=null){if(Ke(a[0],h[0]),Ke(a[1],h[2]),Ke(a[2],h[1]),f&&f!=="none"){var v=Kl(s.node1),p=eC(a,h[0],v*t);n(a[0][0],a[1][0],a[2][0],p,e),a[0][0]=e[3],a[1][0]=e[4],n(a[0][1],a[1][1],a[2][1],p,e),a[0][1]=e[3],a[1][1]=e[4]}if(c&&c!=="none"){var v=Kl(s.node2),p=eC(a,h[1],v*t);n(a[0][0],a[1][0],a[2][0],p,e),a[1][0]=e[1],a[2][0]=e[2],n(a[0][1],a[1][1],a[2][1],p,e),a[1][1]=e[1],a[2][1]=e[2]}Ke(u[0],a[0]),Ke(u[1],a[2]),Ke(u[2],a[1])}else{if(Ke(i[0],h[0]),Ke(i[1],h[1]),Qi(o,i[1],i[0]),Ws(o,o),f&&f!=="none"){var v=Kl(s.node1);cy(i[0],i[0],o,v*t)}if(c&&c!=="none"){var v=Kl(s.node2);cy(i[1],i[1],o,-v*t)}Ke(u[0],i[0]),Ke(u[1],i[1])}})}function rC(r){return r.type==="view"}var lY=function(r){V(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){var a=new Sf,i=new q_,o=this.group;this._controller=new Cf(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,n,a){var i=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(rC(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Ht(u,f,e)}fg(e.getGraph(),ql(e));var c=e.getData();s.updateData(c);var h=e.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,n,a),clearTimeout(this._layoutTimeout);var v=e.forceLayout,p=e.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,p);var d=e.get("layout");c.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(C){switch(d){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,p),v.setFixed(S),c.setItemLayout(S,[b.x,b.y]);break;case"circular":c.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),X_(e,"symbolSize",_,[C.offsetX,C.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(S,[b.x,b.y]),Y_(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),b.setDraggable(w,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(_t(b).focus=_.getAdjacentDataIndices())}}),c.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);S&&b==="adjacency"&&(_t(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),y=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(_){XR(_,g,y,m)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var a=this;(function i(){e.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!ep(u,a,e)}),!rC(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){B_(s,u.dx,u.dy),a.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){V_(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),fg(e.getGraph(),ql(e)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=ql(e);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){fg(e.getGraph(),ql(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Kt);function Qo(r){return"_EC_"+r}var uY=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[Qo(t)]){var a=new Yi(t,e);return a.hostGraph=this,this.nodes.push(a),n[Qo(t)]=a,a}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Qo(t)]},r.prototype.addEdge=function(t,e,n){var a=this._nodesMap,i=this._edgesMap;if(Gt(t)&&(t=this.nodes[t]),Gt(e)&&(e=this.nodes[e]),t instanceof Yi||(t=a[Qo(t)]),e instanceof Yi||(e=a[Qo(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new qR(t,e,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof Yi&&(t=t.id),e instanceof Yi&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,a=n.length,i=0;i=0&&t.call(e,n[i],i)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,a=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},r.prototype.breadthFirstTraverse=function(t,e,n,a){if(e instanceof Yi||(e=this._nodesMap[Qo(e)]),!!e){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}me(Yi,KR("hostGraph","data"));me(qR,KR("hostGraph","edgeData"));function jR(r,t,e,n,a){for(var i=new uY(n),o=0;o "+h)),u++)}var v=e.get("coordinateSystem"),p;if(v==="cartesian2d"||v==="polar")p=xa(r,e);else{var d=df.get(v),g=d?d.dimensions||[]:[];It(g,"value")<0&&g.concat(["value"]);var y=yf(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;p=new er(y,e),p.initData(r)}var m=new er(["value"],e);return m.initData(l,s),a&&a(p,m),RR({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var fY=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Tf(a,a),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),So(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&a){K$(this);var s=jR(i,a,this,!0,l);return D(s.edges,function(u){j$(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var c=Ut.prototype.getModel;function h(p,d){var g=c.call(this,p,d);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=v,p.getModel=h,p});function v(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(e,a),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Me("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=b2({series:this,dataIndex:e,multipleSeries:n});return c},t.prototype._updateCategoriesData=function(){var e=X(this.option.categories||[],function(a){return a.value!=null?a:H({value:0},a)}),n=new er(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ae),cY={type:"graphRoam",event:"graphRoam",update:"none"};function hY(r){r.registerChartView(lY),r.registerSeriesModel(fY),r.registerProcessor($$),r.registerVisual(Y$),r.registerVisual(X$),r.registerLayout(Q$),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,tY),r.registerLayout(rY),r.registerCoordinateSystem("graphView",{dimensions:Af.dimensions,create:aY}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},pe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},pe),r.registerAction(cY,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=F_(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var vY=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),pY=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new vY},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(n.x+a(l)*s,n.y+i(l)*s),e.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),e.lineTo(n.x-a(l)*s,n.y-i(l)*s),e.lineTo(u,f)},t}(Pt);function dY(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=et(e[0],t.getWidth()),s=et(e[1],t.getHeight()),l=et(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Ac(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var gY=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=dY(e,a);this._renderMain(e,n,a,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),h=c.get("roundCap"),v=h?Wh:ir,p=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),y=[u,f];G0(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;p&&b=C&&(A===0?0:i[A-1][0])Math.PI/2&&(ht+=Math.PI)):ft==="tangential"?ht=-T-Math.PI/2:Gt(ft)&&(ht=ft*Math.PI/180),ht===0?c.add(new Ft({style:ne(_,{text:F,x:Z,y:Q,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:U}),silent:!0})):c.add(new Ft({style:ne(_,{text:F,x:Z,y:Q,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:Z,originY:Q,rotation:ht}))}if(m.get("show")&&O!==S){var B=m.get("distance");B=B?B+f:f;for(var Tt=0;Tt<=b;Tt++){P=Math.cos(T),R=Math.sin(T);var xt=new Te({shape:{x1:P*(p-B)+h,y1:R*(p-B)+v,x2:P*(p-w-B)+h,y2:R*(p-w-B)+v},silent:!0,style:I});I.stroke==="auto"&&xt.setStyle({stroke:i((O+Tt/b)/S)}),c.add(xt),T+=A}T-=A}else T+=C}},t.prototype._renderPointer=function(e,n,a,i,o,s,l,u,f){var c=this.group,h=this._data,v=this._progressEls,p=[],d=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),b=+e.get("max"),x=[S,b],w=[s,l];function T(A,M){var I=m.getItemModel(A),L=I.getModel("pointer"),P=et(L.get("width"),o.r),R=et(L.get("length"),o.r),O=e.get(["pointer","icon"]),B=L.get("offsetCenter"),N=et(B[0],o.r),F=et(B[1],o.r),U=L.get("keepAspect"),Z;return O?Z=ye(O,N-P/2,F-R,P,R,null,U):Z=new pY({shape:{angle:-Math.PI/2,width:P,r:R,x:N,y:F}}),Z.rotation=-(M+Math.PI/2),Z.x=o.cx,Z.y=o.cy,Z}function C(A,M){var I=g.get("roundCap"),L=I?Wh:ir,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),O=P?o.r-R:o.r-(A+1)*R,B=P?o.r:o.r-A*R,N=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:B}});return P&&(N.z2=b-m.get(_,A)%b),N}(y||d)&&(m.diff(h).add(function(A){var M=m.get(_,A);if(d){var I=T(A,s);ie(I,{rotation:-((isNaN(+M)?w[0]:Xt(M,x,w,!0))+Math.PI/2)},e),c.add(I),m.setItemGraphicEl(A,I)}if(y){var L=C(A,s),P=g.get("clip");ie(L,{shape:{endAngle:Xt(M,x,w,P)}},e),c.add(L),By(e.seriesIndex,m.dataType,A,L),p[A]=L}}).update(function(A,M){var I=m.get(_,A);if(d){var L=h.getItemGraphicEl(M),P=L?L.rotation:s,R=T(A,P);R.rotation=P,Ht(R,{rotation:-((isNaN(+I)?w[0]:Xt(I,x,w,!0))+Math.PI/2)},e),c.add(R),m.setItemGraphicEl(A,R)}if(y){var O=v[M],B=O?O.shape.endAngle:s,N=C(A,B),F=g.get("clip");Ht(N,{shape:{endAngle:Xt(I,x,w,F)}},e),c.add(N),By(e.seriesIndex,m.dataType,A,N),p[A]=N}}).execute(),m.each(function(A){var M=m.getItemModel(A),I=M.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),R=I.get("disabled");if(d){var O=m.getItemGraphicEl(A),B=m.getItemVisual(A,"style"),N=B.fill;if(O instanceof Pe){var F=O.style;O.useStyle(H({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},B))}else O.useStyle(B),O.type!=="pointer"&&O.setColor(N);O.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",i(Xt(m.get(_,A),x,[0,1],!0))),O.z2EmphasisLift=0,Oe(O,M),ce(O,L,P,R)}if(y){var U=p[A];U.useStyle(m.getItemVisual(A,"style")),U.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Oe(U,M),ce(U,L,P,R)}}),this._progressEls=p)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=ye(s,n.cx-o/2+et(l[0],n.r),n.cy-o/2+et(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),c=+e.get("max"),h=new mt,v=[],p=[],d=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new Ft({silent:!0}),p[y]=new Ft({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new mt,b=i(Xt(_,[f,c],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+et(w[0],o.r),C=o.cy+et(w[1],o.r),A=v[y];A.attr({z2:g?0:2,style:ne(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(A)}var M=m.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),L=o.cx+et(I[0],o.r),P=o.cy+et(I[1],o.r),R=et(M.get("width"),o.r),O=et(M.get("height"),o.r),B=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,A=p[y],N=M.get("formatter");A.attr({z2:g?0:2,style:ne(M,{x:L,y:P,text:Ac(_,N),width:isNaN(R)?null:R,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:B})}),AL(A,{normal:M},_,function(U){return Ac(U,N)}),d&&DL(A,y,l,e,{getFormattedLabel:function(U,Z,Q,ft,ht,Tt){return Ac(Tt?Tt.interpolatedValue:_,N)}}),S.add(A)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=p},t.type="gauge",t}(Kt),yY=function(r){V(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 al(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}(ae);function mY(r){r.registerChartView(gY),r.registerSeriesModel(yY)}var _Y=["itemStyle","opacity"],SY=function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=a,o=new sr,s=new Ft;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(e,n,!0),a}return t.prototype.updateData=function(e,n,a){var i=this,o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(_Y);f=f??1,a||hn(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,ie(i,{style:{opacity:f}},o,n)):Ht(i,{style:{opacity:f},shape:{points:l.points}},o,n),Oe(i,s),this._updateLabel(e,n),ce(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=e.hostModel,l=e.getItemModel(n),u=e.getItemLayout(n),f=u.label,c=e.getItemVisual(n,"style"),h=c.fill;Ne(o,De(l),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:e.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:h,outsideFill:h});var v=f.linePoints;i.setShape({points:v}),a.textGuideLineConfig={anchor:v?new Ct(v[0][0],v[0][1]):null},Ht(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),A_(a,D_(l),{stroke:h})},t}(or),xY=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new SY(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Nu(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Kt),bY=function(r){V(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){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return al(this,{coordDimensions:["value"],encodeDefaulter:bt(a_,this)})},t.prototype._defaultLabelLine=function(e){So(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),a=r.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ae);function wY(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function TY(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(l){return l}),a=[],i=t==="ascending",o=0,s=r.count();oFY)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!hg(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function hg(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var WY=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Dt(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var a=e.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],a=Zt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(a,function(i){e.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(kt),UY=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(pn);function Oo(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=Jo(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Jo(s,[0,o]),a=i=Jo(s,[a,i]),n=0}t[0]=Jo(t[0],e),t[1]=Jo(t[1],e);var l=vg(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=Jo(t[n],f);var c;return c=vg(t,n),a!=null&&(c.sign!==l.sign||c.spani&&(t[1-n]=t[n]+c.sign*i),t}function vg(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Jo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var pg=D,JR=Math.min,tE=Math.max,iC=Math.floor,$Y=Math.ceil,oC=he,YY=Math.PI,XY=function(){function r(t,e,n){this.type="parallel",this._axesMap=ut(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=t.dimensions,i=t.parallelAxisIndex;pg(a,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new UY(o,Jv(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,a=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+e.axisLength&&s>=a&&s<=a+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var a=n.getData();pg(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Os(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=xe(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[a[o]],l=[0,s],u=this.dimensions.length,f=Dc(t.get("axisExpandWidth"),l),c=Dc(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=t.get("axisExpandWindow"),p;if(v)p=Dc(v[1]-v[0],l),v[1]=v[0]+p;else{p=Dc(f*(c-1),l);var d=t.get("axisExpandCenter")||iC(u/2);v=[f*d-p/2],v[1]=v[0]+p}var g=(s-p)/(u-c);g<3&&(g=0);var y=[iC(oC(v[0]/f,1))+1,$Y(oC(v[1]/f,1))-1],m=g/f*v[0];return{layout:i,pixelDimIndex:o,layoutBase:e[n[o]],layoutLength:s,axisBase:e[n[1-o]],axisLength:e[a[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;e.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),pg(n,function(o,s){var l=(a.axisExpandable?qY:ZY)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:YY/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],h=f[i],v=Ar();Io(v,v,h),Fn(v,v,c),this._axesLayout[o]={position:c,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;fi*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?Oo(l,a,o,"all"):u="none";else{var v=a[1]-a[0],p=o[1]*s/v;a=[tE(0,p-v/2)],a[1]=JR(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r}();function Dc(r,t){return JR(tE(r,t[0]),t[1])}function ZY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function qY(r,t){var e=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r=0;a--)Hr(n[a])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var i=0,o=n.length;it7}function oE(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function sE(r,t,e,n){var a=new mt;return a.add(new Vt({name:"main",style:t1(e),silent:!0,draggable:!0,cursor:"move",drift:bt(uC,r,t,a,["n","s","w","e"]),ondragend:bt(Ao,t,{isEnd:!0})})),D(n,function(i){a.add(new Vt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:bt(uC,r,t,a,i),ondragend:bt(Ao,t,{isEnd:!0})}))}),a}function lE(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Vs(a,e7),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],c=e[1][1],h=f-i+a/2,v=c-i+a/2,p=f-o,d=c-s,g=p+a,y=d+a;jn(r,t,"main",o,s,p,d),n.transformable&&(jn(r,t,"w",l,u,i,y),jn(r,t,"e",h,u,i,y),jn(r,t,"n",l,u,g,i),jn(r,t,"s",l,v,g,i),jn(r,t,"nw",l,u,i,i),jn(r,t,"ne",h,u,i,i),jn(r,t,"sw",l,v,i,i),jn(r,t,"se",h,v,i,i))}function Im(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(t1(e)),a.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Lm(r,i[0]):s7(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?n7[s]+"-resize":null})})}function jn(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(u7(e1(r,t,[[n,a],[n+i,a+o]])))}function t1(r){return dt({strokeNoScale:!0},r.brushStyle)}function uE(r,t,e,n){var a=[Qu(r,e),Qu(t,n)],i=[Vs(r,e),Vs(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function o7(r){return vo(r.group)}function Lm(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Bv(e[t],o7(r));return n[a]}function s7(r,t){var e=[Lm(r,t[0]),Lm(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function uC(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=fE(t,a,i);D(n,function(u){var f=r7[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(uE(s[0][0],s[1][0],s[0][1],s[1][1])),j_(t,e),Ao(t,{isEnd:!1})}function l7(r,t,e,n){var a=t.__brushOption.range,i=fE(r,e,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),j_(r,t),Ao(r,{isEnd:!1})}function fE(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function e1(r,t,e){var n=iE(r,t);return n&&n!==Co?n.clipPath(e,r._transform):yt(e)}function u7(r){var t=Qu(r[0][0],r[1][0]),e=Qu(r[0][1],r[1][1]),n=Vs(r[0][0],r[1][0]),a=Vs(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function f7(r,t,e){if(!(!r._brushType||h7(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=J_(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var ip={lineX:hC(0),lineY:hC(1),rect:{createCover:function(r,t){function e(n){return n}return sE({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=oE(r);return uE(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){lE(r,t,e,n)},updateCommon:Im,contain:Rm},polygon:{createCover:function(r,t){var e=new mt;return e.add(new sr({name:"main",style:t1(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new or({name:"main",draggable:!0,drift:bt(l7,r,t),ondragend:bt(Ao,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:e1(r,t,e)})},updateCommon:Im,contain:Rm}};function hC(r){return{createCover:function(t,e){return sE({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=oE(t),n=Qu(e[0][r],e[1][r]),a=Vs(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=iE(t,e);if(o!==Co&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),lE(t,e,l,a)},updateCommon:Im,contain:Rm}}function hE(r){return r=r1(r),function(t){return wL(t,r)}}function vE(r,t){return r=r1(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function pE(r,t,e){var n=r1(r);return function(a,i){return n.contain(i[0],i[1])&&!ep(a,t,e)}}function r1(r){return Mt.create(r)}var v7=["axisLine","axisTickLabel","axisName"],p7=function(r){V(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){r.prototype.init.apply(this,arguments),(this._brushController=new K_(n.getZr())).on("brush",it(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!d7(e,n,i)){this.axisModel=e,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new mt,this.group.add(this._axisGroup),!!e.get("show")){var s=y7(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,c=e.axis.dim,h=l.getAxisLayout(c),v=H({strokeContainThreshold:f},h),p=new rr(e,v);D(v7,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(v,u,e,s,f,a),vf(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=Mt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:hE(c),isTargetByCursor:pE(c,s,i),getLinearBrushOtherExtent:vE(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(g7(a))},t.prototype._onBrush=function(e){var n=e.areas,a=this.axisModel,i=a.axis,o=X(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(ue);function d7(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function g7(r){var t=r.axis;return X(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function y7(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var m7={type:"axisAreaSelect",event:"axisAreaSelected"};function _7(r){r.registerAction(m7,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var S7={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function dE(r){r.registerComponentView(GY),r.registerComponentModel(WY),r.registerCoordinateSystem("parallel",jY),r.registerPreprocessor(BY),r.registerComponentModel(Dm),r.registerComponentView(p7),Bs(r,"parallel",Dm,S7),_7(r)}function x7(r){Lt(dE),r.registerChartView(IY),r.registerSeriesModel(RY),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,NY)}var b7=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),w7=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new b7},t.prototype.buildPath=function(e,n){var a=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+a,n.y2),e.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(e.lineTo(n.x2,n.y2+a),e.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),e.closePath()},t.prototype.highlight=function(){ha(this)},t.prototype.downplay=function(){va(this)},t}(Pt),T7=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,n,a){var i=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,f=l.height,c=e.getData(),h=e.getData("edge"),v=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new w7,g=_t(d);g.dataIndex=p.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),b=p.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=p.node2.getLayout(),C=p.node2.getModel(),A=C.get("localX"),M=C.get("localY"),I=p.getLayout(),L,P,R,O,B,N,F,U;d.shape.extent=Math.max(1,I.dy),d.shape.orient=v,v==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,R=(A!=null?A*u:T.x)+I.ty,O=M!=null?M*f:T.y,B=L,N=P*(1-_)+O*_,F=R,U=P*_+O*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,R=A!=null?A*u:T.x,O=(M!=null?M*f:T.y)+I.ty,B=L*(1-_)+R*_,N=P,F=L*_+R*(1-_),U=O),d.setShape({x1:L,y1:P,x2:R,y2:O,cpx1:B,cpy1:N,cpx2:F,cpy2:U}),d.useStyle(m.getItemStyle()),vC(d.style,v,p);var Z=""+y.get("value"),Q=De(y,"edgeLabel");Ne(d,Q,{labelFetcher:{getFormattedLabel:function(Tt,xt,G,$,K,j){return e.getFormattedLabel(Tt,xt,"edge",$,Nn(K,Q.normal&&Q.normal.get("formatter"),Z),j)}},labelDataIndex:p.dataIndex,defaultText:Z}),d.setTextConfig({position:"inside"});var ft=y.getModel("emphasis");Oe(d,y,"lineStyle",function(Tt){var xt=Tt.getItemStyle();return vC(xt,v,p),xt}),s.add(d),h.setItemGraphicEl(p.dataIndex,d);var ht=ft.get("focus");ce(d,ht==="adjacency"?p.getAdjacentDataIndices():ht==="trajectory"?p.getTrajectoryDataIndices():ht,ft.get("blurScope"),ft.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,b=new Vt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*f:d.y,width:d.dx,height:d.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});Ne(b,De(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),b.disableLabelAnimation=!0,b.setStyle("fill",p.getVisual("color")),b.setStyle("decal",p.getVisual("style").decal),Oe(b,g),s.add(b),c.setItemGraphicEl(p.dataIndex,b),_t(b).dataType="node";var x=_.get("focus");ce(b,x==="adjacency"?p.getAdjacentDataIndices():x==="trajectory"?p.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(p,d){var g=c.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(C7(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Kt);function vC(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),a=e.node2.getVisual("color");nt(n)&&nt(a)&&(r.fill=new hf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function C7(r,t,e){var n=new Vt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ie(n,{shape:{width:r.width+20}},t,e),n}var A7=function(r){V(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){var a=e.edges||e.links,i=e.data||e.nodes,o=e.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Ut(o[l],this,n));if(i&&a){var u=jR(i,a,this,!0,f);return u.data}function f(c,h){c.wrapMethod("getItemModel",function(v,p){var d=v.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,p){var d=v.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(v.parentModel=_)}return v})}},t.prototype.setNodePosition=function(e,n){var a=this.option.data||this.option.nodes,i=a[e];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(e,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Me("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),c=f.getLayout().value,h=this.getDataParams(e,a).data.name;return Me("nameValue",{name:h!=null?h+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(ae);function D7(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=M7(e,t);e.layoutInfo=i;var o=i.width,s=i.height,l=e.getGraph(),u=l.nodes,f=l.edges;L7(u);var c=Zt(u,function(d){return d.getLayout().value===0}),h=c.length!==0?0:e.get("layoutIterations"),v=e.get("orient"),p=e.get("nodeAlign");I7(u,f,n,a,o,s,h,v,p)})}function M7(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function I7(r,t,e,n,a,i,o,s,l){P7(r,t,e,a,i,s,l),O7(r,t,i,a,n,o,s),U7(r,s)}function L7(r){D(r,function(t){var e=ti(t.outEdges,qh),n=ti(t.inEdges,qh),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function P7(r,t,e,n,a,i,o){for(var s=[],l=[],u=[],f=[],c=0,h=0;h=0;y&&g.depth>v&&(v=g.depth),d.setLayout({depth:y?g.depth:c},!0),i==="vertical"?d.setLayout({dy:e},!0):d.setLayout({dx:e},!0);for(var m=0;mc-1?v:c-1;o&&o!=="left"&&R7(r,o,i,w);var T=i==="vertical"?(a-e)/w:(n-e)/w;k7(r,T,i)}function gE(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function R7(r,t,e,n){if(t==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,V7(s,l,o),dg(s,a,e,n,o),W7(s,l,o),dg(s,a,e,n,o)}function N7(r,t){var e=[],n=t==="vertical"?"y":"x",a=Ey(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),D(a.keys,function(i){e.push(a.buckets.get(i))}),e}function B7(r,t,e,n,a,i){var o=1/0;D(r,function(s){var l=s.length,u=0;D(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(e-(l-1)*a)/u;f0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[h]+t;var p=a==="vertical"?n:e;if(u=f-t-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var v=c-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[h]+t-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function V7(r,t,e){D(r.slice().reverse(),function(n){D(n,function(a){if(a.outEdges.length){var i=ti(a.outEdges,z7,e)/ti(a.outEdges,qh);if(isNaN(i)){var o=a.outEdges.length;i=o?ti(a.outEdges,F7,e)/o:0}if(e==="vertical"){var s=a.getLayout().x+(i-li(a,e))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-li(a,e))*t;a.setLayout({y:l},!0)}}})})}function z7(r,t){return li(r.node2,t)*r.getValue()}function F7(r,t){return li(r.node2,t)}function G7(r,t){return li(r.node1,t)*r.getValue()}function H7(r,t){return li(r.node1,t)}function li(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function qh(r){return r.getValue()}function ti(r,t,e){for(var n=0,a=r.length,i=-1;++io&&(o=l)}),D(n,function(s){var l=new Ae({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&D(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Y7(r){r.registerChartView(T7),r.registerSeriesModel(A7),r.registerLayout(D7),r.registerVisual($7),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var yE=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],p=v[f].get("type"),d=v[1-f].get("type"),g=t.data;if(g&&l){var y=[];D(g,function(S,b){var x;W(S)?(x=S.slice(),S.unshift(b)):W(S.value)?(x=H({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:Vh(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Vh(d),dimsDef:m.slice()}];return al(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:bt(qL,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),mE=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(ae);me(mE,yE,!0);var X7=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),c=pC(f,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(c);return}var h=i.getItemLayout(u);c?(hn(c),_E(h,c,i,u)):c=pC(h,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},t.prototype.remove=function(e){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(Kt),Z7=function(){function r(){}return r}(),q7=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new Z7},t.prototype.buildPath=function(e,n){var a=n.points,i=0;for(e.moveTo(a[i][0],a[i][1]),i++;i<4;i++)e.lineTo(a[i][0],a[i][1]);for(e.closePath();id){var S=[y,_];n.push(S)}}}return{boxData:e,outliers:n}}var r9={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Ye){var n="";Wt(n)}var a=e9(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function n9(r){r.registerSeriesModel(mE),r.registerChartView(X7),r.registerLayout(j7),r.registerTransform(r9)}var a9=["color","borderColor"],i9=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){vi(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){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&dC(u,c))return;var h=gg(c,f,!0);ie(h,{shape:{points:c.ends}},e,f),yg(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&dC(u,v)){i.remove(h);return}h?(Ht(h,{shape:{points:v.ends}},e,f),hn(h)):h=gg(v),yg(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),gC(e,this.group);var n=e.get("clip",!0)?xf(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=gg(s);yg(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){gC(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Kt),o9=function(){function r(){}return r}(),s9=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new o9},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Pt);function gg(r,t,e){var n=r.ends;return new s9({shape:{points:e?l9(n,r):n},z2:100})}function dC(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(a9);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var SE=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ae);me(SE,yE,!0);function f9(r){!r||!W(r.series)||D(r.series,function(t){gt(t)&&t.type==="k"&&(t.type="candlestick")})}var c9=["itemStyle","borderColor"],h9=["itemStyle","borderColor0"],v9=["itemStyle","borderColorDoji"],p9=["itemStyle","color"],d9=["itemStyle","color0"],g9={seriesType:"candlestick",plan:tl(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?p9:d9)}function n(i,o){return o.get(i===0?v9:i>0?c9:h9)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=e(u,l),f.stroke=n(u,l)||f.fill;var c=o.ensureUniqueItemVisual(s,"style");H(c,f)}}}}}},y9={seriesType:"candlestick",plan:tl(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=m9(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=X(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],c=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:v};function v(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(c,y),w=m.get(h,y),T=Math.min(S,b),C=Math.max(S,b),A=B(T,_),M=B(C,_),I=B(x,_),L=B(w,_),P=[];N(P,M,0),N(P,A,1),P.push(U(L),U(M),U(I),U(A));var R=g.getItemModel(y),O=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:yC(m,y,S,b,f,O),initBaseline:S>b?M[i]:A[i],ends:P,brushRect:F(x,w,_)})}function B(Z,Q){var ft=[];return ft[a]=Q,ft[i]=Z,isNaN(Q)||isNaN(Z)?[NaN,NaN]:t.dataToPoint(ft)}function N(Z,Q,ft){var ht=Q.slice(),Tt=Q.slice();ht[a]=jc(ht[a]+n/2,1,!1),Tt[a]=jc(Tt[a]-n/2,1,!0),ft?Z.push(ht,Tt):Z.push(Tt,ht)}function F(Z,Q,ft){var ht=B(Z,ft),Tt=B(Q,ft);return ht[a]-=n/2,Tt[a]-=n/2,{x:ht[0],y:ht[1],width:n,height:Tt[1]-ht[1]}}function U(Z){return Z[a]=jc(Z[a],1),Z}}function p(d,g){for(var y=Rn(d.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=d.next())!=null;){var C=w.get(s,x),A=w.get(u,x),M=w.get(f,x),I=w.get(c,x),L=w.get(h,x);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=yC(w,x,A,M,f,T),S[a]=C,S[i]=I,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function yC(r,t,e,n,a,i){var o;return e>n?o=-1:e0?r.get(a,t-1)<=n?1:-1:1,o}function m9(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=et(St(r.get("barMaxWidth"),a),a),o=et(St(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?et(s,a):Math.max(Math.min(a/2,i),o)}function _9(r){r.registerChartView(i9),r.registerSeriesModel(SE),r.registerPreprocessor(f9),r.registerVisual(g9),r.registerLayout(y9)}function mC(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var S9=function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=new _f(e,n),o=new mt;return a.add(i),a.add(o),a.updateData(e,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,a=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;vt(c)?h=c(a):h=c,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,n,a,i,o){if(n>0){e.__t=0;var s=this,l=e.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return Ga(e.__p1,e.__cp1)+Ga(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Ie,f=my;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var c=e.__t<1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),h=e.__t<1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);e.rotation=-Math.atan2(h,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),c=a[l],h=a[l+1];e.x=c[0]*(1-f)+f*h[0],e.y=c[1]*(1-f)+f*h[1];var v=e.__t<1?h[0]-c[0]:c[0]-h[0],p=e.__t<1?h[1]-c[1]:c[1]-h[1];e.rotation=-Math.atan2(p,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,e.ignore=!1}},t}(xE),C9=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),A9=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new C9},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o0){e.moveTo(a[o++],a[o++]);for(var l=1;l0){var v=(u+c)/2-(f-h)*i,p=(f+h)/2-(c-u)*i;e.quadraticCurveTo(v,p,c,h)}else e.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var c=i[u++],h=i[u++],v=1;v0){var g=(c+p)/2-(h-d)*o,y=(h+d)/2-(p-c)*o;if(qI(c,h,g,y,p,d,s,e,n))return l}else if(Va(c,h,p,d,s,e,n))return l;l++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),wE={seriesType:"lines",plan:tl(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(e){for(var u=0,f=a.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=e.get("clip",!0)&&xf(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,a){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=wE.reset(e,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new D9:new q_(o?i?T9:bE:i?xE:Z_),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}(Kt),I9=typeof Uint32Array>"u"?Array:Uint32Array,L9=typeof Float64Array>"u"?Array:Float64Array;function _C(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=X(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),D0([a,e[0],e[1]])}))}var P9=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],_C(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(_C(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=ph(this._flatCoords,n.flatCoords),this._flatCoordsOffset=ph(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(ae);function Mc(r){return r instanceof Array||(r=[r,r]),r}var R9={seriesType:"lines",reset:function(r){var t=Mc(r.get("symbol")),e=Mc(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function a(i,o){var s=i.getItemModel(o),l=Mc(s.getShallow("symbol",!0)),u=Mc(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};function E9(r){r.registerChartView(M9),r.registerSeriesModel(P9),r.registerLayout(wE),r.registerVisual(R9)}var k9=256,O9=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ni.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=t.length;c.width=e,c.height=n;for(var p=0;p0){var I=o(_)?l:u;_>0&&(_=_*A+T),b[x++]=I[M],b[x++]=I[M+1],b[x++]=I[M+2],b[x++]=I[M+3]*_*256}else x+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ni.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,a=n[e]||(n[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();function N9(r,t,e){var n=r[1]-r[0];t=X(t,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function SC(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var V9=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):SC(o)&&this._renderOnGeo(o,e,i,a)},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,a,i){var o=n.coordinateSystem;o&&(SC(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){vi(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,a,i,o){var s=e.coordinateSystem,l=Eo(s,"cartesian2d"),u,f,c,h;if(l){var v=s.getAxis("x"),p=s.getAxis("y");u=v.getBandWidth()+.5,f=p.getBandWidth()+.5,c=v.scale.getExtent(),h=p.scale.getExtent()}for(var d=this.group,g=e.getData(),y=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),S=e.get(["itemStyle","borderRadius"]),b=De(e),x=e.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),C=x.get("disabled"),A=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=a;Mc[1]||Rh[1])continue;var O=s.dataToPoint([P,R]);I=new Vt({shape:{x:O[0]-u/2,y:O[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(g.get(A[1],M)))continue;I=new Vt({z2:1,shape:s.dataToRect([g.get(A[0],M)]).contentShape,style:L})}if(g.hasItemOption){var B=g.getItemModel(M),N=B.getModel("emphasis");y=N.getModel("itemStyle").getItemStyle(),m=B.getModel(["blur","itemStyle"]).getItemStyle(),_=B.getModel(["select","itemStyle"]).getItemStyle(),S=B.get(["itemStyle","borderRadius"]),w=N.get("focus"),T=N.get("blurScope"),C=N.get("disabled"),b=De(B)}I.shape.r=S;var F=e.getRawValue(M),U="-";F&&F[2]!=null&&(U=F[2]+""),Ne(I,b,{labelFetcher:e,labelDataIndex:M,defaultOpacity:L.opacity,defaultText:U}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=_,ce(I,w,T,C),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),d.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new O9;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-h,y=d-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var A=e.dataToPoint([w,T]);return A[0]-=h,A[1]-=v,A.push(C),A}),S=a.getExtent(),b=a.type==="visualMap.continuous"?B9(S,a.option.range):N9(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Pe({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(Kt),z9=function(r){V(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 xa(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=df.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(ae);function F9(r){r.registerChartView(V9),r.registerSeriesModel(z9)}var G9=["itemStyle","borderWidth"],xC=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Sg=new Sa,H9=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:xC[+f],categoryDim:xC[1-+f]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=wC(o,p),g=bC(o,p,d,h),y=TC(o,h,g);o.setItemGraphicEl(p,y),i.add(y),AC(y,h,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){i.remove(g);return}var y=wC(o,p),m=bC(o,p,y,h),_=IE(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?q9(g,h,m):g=TC(o,h,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,i.add(g),AC(g,h,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&CC(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var v=e.get("clip",!0)?xf(e.coordinateSystem,!1,e):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){CC(i,_t(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(Kt);function bC(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};W9(e,i,a,n,h),U9(r,t,a,i,o,h.boundingLength,h.pxSign,f,n,h),$9(e,h.symbolScale,u,n,h);var v=h.symbolSize,p=Po(e.get("symbolOffset"),v);return Y9(e,v,a,i,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function W9(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(W(o)){var c=[xg(s,o[0])-l,xg(s,o[1])-l];c[1]0?1:-1}function xg(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function U9(r,t,e,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(e[c.wh]),v=r.getItemVisual(t,"symbolSize"),p;W(v)?p=v.slice():v==null?p=["100%","100%"]:p=[v,v],p[c.index]=et(p[c.index],h),p[f.index]=et(p[f.index],n?h:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function $9(r,t,e,n,a){var i=r.get(G9)||0;i&&(Sg.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Sg.updateTransform(),i/=Sg.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function Y9(r,t,e,n,a,i,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,p=c.pxSign,d=Math.max(t[v.index]+s,0),g=d;if(n){var y=Math.abs(l),m=Le(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=et(m,t[v.index]),b=Math.max(d+S*2,0),x=_?0:S*2,w=OI(n),T=w?n:DC((y+x)/b),C=y-T*d;S=C/2/(_?T:Math.max(T-1,1)),b=d+S*2,x=_?0:S*2,!w&&n!=="fixed"&&(T=u?DC((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var A=p*(g/2),M=c.pathPosition=[];M[h.index]=e[h.wh]/2,M[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=c.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=c.barRectShape=H({},e);L[v.wh]=p*Math.max(Math.abs(e[v.wh]),Math.abs(M[v.index]+A)),L[h.wh]=e[h.wh];var P=c.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=f.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function TE(r){var t=r.symbolPatternSize,e=ye(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function CE(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for(n1(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-d),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function AE(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?As(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=TE(e),a.add(i),As(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function DE(r,t,e){var n=H({},t.barRectShape),a=r.__pictorialBarRect;a?As(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new Vt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function ME(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=H({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)Ht(a,{shape:i},s,l);else{i[o.wh]=0,a=new Vt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],Lo[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function wC(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=X9,e.isAnimationEnabled=Z9,e}function X9(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Z9(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function TC(r,t,e,n){var a=new mt,i=new mt;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?CE(a,t,e):AE(a,t,e),DE(a,e,n),ME(a,t,e,n),a.__pictorialShapeStr=IE(r,e),a.__pictorialSymbolMeta=e,a}function q9(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;Ht(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?CE(r,t,e,!0):AE(r,t,e,!0),DE(r,e,!0),ME(r,t,e,!0)}function CC(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];n1(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),D(i,function(o){ii(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function IE(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function n1(r,t,e){D(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function As(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&Lo[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function AC(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");n1(r,function(d){if(d instanceof Pe){var g=d.style;d.useStyle(H({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else d.useStyle(e.style);var y=d.ensureState("emphasis");y.style=o,h&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,Ne(p,De(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Ns(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),ce(r,f,c,i.get("disabled"))}function DC(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var K9=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=pi(Yu.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Yu);function j9(r){r.registerChartView(H9),r.registerSeriesModel(K9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(hP,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vP("pictorialBar"))}var Q9=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function h(g){return g.name}var v=new pa(this._layersSeries||[],l,h,h),p=[];v.add(it(d,this,"add")).update(it(d,this,"update")).remove(it(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;Ti&&(i=s),n.push(s)}for(var u=0;ui&&(i=c)}return{y0:a,max:i}}function nX(r){r.registerChartView(Q9),r.registerSeriesModel(tX),r.registerLayout(eX),r.registerProcessor(wf("themeRiver"))}var aX=2,iX=4,IC=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;o.z2=aX,o.textConfig={inside:!0},_t(o).seriesIndex=n.seriesIndex;var s=new Ft({z2:iX,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,n,a,i),o}return t.prototype.updateData=function(e,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;_t(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=H({},f);c.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=ks(v,o));var p=io(l.getModel("itemStyle"),c,!0);H(c,p),D(ar,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=io(S,c);b&&(_.shape=b)}),e?(s.setShape(c),s.shape.r=f.r0,ie(s,{shape:{r:f.r}},a,n.dataIndex)):(Ht(s,{shape:c},a),hn(s)),s.useStyle(h),this._updateLabel(a);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;ce(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,h=c.getTextContent(),v=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)P&&!Ru(O-P)&&O0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,n,a):(o.virtualPiece=new IC(m,e,n,a),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Lh(u,f)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Em,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Kt),uX=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};LE(a);var i=this._levelModels=X(e.levels||[],function(l){return new Ut(l,this,n)},this),o=H_.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),h=i[c.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=np(a,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){OR(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(ae);function LE(r){var t=0;D(r.children,function(n){LE(n);var a=n.value;W(a)&&(a=a[0]),t+=a});var e=r.value;W(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),W(r.value)?r.value[0]=e:r.value=e}var PC=Math.PI/180;function fX(r,t,e){t.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");W(i)||(i=[0,i]),W(a)||(a=[a,a]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=et(a[0],o),f=et(a[1],s),c=et(i[0],l/2),h=et(i[1],l/2),v=-n.get("startAngle")*PC,p=n.get("minAngle")*PC,d=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&PE(g,m);var _=0;D(g.children,function(O){!isNaN(O.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(h-c)/(w||1),C=n.get("clockwise"),A=n.get("stillShowZeroSum"),M=C?1:-1,I=function(O,B){if(O){var N=B;if(O!==d){var F=O.getValue(),U=S===0&&A?b:F*b;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&nt(s)&&(s=xy(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");H(u,l)})})}function vX(r){r.registerChartView(lX),r.registerSeriesModel(uX),r.registerLayout(bt(fX,"sunburst")),r.registerProcessor(bt(wf,"sunburst")),r.registerVisual(hX),sX(r)}var RC={color:"fill",borderColor:"stroke"},pX={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},la=zt(),dX=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return xa(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=la(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(ae);function gX(r,t){return t=t||[0,0],X(["x","y"],function(e,n){var a=this.getAxis(e),i=t[n],o=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function yX(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(gX,r)}}}function mX(r,t){return t=t||[0,0],X([0,1],function(e){var n=t[e],a=r[e]/2,i=[],o=[];return i[e]=n-a,o[e]=n+a,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function _X(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:it(mX,r)}}}function SX(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,a=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-a)-e.dataToCoord(n+a))}function xX(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(SX,r)}}}function bX(r,t){return t=t||[0,0],X(["Radius","Angle"],function(e,n){var a="get"+e+"Axis",i=this[a](),o=t[n],s=r[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function wX(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=e.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:it(bX,r)}}}function TX(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}function RE(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function EE(r,t,e){var n=r,a,i,o;if(t==="text")o=n;else{o={},st(n,"text")&&(o.text=n.text),st(n,"rich")&&(o.rich=n.rich),st(n,"textFill")&&(o.fill=n.textFill),st(n,"textStroke")&&(o.stroke=n.textStroke),st(n,"fontFamily")&&(o.fontFamily=n.fontFamily),st(n,"fontSize")&&(o.fontSize=n.fontSize),st(n,"fontStyle")&&(o.fontStyle=n.fontStyle),st(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=st(n,"textPosition");e?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),st(n,"textPosition")&&(a.position=n.textPosition),st(n,"textOffset")&&(a.offset=n.textOffset),st(n,"textRotation")&&(a.rotation=n.textRotation),st(n,"textDistance")&&(a.distance=n.textDistance)}return EC(o,r),D(o.rich,function(l){EC(l,l)}),{textConfig:a,textContent:i}}function EC(r,t){t&&(t.font=t.textFont||t.font,st(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),st(t,"textAlign")&&(r.align=t.textAlign),st(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),st(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),st(t,"textWidth")&&(r.width=t.textWidth),st(t,"textHeight")&&(r.height=t.textHeight),st(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),st(t,"textPadding")&&(r.padding=t.textPadding),st(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),st(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),st(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),st(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),st(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),st(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),st(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function kC(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";OC(n,t);var o=n.textFill==null;return a?o&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){OC(s,s)}),n}function OC(r,t){t&&(st(t,"fill")&&(r.textFill=t.fill),st(t,"stroke")&&(r.textStroke=t.fill),st(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),st(t,"font")&&(r.font=t.font),st(t,"fontStyle")&&(r.fontStyle=t.fontStyle),st(t,"fontWeight")&&(r.fontWeight=t.fontWeight),st(t,"fontSize")&&(r.fontSize=t.fontSize),st(t,"fontFamily")&&(r.fontFamily=t.fontFamily),st(t,"align")&&(r.textAlign=t.align),st(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),st(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),st(t,"width")&&(r.textWidth=t.width),st(t,"height")&&(r.textHeight=t.height),st(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),st(t,"padding")&&(r.textPadding=t.padding),st(t,"borderColor")&&(r.textBorderColor=t.borderColor),st(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),st(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),st(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),st(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),st(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),st(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),st(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),st(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),st(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),st(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var kE={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},NC=Ot(kE);zn(Gn,function(r,t){return r[t]=1,r},{});Gn.join(", ");var Kh=["","style","shape","extra"],zs=zt();function a1(r,t,e,n,a){var i=r+"Animation",o=Xs(r,n,a)||{},s=zs(t).userDuring;return o.duration>0&&(o.during=s?it(IX,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),H(o,e[i]),o}function nh(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=zs(r),u=t.style;l.userDuring=t.during;var f={},c={};if(PX(r,t,c),VC("shape",t,c),VC("extra",t,c),!i&&s&&(LX(r,t,f),BC("shape",r,t,f),BC("extra",r,t,f),RX(r,t,u,f)),c.style=u,CX(r,c,o),DX(r,t),s)if(i){var h={};D(Kh,function(p){var d=p?t[p]:t;d&&d.enterFrom&&(p&&(h[p]=h[p]||{}),H(p?h[p]:h,d.enterFrom))});var v=a1("enter",r,t,e,a);v.duration>0&&r.animateFrom(h,v)}else AX(r,t,a||0,e,f);OE(r,t),u?r.dirty():r.markRedraw()}function OE(r,t){for(var e=zs(r).leaveToProps,n=0;n0&&r.animateFrom(a,i)}}function DX(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof Yr&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Pt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var bn={},MX={setTransform:function(r,t){return bn.el[r]=t,this},getTransform:function(r){return bn.el[r]},setShape:function(r,t){var e=bn.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=bn.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=bn.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=bn.el.style;if(t)return t[r]},setExtra:function(r,t){var e=bn.el.extra||(bn.el.extra={});return e[r]=t,this},getExtra:function(r){var t=bn.el.extra;if(t)return t[r]}};function IX(){var r=this,t=r.el;if(t){var e=zs(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}bn.el=t,n(MX)}}function BC(r,t,e,n){var a=e[r];if(a){var i=t[r],o;if(i){var s=e.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),yo(l))H(o,i);else for(var u=qt(l),f=0;f=0){!o&&(o=n[r]={});for(var v=Ot(i),f=0;f=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=n.style={});for(var p=Ot(e),u=0;u=0?t.getStore().get(B,R):void 0}var N=t.get(O.name,R),F=O&&O.ordinalMeta;return F?F.categories[N]:N}function x(P,R){R==null&&(R=u);var O=t.getItemVisual(R,"style"),B=O&&O.fill,N=O&&O.opacity,F=m(R,Za).getItemStyle();B!=null&&(F.fill=B),N!=null&&(F.opacity=N);var U={inheritColor:nt(B)?B:"#000"},Z=_(R,Za),Q=ne(Z,null,U,!1,!0);Q.text=Z.getShallow("show")?St(r.getFormattedLabel(R,Za),Ns(t,R)):null;var ft=Mh(Z,U,!1);return C(P,F),F=kC(F,Q,ft),P&&T(F,P),F.legacy=!0,F}function w(P,R){R==null&&(R=u);var O=m(R,ua).getItemStyle(),B=_(R,ua),N=ne(B,null,null,!0,!0);N.text=B.getShallow("show")?Nn(r.getFormattedLabel(R,ua),r.getFormattedLabel(R,Za),Ns(t,R)):null;var F=Mh(B,null,!0);return C(P,O),O=kC(O,N,F),P&&T(O,P),O.legacy=!0,O}function T(P,R){for(var O in R)st(R,O)&&(P[O]=R[O])}function C(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function A(P,R){if(R==null&&(R=u),st(RC,P)){var O=t.getItemVisual(R,"style");return O?O[RC[P]]:null}if(st(pX,P))return t.getItemVisual(R,P)}function M(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return P4(dt({axis:R},P))}}function I(){return e.getCurrentSeriesIndices()}function L(P){return j0(P,e)}}function HX(r){var t={};return D(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Cg(r,t,e,n,a,i,o){if(!n){i.remove(t);return}var s=u1(r,t,e,n,a,i);return s&&o.setItemGraphicEl(e,s),s&&ce(s,n.focus,n.blurScope,n.emphasisDisabled),s}function u1(r,t,e,n,a,i){var o=-1,s=t;t&&zE(t,n,a)&&(o=It(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=s1(n),s&&VX(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Rr.normal.cfg=Rr.normal.conOpt=Rr.emphasis.cfg=Rr.emphasis.conOpt=Rr.blur.cfg=Rr.blur.conOpt=Rr.select.cfg=Rr.select.conOpt=null,Rr.isLegacy=!1,UX(u,e,n,a,l,Rr),WX(u,e,n,a,l),l1(r,u,e,n,Rr,a,l),st(n,"info")&&(la(u).info=n.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function zE(r,t,e){var n=la(r),a=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&qX(i)&&FE(i)!==n.customPathData||a==="image"&&st(o,"image")&&o.image!==n.customImagePath}function WX(r,t,e,n,a){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&zE(o,i,n)&&(o=null),o||(o=s1(i),r.setClipPath(o)),l1(null,o,t,i,null,n,a)}}function UX(r,t,e,n,a,i){if(!r.isGroup){FC(e,null,i),FC(e,ua,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=s1(o),r.setTextContent(f)),l1(null,f,t,o,null,n,a);for(var c=o&&o.style,h=0;h=f;v--){var p=t.childAt(v);YX(t,p,a)}}}function YX(r,t,e){t&&op(t,la(r).option,e)}function XX(r){new pa(r.oldChildren,r.newChildren,GC,GC,r).add(HC).update(HC).remove(ZX).execute()}function GC(r,t){var e=r&&r.name;return e??NX+t}function HC(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;u1(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function ZX(r){var t=this.context,e=t.oldChildren[r];e&&op(e,la(e).option,t.seriesModel)}function FE(r){return r&&(r.pathData||r.d)}function qX(r){return r&&(st(r,"pathData")||st(r,"d"))}function KX(r){r.registerChartView(zX),r.registerSeriesModel(dX)}var Ki=zt(),WC=yt,Ag=it,c1=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new mt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var h=bt(UC,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}YC(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=O_(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=Ki(t).pointerEl=new Lo[i.type](WC(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=Ki(t).labelEl=new Ft(WC(e.label));t.add(i),$C(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=Ki(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=Ki(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),$C(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=pf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){fa(u.event)},onmousedown:Ag(this._onHandleDragMove,this,0,0),drift:Ag(this._onHandleDragMove,this),ondragend:Ag(this._onHandleDragEnd,this)}),n.add(a)),YC(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");W(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,el(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){UC(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Dg(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Dg(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Dg(a)),Ki(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Fu(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 UC(r,t,e,n){GE(Ki(e).lastProp,n)||(Ki(e).lastProp=n,t?Ht(e,n,r):(e.stopAnimation(),e.attr(n)))}function GE(r,t){if(gt(r)&>(t)){var e=!0;return D(t,function(n,a){e=e&&GE(r[a],n)}),!!e}else return r===t}function $C(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Dg(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function YC(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function h1(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 HE(r,t,e,n,a){var i=e.get("value"),o=WE(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=js(s.get("padding")||0),u=s.getFont(),f=sf(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],p=a.align;p==="right"&&(c[0]-=h),p==="center"&&(c[0]-=h/2);var d=a.verticalAlign;d==="bottom"&&(c[1]-=v),d==="middle"&&(c[1]-=v/2),jX(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:ne(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function jX(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function WE(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:T_(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),nt(o)?i=o.replace("{value}",i):vt(o)&&(i=o(s))}return i}function v1(r,t,e){var n=Ar();return Io(n,n,e.rotation),Fn(n,n,e.position),un([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function UE(r,t,e,n,a,i){var o=rr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),HE(t,n,a,i,{position:v1(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function p1(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function $E(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function XC(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}var QX=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=ZC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=h1(i),v=JX[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var p=dm(l.model,a);UE(n,e,p,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=dm(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=v1(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ZC(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:p[f]}},t}(c1);function ZC(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var JX={line:function(r,t,e){var n=p1([t,e[0]],[t,e[1]],qC(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:$E([t-n/2,e[0]],[n,a],qC(r))}}};function qC(r){return r.dim==="x"?0:1}var tZ=function(r){V(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}(kt),ra=zt(),eZ=D;function YE(r,t,e){if(!Rt.node){var n=t.getZr();ra(n).records||(ra(n).records={}),rZ(n,t);var a=ra(n).records[r]||(ra(n).records[r]={});a.handler=e}}function rZ(r,t){if(ra(r).initialized)return;ra(r).initialized=!0,e("click",bt(KC,"click")),e("mousemove",bt(KC,"mousemove")),e("globalout",aZ);function e(n,a){r.on(n,function(i){var o=iZ(t);eZ(ra(r).records,function(s){s&&a(s,i,o.dispatchAction)}),nZ(o.pendings,t)})}}function nZ(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function aZ(r,t,e){r.handler("leave",null,e)}function KC(r,t,e,n){t.handler(r,e,n)}function iZ(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Nm(r,t){if(!Rt.node){var e=t.getZr(),n=(ra(e).records||{})[r];n&&(ra(e).records[r]=null)}}var oZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";YE("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){Nm("axisPointer",n)},t.prototype.dispose=function(e,n){Nm("axisPointer",n)},t.type="axisPointer",t}(ue);function XE(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=xo(i,r);if(o==null||o<0||W(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,p=i.mapDimension(h),d=[];d[v]=i.get(p,o),d[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(d)||[]}else e=l.dataToPoint(i.getValues(X(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var jC=zt();function sZ(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||it(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ah(a)&&(a=XE({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=ah(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||ah(a),h={},v={},p={list:[],map:{}},d={showPointer:bt(uZ,v),showTooltip:bt(fZ,p)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=pZ(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&QC(S,T,d,!1,h)}})});var g={};return D(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&D(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,JC(S),JC(y)))),g[y.key]=w}})}),D(g,function(y,m){QC(f[m],y,d,!0,h)}),cZ(v,f,h),hZ(p,a,r,o),vZ(f,o,e),h}}function QC(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=lZ(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&H(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function lZ(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var p=r-c,d=Math.abs(p);d<=o&&((d=0&&s<0)&&(o=d,s=p,a=c,i.length=0),D(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function uZ(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function fZ(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Xu(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function cZ(r,t,e){var n=e.axesInfo=[];D(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function hZ(r,t,e,n){if(ah(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function vZ(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=jC(n)[a]||{},o=jC(n)[a]={};D(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&D(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];D(i,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function pZ(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 JC(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 ah(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Df(r){ko.registerAxisPointerClass("CartesianAxisPointer",QX),r.registerComponentModel(tZ),r.registerComponentView(oZ),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!W(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=TU(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},sZ)}function dZ(r){Lt(xR),Lt(Df)}var gZ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(n),h=i.get("type");if(h&&h!=="none"){var v=h1(i),p=mZ[h](s,l,c,f);p.style=v,e.graphicKey=p.type,e.pointer=p}var d=i.get(["label","margin"]),g=yZ(n,a,i,l,d);HE(e,a,i,o,g)},t}(c1);function yZ(r,t,e,n,a){var i=t.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var h=Ar();Io(h,h,s),Fn(h,h,[n.cx,n.cy]),u=un([o,-a],h);var v=t.getModel("axisLabel").get("rotate")||0,p=rr.innerTextLayout(s,v*Math.PI/180,-1);f=p.textAlign,c=p.textVerticalAlign}else{var d=l[1];u=n.coordToPoint([d+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var mZ={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:p1(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:XC(t.cx,t.cy,n[0],n[1],(-e-a/2)*i,(-e+a/2)*i)}:{type:"Sector",shape:XC(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}},_Z=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,a=this.ecModel;return a.eachComponent(e,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(kt),d1=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ge).models[0]},t.type="polarAxis",t}(kt);me(d1,mf);var SZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(d1),xZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(d1),g1=function(r){V(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(pn);g1.prototype.dataToRadius=pn.prototype.dataToCoord;g1.prototype.radiusToData=pn.prototype.coordToData;var bZ=zt(),y1=function(r){V(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=sf(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),h=c/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),p=bZ(e.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-v)<=1&&Math.abs(g-o)<=1&&d>v?v=d:(p.lastTickCount=o,p.lastAutoInterval=v),v},t}(pn);y1.prototype.dataToAngle=pn.prototype.dataToCoord;y1.prototype.angleToData=pn.prototype.coordToData;var ZE=["radius","angle"],wZ=function(){function r(t){this.dimensions=ZE,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new g1,this._angleAxis=new y1,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+n*n);e/=l,n/=l;for(var u=Math.atan2(-n,e)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[a,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,c=this.r,h=this.r0;return f<=c*c&&f>=h*h}}},r.prototype.convertToPixel=function(t,e,n){var a=tA(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=tA(e);return a===this?this.pointToData(n):null},r}();function tA(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function TZ(r,t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight();r.cx=et(n[0],a),r.cy=et(n[1],i);var o=r.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:W(l)||(l=[0,l]);var u=[et(l[0],s),et(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function CZ(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();D(zh(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),D(zh(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Os(n.scale,n.model),Os(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function AZ(r){return r.mainType==="angleAxis"}function eA(r,t){var e;if(r.type=t.get("type"),r.scale=Jv(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),AZ(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,a)}t.axis=r,r.model=t}var DZ={dimensions:ZE,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new wZ(a+"");i.update=CZ;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");eA(o,l),eA(s,u),TZ(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",ge).models[0];n.coordinateSystem=a.coordinateSystem}}),e}},MZ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ic(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Lc(r){var t=r.getRadiusAxis();return t.inverse?0:1}function rA(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var IZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=e.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=X(a.getViewLabels(),function(f){f=yt(f);var c=a.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(h),f});rA(u),rA(s),D(MZ,function(f){e.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&LZ[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(ko),LZ={axisLine:function(r,t,e,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Lc(e),c=f?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?h=new Lo[v]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new ff({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,t,e,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Lc(e)],u=X(n,function(f){return new Te({shape:Ic(e,[l,l+s],f.coord)})});r.add(Fr(u,{style:dt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Lc(e)],f=[],c=0;cy?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];gt(b)&&b.textStyle&&(v=new Ut(b.textStyle,l,l.ecModel))}var x=new Ft({silent:rr.isLabelSilent(t),style:ne(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=rr.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,_t(x).eventData=w}},this)},splitLine:function(r,t,e,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c=0?"p":"n",R=C;b&&(n[f][L]||(n[f][L]={p:C,n:C}),R=n[f][L][P]);var O=void 0,B=void 0,N=void 0,F=void 0;if(p.dim==="radius"){var U=p.dataToCoord(I)-C,Z=l.dataToCoord(L);Math.abs(U)=F})}}})}function BZ(r){var t={};D(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=KE(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;t[l]=c;var v=qE(n);h[v]||c.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var p=et(n.get("barWidth"),f),d=et(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");p&&!h[v].width&&(p=Math.min(c.remainedWidth,p),h[v].width=p,c.remainedWidth-=p),d&&(h[v].maxWidth=d),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var e={};return D(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=et(n.categoryGap,o),l=et(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),D(i,function(d,g){var y=d.maxWidth;y&&y=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),a=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=e.toGlobalCoord(e.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(t,e,n){var a=nA(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=nA(e);return a===this?this.pointToData(n):null},r}();function nA(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function ZZ(r,t){var e=[];return r.eachComponent("singleAxis",function(n,a){var i=new XZ(n,r,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",ge).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),e}var qZ={create:ZZ,dimensions:jE},aA=["x","y"],KZ=["width","height"],jZ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=Mg(l,1-Jh(s)),f=l.dataToPoint(n)[0],c=i.get("type");if(c&&c!=="none"){var h=h1(i),v=QZ[c](s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var p=Bm(a);UE(n,e,p,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Bm(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=v1(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.coordinateSystem,l=Jh(o),u=Mg(s,l),f=[e.x,e.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=Mg(s,1-l),h=(c[1]+c[0])/2,v=[h,h];return v[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(c1),QZ={line:function(r,t,e){var n=p1([t,e[0]],[t,e[1]],Jh(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),a=e[1]-e[0];return{type:"Rect",shape:$E([t-n/2,e[0]],[n,a],Jh(r))}}};function Jh(r){return r.isHorizontal()?0:1}function Mg(r,t){var e=r.getRect();return[e[aA[t]],e[aA[t]]+e[KZ[t]]]}var JZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(ue);function tq(r){Lt(Df),ko.registerAxisPointerClass("SingleAxisPointer",jZ),r.registerComponentView(JZ),r.registerComponentView(UZ),r.registerComponentModel(ih),Bs(r,"single",ih,ih.defaultOption),r.registerCoordinateSystem("single",qZ)}var eq=function(r){V(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,a){var i=Qs(e);r.prototype.init.apply(this,arguments),iA(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),iA(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(kt);function iA(r,t){var e=r.cellSize,n;W(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var a=X([0,1],function(i){return wG(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});oi(r,t,{type:"box",ignoreSize:a})}var rq=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,n,a){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,c=new Vt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(c)}},t.prototype._renderLines=function(e,n,a,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,h=0;c.time<=n.end.time;h++){p(c.formatedDate),h===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(e,d,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},t.prototype._getEdgesPoints=function(e,n,a){var i=[e[0].slice(),e[e.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(e,n,a){var i=new sr({z2:20,shape:{points:e},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,n,a){for(var i=e.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,n){return nt(e)&&e?SG(e,n):vt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,n,a,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=a==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var d=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new Ft({z2:30,style:ne(o,{text:y})});m.attr(this._yearTextPositionControl(m,v[l],a,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,n,a,i,o){var s="left",l="top",u=e[0],f=e[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,n,a,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||nt(s))&&(s&&(n=$y(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=0;d=a.start.time&&n.times.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var a=Math.floor(e[1].time/Ig)-Math.floor(e[0].time/Ig)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+e[0].day+6)/7),c=n?-f+1:f-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:a,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&ea.lweek)return null;var i=(t-1)*7-a.fweek+e,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function oA(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}function aq(r){r.registerComponentModel(eq),r.registerComponentView(rq),r.registerCoordinateSystem("calendar",nq)}function iq(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function sA(r,t){var e;return D(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function oq(r,t,e){var n=H({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(Dt(a,n,!0),oi(a,n,{ignoreSize:!0}),UL(e,a),Pc(e,a),Pc(e,a,"shape"),Pc(e,a,"style"),Pc(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var QE=["transition","enterFrom","leaveTo"],sq=QE.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Pc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?QE:sq,a=0;a=0;f--){var c=a[f],h=_e(c.id,null),v=h!=null?o.get(h):null;if(v){var p=v.parent,y=Br(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Uv(v,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!Br(v).isNew&&S){for(var b=c.transition,x={},w=0;w=0)?x[T]=C:v[T]=C}Ht(v,x,e,0)}else v.attr(_)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(a){oh(a,Br(a).option,n,e._lastGraphicModel)}),this._elMap=ut()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ue);function Vm(r){var t=st(lA,r)?lA[r]:K0(r),e=new t({});return Br(e).type=r,e}function uA(r,t,e,n){var a=Vm(e);return t.add(a),n.set(r,a),Br(a).id=r,Br(a).isNew=!0,a}function oh(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){oh(i,t,e,n)}),op(r,t,n),e.removeKey(Br(r).id))}function fA(r,t,e,n){r.isGroup||D([["cursor",Yr.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(a){var i=a[0];st(t,i)?r[i]=St(t[i],a[1]):r[i]==null&&(r[i]=a[1])}),D(Ot(t),function(a){if(a.indexOf("on")===0){var i=t[a];r[a]=vt(i)?i:null}}),st(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function cq(r){return r=H({},r),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(WL),function(t){delete r[t]}),r}function hq(r,t,e){var n=_t(r).eventData;!r.silent&&!r.ignore&&!n&&(n=_t(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function vq(r){r.registerComponentModel(uq),r.registerComponentView(fq),r.registerPreprocessor(function(t){var e=t.graphic;W(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var cA=["x","y","radius","angle","single"],pq=["cartesian2d","polar","singleAxis"];function dq(r){var t=r.get("coordinateSystem");return It(pq,t)>=0}function qa(r){return r+"Axis"}function gq(r,t){var e=ut(),n=[],a=ut();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var p=e.get(h);p&&p[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}function JE(r){var t=r.ecModel,e={infoList:[],infoMap:ut()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(qa(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var Lg=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Ju=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=hA(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=hA(e);Dt(this.option,e,!0),Dt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ut(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return D(cA,function(a){var i=this.getReferringComponents(qa(a),u5);if(i.specified){n=!0;var o=new Lg;D(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new Lg;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",ge).models[0];v&&D(u,function(p){c.componentIndex!==p.componentIndex&&v===p.getReferringComponents("grid",ge).models[0]&&h.add(p.componentIndex)})}}}i&&D(cA,function(u){if(i){var f=a.findComponents({mainType:qa(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new Lg;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(qa(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){D(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(qa(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;D(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else us(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(d){return s(d)?d:NaN}));else{var p={};p[v]=o,u.selectRange(p)}});us(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;us(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Xt(n[0]+o,n,[0,100],!0):i!=null&&(o=Xt(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=RI(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Sq(r,t,e){var n=[1/0,-1/0];us(e,function(o){J4(n,o.getData(),t)});var a=r.getAxisModel(),i=yP(a.axis.scale,a,n).calculate();return[i.min,i.max]}var xq={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(qa(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new _q(a,i,s,r),e.push(o.__dzAxisProxy))});var n=ut();return D(e,function(a){D(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function bq(r){r.registerAction("dataZoom",function(t,e){var n=gq(e,t);D(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var pA=!1;function _1(r){pA||(pA=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,xq),bq(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function wq(r){r.registerComponentModel(yq),r.registerComponentView(mq),_1(r)}var zr=function(){function r(){}return r}(),tk={};function fs(r,t){tk[r]=t}function ek(r){return tk[r]}var Tq=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;D(this.option.feature,function(n,a){var i=ek(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Dt(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(kt);function Cq(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=xe(n,i,a);po(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Uv(r,n,i,a)}function rk(r,t){var e=js(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Vt({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 Aq=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),c=[];D(u,function(p,d){c.push(d)}),new pa(this._featureNames||[],c).add(h).update(h).remove(bt(h,null)).execute(),this._featureNames=c;function h(p,d){var g=c[p],y=c[d],m=u[g],_=new Ut(m,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(Dq(g))S={onclick:_.option.onclick,featureName:g};else{var b=ek(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=Ks("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof zr;if(!g&&y){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(w,T){var C=this.option,A=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,A[w]&&(T==="emphasis"?ha:va)(A[w])},S instanceof zr&&S.render&&S.render(_,n,a,i)}function v(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof zr&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},b,x;nt(_)?(b={},b[g]=_):b=_,nt(S)?(x={},x[g]=S):x=S;var w=p.iconPaths={};D(b,function(T,C){var A=pf(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(y.getItemStyle());var M=A.ensureState("emphasis");M.style=m.getItemStyle();var I=new Ft({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:j0({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});A.setTextContent(I),Zs({el:A,componentModel:e,itemName:C,formatterParamsExtra:{title:x[C]}}),A.__title=x[C],A.on("mouseover",function(){var L=m.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),A.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",C])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",C])==="emphasis"?ha:va)(A),o.add(A),A.on("click",it(d.onclick,d,n,a,C)),w[C]=A})}Cq(o,e,a),o.add(rk(o.getBoundingRect(),e)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!vt(_)&&d){var S=_.style||(_.style={}),b=sf(d,Ft.makeFont(S)),x=p.x+o.x,w=p.y+o.y+s,T=!1;w+b.height>a.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){D(this._features,function(o){o instanceof zr&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){D(this._features,function(a){a instanceof zr&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){D(this._features,function(a){a instanceof zr&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(ue);function Dq(r){return r.indexOf("my")===0}var Mq=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Rt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];v&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=a.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(zr),dA="__ec_magicType_stack__",Iq=[["line","bar"],["stack"]],Lq=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return D(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(gA[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,p=gA[a](h,v,c,i);p&&(dt(p,c.option),s.series.push(p));var d=c.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,ge).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};D(Iq,function(c){It(c,a)>=0&&D(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=Dt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(zr),gA={line:function(r,t,e,n){if(r==="bar")return Dt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Dt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===dA;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Dt({id:t,stack:a?"":dA},n.get(["option","stack"])||{},!0)}};$n({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var sp=new Array(60).join("-"),Fs=" ";function Pq(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Rq(r){var t=[];return D(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(X(e.series,function(v){return v.name})),l=[a.model.getCategories()];D(e.series,function(v){var p=v.getRawData();l.push(v.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(Fs)],f=0;f=0)return!0}var zm=new RegExp("["+Fs+"]+","g");function Nq(r){for(var t=r.split(/\n+/g),e=tv(t.shift()).split(zm),n=[],a=X(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function Hq(r){var t=S1(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return nk(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function Wq(r){ak(r).snapshots=null}function Uq(r){return S1(r).length}function S1(r){var t=ak(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var $q=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Wq(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(zr);$n({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var Yq=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],x1=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=yA(e,t);D(Xq,function(o,s){(!n||!n.include||It(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Pg[n.brushType](0,i,a);n.__rangeOffset={offset:xA[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){D(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&D(i.coordSyses,function(o){var s=Pg[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){D(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Pg[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?xA[n.brushType](i.values,o.offset,Zq(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return X(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:hE(a),isTargetByCursor:pE(a,t,n.coordSysModel),getLinearBrushOtherExtent:vE(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&It(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=yA(e,t),i=0;ir[1]&&r.reverse(),r}function yA(r,t){return uu(r,t,{includeMainTypes:Yq})}var Xq={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=ut(),o={},s={};!e&&!n&&!a||(D(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];D(u.getCartesians(),function(c,h){(It(e,c.getAxis("x").model)>=0||It(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:_A.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){D(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:_A.geo})})}},mA=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],_A={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(vo(r)),t}},Pg={lineX:bt(SA,0),lineY:bt(SA,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Fm([a[0],i[0]]),Fm([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=X(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function SA(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Fm(X([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var xA={lineX:bt(bA,0),lineY:bt(bA,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return X(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function bA(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function Zq(r,t){var e=wA(r),n=wA(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function wA(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Gm=D,qq=a5("toolbox-dataZoom_"),Kq=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new K_(a.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),Jq(e,n,this,i,a),Qq(e,n)},t.prototype.onclick=function(e,n,a){jq[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new x1(b1(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),Gq(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,p=l(u,v,i),d=p.findRepresentativeAxisProxy(v).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(c=Oo(0,c.slice(),h.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var p=v.getAxisModel(u,f.componentIndex);p&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];Gm(e,function(a,i){n.push(yt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(zr),jq={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Hq(this.ecModel))}};function b1(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Qq(r,t){r.setIconStatus("back",Uq(t)>1?"emphasis":"normal")}function Jq(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new x1(b1(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}IG("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=b1(n),o=uu(r,i);Gm(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Gm(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:qq+u+c};h[f]=c,a.push(h)}return a});function tK(r){r.registerComponentModel(Tq),r.registerComponentView(Aq),fs("saveAsImage",Mq),fs("magicType",Lq),fs("dataView",zq),fs("dataZoom",Kq),fs("restore",$q),Lt(wq)}var eK=function(r){V(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}(kt);function ik(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function ok(r){if(Rt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var p=t+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'
'}function lK(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=Rt.transformSupported?","+w1+n:",left"+n+",top"+n),aK+":"+a}function TA(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Rt.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Rt.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+w1+":"+o+";":[["top",0],["left",0],[sk,o]]}function uK(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),D(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function fK(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=x2(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(lK(a,e)),i&&n.push("background-color:"+i),D(["width","color","radius"],function(v){var p="border-"+v,d=GL(p),g=r.get(d);g!=null&&n.push(p+":"+g+(v==="color"?"":"px"))}),n.push(uK(f)),c!=null&&n.push("padding:"+js(c).join("px ")+"px"),n.join(";")+";"}function CA(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&NV(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var cK=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,Rt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(nt(i)?document.querySelector(i):Ls(i)?i:vt(i)&&i(t.getDom()));CA(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();kr(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=nK(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=iK+fK(t,!this._firstShow,this._longHide)+TA(i[0],i[1],!0)+("border-color:"+To(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(nt(i)&&n.get("trigger")==="item"&&!ik(n)&&(s=sK(n,a,i)),nt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",W(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||Rt.node||!a.getDom())){var o=MA(i,a);this._ticket="";var s=i.dataByCoordSys,l=mK(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=vK;f.x=i.x,f.y=i.y,f.update(),_t(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var c=XE(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(MA(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=El([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=_t(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ro(a,function(f){if(_t(f).dataIndex!=null)return l=f,!0;if(_t(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=it(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=El([n.tooltipOption],i),l=this._renderMode,u=[],f=Me("section",{blocks:[],noHeader:!0}),c=[],h=new gd;D(e,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=WE(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=Me("section",{header:x,noHeader:!an(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),D(_.seriesDataIndices,function(T){var C=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=C.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=T_(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",To(M.color),l);var I=pb(C.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=El([C],i).get("valueFormatter");w.blocks.push(P?H({valueFormatter:P},L):L)}I.text&&c.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,p=s.get("order"),d=Sb(f,h,l,p,a.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var g=l==="richText"?` - -`:"
",y=c.join(g);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,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=_t(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,p=e.positionDefault,d=El([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new gd;y.marker=m.makeTooltipMarker("item",To(y.color),v);var _=pb(u.formatTooltip(f,!1,c)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?Sb(b?H({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",o=_t(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(nt(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=yt(l),l.content=fr(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=e.positionDefault,p=El(c,this._tooltipModel,v?{position:v}:null),d=p.get("content"),g=Math.random()+"",y=new gd;this._showOrMove(p,function(){var m=yt(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,e.offsetX,e.offsetY,e.position,n,y)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,p=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),d=p.color;if(h)if(nt(h)){var g=e.ecModel.get("useUTC"),y=W(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=zv(y.axisValue,v,g)),v=HL(v,a,!0)}else if(vt(h)){var _=it(function(S,b){S===this._ticket&&(c.setContent(b,f,e,d,l),this._updatePosition(e,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,e,d,l),c.show(e,d),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||W(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!W(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),vt(n)&&(n=n([a,i],s,o.el,p,{viewSize:[u,f],contentSize:c.slice()})),W(n))a=et(n[0],u),i=et(n[1],f);else if(gt(n)){var d=n;d.width=c[0],d.height=c[1];var g=xe(d,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(nt(n)&&l){var y=yK(n,p,c,e.get("borderWidth"));a=y[0],i=y[1]}else{var y=dK(a,i,o,u,f,h?null:20,v?null:20);a=y[0],i=y[1]}if(h&&(a-=IA(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=IA(v)?c[1]/2:v==="bottom"?c[1]:0),ik(e)){var y=gK(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&D(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&D(u,function(h,v){var p=c[v]||{},d=h.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&d.length===g.length,o&&D(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[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){Rt.node||!n.getDom()||(Fu(this,"_updatePosition"),this._tooltipContent.dispose(),Nm("itemTooltip",n))},t.type="tooltip",t}(ue);function El(r,t,e){var n=t.ecModel,a;e?(a=new Ut(e,n,n),a=new Ut(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ut&&(o=o.get("tooltip",!0)),nt(o)&&(o={formatter:o}),o&&(a=new Ut(o,a,n)))}return a}function MA(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function dK(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function gK(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function yK(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function IA(r){return r==="center"||r==="middle"}function mK(r,t,e){var n=V0(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=lf(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=_t(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function _K(r){Lt(Df),r.registerComponentModel(eK),r.registerComponentView(pK),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},pe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},pe)}var SK=["rect","polygon","keep","clear"];function xK(r,t){var e=qt(r?r.brush:[]);if(e.length){var n=[];D(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;W(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),bK(s),t&&!s.length&&s.push.apply(s,SK)}}function bK(r){var t={};D(r,function(e){t[e]=1}),r.length=0,D(t,function(e,n){r.push(n)})}var LA=D;function PA(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Hm(r,t,e){var n={};return LA(t,function(i){var o=n[i]=a();LA(r[i],function(s,l){if(Ae.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Ae(u),l==="opacity"&&(u=yt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ae(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function uk(r,t,e){var n;D(e,function(a){t.hasOwnProperty(a)&&PA(t[a])&&(n=!0)}),n&&D(e,function(a){t.hasOwnProperty(a)&&PA(t[a])?r[a]=yt(t[a]):delete r[a]})}function wK(r,t,e,n,a,i){var o={};D(r,function(c){var h=Ae.prepareVisualTypes(t[c]);o[c]=h});var s;function l(c){return v_(e,s,c)}function u(c,h){P2(e,s,c,h)}e.each(f);function f(c,h){s=c;var v=e.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var p=n.call(a,c),d=t[p],g=o[p],y=0,m=g.length;yt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&NA(t)}};function NA(r){return new Mt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var PK=function(r){V(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){this.ecModel=e,this.api=n,this.model,(this._brushController=new K_(n.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){fk(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:yt(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:yt(a),$from:n})},t.type="brush",t}(ue),RK="#ddd",EK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&uk(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:RK},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=X(e,function(n){return BA(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=BA(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(kt);function BA(r,t){return Dt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ut(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var kK=["rect","polygon","lineX","lineY","keep","clear"],OK=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return D(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var n={show:!0,type:kK.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(zr);function NK(r){r.registerComponentView(PK),r.registerComponentModel(EK),r.registerPreprocessor(xK),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,AK),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},pe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},pe),fs("brush",OK)}var BK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(kt),VK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=St(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ft({style:ne(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new Ft({style:ne(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),d=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!p&&!g,v.silent=!d&&!g,p&&f.on("click",function(){Lh(p,"_"+e.get("target"))}),d&&v.on("click",function(){Lh(d,"_"+e.get("subtarget"))}),_t(f).eventData=_t(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=xe(m,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new Vt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},t.type="title",t}(ue);function zK(r){r.registerComponentModel(BK),r.registerComponentView(VK)}var VA=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],a=e.axisType,i=this._names=[],o;a==="category"?(o=[],D(n,function(u,f){var c=_e($s(u),""),h;gt(u)?(h=yt(u),h.value=f):h=f,o.push(h),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new er([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(kt),ck=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=pi(VA.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(VA);me(ck,Yv.prototype);var FK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(ue),GK=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(pn),Eg=Math.PI,zA=zt(),HK=function(r){V(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){this.api=n},t.prototype.render=function(e,n,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return Me("nameValue",{noName:!0,value:f})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var a=e.get(["label","position"]),i=e.get("orient"),o=UK(e,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Eg/2},c=i==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),v=h.get("show",!0),p=v?h.get("itemSize"):0,d=v?h.get("itemGap"):0,g=p+d,y=e.get(["label","rotate"])||0;y=y*Eg/180;var m,_,S,b=h.get("position",!0),x=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),C=0,A=c;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[A-p,0],A-=g)):(x&&(m=[A-p,0],A-=g),w&&(_=[0,0],C+=g),T&&(S=[A-p,0],A-=g));var M=[C,A];return e.get("inverse")&&M.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:d}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Ar(),l=o.x,u=o.y+o.height;Fn(s,s,[-l,-u]),Io(s,s,-Eg/2),Fn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(a.getBoundingRect()),h=m(i.getBoundingRect()),v=[a.x,a.y],p=[i.x,i.y];p[0]=v[0]=f[0][0];var d=e.labelPosOpt;if(d==null||nt(d)){var g=d==="+"?0:1;_(v,c,f,1,g),_(p,h,f,1,1-g)}else{var g=d>=0?0:1;_(v,c,f,1,g),p[1]=v[1]+d}a.setPosition(v),i.setPosition(p),a.rotation=i.rotation=e.rotation,y(a),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType"),o=WK(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new GK("value",o,e.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new mt;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Te({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:H({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Te({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:dt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(e,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],D(l,function(u){var f=a.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),v=c.getModel(["emphasis","itemStyle"]),p=c.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:it(o._changeTimeline,o,u.value)},g=FA(c,h,n,d);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),ho(g);var y=_t(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],D(u,function(f){var c=f.tickValue,h=l.getItemModel(c),v=h.getModel("label"),p=h.getModel(["emphasis","label"]),d=h.getModel(["progress","label"]),g=a.dataToCoord(f.tickValue),y=new Ft({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:it(o._changeTimeline,o,c),silent:!1,style:ne(v,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=ne(p),y.ensureState("progress").style=ne(d),n.add(y),ho(y),zA(y).dataIndex=c,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,n,a,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);h(e.nextBtnPosition,"next",it(this._changeTimeline,this,c?"-":"+")),h(e.prevBtnPosition,"prev",it(this._changeTimeline,this,c?"+":"-")),h(e.playPosition,f?"stop":"play",it(this._handlePlayClick,this,!f),!0);function h(v,p,d,g){if(v){var y=cn(St(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=$K(i,p+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,n.add(_),ho(_)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=it(u._handlePointerDrag,u),c.ondragend=it(u._handlePointerDragend,u),GA(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){GA(c,u._progressLine,s,a,i)}};this._currentPointer=FA(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,o=Hr(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(h)),[o,c]}var kg={min:bt(kc,"min"),max:bt(kc,"max"),average:bt(kc,"average"),median:bt(kc,"median")};function tf(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!jK(t)&&!W(t.coord)&&W(a)){var i=hk(t,e,n,r);if(t=yt(t),t.type&&kg[t.type]&&i.baseAxis&&i.valueAxis){var o=It(a,i.baseAxis.dim),s=It(a,i.valueAxis.dim),l=kg[t.type](e,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!W(a))t.coord=[];else for(var u=t.coord,f=0;f<2;f++)kg[u[f]]&&(u[f]=C1(e,e.mapDimension(a[f]),u[f]));return t}}function hk(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(QK(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function QK(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function ef(r,t){return r&&r.containData&&t.coord&&!Um(t)?r.containData(t.coord):!0}function JK(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Um(t)&&!Um(e)?r.containZone(t.coord,e.coord):!0}function vk(r,t){return r?function(e,n,a,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Ja(o,t[i])}:function(e,n,a,i){return Ja(e.value,t[i])}}function C1(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Og=zt(),A1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ut()},t.prototype.render=function(e,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){Og(s).keep=!1}),n.eachSeries(function(s){var l=ya.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!Og(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(e){Og(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;D(e,function(i){var o=ya.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?iL(l):$0(l))})}})},t.type="marker",t}(ue);function WA(r,t,e){var n=t.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),o,s=et(i.get("x"),e.getWidth()),l=et(i.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var u=r.get(n.dimensions[0],a),f=r.get(n.dimensions[1],a);o=n.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var tj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=ya.getMarkerModelFromSeries(i,"markPoint");o&&(WA(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Sf),c=ej(o,e,n);n.setData(c),WA(n.getData(),e,i),c.each(function(h){var v=c.getItemModel(h),p=v.getShallow("symbol"),d=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(vt(p)||vt(d)||vt(g)||vt(y)){var _=n.getRawValue(h),S=n.getDataParams(h);vt(p)&&(p=p(_,S)),vt(d)&&(d=d(_,S)),vt(g)&&(g=g(_,S)),vt(y)&&(y=y(_,S))}var b=v.getModel("itemStyle").getItemStyle(),x=gf(l,"color");b.fill||(b.fill=x),c.setItemVisual(h,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){_t(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(A1);function ej(r,t,e){var n;r?n=X(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return H(H({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new er(n,e),i=X(e.get("data"),bt(tf,t));r&&(i=Zt(i,bt(ef,r)));var o=vk(!!r,n);return a.initData(i,null,o),a}function rj(r){r.registerComponentModel(KK),r.registerComponentView(tj),r.registerPreprocessor(function(t){T1(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var nj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ya),Oc=zt(),aj=function(r,t,e,n){var a=r.getData(),i;if(W(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Le(n.yAxis,n.xAxis);else{var u=hk(n,a,t,r);s=u.valueAxis;var f=oP(a,u.valueDataDim);l=C1(a,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=yt(n),p={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,p.coord[h]=1/0;var d=e.get("precision");d>=0&&Gt(l)&&(l=+l.toFixed(Math.min(d,20))),v.coord[c]=p.coord[c]=l,i=[v,p,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[tf(r,i[0]),tf(r,i[1]),H({},i[2])];return g[2].type=g[2].type||null,Dt(g[2],g[0]),Dt(g[2],g[1]),g};function ev(r){return!isNaN(r)&&!isFinite(r)}function UA(r,t,e,n){var a=1-r,i=n.dimensions[r];return ev(t[a])&&ev(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function ij(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(UA(1,e,n,r)||UA(0,e,n,r)))return!0}return ef(r,t[0])&&ef(r,t[1])}function Ng(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=et(o.get("x"),a.getWidth()),u=et(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,c=r.get(f[0],t),h=r.get(f[1],t);s=i.dataToPoint([c,h])}if(Eo(i,"cartesian2d")){var v=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;ev(r.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[e?0:1]):ev(r.get(f[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var oj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=ya.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Oc(o).from,u=Oc(o).to;l.each(function(f){Ng(l,f,!0,i,a),Ng(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new q_);this.group.add(f.group);var c=sj(o,e,n),h=c.from,v=c.to,p=c.line;Oc(n).from=h,Oc(n).to=v,n.setData(p);var d=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");W(d)||(d=[d,d]),W(g)||(g=[g,g]),W(y)||(y=[y,y]),W(m)||(m=[m,m]),c.from.each(function(S){_(h,S,!0),_(v,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),b.stroke==null&&(b.stroke=h.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),c.line.eachItemGraphicEl(function(S){_t(S).dataModel=n,S.traverse(function(b){_t(b).dataModel=n})});function _(S,b,x){var w=S.getItemModel(b);Ng(S,b,x,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=gf(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:St(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:St(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:St(w.get("symbolSize"),g[x?0:1]),symbol:St(w.get("symbol",!0),d[x?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(A1);function sj(r,t,e){var n;r?n=X(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return H(H({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new er(n,e),i=new er(n,e),o=new er([],e),s=X(e.get("data"),bt(aj,t,r,e));r&&(s=Zt(s,bt(ij,r)));var l=vk(!!r,n);return a.initData(X(s,function(u){return u[0]}),null,l),i.initData(X(s,function(u){return u[1]}),null,l),o.initData(X(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function lj(r){r.registerComponentModel(nj),r.registerComponentView(oj),r.registerPreprocessor(function(t){T1(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var uj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ya),Nc=zt(),fj=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=tf(r,a),s=tf(r,i),l=o.coord,u=s.coord;l[0]=Le(l[0],-1/0),l[1]=Le(l[1],-1/0),u[0]=Le(u[0],1/0),u[1]=Le(u[1],1/0);var f=D0([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function rv(r){return!isNaN(r)&&!isFinite(r)}function $A(r,t,e,n){var a=1-r;return rv(t[a])&&rv(e[a])}function cj(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return Eo(r,"cartesian2d")?e&&n&&($A(1,e,n)||$A(0,e,n))?!0:JK(r,a,i):ef(r,a)||ef(r,i)}function YA(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=et(o.get(e[0]),a.getWidth()),u=et(o.get(e[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],t),c=r.getValues(["x1","y1"],t),h=i.clampData(f),v=i.clampData(c),p=[];e[0]==="x0"?p[0]=h[0]>v[0]?c[0]:f[0]:p[0]=h[0]>v[0]?f[0]:c[0],e[1]==="y0"?p[1]=h[1]>v[1]?c[1]:f[1]:p[1]=h[1]>v[1]?f[1]:c[1],s=n.getMarkerPosition(p,e,!0)}else{var d=r.get(e[0],t),g=r.get(e[1],t),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Eo(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(e[0],t),g=r.get(e[1],t);rv(d)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):rv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var XA=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],hj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=ya.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=X(XA,function(c){return YA(s,l,c,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new mt});this.group.add(f.group),this.markKeep(f);var c=vj(o,e,n);n.setData(c),c.each(function(h){var v=X(XA,function(T){return YA(c,h,T,e,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(c.get("x0",h)),p.parse(c.get("x1",h))],_=[d.parse(c.get("y0",h)),d.parse(c.get("y1",h))];Hr(m),Hr(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),b=!S;c.setItemLayout(h,{points:v,allClipped:b});var x=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=gf(l,"color");x.fill||(x.fill=w,nt(x.fill)&&(x.fill=mh(x.fill,.4))),x.stroke||(x.stroke=w),c.setItemVisual(h,"style",x)}),c.diff(Nc(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var p=new or({shape:{points:v.points}});c.setItemGraphicEl(h,p),f.group.add(p)}}).update(function(h,v){var p=Nc(f).data.getItemGraphicEl(v),d=c.getItemLayout(h);d.allClipped?p&&f.group.remove(p):(p?Ht(p,{shape:{points:d.points}},n,h):p=new or({shape:{points:d.points}}),c.setItemGraphicEl(h,p),f.group.add(p))}).remove(function(h){var v=Nc(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),c.eachItemGraphicEl(function(h,v){var p=c.getItemModel(v),d=c.getItemVisual(v,"style");h.useStyle(c.getItemVisual(v,"style")),Ne(h,De(p),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:nt(d.fill)?mh(d.fill,1):"#000"}),Oe(h,p),ce(h,null,null,p.get(["emphasis","disabled"])),_t(h).dataModel=n}),Nc(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(A1);function vj(r,t,e){var n,a,i=["x0","y0","x1","y1"];if(r){var o=X(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return H(H({},c),{name:u,ordinalMeta:null})});a=X(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new er(a,e)}else a=[{name:"value",type:"float"}],n=new er(a,e);var s=X(e.get("data"),bt(fj,t,r,e));r&&(s=Zt(s,bt(cj,r)));var l=r?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return Ja(v,a[h])}:function(u,f,c,h){return Ja(u.value,a[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}function pj(r){r.registerComponentModel(uj),r.registerComponentView(hj),r.registerPreprocessor(function(t){T1(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var dj=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"])}},$m=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,a=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),W(n)&&D(n,function(i,o){nt(i)&&(i={type:i}),n[o]=Dt(i,dj(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a=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}(kt),ts=bt,Ym=D,Bc=mt,pk=function(r){V(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 Bc),this.group.add(this._selectorGroup=new Bc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var f=e.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=xe(f,c,h),p=this.layoutInner(e,o,v,i,l,u),d=xe(dt({width:p.width,height:p.height},f),c,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rk(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),f=ut(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Ym(n.getData(),function(v,p){var d=v.get("name");if(!this.newlineDisabled&&(d===""||d===` -`)){var g=new Bc;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,v,n,e,_,b,S,c,i);x.on("click",ts(ZA,d,null,i,h)).on("mouseover",ts(Xm,y.name,null,i,h)).on("mouseout",ts(Zm,y.name,null,i,h)),a.ssr&&x.eachChild(function(w){var T=_t(w);T.seriesIndex=y.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),f.set(d,!0)}else a.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),A=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),I=Dr(A.fill);I&&I[3]===0&&(I[3]=.2,A=H(H({},A),{fill:sa(I,"rgba")}));var L=this._createItem(w,d,p,v,n,e,{},A,M,c,i);L.on("click",ts(ZA,null,d,i,h)).on("mouseover",ts(Xm,null,d,i,h)).on("mouseout",ts(Zm,null,d,i,h)),a.ssr&&L.eachChild(function(P){var R=_t(P);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();Ym(e,function(u){var f=u.type,c=new Ft({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Ne(c,{normal:h,emphasis:v},{defaultText:u.title}),ho(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,h){var v=e.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=gj(f,i,l,u,v,g,h),b=new Bc,x=i.getModel("textStyle");if(vt(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(yj({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,C=s,A=o.get("formatter"),M=n;nt(A)&&A?M=A.replace("{name}",n??""):vt(A)&&(M=A(n));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new Ft({style:ne(x,{text:M,x:T,y:d/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new Vt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Zs({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!c,this.getContentGroup().add(b),ho(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();po(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){po("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],p=e.get("selectorButtonGap",!0),d=e.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?v[d]+=f[g]+p:c[d]+=h[g]+p,v[1-d]+=f[y]/2-h[y]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+p+h[g],_[y]=Math.max(f[y],h[y]),_[m]=Math.min(0,h[m]+v[1-d]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ue);function gj(r,t,e,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Ym(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:ks(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var p=t.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?n.lineWidth>0&&d?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function yj(r){var t=r.icon||"roundRect",e=ye(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 ZA(r,t,e,n){Zm(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Xm(r,t,e,n)}function dk(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=St(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=v[s]/2-p[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var b={x:0,y:0};if(b[o]=d?a[o]:v[o],b[s]=Math.max(v[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),c.__rectSize=a[o],d){var x={x:0,y:0};x[o]=Math.max(a[o]-p[o]-_,0),x[s]=b[s],c.setClipPath(new Vt({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Ht(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",nt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Bg[o],l=Vg[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,p={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var d=S(c);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(pk);function bj(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function wj(r){Lt(gk),r.registerComponentModel(Sj),r.registerComponentView(xj),bj(r)}function Tj(r){Lt(gk),Lt(wj)}var Cj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=pi(Ju.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ju),D1=zt();function Aj(r,t,e){D1(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function Dj(r,t){for(var e=D1(r).coordSysRecordMap,n=e.keys(),a=0;an[e+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Rj(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=D1(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ut());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=JE(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Mj(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=ut());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){yk(a,i);return}var f=Pj(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),el(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Ej=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Aj(a,e,{pan:it(zg.pan,this),zoom:it(zg.zoom,this),scrollMove:it(zg.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Dj(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(m1),zg={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=Fg[t](null,[n.originX,n.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Oo(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:jA(function(r,t,e,n,a,i){var o=Fg[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:jA(function(r,t,e,n,a,i){var o=Fg[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function jA(r){return function(t,e,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,a);if(Oo(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Fg={grid:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,n,a){var i=e.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function mk(r){_1(r),r.registerComponentModel(Cj),r.registerComponentView(Ej),Rj(r)}var kj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=pi(Ju.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Ju),Nl=Vt,QA=7,Oj=1,Gg=30,Nj=7,Bl="horizontal",JA="vertical",Bj=5,Vj=["line","bar","candlestick","scatter"],zj={easing:"cubicOut",duration:100,delay:0},Fj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),el(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Fu(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new mt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?Nj:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Bl?{right:s.width-o.x-o.width,top:s.height-Gg-QA-i,width:o.width,height:Gg}:{right:QA,top:o.y,width:Gg,height:o.height},u=Qs(e.option);D(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var f=xe(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===JA&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Bl&&!o?{scaleY:l?1:-1,scaleX:1}:a===Bl&&o?{scaleY:l?1:-1,scaleX:-1}:a===JA&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=n.x-u.x,e.y=n.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Nl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Nl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var v=[0,n[1]],p=[0,n[0]],d=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(C,A){if(_>0&&A%_){m+=y;return}var M=C==null||isNaN(C)||C==="",I=M?0:Xt(C,c,v,!0);M&&!S&&A?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var b=this.dataZoomModel;function x(C){var A=b.getModel(C?"selectedDataBackground":"dataBackground"),M=new mt,I=new or({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new sr({shape:{points:f},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var w=0;w<3;w++){var T=x(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!a&&!(n!==!0&&It(Vj,u.get("type"))<0)){var f=i.getComponent(qa(o),s).axis,c=Gj(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c),a={thisAxis:f,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=n.filler=new Nl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Nl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Oj,fill:"rgba(0,0,0,0)"}})),D([0,1],function(_){var S=l.get("handleIcon");!Eh[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=ye(S,-1,0,2,2,null,!0);b.attr({cursor:tD(this._orient),draggable:!0,drift:it(this._onDragMove,this,_),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=et(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ho(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(a[_]=b);var C=l.getModel("textStyle");e.add(i[_]=new Ft({silent:!0,invisible:!0,style:ne(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=h;if(c){var p=et(l.get("moveHandleSize"),s[1]),d=n.moveHandle=new Vt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=ye(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));v=n.moveZone=new Vt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),v.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:tD(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Xt(e[0],[0,100],n,!0),Xt(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Oo(n,i,o,a.get("zoomLock")?"all":e,s.minSpan!=null?Xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Xt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Hr([Xt(i[0],o,l,!0),Xt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=Hr(a.slice()),o=this._size;D([0,1],function(v){var p=n.handles[v],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:a[v]+(v?-1:1),y:o[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fn[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new Ct(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Hr([Xt(a.x,o,s,!0),Xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(fa(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Nl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?zj:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=JE(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(m1);function Gj(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function tD(r){return r==="vertical"?"ns-resize":"ew-resize"}function _k(r){r.registerComponentModel(kj),r.registerComponentView(Fj),_1(r)}function Hj(r){Lt(mk),Lt(_k)}var Sk={get:function(r,t,e){var n=yt((Wj[r]||{})[t]);return e&&W(n)?n[n.length-1]:n}},Wj={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},eD=Ae.mapVisual,Uj=Ae.eachVisual,$j=W,rD=D,Yj=Hr,Xj=Xt,nv=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&uk(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Hm(this.option.controller,n,e),this.targetVisuals=Hm(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){D(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],W(e)&&(e=e.slice(),u=!0);var f=n?e:u?[c(e[0]),c(e[1])]:c(e);if(nt(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(vt(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?a[0]+" "+f[1]:e[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,n=Yj([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var a=e.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Dt(i,a),Dt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){$j(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,h,v){var p=c[h],d=c[v];p&&!d&&(d=c[v]={},rD(p,function(g,y){if(Ae.isValidType(y)){var m=Sk.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";rD(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=h&&yt(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&yt(v)||(s?m[0]:[m[0],m[0]])),_.symbol=eD(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;Uj(S,function(x){x>b&&(b=x)}),_.symbolSize=eD(S,function(x){return Xj(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(kt),nD=[20,140],Zj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=nD[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=nD[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):W(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=Hr((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=aD(this,"outOfRange",this.getExtent()),a=aD(this,"inRange",this.option.range.slice()),i=[];function o(v,p){i.push({value:v,color:e(v,p)})}for(var s=0,l=0,u=a.length,f=n.length;le[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new mt(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();qj([0,1],function(f){var c=o[f];c.setStyle("fill",n.handlesColor[f]),c.y=e[f];var h=wn(e[f],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=v/l[0],c.x=l[0]-v/2;var p=un(a.handleLabelPoints[f],vo(c,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",h),p=this.getControllerVisual(e,"symbolSize"),d=wn(e,s,u,!0),g=l[0]-p/2,y={x:c.x,y:c.y};c.y=d,c.x=g;var m=un(f.indicatorLabelPoint,vo(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,C),_.animateTo(T,C)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;Mo[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||lD(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var p=s5(h,v);this._dispatchHighDown("downplay",sh(p[0],a)),this._dispatchHighDown("highlight",sh(p[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(ro(e.target,function(l){var u=_t(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function nQ(r,t,e,n){for(var a=t.targetVisuals[n],i=Ae.prepareVisualTypes(a),o={color:gf(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(tQ,eQ),D(rQ,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(aQ))}function Tk(r){r.registerComponentModel(Zj),r.registerComponentView(Qj),wk(r)}var iQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],oQ[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=yt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(l){return l=yt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=Ae.listVisualTypes(),i=this.isCategory();D(e.pieces,function(s){D(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&D(this.stateList,function(f){(e[f]||(e[f]={}))[l]=Sk.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,o=(n?a:e).selected||{};if(a.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;D(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=yt(e)},t.prototype.getValueState=function(e){var n=Ae.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ae.findPieceIndex(l,a);f===e&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=e(h,c);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:n.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=pi(nv.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(nv),oQ={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function hD(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var sQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),c=f.endsText,h=Le(n.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],u,h,l),D(f.viewPieceList,function(v){var p=v.piece,d=new mt;d.onclick=it(this._onItemClick,this,p),this._enableHoverLink(d,v.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(g);d.add(new Ft({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}e.add(d)},this),c&&this._renderEndsText(e,c[1],u,h,l),po(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:sh(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return bk(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,o){if(n){var s=new mt,l=this.visualMapModel.textStyleModel;s.add(new Ft({style:ne(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=X(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(ye(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=yt(a.selected),s=n.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(xk);function Ck(r){r.registerComponentModel(iQ),r.registerComponentView(sQ),wk(r)}function lQ(r){Lt(Tk),Lt(Ck)}var uQ={label:{enabled:!0},decal:{show:!1}},vD=zt(),fQ={};function cQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=yt(uQ);Dt(n.label,r.getLocaleModel().get("aria"),!1),Dt(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=ut();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),vD(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(vt(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=Zy(h.ecModel,h.name,fQ,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var p=h.getRawData(),d={},g=vD(h).scope;v.each(function(b){var x=v.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",T=Zy(h.ecModel,w,g,y),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?H(H({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=dt(c.option,f),!!c.get("enabled")){if(c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,d=Math.min(h,p),g;if(!(h<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,C){if(C1?c.get(["series","multiple",I]):c.get(["series","single",I]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),B=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},pQ=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):DV(t)?t:null;if(e==null){var n="";Wt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Gt(e)?this._condVal.test(t+""):!1},r}(),dQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),gQ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(a),a=[L,P]}function f(L,P,R,O){ds(L,R)&&ds(P,O)||a.push(L,P,R,O,R,O)}function c(L,P,R,O,B,N){var F=Math.abs(P-L),U=Math.tan(F/4)*4/3,Z=PT:M2&&n.push(a),n}function Km(r,t,e,n,a,i,o,s,l,u){if(ds(r,e)&&ds(t,n)&&ds(a,o)&&ds(i,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-r,v=s-t,p=Math.sqrt(h*h+v*v);h/=p,v/=p;var d=e-r,g=n-t,y=a-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var C=[],A=[];ai(r,e,a,o,.5,C),ai(t,n,i,s,.5,A),Km(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),Km(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function LQ(r,t){var e=qm(r),n=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),c=Dk([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;va,o=Dk([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,h=0;h1?null:new Ct(d*l+r,d*u+t)}function EQ(r,t,e){var n=new Ct;Ct.sub(n,e,t),n.normalize();var a=new Ct;Ct.sub(a,r,t);var i=a.dot(n);return i}function rs(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function kQ(r,t,e){for(var n=r.length,a=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),kQ(t,u,f)}function av(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);av(r,i[0],a,n),av(r,i[1],e-a,n)}return n}function OQ(r,t){for(var e=[],n=0;n0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function sv(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=X(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(c,e),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=X(i,function(s,l){return{cp:s,z:UQ(s[0],s[1],t,e,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Lk(r){return VQ(r.path,r.count)}function jm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function $Q(r,t,e){var n=[];function a(b){for(var x=0;x=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var XQ={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;bD(r)&&(u=r,f=t),bD(t)&&(u=t,f=r);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(iv(T))c({many:[T],one:C},!0,_,S,!0);else{var A=s?dt({delay:s(_,S)},l):l;I1(T,C,A),i(T,C,T,C,A)}}else for(var M=dt({dividePath:XQ[e],individualDelay:s&&function(B,N,F,U){return s(B+_,S)}},l),I=m?$Q(x,w,M):YQ(w,x,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,O=0;Ot.length,v=u?wD(f,u):wD(h?t:r,[h?r:t]),p=0,d=0;dPk))for(var i=n.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Pt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function MD(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function ID(r){return W(r)?r.sort().join(","):r}function za(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function tJ(r,t){var e=ut(),n=ut(),a=ut();return D(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=MD(i),f=ID(u);n.set(f,{dataGroupId:s,data:l}),W(u)&&D(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=MD(i),u=ID(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:za(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:za(s),data:s}]});else if(W(l)){var c=[];D(l,function(p){var d=n.get(p);d.data&&c.push({dataGroupId:d.dataGroupId,divide:za(d.data),data:d.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:za(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:za(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:za(s)})}}}}),e}function LD(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:za(t.oldData[s]),groupIdDim:o.dimension})}),D(qt(r.to),function(o){var s=LD(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:za(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Rk(a,i,n)}function rJ(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){D(qt(n.seriesTransition),function(a){D(qt(a.to),function(i){for(var o=n.updatedSeries,s=0;s(On(),Ka("div",oJ,[Yt("div",{class:"dot",style:Su({backgroundColor:t.color})},null,4),e.isOnline?(On(),Ka("div",{key:0,class:"pulse",style:Su({backgroundColor:t.spreadColor})},null,4)):wN("",!0)]))}}),lJ=af(sJ,[["__scopeId","data-v-311f3e51"]]),uJ={class:"host"},fJ={class:"meta-1",style:{display:"flex","justify-content":"space-between"}},cJ={class:"meta1-left",style:{display:"flex","justify-content":"flex-start","align-items":"center"}},hJ={class:"host-name",style:{display:"flex"}},vJ={class:"meta1-right",style:{display:"flex","justify-content":"flex-end","align-items":"center"}},pJ={style:{"margin-right":"5px"}},dJ={class:"meta-2",style:{display:"flex"}},gJ={class:"section"},yJ=["src"],mJ={class:"meta2-text"},_J={class:"labels",style:{display:"flex","justify-content":"flex-start"}},SJ={class:"charts-container",style:{display:"flex","justify-content":"space-between"}},xJ={class:"cpu-info hw-info"},bJ={class:"hw-detail"},wJ={class:"memory-info hw-info"},TJ={class:"hw-detail"},CJ={class:"swap-info hw-info"},AJ={class:"hw-detail"},DJ={class:"net"},MJ=Gs({__name:"Host",props:{status:{}},setup(r){const t=r,e=we(()=>t.status),n=Cn(RD(e.value.meta.uptime));console.log(n.value);const a=Cn(null),i=Cn(null),o=Cn(null),s=Cn(null);let l=[];const u=Cn(!0),f=we(()=>u.value?"#22c55e":"#ff4d4f"),c=we(()=>u.value?"#80ffb0":"#fd8182"),h=Cn("0"),v=we(()=>nJ(e.value.meta.os.name,e.value.meta.os.version)),p=we(()=>PD(e.value.hardware.mem.used,e.value.hardware.mem.total)),d=we(()=>e.value.hardware.swap.total>0?PD(e.value.hardware.swap.used,e.value.hardware.swap.total):"N/A");function g(){const y=sc(a.value),m=sc(i.value),_=sc(o.value),S=sc(s.value),b={color:"rgba(0, 0, 0, 0.8)",fontSize:13},x=["65%","90%"],w=["#a2d8f4","#10a0ed"];setInterval(()=>{if(u.value){const C=Date.now()/1e3-e.value.meta.observed_at;n.value=RD(e.value.meta.uptime+C)}},1e3);function T(){const C=Date.now()/1e3-e.value.meta.observed_at;h.value=C.toFixed(1),(l.length===0||l[l.length-1][0]!==e.value.meta.observed_at)&&l.push([e.value.meta.observed_at,e.value.hardware.net.up,e.value.hardware.net.down]),l.length>20&&l.shift(),u.value=C<=Ek,y.setOption({color:[Yg(e.value.hardware.cpu.percent),Xg(e.value.hardware.cpu.percent)],title:{text:e.value.hardware.cpu.percent+"%",left:"center",top:"center",textStyle:b},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:we(()=>[{value:e.value.hardware.cpu.percent},{value:100-e.value.hardware.cpu.percent}]).value}]}),m.setOption({color:[Yg(e.value.hardware.mem.used/e.value.hardware.mem.total*100),Xg(e.value.hardware.mem.used/e.value.hardware.mem.total*100)],title:{text:`${(e.value.hardware.mem.used/e.value.hardware.mem.total*100).toFixed(1)}%`,left:"center",top:"center",textStyle:b},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:e.value.hardware.mem.used},{value:e.value.hardware.mem.total-e.value.hardware.mem.used}]}]}),_.setOption({color:[Yg(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0),Xg(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0)],title:{text:e.value.hardware.swap.total>0?`${(e.value.hardware.swap.used/e.value.hardware.swap.total*100).toFixed(1)}%`:"N/A",left:"center",top:"center",textStyle:b},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:e.value.hardware.swap.total>0?e.value.hardware.swap.used:0},{value:e.value.hardware.swap.total>0?e.value.hardware.swap.total-e.value.hardware.swap.used:100}]}]}),S.setOption({color:w,title:{text:"Network"},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{saveAsImage:{}}},grid:{top:"25%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:l.map(A=>A[0]),axisLabel:{formatter:function(A){return iJ(A,!0)}}}],yAxis:[{type:"value",axisLabel:{formatter:function(A){return kk(A*8,null,"b")}}}],series:[{name:"Up",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:l.map(A=>A[1])},{name:"Down",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:l.map(A=>A[2])}]})}T(),tu(()=>e.value,()=>{T()})}return d0(()=>{g()}),(y,m)=>(On(),Ka("div",uJ,[Yt("div",fJ,[Yt("div",cJ,[tr(lJ,{class:"outline-anime",color:f.value,spreadColor:c.value,"is-online":u.value},null,8,["color","spreadColor","is-online"]),Yt("span",hJ,Sr(t.status.meta.name),1)]),Yt("div",vJ,[Yt("div",pJ,Sr(n.value),1)])]),Yt("div",dJ,[Yt("div",gJ,[Yt("img",{class:"icon",src:v.value.icon,alt:"system"},null,8,yJ),Yt("span",mJ,Sr(v.value.name)+" · "+Sr(t.status.meta.location),1)])]),Yt("div",_J,[(On(!0),Ka(br,null,dM(t.status.meta.labels,_=>(On(),Ka("span",{class:"label",key:_},Sr(_),1))),128))]),Yt("div",SJ,[Yt("div",xJ,[Yt("div",{class:"chart",ref_key:"cpuChartRef",ref:a},null,512),m[0]||(m[0]=Yt("div",{class:"hw-title"},"CPU",-1)),Yt("div",bJ,Sr(e.value.hardware.cpu.cores)+"C "+Sr(e.value.hardware.cpu.logics)+"T",1)]),Yt("div",wJ,[Yt("div",{class:"chart",ref_key:"memoryChartRef",ref:i},null,512),m[1]||(m[1]=Yt("div",{class:"hw-title"},"Mem",-1)),Yt("div",TJ,Sr(p.value),1)]),Yt("div",CJ,[Yt("div",{class:"chart",ref_key:"swapChartRef",ref:o},null,512),m[2]||(m[2]=Yt("div",{class:"hw-title"},"Swap",-1)),Yt("div",AJ,Sr(d.value),1)])]),Yt("div",DJ,[Yt("div",{class:"net-chart",ref_key:"netChartRef",ref:s},null,512)])]))}}),IJ=af(MJ,[["__scopeId","data-v-dcf8aa52"]]),LJ={class:"overview",style:{}},PJ={class:"grid-container"},RJ=Gs({__name:"Home",setup(r){const t=Cn({}),e=Cn(0),n=we(()=>{const i=Date.now()/1e3;let o=0;for(const s of Object.values(t.value))i-s.meta.observed_at{t.value=await DS()},1e3);return d0(async()=>{t.value=await DS()}),g0(()=>{clearInterval(a)}),(i,o)=>(On(),Ka(br,null,[Yt("div",LJ,[Yt("h2",null,"Overview: "+Sr(n.value)+" Online "+Sr(e.value)+" Offline",1)]),Yt("div",PJ,[(On(!0),Ka(br,null,dM(t.value,(s,l)=>(On(),kM(IJ,{class:"grid-item",key:l,status:s},null,8,["status"]))),128))])],64))}}),EJ=af(RJ,[["__scopeId","data-v-050eb678"]]),kJ={};function OJ(r,t){return" Test "}const NJ=af(kJ,[["render",OJ]]),BJ=[{path:"/",name:"主页",component:EJ},{path:"/test",name:"测试",component:NJ}],VJ=lV({history:VB("/"),routes:BJ}),Ok=nB(sB);Ok.use(VJ);Ok.mount("#app"); diff --git a/api/frontend/web/index.html b/api/frontend/web/index.html index 4bb1973..2d1b1e7 100644 --- a/api/frontend/web/index.html +++ b/api/frontend/web/index.html @@ -5,8 +5,8 @@ Server Status - - + +
diff --git a/api/frontend/web/svg/label.svg b/api/frontend/web/svg/label.svg new file mode 100644 index 0000000..8e235b7 --- /dev/null +++ b/api/frontend/web/svg/label.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/api/frontend/web/svg/screenshots.svg b/api/frontend/web/svg/screenshots.svg new file mode 100644 index 0000000..1b2fd3e --- /dev/null +++ b/api/frontend/web/svg/screenshots.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/api/frontend/web/svg/timezone.svg b/api/frontend/web/svg/timezone.svg new file mode 100644 index 0000000..9a71935 --- /dev/null +++ b/api/frontend/web/svg/timezone.svg @@ -0,0 +1 @@ + \ No newline at end of file