From 528a3fef965f76baa806366d8b7225dc231b72c9 Mon Sep 17 00:00:00 2001 From: snowykami Date: Thu, 3 Oct 2024 19:25:34 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=96=B0=E7=89=88=E6=9C=AC=E5=89=8D?= =?UTF-8?q?=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/frontend/web/apiroot | 1 + api/frontend/web/assets/index-Bwi16n-M.css | 1 + api/frontend/web/assets/index-kAPUDh6m.js | 80 ++++++++++++++++++++++ api/frontend/web/icon.svg | 1 + api/frontend/web/index.html | 14 ++++ api/frontend/web/svg/location.svg | 1 + api/frontend/web/svg/system-arch.svg | 1 + api/frontend/web/svg/system-debian.svg | 1 + api/frontend/web/svg/system-linux.svg | 1 + api/frontend/web/svg/system-opensuse.svg | 1 + api/frontend/web/svg/system-ubuntu.svg | 1 + api/frontend/web/svg/system-windows.svg | 1 + api/frontend/web/svg/system.svg | 1 + 13 files changed, 105 insertions(+) create mode 100644 api/frontend/web/apiroot create mode 100644 api/frontend/web/assets/index-Bwi16n-M.css create mode 100644 api/frontend/web/assets/index-kAPUDh6m.js create mode 100644 api/frontend/web/icon.svg create mode 100644 api/frontend/web/index.html create mode 100644 api/frontend/web/svg/location.svg create mode 100644 api/frontend/web/svg/system-arch.svg create mode 100644 api/frontend/web/svg/system-debian.svg create mode 100644 api/frontend/web/svg/system-linux.svg create mode 100644 api/frontend/web/svg/system-opensuse.svg create mode 100644 api/frontend/web/svg/system-ubuntu.svg create mode 100644 api/frontend/web/svg/system-windows.svg create mode 100644 api/frontend/web/svg/system.svg diff --git a/api/frontend/web/apiroot b/api/frontend/web/apiroot new file mode 100644 index 0000000..aa352f1 --- /dev/null +++ b/api/frontend/web/apiroot @@ -0,0 +1 @@ +http://127.0.0.1:8088 \ No newline at end of file diff --git a/api/frontend/web/assets/index-Bwi16n-M.css b/api/frontend/web/assets/index-Bwi16n-M.css new file mode 100644 index 0000000..6d532bc --- /dev/null +++ b/api/frontend/web/assets/index-Bwi16n-M.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}.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}.meta-2[data-v-f7d26c86],.labels[data-v-f7d26c86]{margin-top:.5em}.labels .label[data-v-f7d26c86]{padding:2px 5px;border-radius:5px;margin-right:10px;background-color:#000;color:#fff}.host[data-v-f7d26c86]{padding:1em;border:1px solid #ccc;border-radius:20px;margin:.5em;flex-direction:column;justify-content:space-between}.icon[data-v-f7d26c86]{margin-right:.3em;height:16px}.section[data-v-f7d26c86]{display:flex;margin-right:10px;align-items:center}.charts-container[data-v-f7d26c86]{margin-top:.5rem}.charts-container .hw-info[data-v-f7d26c86]{width:30%;align-items:center}.charts-container .hw-info .chart[data-v-f7d26c86]{width:100%;aspect-ratio:1}.charts-container .hw-info .hw-title[data-v-f7d26c86]{text-align:center;font-size:.9rem}.charts-container .hw-info .hw-detail[data-v-f7d26c86]{text-align:center;font-size:.7rem}.net[data-v-f7d26c86]{margin-top:.5rem}.net .net-title[data-v-f7d26c86]{font-size:.9rem}.net .net-detail[data-v-f7d26c86]{font-size:.7rem}.net .net-chart[data-v-f7d26c86]{width:100%;aspect-ratio:2}.grid-container[data-v-6bf3b93e]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px;padding:10px} diff --git a/api/frontend/web/assets/index-kAPUDh6m.js b/api/frontend/web/assets/index-kAPUDh6m.js new file mode 100644 index 0000000..54662b1 --- /dev/null +++ b/api/frontend/web/assets/index-kAPUDh6m.js @@ -0,0 +1,80 @@ +(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 Km(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const le={},vs=[],En=()=>{},Lk=()=>!1,ov=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),jm=r=>r.startsWith("onUpdate:"),Ee=Object.assign,Qm=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},Pk=Object.prototype.hasOwnProperty,Qt=(r,t)=>Pk.call(r,t),Nt=Array.isArray,ps=r=>sv(r)==="[object Map]",LD=r=>sv(r)==="[object Set]",Bt=r=>typeof r=="function",Se=r=>typeof r=="string",li=r=>typeof r=="symbol",fe=r=>r!==null&&typeof r=="object",PD=r=>(fe(r)||Bt(r))&&Bt(r.then)&&Bt(r.catch),RD=Object.prototype.toString,sv=r=>RD.call(r),Rk=r=>sv(r).slice(8,-1),ED=r=>sv(r)==="[object Object]",Jm=r=>Se(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Xl=Km(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),lv=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},Ek=/-(\w)/g,Wr=lv(r=>r.replace(Ek,(t,e)=>e?e.toUpperCase():"")),kk=/\B([A-Z])/g,To=lv(r=>r.replace(kk,"-$1").toLowerCase()),uv=lv(r=>r.charAt(0).toUpperCase()+r.slice(1)),lp=lv(r=>r?`on${uv(r)}`:""),Ja=(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})},Ok=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let L1;const OD=()=>L1||(L1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fv(r){if(Nt(r)){const t={};for(let e=0;e{if(e){const n=e.split(Bk);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function t0(r){let t="";if(Se(r))t=r;else if(Nt(r))for(let e=0;e!!(r&&r.__v_isRef===!0),wn=r=>Se(r)?r:r==null?"":Nt(r)||fe(r)&&(r.toString===RD||!Bt(r.toString))?BD(r)?wn(r.value):JSON.stringify(r,VD,2):String(r),VD=(r,t)=>BD(t)?VD(r,t.value):ps(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,a],i)=>(e[fp(n,i)+" =>"]=a,e),{})}:LD(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>fp(e))}:li(t)?fp(t):fe(t)&&!Nt(t)&&!ED(t)?String(t):t,fp=(r,t="")=>{var e;return li(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 _r;class Hk{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=_r,!t&&_r&&(this.index=(_r.scopes||(_r.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(;ls;){let t=ls,e;for(;t;)t.flags&1||(t.flags&=-9),t=t.next;for(t=ls,ls=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 HD(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function WD(r){let t,e=r.depsTail,n=e;for(;n;){const a=n.prevDep;n.version===-1?(n===e&&(e=a),n0(n),Uk(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=a}r.deps=t,r.depsTail=e}function Yg(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(UD(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function UD(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===yu))return;r.globalVersion=yu;const t=r.dep;if(r.flags|=2,t.version>0&&!r.isSSR&&r.deps&&!Yg(r)){r.flags&=-3;return}const e=se,n=on;se=r,on=!0;try{HD(r);const a=r.fn(r._value);(t.version===0||Ja(a,r._value))&&(r._value=a,t.version++)}catch(a){throw t.version++,a}finally{se=e,on=n,WD(r),r.flags&=-3}}function n0(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)n0(i,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function Uk(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let on=!0;const $D=[];function ui(){$D.push(on),on=!1}function fi(){const r=$D.pop();on=r===void 0?!0:r}function P1(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=se;se=void 0;try{t()}finally{se=e}}}let yu=0;class $k{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 a0{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||!on||se===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==se)e=this.activeLink=new $k(se,this),se.deps?(e.prevDep=se.depsTail,se.depsTail.nextDep=e,se.depsTail=e):se.deps=se.depsTail=e,YD(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++,yu++,this.notify(t)}notify(t){e0();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{r0()}}}function YD(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)YD(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const Xg=new WeakMap,ao=Symbol(""),Zg=Symbol(""),mu=Symbol("");function Ue(r,t,e){if(on&&se){let n=Xg.get(r);n||Xg.set(r,n=new Map);let a=n.get(e);a||(n.set(e,a=new a0),a.target=r,a.map=n,a.key=e),a.track()}}function ea(r,t,e,n,a,i){const o=Xg.get(r);if(!o){yu++;return}const s=l=>{l&&l.trigger()};if(e0(),t==="clear")o.forEach(s);else{const l=Nt(r),u=l&&Jm(e);if(l&&e==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===mu||!li(h)&&h>=f)&&s(c)})}else switch(e!==void 0&&s(o.get(e)),u&&s(o.get(mu)),t){case"add":l?u&&s(o.get("length")):(s(o.get(ao)),ps(r)&&s(o.get(Zg)));break;case"delete":l||(s(o.get(ao)),ps(r)&&s(o.get(Zg)));break;case"set":ps(r)&&s(o.get(ao));break}}r0()}function Eo(r){const t=Jt(r);return t===r?t:(Ue(t,"iterate",mu),Gr(r)?t:t.map(Fe))}function cv(r){return Ue(r=Jt(r),"iterate",mu),r}const Yk={__proto__:null,[Symbol.iterator](){return hp(this,Symbol.iterator,Fe)},concat(...r){return Eo(this).concat(...r.map(t=>Nt(t)?Eo(t):t))},entries(){return hp(this,"entries",r=>(r[1]=Fe(r[1]),r))},every(r,t){return $n(this,"every",r,t,void 0,arguments)},filter(r,t){return $n(this,"filter",r,t,e=>e.map(Fe),arguments)},find(r,t){return $n(this,"find",r,t,Fe,arguments)},findIndex(r,t){return $n(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return $n(this,"findLast",r,t,Fe,arguments)},findLastIndex(r,t){return $n(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return $n(this,"forEach",r,t,void 0,arguments)},includes(...r){return vp(this,"includes",r)},indexOf(...r){return vp(this,"indexOf",r)},join(r){return Eo(this).join(r)},lastIndexOf(...r){return vp(this,"lastIndexOf",r)},map(r,t){return $n(this,"map",r,t,void 0,arguments)},pop(){return rl(this,"pop")},push(...r){return rl(this,"push",r)},reduce(r,...t){return R1(this,"reduce",r,t)},reduceRight(r,...t){return R1(this,"reduceRight",r,t)},shift(){return rl(this,"shift")},some(r,t){return $n(this,"some",r,t,void 0,arguments)},splice(...r){return rl(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 rl(this,"unshift",r)},values(){return hp(this,"values",Fe)}};function hp(r,t,e){const n=cv(r),a=n[t]();return n!==r&&!Gr(r)&&(a._next=a.next,a.next=()=>{const i=a._next();return i.value&&(i.value=e(i.value)),i}),a}const Xk=Array.prototype;function $n(r,t,e,n,a,i){const o=cv(r),s=o!==r&&!Gr(r),l=o[t];if(l!==Xk[t]){const c=l.apply(r,i);return s?Fe(c):c}let u=e;o!==r&&(s?u=function(c,h){return e.call(this,Fe(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 R1(r,t,e,n){const a=cv(r);let i=e;return a!==r&&(Gr(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,Fe(s),l,r)}),a[t](i,...n)}function vp(r,t,e){const n=Jt(r);Ue(n,"iterate",mu);const a=n[t](...e);return(a===-1||a===!1)&&l0(e[0])?(e[0]=Jt(e[0]),n[t](...e)):a}function rl(r,t,e=[]){ui(),e0();const n=Jt(r)[t].apply(r,e);return r0(),fi(),n}const Zk=Km("__proto__,__v_isRef,__isVue"),XD=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(li));function qk(r){li(r)||(r=String(r));const t=Jt(this);return Ue(t,"has",r),t.hasOwnProperty(r)}class ZD{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?lO:QD:i?jD:KD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Nt(t);if(!a){let l;if(o&&(l=Yk[e]))return l;if(e==="hasOwnProperty")return qk}const s=Reflect.get(t,e,We(t)?t:n);return(li(e)?XD.has(e):Zk(e))||(a||Ue(t,"get",e),i)?s:We(s)?o&&Jm(e)?s:s.value:fe(s)?a?tM(s):vv(s):s}}class qD extends ZD{constructor(t=!1){super(!1,t)}set(t,e,n,a){let i=t[e];if(!this._isShallow){const l=go(i);if(!Gr(n)&&!go(n)&&(i=Jt(i),n=Jt(n)),!Nt(t)&&We(i)&&!We(n))return l?!1:(i.value=n,!0)}const o=Nt(t)&&Jm(e)?Number(e)r,hv=r=>Reflect.getPrototypeOf(r);function Cf(r,t,e=!1,n=!1){r=r.__v_raw;const a=Jt(r),i=Jt(t);e||(Ja(t,i)&&Ue(a,"get",t),Ue(a,"get",i));const{has:o}=hv(a),s=n?i0:e?u0:Fe;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 Af(r,t=!1){const e=this.__v_raw,n=Jt(e),a=Jt(r);return t||(Ja(r,a)&&Ue(n,"has",r),Ue(n,"has",a)),r===a?e.has(r):e.has(r)||e.has(a)}function Df(r,t=!1){return r=r.__v_raw,!t&&Ue(Jt(r),"iterate",ao),Reflect.get(r,"size",r)}function E1(r,t=!1){!t&&!Gr(r)&&!go(r)&&(r=Jt(r));const e=Jt(this);return hv(e).has.call(e,r)||(e.add(r),ea(e,"add",r,r)),this}function k1(r,t,e=!1){!e&&!Gr(t)&&!go(t)&&(t=Jt(t));const n=Jt(this),{has:a,get:i}=hv(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?Ja(t,s)&&ea(n,"set",r,t):ea(n,"add",r,t),this}function O1(r){const t=Jt(this),{has:e,get:n}=hv(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&&ea(t,"delete",r,void 0),i}function N1(){const r=Jt(this),t=r.size!==0,e=r.clear();return t&&ea(r,"clear",void 0,void 0),e}function Mf(r,t){return function(n,a){const i=this,o=i.__v_raw,s=Jt(o),l=t?i0:r?u0:Fe;return!r&&Ue(s,"iterate",ao),o.forEach((u,f)=>n.call(a,l(u),l(f),i))}}function If(r,t,e){return function(...n){const a=this.__v_raw,i=Jt(a),o=ps(i),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=a[r](...n),f=e?i0:t?u0:Fe;return!t&&Ue(i,"iterate",l?Zg:ao),{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 Sa(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function tO(){const r={get(i){return Cf(this,i)},get size(){return Df(this)},has:Af,add:E1,set:k1,delete:O1,clear:N1,forEach:Mf(!1,!1)},t={get(i){return Cf(this,i,!1,!0)},get size(){return Df(this)},has:Af,add(i){return E1.call(this,i,!0)},set(i,o){return k1.call(this,i,o,!0)},delete:O1,clear:N1,forEach:Mf(!1,!0)},e={get(i){return Cf(this,i,!0)},get size(){return Df(this,!0)},has(i){return Af.call(this,i,!0)},add:Sa("add"),set:Sa("set"),delete:Sa("delete"),clear:Sa("clear"),forEach:Mf(!0,!1)},n={get(i){return Cf(this,i,!0,!0)},get size(){return Df(this,!0)},has(i){return Af.call(this,i,!0)},add:Sa("add"),set:Sa("set"),delete:Sa("delete"),clear:Sa("clear"),forEach:Mf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=If(i,!1,!1),e[i]=If(i,!0,!1),t[i]=If(i,!1,!0),n[i]=If(i,!0,!0)}),[r,e,t,n]}const[eO,rO,nO,aO]=tO();function o0(r,t){const e=t?r?aO:nO:r?rO:eO;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 iO={get:o0(!1,!1)},oO={get:o0(!1,!0)},sO={get:o0(!0,!1)};const KD=new WeakMap,jD=new WeakMap,QD=new WeakMap,lO=new WeakMap;function uO(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fO(r){return r.__v_skip||!Object.isExtensible(r)?0:uO(Rk(r))}function vv(r){return go(r)?r:s0(r,!1,jk,iO,KD)}function JD(r){return s0(r,!1,Jk,oO,jD)}function tM(r){return s0(r,!0,Qk,sO,QD)}function s0(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=fO(r);if(o===0)return r;const s=new Proxy(r,o===2?n:e);return a.set(r,s),s}function ds(r){return go(r)?ds(r.__v_raw):!!(r&&r.__v_isReactive)}function go(r){return!!(r&&r.__v_isReadonly)}function Gr(r){return!!(r&&r.__v_isShallow)}function l0(r){return r?!!r.__v_raw:!1}function Jt(r){const t=r&&r.__v_raw;return t?Jt(t):r}function cO(r){return!Qt(r,"__v_skip")&&Object.isExtensible(r)&&kD(r,"__v_skip",!0),r}const Fe=r=>fe(r)?vv(r):r,u0=r=>fe(r)?tM(r):r;function We(r){return r?r.__v_isRef===!0:!1}function Ea(r){return eM(r,!1)}function hO(r){return eM(r,!0)}function eM(r,t){return We(r)?r:new vO(r,t)}class vO{constructor(t,e){this.dep=new a0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Jt(t),this._value=e?t:Fe(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||Gr(t)||go(t);t=n?t:Jt(t),Ja(t,e)&&(this._rawValue=t,this._value=n?t:Fe(t),this.dep.trigger())}}function io(r){return We(r)?r.value:r}const pO={get:(r,t,e)=>t==="__v_raw"?r:io(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 rM(r){return ds(r)?r:new Proxy(r,pO)}class dO{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new a0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yu-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 GD(this),!0}get value(){const t=this.dep.track();return UD(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function gO(r,t,e=!1){let n,a;return Bt(r)?n=r:(n=r.get,a=r.set),new dO(n,a,e)}const Lf={},ih=new WeakMap;let zi;function yO(r,t=!1,e=zi){if(e){let n=ih.get(e);n||ih.set(e,n=[]),n.push(r)}}function mO(r,t,e=le){const{immediate:n,deep:a,once:i,scheduler:o,augmentJob:s,call:l}=e,u=S=>a?S:Gr(S)||a===!1||a===0?za(S,1):za(S);let f,c,h,v,p=!1,d=!1;if(We(r)?(c=()=>r.value,p=Gr(r)):ds(r)?(c=()=>u(r),p=!0):Nt(r)?(d=!0,p=r.some(S=>ds(S)||Gr(S)),c=()=>r.map(S=>{if(We(S))return S.value;if(ds(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){ui();try{h()}finally{fi()}}const S=zi;zi=f;try{return l?l(r,3,[v]):r(v)}finally{zi=S}}:c=En,t&&a){const S=c,b=a===!0?1/0:a;c=()=>za(S(),b)}const g=Wk(),y=()=>{f.stop(),g&&Qm(g.effects,f)};if(i&&t){const S=t;t=(...b)=>{S(...b),y()}}let m=d?new Array(r.length).fill(Lf):Lf;const _=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(t){const b=f.run();if(a||p||(d?b.some((x,w)=>Ja(x,m[w])):Ja(b,m))){h&&h();const x=zi;zi=f;try{const w=[b,m===Lf?void 0:d&&m[0]===Lf?[]:m,v];l?l(t,3,w):t(...w),m=b}finally{zi=x}}}else f.run()};return s&&s(_),f=new zD(c),f.scheduler=o?()=>o(_,!1):_,v=S=>yO(S,!1,f),h=f.onStop=()=>{const S=ih.get(f);if(S){if(l)l(S,4);else for(const b of S)b();ih.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 za(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))za(r.value,t,e);else if(Nt(r))for(let n=0;n{za(n,t,e)});else if(ED(r)){for(const n in r)za(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&za(r[n],t,e)}return r}/** +* @vue/runtime-core v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Ju(r,t,e,n){try{return n?r(...n):r()}catch(a){pv(a,t,e)}}function Nn(r,t,e,n){if(Bt(r)){const a=Ju(r,t,e,n);return a&&PD(a)&&a.catch(i=>{pv(i,t,e)}),a}if(Nt(r)){const a=[];for(let i=0;i>>1,a=Je[n],i=Su(a);i=Su(e)?Je.push(r):Je.splice(SO(t),0,r),r.flags|=1,iM()}}function iM(){!_u&&!qg&&(qg=!0,f0=nM.then(sM))}function xO(r){Nt(r)?gs.push(...r):ka&&r.id===-1?ka.splice(es+1,0,r):r.flags&1||(gs.push(r),r.flags|=1),iM()}function B1(r,t,e=_u?Tn+1:0){for(;eSu(e)-Su(n));if(gs.length=0,ka){ka.push(...t);return}for(ka=t,es=0;esr.id==null?r.flags&2?-1:1/0:r.id;function sM(r){qg=!1,_u=!0;try{for(Tn=0;Tn{n._d&&Y1(-1);const i=oh(t);let o;try{o=r(...a)}finally{oh(i),n._d&&Y1(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function vi(r,t,e,n){const a=r.dirs,i=t&&t.dirs;for(let o=0;or.__isTeleport;function h0(r,t){r.shapeFlag&6&&r.component?(r.transition=t,h0(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 tf(r,t){return Bt(r)?Ee({name:r.name},t,{setup:r}):r}function uM(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function Kg(r,t,e,n,a=!1){if(Nt(r)){r.forEach((p,d)=>Kg(p,t&&(Nt(t)?t[d]:t),e,n,a));return}if(Zl(n)&&!a)return;const i=n.shapeFlag&4?m0(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))Ju(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)&&Qm(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,mr(g,e)):g()}}}const Zl=r=>!!r.type.__asyncLoader,fM=r=>r.type.__isKeepAlive;function CO(r,t){cM(r,"a",t)}function AO(r,t){cM(r,"da",t)}function cM(r,t,e=Ge){const n=r.__wdc||(r.__wdc=()=>{let a=e;for(;a;){if(a.isDeactivated)return;a=a.parent}return r()});if(dv(t,n,e),e){let a=e.parent;for(;a&&a.parent;)fM(a.parent.vnode)&&DO(n,t,e,a),a=a.parent}}function DO(r,t,e,n){const a=dv(t,r,n,!0);p0(()=>{Qm(n[t],a)},e)}function dv(r,t,e=Ge,n=!1){if(e){const a=e[r]||(e[r]=[]),i=t.__weh||(t.__weh=(...o)=>{ui();const s=ef(e),l=Nn(t,e,r,o);return s(),fi(),l});return n?a.unshift(i):a.push(i),i}}const ga=r=>(t,e=Ge)=>{(!mv||r==="sp")&&dv(r,(...n)=>t(...n),e)},MO=ga("bm"),v0=ga("m"),IO=ga("bu"),LO=ga("u"),PO=ga("bum"),p0=ga("um"),RO=ga("sp"),EO=ga("rtg"),kO=ga("rtc");function OO(r,t=Ge){dv("ec",r,t)}const NO="components";function BO(r,t){return zO(NO,r,!0,t)||r}const VO=Symbol.for("v-ndc");function zO(r,t,e=!0,n=!1){const a=rn||Ge;if(a){const i=a.type;{const s=DN(i,!1);if(s&&(s===t||s===Wr(t)||s===uv(Wr(t))))return i}const o=V1(a[r]||i[r],t)||V1(a.appContext[r],t);return!o&&n?i:o}}function V1(r,t){return r&&(r[t]||r[Wr(t)]||r[uv(Wr(t))])}function FO(r,t,e,n){let a;const i=e,o=Nt(r);if(o||Se(r)){const s=o&&ds(r);let l=!1;s&&(l=!Gr(r),r=cv(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?PM(r)?m0(r):jg(r.parent):null,ql=Ee(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=>d0(r),$forceUpdate:r=>r.f||(r.f=()=>{c0(r.update)}),$nextTick:r=>r.n||(r.n=aM.bind(r.proxy)),$watch:r=>sN.bind(r)}),pp=(r,t)=>r!==le&&!r.__isScriptSetup&&Qt(r,t),GO={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];Qg&&(o[t]=0)}}const f=ql[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(ql,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 z1(r){return Nt(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let Qg=!0;function HO(r){const t=d0(r),e=r.proxy,n=r.ctx;Qg=!1,t.beforeCreate&&F1(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&&WO(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=vv(B))}if(Qg=!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):En,U=!Bt(N)&&Bt(N.set)?N.set.bind(e):En,Z=He({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)hM(s[B],n,e,B);if(l){const B=Bt(l)?l.call(e):l;Reflect.ownKeys(B).forEach(N=>{Oc(N,B[N])})}f&&F1(f,r,"c");function O(B,N){Nt(N)?N.forEach(F=>B(F.bind(e))):N&&B(N.bind(e))}if(O(MO,c),O(v0,h),O(IO,v),O(LO,p),O(CO,d),O(AO,g),O(OO,T),O(kO,x),O(EO,w),O(PO,m),O(p0,S),O(RO,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===En&&(r.render=b),M!=null&&(r.inheritAttrs=M),I&&(r.components=I),L&&(r.directives=L),C&&uM(r)}function WO(r,t,e=En){Nt(r)&&(r=Jg(r));for(const n in r){const a=r[n];let i;fe(a)?"default"in a?i=ra(a.from||n,a.default,!0):i=ra(a.from||n):i=ra(a),We(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function F1(r,t,e){Nn(Nt(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function hM(r,t,e,n){let a=n.includes(".")?AM(e,n):()=>e[n];if(Se(r)){const i=t[r];Bt(i)&&Kl(a,i)}else if(Bt(r))Kl(a,r.bind(e));else if(fe(r))if(Nt(r))r.forEach(i=>hM(i,t,e,n));else{const i=Bt(r.handler)?r.handler.bind(e):t[r.handler];Bt(i)&&Kl(a,i,r)}}function d0(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=>sh(l,u,o,!0)),sh(l,t,o)),fe(t)&&i.set(t,l),l}function sh(r,t,e,n=!1){const{mixins:a,extends:i}=t;i&&sh(r,i,e,!0),a&&a.forEach(o=>sh(r,o,e,!0));for(const o in t)if(!(n&&o==="expose")){const s=UO[o]||e&&e[o];r[o]=s?s(r[o],t[o]):t[o]}return r}const UO={data:G1,props:H1,emits:H1,methods:kl,computed:kl,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:kl,directives:kl,watch:YO,provide:G1,inject:$O};function G1(r,t){return t?r?function(){return Ee(Bt(r)?r.call(this,this):r,Bt(t)?t.call(this,this):t)}:t:r}function $O(r,t){return kl(Jg(r),Jg(t))}function Jg(r){if(Nt(r)){const t={};for(let e=0;e1)return e&&Bt(t)?t.call(n&&n.proxy):t}}const pM={},dM=()=>Object.create(pM),gM=r=>Object.getPrototypeOf(r)===pM;function qO(r,t,e,n=!1){const a={},i=dM();r.propsDefaults=Object.create(null),yM(r,t,a,i);for(const o in r.propsOptions[0])o in a||(a[o]=void 0);e?r.props=n?a:JD(a):r.type.props?r.props=a:r.props=i,r.attrs=i}function KO(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]=mM(c,t,!0);Ee(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,vs),vs;if(Nt(i))for(let f=0;fr[0]==="_"||r==="$stable",g0=r=>Nt(r)?r.map(An):[An(r)],QO=(r,t,e)=>{if(t._n)return t;const n=bO((...a)=>g0(t(...a)),e);return n._c=!1,n},SM=(r,t,e)=>{const n=r._ctx;for(const a in r){if(_M(a))continue;const i=r[a];if(Bt(i))t[a]=QO(a,i,n);else if(i!=null){const o=g0(i);t[a]=()=>o}}},xM=(r,t)=>{const e=g0(t);r.slots.default=()=>e},bM=(r,t,e)=>{for(const n in t)(e||n!=="_")&&(r[n]=t[n])},JO=(r,t,e)=>{const n=r.slots=dM();if(r.vnode.shapeFlag&32){const a=t._;a?(bM(n,t,e),e&&kD(n,"_",a,!0)):SM(t,n)}else t&&xM(r,t)},tN=(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:bM(a,t,e):(i=!t.$stable,SM(t,a)),o=t}else t&&(xM(r,t),o={default:1});if(i)for(const s in a)!_M(s)&&o[s]==null&&delete a[s]},mr=pN;function eN(r){return rN(r)}function rN(r,t){const e=OD();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=En,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&&!nl(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 yv:g(E,k,z,q);break;case xu:y(E,k,z,q);break;case yp:E==null&&m(k,z,q,ot);break;case en: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&&Kg(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&&vi(E,null,q,"created"),w(at,E,E.scopeId,ot,q),At){for(const oe in At)oe!=="value"&&!Xl(oe)&&i(at,oe,null,At[oe],tt,q);"value"in At&&i(at,"value",null,At.value,tt),(rt=At.onVnodeBeforeMount)&&dn(rt,q,E)}Et&&vi(E,null,q,"beforeMount");const $t=nN(Y,wt);$t&&wt.beforeEnter(at),n(at,k,z),((rt=At&&At.onVnodeMounted)||$t||Et)&&mr(()=>{rt&&dn(rt,q,E),$t&&wt.enter(at),Et&&vi(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&&pi(z,!1),(Et=wt.onVnodeBeforeUpdate)&&dn(Et,z,k,E),At&&vi(k,E,z,"beforeUpdate"),z&&pi(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],pr=pt[te],Ne=wt[te];(Ne!==pr||te==="value")&&i(lt,te,pr,Ne,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)&&mr(()=>{Et&&dn(Et,z,k,E),At&&vi(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)!Xl(tt)&&!(tt in z)&&i(E,tt,k[tt],null,Y,q);for(const tt in z){if(Xl(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)&&wM(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=bN(E,q,Y);if(fM(E)&&(lt.ctx.renderer=j),wN(lt,!1,ot),lt.asyncDep){if(Y&&Y.registerDep(lt,O,ot),!E.el){const at=lt.subTree=br(xu);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(hN(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 dr=TM(E);if(dr){pt&&(pt.el=oe.el,B(E,pt,ot)),dr.asyncDep.then(()=>{E.isUnmounted||lt()});return}}let te=pt,pr;pi(E,!1),pt?(pt.el=oe.el,B(E,pt,ot)):pt=oe,wt&&up(wt),(pr=pt.props&&pt.props.onVnodeBeforeUpdate)&&dn(pr,$t,pt,oe),pi(E,!0);const Ne=gp(E),Zr=E.subTree;E.subTree=Ne,d(Zr,Ne,c(Zr.el),G(Zr),E,Y,tt),pt.el=Ne.el,te===null&&vN(E,Ne.el),Et&&mr(Et,Y),(pr=pt.props&&pt.props.onVnodeUpdated)&&mr(()=>dn(pr,$t,pt,oe),Y)}else{let pt;const{el:wt,props:Et}=k,{bm:$t,m:oe,parent:te,root:pr,type:Ne}=E,Zr=Zl(k);if(pi(E,!1),$t&&up($t),!Zr&&(pt=Et&&Et.onVnodeBeforeMount)&&dn(pt,te,k),pi(E,!0),wt&&ct){const dr=()=>{E.subTree=gp(E),ct(wt,E.subTree,E,Y,null)};Zr&&Ne.__asyncHydrate?Ne.__asyncHydrate(wt,E,dr):dr()}else{pr.ce&&pr.ce._injectChildStyle(Ne);const dr=E.subTree=gp(E);d(null,dr,z,q,E,Y,tt),k.el=dr.el}if(oe&&mr(oe,Y),!Zr&&(pt=Et&&Et.onVnodeMounted)){const dr=k;mr(()=>dn(pt,te,dr),Y)}(k.shapeFlag&256||te&&Zl(te.vnode)&&te.vnode.shapeFlag&256)&&E.a&&mr(E.a,Y),E.isMounted=!0,k=z=q=null}};E.scope.on();const at=E.effect=new zD(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=()=>c0(At),pi(E,!0),rt()},B=(E,k,z)=>{k.component=E;const q=E.vnode.props;E.vnode=k,E.next=null,KO(E,k.props,q,z),tN(E,k.children,z),ui(),B1(E),fi()},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||vs,k=k||vs;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?Oa(k[rt]):An(k[rt]);if(nl(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?Oa(k[wt]):An(k[wt]);if(nl(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 gr=k[rt]=at?Oa(k[rt]):An(k[rt]);gr.key!=null&&oe.set(gr.key,rt)}let te,pr=0;const Ne=wt-$t+1;let Zr=!1,dr=0;const el=new Array(Ne);for(rt=0;rt=Ne){Q(gr,Y,tt,!0);continue}let pn;if(gr.key!=null)pn=oe.get(gr.key);else for(te=$t;te<=wt;te++)if(el[te-$t]===0&&nl(gr,k[te])){pn=te;break}pn===void 0?Q(gr,Y,tt,!0):(el[pn-$t]=rt+1,pn>=dr?dr=pn:Zr=!0,d(gr,k[pn],z,null,Y,tt,ot,lt,at),pr++)}const M1=Zr?aN(el):vs;for(te=M1.length-1,rt=Ne-1;rt>=0;rt--){const gr=$t+rt,pn=k[gr],I1=gr+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===en){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&&Kg(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=!Zl(E);let te;if(oe&&(te=ot&&ot.onVnodeBeforeUnmount)&&dn(te,k,E),At&6)Tt(E.component,z,q);else{if(At&128){E.suspense.unmount(z,q);return}$t&&vi(E,null,k,"beforeUnmount"),At&64?E.type.remove(E,k,z,j,q):rt&&!rt.hasOnce&&(tt!==en||pt>0&&pt&64)?xt(rt,k,z,!1,!0):(tt===en&&pt&384||!Y&&At&16)&&xt(at,k,z),q&&ft(E)}(oe&&(te=ot&&ot.onVnodeUnmounted)||$t)&&mr(()=>{te&&dn(te,k,E),$t&&vi(E,null,k,"unmounted")},z)},ft=E=>{const{type:k,el:z,anchor:q,transition:Y}=E;if(k===en){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;U1(at),U1(rt),q&&up(q),Y.stop(),tt&&(tt.flags|=8,Q(ot,E,k,z)),lt&&mr(lt,k),mr(()=>{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[wO];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,B1(),oM(),$=!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:ZO(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 pi({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function nN(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function wM(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 TM(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:TM(t)}function U1(r){if(r)for(let t=0;tra(iN);function Kl(r,t,e){return CM(r,t,e)}function CM(r,t,e=le){const{immediate:n,deep:a,flush:i,once:o}=e,s=Ee({},e);let l;if(mv)if(i==="sync"){const h=oN();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||n)s.once=!0;else{const h=()=>{};return h.stop=En,h.resume=En,h.pause=En,h}const u=Ge;s.call=(h,v,p)=>Nn(h,u,v,p);let f=!1;i==="post"?s.scheduler=h=>{mr(h,u&&u.suspense)}:i!=="sync"&&(f=!0,s.scheduler=(h,v)=>{v?h():c0(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=mO(r,t,s);return l&&l.push(c),c}function sN(r,t,e){const n=this.proxy,a=Se(r)?r.includes(".")?AM(n,r):()=>n[r]:r.bind(n,n);let i;Bt(t)?i=t:(i=t.handler,e=t);const o=ef(this),s=CM(a,i.bind(n),e);return o(),s}function AM(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[`${Wr(t)}Modifiers`]||r[`${To(t)}Modifiers`];function uN(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||le;let a=e;const i=t.startsWith("update:"),o=i&&lN(n,t.slice(7));o&&(o.trim&&(a=e.map(f=>Se(f)?f.trim():f)),o.number&&(a=e.map(Ok)));let s,l=n[s=lp(t)]||n[s=lp(Wr(t))];!l&&i&&(l=n[s=lp(To(t))]),l&&Nn(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,Nn(u,r,6,a)}}function DM(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=DM(u,t,!0);f&&(s=!0,Ee(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):Ee(o,i),fe(r)&&n.set(r,o),o)}function gv(r,t){return!r||!ov(t)?!1:(t=t.slice(2).replace(/Once$/,""),Qt(r,t[0].toLowerCase()+t.slice(1))||Qt(r,To(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=oh(r);let y,m;try{if(e.shapeFlag&4){const S=a||n,b=S;y=An(u.call(b,S,f,c,v,h,p)),m=s}else{const S=t;y=An(S.length>1?S(c,{attrs:s,slots:o,emit:l}):S(c,null)),m=t.props?s:fN(s)}}catch(S){jl.length=0,pv(S,r,1),y=br(xu)}let _=y;if(m&&d!==!1){const S=Object.keys(m),{shapeFlag:b}=_;S.length&&b&7&&(i&&S.some(jm)&&(m=cN(m,i)),_=Ts(_,m,!1,!0))}return e.dirs&&(_=Ts(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&h0(_,e.transition),y=_,oh(g),y}const fN=r=>{let t;for(const e in r)(e==="class"||e==="style"||ov(e))&&((t||(t={}))[e]=r[e]);return t},cN=(r,t)=>{const e={};for(const n in r)(!jm(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function hN(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?$1(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;cr.__isSuspense;function pN(r,t){t&&t.pendingBranch?Nt(r)?t.effects.push(...r):t.effects.push(r):xO(r)}const en=Symbol.for("v-fgt"),yv=Symbol.for("v-txt"),xu=Symbol.for("v-cmt"),yp=Symbol.for("v-stc"),jl=[];let xr=null;function Ql(r=!1){jl.push(xr=r?null:[])}function dN(){jl.pop(),xr=jl[jl.length-1]||null}let bu=1;function Y1(r){bu+=r,r<0&&xr&&(xr.hasOnce=!0)}function IM(r){return r.dynamicChildren=bu>0?xr||vs:null,dN(),bu>0&&xr&&xr.push(r),r}function lh(r,t,e,n,a,i){return IM(Xt(r,t,e,n,a,i,!0))}function gN(r,t,e,n,a){return IM(br(r,t,e,n,a,!0))}function uh(r){return r?r.__v_isVNode===!0:!1}function nl(r,t){return r.type===t.type&&r.key===t.key}const LM=({key:r})=>r??null,Nc=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?Se(r)||We(r)||Bt(r)?{i:rn,r,k:t,f:!!e}:r:null);function Xt(r,t=null,e=null,n=0,a=null,i=r===en?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&LM(t),ref:t&&Nc(t),scopeId:lM,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:rn};return s?(y0(l,e),i&128&&r.normalize(l)):e&&(l.shapeFlag|=Se(e)?8:16),bu>0&&!o&&xr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&xr.push(l),l}const br=yN;function yN(r,t=null,e=null,n=0,a=null,i=!1){if((!r||r===VO)&&(r=xu),uh(r)){const s=Ts(r,t,!0);return e&&y0(s,e),bu>0&&!i&&xr&&(s.shapeFlag&6?xr[xr.indexOf(r)]=s:xr.push(s)),s.patchFlag=-2,s}if(MN(r)&&(r=r.__vccOpts),t){t=mN(t);let{class:s,style:l}=t;s&&!Se(s)&&(t.class=t0(s)),fe(l)&&(l0(l)&&!Nt(l)&&(l=Ee({},l)),t.style=fv(l))}const o=Se(r)?1:MM(r)?128:TO(r)?64:fe(r)?4:Bt(r)?2:0;return Xt(r,t,e,n,a,o,i,!0)}function mN(r){return r?l0(r)||gM(r)?Ee({},r):r:null}function Ts(r,t,e=!1,n=!1){const{props:a,ref:i,patchFlag:o,children:s,transition:l}=r,u=t?_N(a||{},t):a,f={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&LM(u),ref:t&&t.ref?e&&i?Nt(i)?i.concat(Nc(t)):[i,Nc(t)]:Nc(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!==en?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&&Ts(r.ssContent),ssFallback:r.ssFallback&&Ts(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return l&&n&&h0(f,l.clone(f)),f}function ey(r=" ",t=0){return br(yv,null,r,t)}function An(r){return r==null||typeof r=="boolean"?br(xu):Nt(r)?br(en,null,r.slice()):uh(r)?Oa(r):br(yv,null,String(r))}function Oa(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Ts(r)}function y0(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),y0(r,a()),a._c&&(a._d=!0));return}else{e=32;const a=t._;!a&&!gM(t)?t._ctx=rn:a===3&&rn&&(rn.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else Bt(t)?(t={default:t,_ctx:rn},e=32):(t=String(t),n&64?(e=16,t=[ey(t)]):e=8);r.children=t,r.shapeFlag|=e}function _N(...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)}};fh=t("__VUE_INSTANCE_SETTERS__",e=>Ge=e),ry=t("__VUE_SSR_SETTERS__",e=>mv=e)}const ef=r=>{const t=Ge;return fh(r),r.scope.on(),()=>{r.scope.off(),fh(t)}},X1=()=>{Ge&&Ge.scope.off(),fh(null)};function PM(r){return r.vnode.shapeFlag&4}let mv=!1;function wN(r,t=!1,e=!1){t&&ry(t);const{props:n,children:a}=r.vnode,i=PM(r);qO(r,n,i,t),JO(r,a,e);const o=i?TN(r,t):void 0;return t&&ry(!1),o}function TN(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,GO);const{setup:n}=e;if(n){const a=r.setupContext=n.length>1?AN(r):null,i=ef(r);ui();const o=Ju(n,r,0,[r.props,a]);if(fi(),i(),PD(o)){if(Zl(r)||uM(r),o.then(X1,X1),t)return o.then(s=>{Z1(r,s,t)}).catch(s=>{pv(s,r,0)});r.asyncDep=o}else Z1(r,o,t)}else RM(r,t)}function Z1(r,t,e){Bt(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:fe(t)&&(r.setupState=rM(t)),RM(r,e)}let q1;function RM(r,t,e){const n=r.type;if(!r.render){if(!t&&q1&&!n.render){const a=n.template||d0(r).template;if(a){const{isCustomElement:i,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Ee(Ee({isCustomElement:i,delimiters:s},o),l);n.render=q1(a,u)}}r.render=n.render||En}{const a=ef(r);ui();try{HO(r)}finally{fi(),a()}}}const CN={get(r,t){return Ue(r,"get",""),r[t]}};function AN(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,CN),slots:r.slots,emit:r.emit,expose:t}}function m0(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(rM(cO(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in ql)return ql[e](r)},has(t,e){return e in t||e in ql}})):r.proxy}function DN(r,t=!0){return Bt(r)?r.displayName||r.name:r.name||t&&r.__name}function MN(r){return Bt(r)&&"__vccOpts"in r}const He=(r,t)=>gO(r,t,mv);function EM(r,t,e){const n=arguments.length;return n===2?fe(t)&&!Nt(t)?uh(t)?br(r,null,[t]):br(r,t):br(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&uh(e)&&(e=[e]),br(r,t,e))}const IN="3.5.10";/** +* @vue/runtime-dom v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ny;const K1=typeof window<"u"&&window.trustedTypes;if(K1)try{ny=K1.createPolicy("vue",{createHTML:r=>r})}catch{}const kM=ny?r=>ny.createHTML(r):r=>r,LN="http://www.w3.org/2000/svg",PN="http://www.w3.org/1998/Math/MathML",Kn=typeof document<"u"?document:null,j1=Kn&&Kn.createElement("template"),RN={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"?Kn.createElementNS(LN,r):t==="mathml"?Kn.createElementNS(PN,r):e?Kn.createElement(r,{is:e}):Kn.createElement(r);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>Kn.createTextNode(r),createComment:r=>Kn.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Kn.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=kM(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]}},EN=Symbol("_vtc");function kN(r,t,e){const n=r[EN];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const Q1=Symbol("_vod"),ON=Symbol("_vsh"),NN=Symbol(""),BN=/(^|;)\s*display\s*:/;function VN(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&&Bc(n,s,"")}else for(const o in t)e[o]==null&&Bc(n,o,"");for(const o in e)o==="display"&&(i=!0),Bc(n,o,e[o])}else if(a){if(t!==e){const o=n[NN];o&&(e+=";"+o),n.cssText=e,i=BN.test(e)}}else t&&r.removeAttribute("style");Q1 in r&&(r[Q1]=i?n.display:"",r[ON]&&(n.display="none"))}const J1=/\s*!important$/;function Bc(r,t,e){if(Nt(e))e.forEach(n=>Bc(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=zN(r,t);J1.test(e)?r.setProperty(To(n),e.replace(J1,""),"important"):r[n]=e}}const tS=["Webkit","Moz","ms"],mp={};function zN(r,t){const e=mp[t];if(e)return e;let n=Wr(t);if(n!=="filter"&&n in r)return mp[t]=n;n=uv(n);for(let a=0;a_p||(UN.then(()=>_p=0),_p=Date.now());function YN(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Nn(XN(n,e.value),t,5,[n])};return e.value=r,e.attached=$N(),e}function XN(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 oS=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,ZN=(r,t,e,n,a,i)=>{const o=a==="svg";t==="class"?kN(r,n,o):t==="style"?VN(r,e,n):ov(t)?jm(t)||HN(r,t,e,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qN(r,t,n,o))?(nS(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rS(r,t,n,o,i,t!=="value")):r._isVueCE&&(/[A-Z]/.test(t)||!Se(n))?nS(r,Wr(t),n):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),rS(r,t,n,o))};function qN(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&oS(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 oS(t)&&Se(e)?!1:t in r}const KN=Ee({patchProp:ZN},RN);let sS;function jN(){return sS||(sS=eN(KN))}const QN=(...r)=>{const t=jN().createApp(...r),{mount:e}=t;return t.mount=n=>{const a=tB(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,JN(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function JN(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function tB(r){return Se(r)?document.querySelector(r):r}const eB=tf({__name:"App",setup(r){console.log("App.vue");const t=new Date().getFullYear();return(e,n)=>{const a=BO("router-view");return Ql(),lh(en,null,[n[2]||(n[2]=Xt("h1",{style:{"text-align":"center"}},"Server Status",-1)),br(a),Xt("footer",null,[ey(" © Copyright 2024-"+wn(io(t))+" ",1),n[0]||(n[0]=Xt("a",{href:"https://sfkm.me",target:"_blank"},"snowykami",-1)),n[1]||(n[1]=ey(" All Rights Reserved "))])],64)}}}),_v=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e},rB=_v(eB,[["__scopeId","data-v-13414ec4"]]);/*! + * vue-router v4.4.5 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const rs=typeof document<"u";function OM(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function nB(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&OM(r.default)}const ee=Object.assign;function Sp(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 Jl=()=>{},un=Array.isArray,NM=/#/g,aB=/&/g,iB=/\//g,oB=/=/g,sB=/\?/g,BM=/\+/g,lB=/%5B/g,uB=/%5D/g,VM=/%5E/g,fB=/%60/g,zM=/%7B/g,cB=/%7C/g,FM=/%7D/g,hB=/%20/g;function _0(r){return encodeURI(""+r).replace(cB,"|").replace(lB,"[").replace(uB,"]")}function vB(r){return _0(r).replace(zM,"{").replace(FM,"}").replace(VM,"^")}function ay(r){return _0(r).replace(BM,"%2B").replace(hB,"+").replace(NM,"%23").replace(aB,"%26").replace(fB,"`").replace(zM,"{").replace(FM,"}").replace(VM,"^")}function pB(r){return ay(r).replace(oB,"%3D")}function dB(r){return _0(r).replace(NM,"%23").replace(sB,"%3F")}function gB(r){return r==null?"":dB(r).replace(iB,"%2F")}function wu(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const yB=/\/$/,mB=r=>r.replace(yB,"");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=bB(n??t,e),{fullPath:n+(i&&"?")+i+o,path:n,query:a,hash:wu(o)}}function _B(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function lS(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function SB(r,t,e){const n=t.matched.length-1,a=e.matched.length-1;return n>-1&&n===a&&Cs(t.matched[n],e.matched[a])&&GM(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Cs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function GM(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(!xB(r[e],t[e]))return!1;return!0}function xB(r,t){return un(r)?uS(r,t):un(t)?uS(t,r):r===t}function uS(r,t){return un(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function bB(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 xa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Tu;(function(r){r.pop="pop",r.push="push"})(Tu||(Tu={}));var tu;(function(r){r.back="back",r.forward="forward",r.unknown=""})(tu||(tu={}));function wB(r){if(!r)if(rs){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),mB(r)}const TB=/^[^#]+#/;function CB(r,t){return r.replace(TB,"#")+t}function AB(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 DB(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=AB(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 fS(r,t){return(history.state?history.state.position-t:-1)+r}const iy=new Map;function MB(r,t){iy.set(r,t)}function IB(r){const t=iy.get(r);return iy.delete(r),t}let LB=()=>location.protocol+"//"+location.host;function HM(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),lS(l,"")}return lS(e,r)+n+a}function PB(r,t,e,n){let a=[],i=[],o=null;const s=({state:h})=>{const v=HM(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:Tu.pop,direction:g?g>0?tu.forward:tu.back:tu.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 cS(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 RB(r){const{history:t,location:e}=window,n={value:HM(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:LB()+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,cS(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({},cS(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 EB(r){r=wB(r);const t=RB(r),e=PB(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:CB.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 kB(r){return typeof r=="string"||r&&typeof r=="object"}function WM(r){return typeof r=="string"||typeof r=="symbol"}const UM=Symbol("");var hS;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(hS||(hS={}));function As(r,t){return ee(new Error,{type:r,[UM]:!0},t)}function Yn(r,t){return r instanceof Error&&UM in r&&(t==null||!!(r.type&t))}const vS="[^/]+?",OB={sensitive:!1,strict:!1,start:!0,end:!0},NB=/[.+*?^${}()[\]/\\]/g;function BB(r,t){const e=ee({},OB,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 $M(r,t){let e=0;const n=r.score,a=t.score;for(;e0&&t[t.length-1]<0}const zB={type:0,value:""},FB=/[a-zA-Z0-9_]/;function GB(r){if(!r)return[[]];if(r==="/")return[[zB]];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(_)}:Jl}function o(c){if(WM(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=YB(c,e);e.splice(h,0,c),c.record.name&&!yS(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 As(1,{location:c});g=v.record.name,p=ee(dS(h.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&dS(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 As(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:$B(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 dS(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function gS(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:UB(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 UB(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 yS(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function $B(r){return r.reduce((t,e)=>ee(t,e.meta),{})}function mS(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}function YB(r,t){let e=0,n=t.length;for(;e!==n;){const i=e+n>>1;$M(r,t[i])<0?n=i:e=i+1}const a=XB(r);return a&&(n=t.lastIndexOf(a,n-1)),n}function XB(r){let t=r;for(;t=t.parent;)if(YM(t)&&$M(r,t)===0)return t}function YM({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function ZB(r){const t={};if(r===""||r==="?")return t;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let a=0;ai&&ay(i)):[n&&ay(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function qB(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 KB=Symbol(""),SS=Symbol(""),S0=Symbol(""),XM=Symbol(""),oy=Symbol("");function al(){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 Na(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(As(4,{from:e,to:t})):h instanceof Error?l(h):kB(h)?l(As(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(OM(l)){const f=(l.__vccOpts||l)[t];f&&i.push(Na(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=nB(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const v=(c.__vccOpts||c)[t];return v&&Na(v,e,n,o,s,a)()}))}}return i}function xS(r){const t=ra(S0),e=ra(XM),n=He(()=>{const l=io(r.to);return t.resolve(l)}),a=He(()=>{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(Cs.bind(null,f));if(h>-1)return h;const v=bS(l[u-2]);return u>1&&bS(f)===v&&c[c.length-1].path!==v?c.findIndex(Cs.bind(null,l[u-2])):h}),i=He(()=>a.value>-1&&tV(e.params,n.value.params)),o=He(()=>a.value>-1&&a.value===e.matched.length-1&&GM(e.params,n.value.params));function s(l={}){return JB(l)?t[io(r.replace)?"replace":"push"](io(r.to)).catch(Jl):Promise.resolve()}return{route:n,href:He(()=>n.value.href),isActive:i,isExactActive:o,navigate:s}}const jB=tf({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:xS,setup(r,{slots:t}){const e=vv(xS(r)),{options:n}=ra(S0),a=He(()=>({[wS(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[wS(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const i=t.default&&t.default(e);return r.custom?i:EM("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:a.value},i)}}}),QB=jB;function JB(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 tV(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,o)=>i!==a[o]))return!1}return!0}function bS(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const wS=(r,t,e)=>r??t??e,eV=tf({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=ra(oy),a=He(()=>r.route||n.value),i=ra(SS,0),o=He(()=>{let u=io(i);const{matched:f}=a.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=He(()=>a.value.matched[o.value]);Oc(SS,He(()=>o.value+1)),Oc(KB,s),Oc(oy,a);const l=Ea();return Kl(()=>[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||!Cs(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 TS(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=EM(h,ee({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return TS(e.default,{Component:g,route:u})||g}}});function TS(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const rV=eV;function nV(r){const t=WB(r.routes,r),e=r.parseQuery||ZB,n=r.stringifyQuery||_S,a=r.history,i=al(),o=al(),s=al(),l=hO(xa);let u=xa;rs&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Sp.bind(null,G=>""+G),c=Sp.bind(null,gB),h=Sp.bind(null,wu);function v(G,$){let K,j;return WM(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:wu(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=_B(n,ee({},G,{hash:vB(J),path:j.path})),E=a.createHref(ct);return ee({fullPath:ct,hash:J,query:n===_S?qB(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 As(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&&SB(n,j,K)&&(q=As(16,{to:z,from:j}),Z(j,j,!0,!1)),(q?Promise.resolve(q):A(z,j)).catch(Y=>Yn(Y)?Yn(Y,2)?Y:U(Y):N(Y,z,j)).then(Y=>{if(Y){if(Yn(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]=aV(G,$);K=bp(j.reverse(),"beforeRouteLeave",G,$);for(const k of j)k.leaveGuards.forEach(z=>{K.push(Na(z,G,$))});const E=T.bind(null,G,$);return K.push(E),xt(K).then(()=>{K=[];for(const k of i.list())K.push(Na(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(Na(z,G,$))});return K.push(E),xt(K)}).then(()=>{K=[];for(const k of ct)if(k.beforeEnter)if(un(k.beforeEnter))for(const z of k.beforeEnter)K.push(Na(z,G,$));else K.push(Na(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(Na(k,G,$));return K.push(E),xt(K)}).catch(k=>Yn(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=$===xa,k=rs?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(Jl);return}u=j;const ct=l.value;rs&&MB(fS(ct.fullPath,K.delta),Sv()),A(j,ct).catch(E=>Yn(E,12)?E:Yn(E,2)?(w(E.to,j).then(k=>{Yn(k,20)&&!K.delta&&K.type===Tu.pop&&a.go(-1,!1)}).catch(Jl),Promise.reject()):(K.delta&&a.go(-K.delta,!1),N(E,j,ct))).then(E=>{E=E||I(j,ct,!1),E&&(K.delta&&!Yn(E,8)?a.go(-K.delta,!1):K.type===Tu.pop&&Yn(E,20)&&a.go(-1,!1)),M(j,ct,E)}).catch(Jl)}))}let R=al(),O=al(),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!==xa?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(!rs||!J)return Promise.resolve();const ct=!K&&IB(fS(G.fullPath,0))||(j||!K)&&history.state&&history.state.scroll||null;return aM().then(()=>J(G,$,ct)).then(E=>E&&DB(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",QB),G.component("RouterView",rV),G.config.globalProperties.$router=$,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>io(l)}),rs&&!ft&&l.value===xa&&(ft=!0,S(a.location).catch(J=>{}));const K={};for(const J in xa)Object.defineProperty(K,J,{get:()=>l.value[J],enumerable:!0});G.provide(S0,$),G.provide(XM,JD(K)),G.provide(oy,l);const j=G.unmount;ht.add(G),G.unmount=function(){ht.delete(G),ht.size<1&&(u=xa,L&&L(),L=null,l.value=xa,ft=!1,B=!1),j()}}};function xt(G){return G.reduce(($,K)=>$.then(()=>C(K)),Promise.resolve())}return Tt}function aV(r,t){const e=[],n=[],a=[],i=Math.max(t.matched.length,r.matched.length);for(let o=0;oCs(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Cs(u,l))||a.push(l))}return[e,n,a]}const iV="";async function CS(){return(await fetch(`${iV}/api/status`)).json()}const oV="/svg/location.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 sy=function(r,t){return sy=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])},sy(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");sy(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var sV=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 sV,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 lV;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):uV(navigator.userAgent,Rt);function uV(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 x0=12,ZM="sans-serif",ti=x0+"px "+ZM,fV=20,cV=100,hV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function vV(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 kV(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?IS(s,o):IS(o,s))}function eI(r){return r.nodeName.toUpperCase()==="CANVAS"}var OV=/([&<>"'])/g,NV={"&":"&","<":"<",">":">",'"':""","'":"'"};function ur(r){return r==null?"":(r+"").replace(OV,function(t,e){return NV[e]})}var BV=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Tp=[],VV=Rt.browser.firefox&&+Rt.browser.version.split(".")[0]<39;function py(r,t,e,n){return e=e||{},n?PS(r,t,e):VV&&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):PS(r,t,e),e}function PS(r,t,e){if(Rt.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(eI(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(vy(Tp,r,n,a)){e.zrX=Tp[0],e.zrY=Tp[1];return}}e.zrX=e.zrY=0}function M0(r){return r||window.event}function Rr(r,t,e){if(t=M0(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&&py(r,o,t,e)}else{py(r,t,t,e);var i=zV(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&BV.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function zV(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 dy(r,t,e,n){r.addEventListener(t,e,n)}function FV(r,t,e,n){r.removeEventListener(t,e,n)}var la=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function RS(r){return r.which===2||r.which===3}var GV=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=ES(n)/ES(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=HV(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Tr(){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 I0(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 aa(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 Vn(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 Ao(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 L0(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 Fs(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 WV(r){var t=Tr();return I0(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}(),Rf=Math.min,Ef=Math.max,di=new Ct,gi=new Ct,yi=new Ct,mi=new Ct,il=new Ct,ol=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=Rf(t.x,this.x),n=Rf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ef(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ef(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=Tr();return Vn(i,i,[-e.x,-e.y]),L0(i,i,[n,a]),Vn(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}di.x=yi.x=e.x,di.y=mi.y=e.y,gi.x=mi.x=e.x+e.width,gi.y=yi.y=e.y+e.height,di.transform(n),mi.transform(n),gi.transform(n),yi.transform(n),t.x=Rf(di.x,gi.x,yi.x,mi.x),t.y=Rf(di.y,gi.y,yi.y,mi.y);var l=Ef(di.x,gi.x,yi.x,mi.x),u=Ef(di.y,gi.y,yi.y,mi.y);t.width=l-t.x,t.height=u-t.y},r}(),rI="silent";function UV(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:$V}}function $V(){la(this.event)}var YV=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}($r),sl=function(){function r(t,e){this.x=t,this.y=e}return r}(),XV=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ap=new Mt(0,0,0,0),nI=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this)||this;return s._hovered=new sl(0,0),s.storage=e,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new YV,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new LV(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(D(XV,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=aI(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 sl(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 sl(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=UV(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 sl(e,n);if(kS(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 ZV(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?rI:!0}return!1}function kS(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=ZV(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==rI)){t.target=o;break}}}function aI(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var iI=32,ll=7;function qV(r){for(var t=0;r>=iI;)t|=r&1,r>>=1;return r+t}function OS(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 KV(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 jV(r,t){var e=ll,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]=ll||w>=ll);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=ll||C>=ll);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),NS(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 Sr=1,Ol=2,ns=4,BS=!1;function Ip(){BS||(BS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function VS(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var QV=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=VS}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}(),vh;vh=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 ru={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-ru.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?ru.bounceIn(r*2)*.5:ru.bounceOut(r*2-1)*.5+.5}},kf=Math.pow,qa=Math.sqrt,ph=1e-8,oI=1e-4,zS=qa(3),Of=1/3,Dn=Co(),Nr=Co(),ms=Co();function Wa(r){return r>-ph&&rph||r<-ph}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 FS(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function dh(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(Wa(f)&&Wa(c))if(Wa(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(Wa(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=qa(d),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-kf(-_,Of):_=kf(_,Of),S<0?S=-kf(-S,Of):S=kf(S,Of);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[v++]=p)}else{var b=(2*f*s-3*o*c)/(2*qa(f*f*f)),x=Math.acos(b)/3,w=qa(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+zS*Math.sin(x)))/(3*o),C=(-s+w*(T-zS*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 lI(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(Wa(o)){if(sI(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(Wa(f))a[0]=-i/(2*o);else if(f>0){var c=qa(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 ri(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 uI(r,t,e,n,a,i,o,s,l,u,f){var c,h=.005,v=1/0,p,d,g,y;Dn[0]=l,Dn[1]=u;for(var m=0;m<1;m+=.05)Nr[0]=be(r,e,a,o,m),Nr[1]=be(t,n,i,s,m),g=oo(Dn,Nr),g=0&&g=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(Wa(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=qa(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 fI(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Au(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 cI(r,t,e,n,a,i,o,s,l){var u,f=.005,c=1/0;Dn[0]=o,Dn[1]=s;for(var h=0;h<1;h+=.05){Nr[0]=Me(r,e,a,h),Nr[1]=Me(t,n,i,h);var v=oo(Dn,Nr);v=0&&v=1?1:dh(0,n,i,1,l,s)&&be(0,a,o,1,s[0])}}}var nz=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:ru[t]||P0(t)},r}(),hI=function(){function r(t){this.value=t}return r}(),az=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new hI(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}(),rf=function(){function r(t){this._list=new az,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 hI(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}(),GS={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 sn(r){return r=Math.round(r),r<0?0:r>255?255:r}function iz(r){return r=Math.round(r),r<0?0:r>360?360:r}function Du(r){return r<0?0:r>1?1:r}function Lp(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?sn(parseFloat(t)/100*255):sn(parseInt(t,10))}function so(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Du(parseFloat(t)/100):Du(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 Ua(r,t,e){return r+(t-r)*e}function Pr(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function yy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var vI=new rf(20),Nf=null;function Oo(r,t){Nf&&yy(Nf,t),Nf=vI.put(r,Nf||t.slice())}function Cr(r,t){if(r){t=t||[];var e=vI.get(r);if(e)return yy(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in GS)return yy(t,GS[n]),Oo(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)){Pr(t,0,0,0,1);return}return Pr(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),Oo(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Pr(t,0,0,0,1);return}return Pr(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Oo(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?Pr(t,+u[0],+u[1],+u[2],1):Pr(t,0,0,0,1);f=so(u.pop());case"rgb":if(u.length>=3)return Pr(t,Lp(u[0]),Lp(u[1]),Lp(u[2]),u.length===3?f:so(u[3])),Oo(r,t),t;Pr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Pr(t,0,0,0,1);return}return u[3]=so(u[3]),my(u,t),Oo(r,t),t;case"hsl":if(u.length!==3){Pr(t,0,0,0,1);return}return my(u,t),Oo(r,t),t;default:return}}Pr(t,0,0,0,1)}}function my(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=so(r[1]),a=so(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Pr(t,sn(Pp(o,i,e+1/3)*255),sn(Pp(o,i,e)*255),sn(Pp(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function oz(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 _y(r,t){var e=Cr(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 ia(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]=sn(Ua(o[0],s[0],l)),e[1]=sn(Ua(o[1],s[1],l)),e[2]=sn(Ua(o[2],s[2],l)),e[3]=Du(Ua(o[3],s[3],l)),e}}function sz(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=Cr(t[a]),s=Cr(t[i]),l=n-a,u=ia([sn(Ua(o[0],s[0],l)),sn(Ua(o[1],s[1],l)),sn(Ua(o[2],s[2],l)),Du(Ua(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function nu(r,t,e,n){var a=Cr(r);if(r)return a=oz(a),t!=null&&(a[0]=iz(t)),e!=null&&(a[1]=so(e)),n!=null&&(a[2]=so(n)),ia(my(a),"rgba")}function gh(r,t){var e=Cr(r);if(e&&t!=null)return e[3]=Du(t),ia(e,"rgba")}function ia(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 yh(r,t){var e=Cr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var HS=new rf(100);function Sy(r){if(nt(r)){var t=HS.get(r);return t||(t=_y(r,-.1),HS.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:_y(n.color,-.1)}}),e}return r}var mh=Math.round;function Mu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Cr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var WS=1e-4;function $a(r){return r-WS}function Bf(r){return mh(r*1e3)/1e3}function xy(r){return mh(r*1e4)/1e4}function lz(r){return"matrix("+Bf(r[0])+","+Bf(r[1])+","+Bf(r[2])+","+Bf(r[3])+","+xy(r[4])+","+xy(r[5])+")"}var uz={left:"start",right:"end",center:"middle",middle:"middle"};function fz(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function cz(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function hz(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 pI(r){return r&&!!r.image}function vz(r){return r&&!!r.svgElement}function R0(r){return pI(r)||vz(r)}function dI(r){return r.type==="linear"}function gI(r){return r.type==="radial"}function yI(r){return r&&(r.type==="linear"||r.type==="radial")}function Cv(r){return"url(#"+r+")"}function mI(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 _I(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Vc,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("+mh(o*Vc)+"deg, "+mh(s*Vc)+"deg)"),l.join(" ")}var pz=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}}(),by=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=$S,l=e;if($e(e)){var u=mz(e);s=u,(u===1&&!Gt(e[0])||u===2&&!Gt(e[0][0]))&&(o=!0)}else if(Gt(e)&&!Cu(e))s=zf;else if(nt(e))if(!isNaN(+e))s=zf;else{var f=Cr(e);f&&(l=f,s=Nl)}else if(bv(e)){var c=H({},l);c.colorStops=X(e.colorStops,function(v){return{offset:v.offset,color:Cr(v.color)}}),dI(e)?s=wy:gI(e)&&(s=Ty),l=c}i===0?this.valType=s:(s!==this.valType||s===$S)&&(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:ru[n]||P0(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=Ff(a),u=YS(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?ul:t[l];if((Ff(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:p.rawValue;else if(Ff(i))i===Wc?Ep(m,v[a],p[a],y):dz(m,v[a],p[a],y);else if(YS(i)){var _=v[a],S=p[a],b=i===wy;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:Hc(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]=Hc(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===zf?t[n]=t[n]+a:e===Nl?(Cr(t[n],ul),Vf(ul,ul,a,1),t[n]=Hc(ul)):e===Wc?Vf(t[n],t[n],a,1):e===SI&&US(t[n],t[n],a,1)},r}(),E0=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){T0("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,au(u),a),this._trackKeys.push(s)}l.addKeyframe(t,au(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 us(){return new Date().getTime()}var Sz=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=us()-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&&(vh(n),!e._paused&&e.update())}vh(n)},t.prototype.start=function(){this._running||(this._time=us(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=us(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=us()-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 E0(e,n.loop);return this.addAnimator(a),a},t}($r),xz=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}}(),XS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ZS=!1;function Cy(r){var t=r.pointerType;return t==="pen"||t==="touch"}function bz(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 wz(r,t){return Rr(r.dom,new Tz(r,t),!0)}function xI(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 Tz=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}(),Qr={mousedown:function(r){r=Rr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Rr(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=Rr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Rr(this.dom,r);var t=r.toElement||r.relatedTarget;xI(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){ZS=!0,r=Rr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){ZS||(r=Rr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Rr(this.dom,r),Np(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Qr.mousemove.call(this,r),Qr.mousedown.call(this,r)},touchmove:function(r){r=Rr(this.dom,r),Np(r),this.handler.processGesture(r,"change"),Qr.mousemove.call(this,r)},touchend:function(r){r=Rr(this.dom,r),Np(r),this.handler.processGesture(r,"end"),Qr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentjS||r<-jS}var Si=[],No=[],Vp=Tr(),zp=Math.abs,Jn=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 _i(this.rotation)||_i(this.x)||_i(this.y)||_i(this.scaleX-1)||_i(this.scaleY-1)||_i(this.skewX)||_i(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(KS(n),this.invTransform=null);return}n=n||Tr(),e?this.getLocalTransform(n):KS(n),t&&(e?aa(n,t,n):I0(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Si);var n=Si[0]<0?-1:1,a=Si[1]<0?-1:1,i=((Si[0]-n)*e+n)/Si[0]||0,o=((Si[1]-a)*e+a)/Si[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Tr(),Fs(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||Tr(),aa(No,t.invTransform,e),e=No);var n=this.originX,a=this.originY;(n||a)&&(Vp[4]=n,Vp[5]=a,aa(No,e,Vp),No[4]-=n,No[5]-=a,e=No),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&&Re(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&Re(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){wI(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&&Ao(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}(),zn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function wI(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Sh(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+=fn(n[0],e.width),u+=fn(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=zn.concat(["ignore"]),Iz=Bn(zn,function(r,t){return r[t]=!0,r},{ignore:!1}),Bo={},Lz=new Mt(0,0,0,0),Dv=function(){function r(t){this.id=jM(),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=Lz;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Bo,n,f):Sh(Bo,n,f),i.x=Bo.x,i.y=Bo.y,o=Bo.align,s=Bo.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=fn(c[0],f.width),v=fn(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|=Sr,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()?Iy:My},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Cr(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,ia(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){T0("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&=~Sr),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&=~Sr)}},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]=au(e[y]),Rz(e,n,y)}}var b=new E0(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)?Gz(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),AI),r=(+r).toFixed(t),e?r:+r}function Fr(r){return r.sort(function(t,e){return t-e}),r}function In(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 Hz(r)}function Hz(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 DI(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 Wz(r,t){var e=Bn(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=Bn(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 Uz(r,t){var e=Math.max(In(r),In(t)),n=r+t;return e>AI?n:he(n,e)}var rx=9007199254740991;function MI(r){var t=Math.PI*2;return(r%t+t)%t}function Iu(r){return r>-ex&&r=10&&t++,t}function II(r,t){var e=k0(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 nx(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 g5=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],y5=_o(g5),m5=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return y5(this,t,e)},r}(),Ry=new rf(50);function _5(r){if(typeof r=="string"){var t=Ry.get(r);return t&&t.image}else return r}function V0(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Ry.get(r),o={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!Iv(t)&&i.pending.push(o)):(t=ei.loadImage(r,sx,sx),t.__zrImageSrc=r,Ry.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function sx(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Ar(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 HI(r,t){var e=t.containerWidth,n=t.font,a=t.contentWidth;if(!e)return"";var i=Ar(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?x5(r,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*a/i):0;r=r.substr(0,s),i=Ar(r,n)}return r===""&&(r=t.placeholder),r}function x5(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=GI(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=Ar(x.text,A);else{if(L){var P=w.backgroundColor,R=P&&P.image;R&&(R=_5(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=WI(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 D5=Bn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function M5(r){return A5(r)?!!D5[r]:!0}function WI(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 Ey="__zr_style_"+Math.round(Math.random()*10),lo={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}};lo[Ey]=!0;var ux=["z","z2","invisible"],I5=["invisible"],Ur=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(Gf[0]=Kp(a)*e+r,Gf[1]=qp(a)*n+t,Hf[0]=Kp(i)*e+r,Hf[1]=qp(i)*n+t,u(s,Gf,Hf),f(l,Gf,Hf),a=a%bi,a<0&&(a=a+bi),i=i%bi,i<0&&(i=i+bi),a>i&&!o?i+=bi:aa&&(Wf[0]=Kp(v)*e+r,Wf[1]=qp(v)*n+t,u(s,Wf,s),f(l,Wf,l))}var jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wi=[],Ti=[],gn=[],ba=[],yn=[],mn=[],jp=Math.min,Qp=Math.max,Ci=Math.cos,Ai=Math.sin,Xn=Math.abs,ky=Math.PI,Pa=ky*2,Jp=typeof Float32Array<"u",fl=[];function td(r){var t=Math.round(r/ky*1e8)/1e8;return t%2*ky}function z0(r,t){var e=td(r[0]);e<0&&(e+=Pa);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=Pa?a=e+Pa:t&&e-a>=Pa?a=e-Pa:!t&&e>a?a=e+(Pa-td(e-a)):t&&e0&&(this._ux=Xn(n/_h/t)||0,this._uy=Xn(n/_h/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=Xn(t-this._xi),a=Xn(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(),fl[0]=a,fl[1]=i,z0(fl,o),a=fl[0],i=fl[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=Ci(i)*n+t,this._yi=Ai(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(){gn[0]=gn[1]=yn[0]=yn[1]=Number.MAX_VALUE,ba[0]=ba[1]=mn[0]=mn[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,o;for(o=0;on||Xn(_)>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=JV(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=ez(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=Ci(I)*A+T,l=Ai(I)*M+C),d=Qp(A,M)*jp(Pa,Math.abs(L)),i=Ci(P)*A+T,o=Ai(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=Xn(c-u),A=Xn(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;ri(u,P,O,N,I,wi),ri(f,R,B,F,I,Ti),t.bezierCurveTo(wi[1],Ti[1],wi[2],Ti[2],wi[3],Ti[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;Au(u,P,O,I,wi),Au(f,R,B,I,Ti),t.quadraticCurveTo(wi[1],Ti[1],wi[2],Ti[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=Xn(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=Ci(ht)*Q+U,l=Ai(ht)*ft+Z),u=Ci(j)*Q+U,f=Ai(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 Ba(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+=cl);var h=Math.atan2(l,s);return h<0&&(h+=cl),h>=n&&h<=a||h+cl>=n&&h+cl<=a}function Qn(r,t,e,n,a,i){if(i>t&&i>n||ia?s:0}var wa=Gn.CMD,Di=Math.PI*2,N5=1e-4;function B5(r,t){return Math.abs(r-t)t&&u>n&&u>i&&u>s||u1&&V5(),v=be(t,n,i,s,kr[0]),h>1&&(p=be(t,n,i,s,kr[1]))),h===2?gt&&s>n&&s>i||s=0&&u<=1){for(var f=0,c=Me(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>=Di-1e-4){n=0,a=Di;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+=Di,a+=Di);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=Di+d),(d>=n&&d<=a||d+Di>=n&&d+Di<=a)&&(d>Math.PI/2&&d1&&(e||(s+=Qn(l,u,f,c,n,a))),g&&(l=i[p],u=i[p+1],f=l,c=u),d){case wa.M:f=i[p++],c=i[p++],l=f,u=c;break;case wa.L:if(e){if(Ba(l,u,i[p],i[p+1],t,n,a))return!0}else s+=Qn(l,u,i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case wa.C:if(e){if(k5(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=z5(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 wa.Q:if(e){if(UI(l,u,i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=F5(l,u,i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case wa.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+=Qn(l,u,h,v,n,a);var T=(n-y)*S/_+y;if(e){if(O5(y,m,S,b,b+x,w,t,T,a))return!0}else s+=G5(y,m,S,b,b+x,w,T,a);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case wa.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(Ba(f,c,h,c,t,n,a)||Ba(h,c,h,v,t,n,a)||Ba(h,v,f,v,t,n,a)||Ba(f,v,f,c,t,n,a))return!0}else s+=Qn(h,c,h,v,n,a),s+=Qn(f,v,f,c,n,a);break;case wa.Z:if(e){if(Ba(l,u,f,c,t,n,a))return!0}else s+=Qn(l,u,f,c,n,a);l=f,u=c;break}}return!e&&!B5(u,c)&&(s+=Qn(l,u,f,c,n,a)||0),s!==0}function H5(r,t,e){return $I(r,0,!1,t,e)}function W5(r,t,e,n){return $I(r,t,!0,e,n)}var xh=dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},lo),U5={style:dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Lv.style)},ed=zn.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?My:n>.2?Mz:Iy}else if(e)return Iy}return My},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=yh(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&ns)&&(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)),W5(s,l/u,e,n)))return!0}if(this.hasFill())return H5(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ns,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&ns)},t.prototype.createStyle=function(e){return wv(xh,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($5,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=nf(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}(Ur);Ms.prototype.type="tspan";var Y5=dt({x:0,y:0},lo),X5={style:dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Lv.style)};function Z5(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Le=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return wv(Y5,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=Z5(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 X5},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}(Ur);Le.prototype.type="image";function q5(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 fs=Math.round;function YI(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&&(fs(n*2)===fs(a*2)&&(r.x1=r.x2=ji(n,s,!0)),fs(i*2)===fs(o*2)&&(r.y1=r.y2=ji(i,s,!0))),r}}function XI(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=fs(r*2);return(n+fs(t))%2===0?n/2:(n+(e?1:-1))/2}var K5=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),j5={},Vt=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new K5},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=XI(j5,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?q5(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 px={fill:"#000"},dx=2,Q5={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=px,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=xx(o,s,p),c-=e.height/2-p[0]-e.innerHeight/2);var d=this._getOrCreateChild(Ms),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Sx("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=_x("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=dx,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||ti,g.opacity=kn(u.opacity,n.opacity,1),yx(g,u),b&&(g.lineWidth=kn(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(Bl(g.x,w,g.textAlign),as(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(Le),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=kn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return qI(e)&&(n=[e.fontStyle,e.fontWeight,ZI(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&nn(n)||e.textFont||e.font},t}(Ur),J5={left:!0,right:1,center:1},tF={top:1,bottom:1,middle:1},gx=["fontStyle","fontWeight","fontSize","fontFamily"];function ZI(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?x0+"px":r+"px"}function yx(r,t){for(var e=0;e=0,i=!1;if(r instanceof Pt){var o=KI(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Vo(s)||Vo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=H({},n),u=H({},u),u.fill=s):!Vo(u.fill)&&Vo(s)?(i=!0,n=H({},n),u=H({},u),u.fill=Sy(s)):!Vo(u.stroke)&&Vo(l)&&(i||(n=H({},n),u=H({},u)),u.stroke=Sy(l)),n.style=u}}if(n&&n.z2==null){i||(n=H({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??Hs)}return n}function sF(r,t,e){if(e&&e.z2==null){e=H({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??rF)}return e}function lF(r,t,e){var n=It(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:iF(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 oF(this,r,t,e);if(r==="blur")return lF(this,r,e);if(r==="select")return sF(this,r,e)}return e}function So(r){r.stateProxy=nd;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=nd),e&&(e.stateProxy=nd)}function Dx(r,t){!nL(r,t)&&!r.__highByOuter&&ya(r,jI)}function Mx(r,t){!nL(r,t)&&!r.__highByOuter&&ya(r,QI)}function fa(r,t){r.__highByOuter|=1<<(t||0),ya(r,jI)}function ca(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ya(r,QI)}function tL(r){ya(r,H0)}function W0(r){ya(r,JI)}function eL(r){ya(r,nF)}function rL(r){ya(r,aF)}function nL(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function aL(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=F0(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){JI(u)}),s&&e.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function Ny(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 fo(r,t,e){Qi(r,!0),ya(r,So),Vy(r,t,e)}function pF(r){Qi(r,!1)}function ce(r,t,e,n){n?pF(r):fo(r,t,e)}function Vy(r,t,e){var n=_t(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Lx=["emphasis","blur","select"],dF={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ke(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+$f(c)*g-Uf(c)*y,_=(t+n)/2+Uf(c)*g+$f(c)*y,S=kx([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=kx(b,x);if(Fy(b,x)<=-1&&(w=hl),Fy(b,x)>=1&&(w=0),w<0){var T=Math.round(w/hl*1e6)/1e6;w=hl*2+T%2*hl}f.addData(u,m,_,o,s,S,w,c,i)}var xF=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,bF=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function wF(r){var t=new Gn;if(!r)return t;var e=0,n=0,a=e,i=n,o,s=Gn.CMD,l=r.match(xF);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 LF(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 PF(r,t){var e,n=Vl(t.r,0),a=Vl(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=Nx(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*Fo(l),c+n*Mi(l)),r.arc(f,c,n,l,u,!h),a>jr&&(r.moveTo(f+a*Fo(u),c+a*Mi(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*Fo(l),O=n*Mi(l),B=a*Fo(u),N=a*Mi(u),F=v>jr;if(F){var U=t.cornerRadius;U&&(e=LF(U),d=e[0],g=e[1],y=e[2],m=e[3]);var Z=Nx(n-a)/2;if(_=_n(Z,y),S=_n(Z,m),b=_n(Z,d),x=_n(Z,g),C=w=Vl(_,S),A=T=Vl(b,x),(w>jr||T>jr)&&(M=n*Fo(u),I=n*Mi(u),L=a*Fo(l),P=a*Mi(l),vjr){var K=_n(y,C),j=_n(m,C),J=Yf(L,P,R,O,n,K,h),ct=Yf(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,Be(J.y0,J.x0),Be(J.y1,J.x1),!h),r.arc(f,c,n,Be(J.cy+J.y1,J.cx+J.x1),Be(ct.cy+ct.y1,ct.cx+ct.x1),!h),j>0&&r.arc(f+ct.cx,c+ct.cy,j,Be(ct.y1,ct.x1),Be(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=_n(d,A),j=_n(g,A),J=Yf(B,N,M,I,a,-j,h),ct=Yf(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,Be(J.y0,J.x0),Be(J.y1,J.x1),!h),r.arc(f,c,a,Be(J.cy+J.y1,J.cx+J.x1),Be(ct.cy+ct.y1,ct.cx+ct.x1),h),K>0&&r.arc(f+ct.cx,c+ct.cy,K,Be(ct.y1,ct.x1),Be(ct.y0,ct.x0),!h))}else r.lineTo(f+B,c+N),r.arc(f,c,a,u,l,h)}r.closePath()}}}var RF=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}(),ar=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new RF},t.prototype.buildPath=function(e,n){PF(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Pt);ar.prototype.type="sector";var EF=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),sf=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new EF},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);sf.prototype.type="ring";function kF(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=kF(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;sLi[1]){if(s=!1,i)return s;var f=Math.abs(Li[0]-Ii[1]),c=Math.abs(Ii[0]-Li[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){X0("update",r,t,e,n,a,i)}function ie(r,t,e,n,a,i){X0("enter",r,t,e,n,a,i)}function _s(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 zx(r){return!r.isGroup}function ZF(r){return r.shape!=null}function ff(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){zx(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ZF(o)&&(s.shape=H({},o.shape)),s}var i=n(r);t.traverse(function(o){if(zx(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 mL(r,t){return X(r,function(e){var n=e[0];n=Th(n,t.x),n=Ch(n,t.x+t.width);var a=e[1];return a=Th(a,t.y),a=Ch(a,t.y+t.height),[n,a]})}function qF(r,t){var e=Th(r.x,t.x),n=Ch(r.x+r.width,t.x+t.width),a=Th(r.y,t.y),i=Ch(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 cf(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 Le(n)):Nv(r.replace("path://",""),n,e,"center")}function zl(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 KF(r){return r<=1e-6&&r>=-1e-6}function Us(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 Fx(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ci(r,t){if(r)if(W(r))for(var e=0;e=0&&s.push(l)}),s}}function hi(r,t){return Dt(Dt({},r,!0),t,!0)}const lG={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:". "}}}},uG={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 Dh="ZH",K0="EN",Ss=K0,qc={},j0={},CL=Rt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ss).toUpperCase();return r.indexOf(Dh)>-1?Dh:Ss}():Ss;function AL(r,t){r=r.toUpperCase(),j0[r]=new Ut(t),qc[r]=t}function fG(r){if(nt(r)){var t=qc[r.toUpperCase()]||{};return r===Dh||r===K0?yt(t):Dt(yt(t),yt(qc[Ss]),!1)}else return Dt(yt(r),yt(qc[Ss]),!1)}function Wy(r){return j0[r]}function cG(){return j0[Ss]}AL(K0,lG);AL(Dh,uG);var Q0=1e3,J0=Q0*60,fu=J0*60,zr=fu*24,$x=zr*365,Fl={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}",Yx={year:"{yyyy}",month:"{yyyy}-{MM}",day:qf,hour:qf+" "+Fl.hour,minute:qf+" "+Fl.minute,second:qf+" "+Fl.second,millisecond:Fl.none},ud=["year","month","day","hour","minute","second","millisecond"],DL=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ta(r,t){return r+="","0000".substr(0,t-r.length)+r}function xs(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 hG(r){return r===xs(r)}function vG(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function zv(r,t,e,n){var a=Fn(r),i=a[t_(e)](),o=a[bs(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Fv(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[ku(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:Wy(n||CL)||cG(),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,Ta(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Ta(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ta(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ta(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ta(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ta(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ta(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ta(p,3)).replace(/{S}/g,p+"")}function pG(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({},Fl);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 ML(r,t){var e=Fn(r),n=e[bs(t)]()+1,a=e[Fv(t)](),i=e[ku(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 Xx(r,t,e){var n=Gt(r)?Fn(r):r;switch(t=t||ML(r,e),t){case"year":return n[t_(e)]();case"half-year":return n[bs(e)]()>=6?1:0;case"quarter":return Math.floor((n[bs(e)]()+1)/4);case"month":return n[bs(e)]();case"day":return n[Fv(e)]();case"half-day":return n[ku(e)]()/24;case"hour":return n[ku(e)]();case"minute":return n[Gv(e)]();case"second":return n[Hv(e)]();case"millisecond":return n[Wv(e)]()}}function t_(r){return r?"getUTCFullYear":"getFullYear"}function bs(r){return r?"getUTCMonth":"getMonth"}function Fv(r){return r?"getUTCDate":"getDate"}function ku(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 dG(r){return r?"setUTCFullYear":"setFullYear"}function IL(r){return r?"setUTCMonth":"setMonth"}function LL(r){return r?"setUTCDate":"setDate"}function PL(r){return r?"setUTCHours":"setHours"}function RL(r){return r?"setUTCMinutes":"setMinutes"}function EL(r){return r?"setUTCSeconds":"setSeconds"}function kL(r){return r?"setUTCMilliseconds":"setMilliseconds"}function OL(r){if(!LI(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 NL(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 Xs=D0;function Uy(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&nn(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?Fn(r):r;if(isNaN(+l)){if(s)return"-"}else return zv(l,n,e)}if(t==="ordinal")return ly(r)?a(r):Gt(r)&&i(r)?r+"":"-";var u=ua(r);return i(u)?OL(u):ly(r)?a(r):typeof r=="boolean"?r+"":"-"}var Zx=["a","b","c","d","e","f","g"],fd=function(r,t){return"{"+r+(t??"")+"}"};function BL(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 xo(r,t){return t=t||"transparent",nt(r)?r:gt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Mh(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Kc=D,VL=["left","right","top","bottom","width","height"],Ji=[["width","left","right"],["height","top","bottom"]];function e_(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 ho=e_;bt(e_,"vertical");bt(e_,"horizontal");function mG(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=Xs(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=Xs(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 _G(r,t){return r[Ji[t][0]]!=null||r[Ji[t][1]]!=null&&r[Ji[t][2]]!=null}function Ou(r){var t=r.layoutMode||r.constructor.layoutMode;return gt(t)?t:t?{type:t}:null}function ai(r,t,e){var n=e&&e.ignoreSize;!W(n)&&(n=[n,n]);var a=o(Ji[0],0),i=o(Ji[1],1);u(Ji[0],r,a),u(Ji[1],r,i);function o(f,c){var h={},v=0,p={},d=0,g=2;if(Kc(f,function(_){p[_]=r[_]}),Kc(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 af(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);FI(kt,Ut);Mv(kt);oG(kt);sG(kt,xG);function xG(r){var t=[];return D(kt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=X(t,function(e){return Ln(e).main}),r!=="dataset"&&It(t,"dataset")<=0&&t.unshift("dataset"),t}var FL="";typeof navigator<"u"&&(FL=navigator.platform||"");var Go="rgba(0, 0, 0, 0.2)";const bG={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Go,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Go,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Go,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Go,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Go,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Go,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:FL.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 GL=ut(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Yr="original",Ye="arrayRows",Xr="objectRows",Hn="keyedColumns",Ka="typedArray",HL="unknown",On="column",qs="row",Pe={Must:1,Might:2,Not:3},WL=zt();function wG(r){WL(r).datasetMap=ut()}function UL(r,t,e){var n={},a=n_(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=WL(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 XL(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:MG(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 IG(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Kf,vl,Kx,jx="\0_ec_inner",LG=1,i_=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=tb(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,tb(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"?Kx(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;wG(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=AG(this,c,qt(e[c])),v=i.get(c),p=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=OI(v,h,p);e5(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"&&Kf(this)}this._seriesIndices||Kf(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]&&!Lu(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 zG(r,t){return r.join(",")===t.join(",")}var qr=D,Nu=gt,eb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hd(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=eb.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=Uz(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===Hn?{}:[]),this.sourceFormat=t.sourceFormat||HL,this.seriesLayoutBy=t.seriesLayoutBy||On,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};lb=(t={},t[Ye+"_"+On]={pure:!0,appendData:i},t[Ye+"_"+qs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Xr]={pure:!0,appendData:i},t[Hn]={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[Yr]={appendData:i},t[Ka]={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 Ls(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function hb(r){var t,e;return gt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function cu(r){return new r3(r)}var r3=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}},a3=function(){function r(t,e){if(!Gt(e)){var n="";Wt(n)}this._opFn=a2[t],this._rvalFloat=ua(e)}return r.prototype.evaluate=function(t){return Gt(t)?this._opFn(t,this._rvalFloat):this._opFn(ua(t),this._rvalFloat)},r}(),i2=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:ua(t),a=Gt(e)?e:ua(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}(),i3=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ua(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=ua(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function o3(r,t){return r==="eq"||r==="ne"?new i3(r==="eq",t):st(a2,r)?new a3(r,t):null}var s3=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 l3(r,t){var e=new s3,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==On&&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?g3:y3}function Ho(){return[1/0,-1/0]}function m3(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function db(r,t,e,n,a){var i=l2[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(dl(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}(),u2=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(jf(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=vr(s)?Ka:Yr,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?[Xy(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=[Xy(_,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&&yb(i)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&yb(c),s.push(f),l.push(u._getVersionSign())}),n?o=p3(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[qG(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=v2(a);i>=t&&(t=i+ +(n&&(!i||qy(a)&&!a.noHeader)))}),t}return 0}function x3(r,t,e,n){var a=t.noHeader,i=w3(v2(t)),o=[],s=t.blocks||[];rr(!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 i2(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=h2(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):Ky(o.join(""),a?e:i.html);if(a)return c;var h=Uy(t.header,"ordinal",r.useUTC),v=c2(n,r.renderMode).nameStyle;return r.renderMode==="richText"?p2(r,h,v)+i.richText+c:Ky('
'+ur(h)+"
"+c,e)}function b3(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 Uy(b,W(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Uy(l,"ordinal",u),v=t.valueType,p=o?[]:f(t.value,t.dataIndex),d=!s||!i,g=!s&&i,y=c2(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":p2(r,h,m))+(o?"":A3(r,p,d,g,_)):Ky((s?"":c)+(i?"":T3(h,!s,m))+(o?"":C3(p,d,g,_)),e)}}function mb(r,t,e,n,a,i){if(r){var o=h2(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function w3(r){return{html:_3[r],richText:S3[r]}}function Ky(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function T3(r,t,e){var n=t?"margin-left:2px":"";return''+ur(r)+""}function C3(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 ur(o)}).join("  ")+""}function p2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function A3(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 d2(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return xo(n)}function g2(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var gd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=PI()}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=yG({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 y2(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=d2(t,e),f,c,h,v;if(o>1||l&&!o){var p=D3(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=Ls(a,e,i[0]),c=d.type}else v=f=l?s[0]:s;var g=O0(t),y=g&&t.name||"",m=a.getName(e),_=n?y:m;return De("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[De("nameValue",{markerType:"item",markerColor:u,name:_,noName:!nn(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function D3(r,t,e,n,a){var i=t.getData(),o=Bn(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(Ls(i,e,c),c)}):D(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(De("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 Ca=zt();function Qf(r,t){return r.getName(t)||r.getId(t)}var jc="__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=cu({count:I3,reset:L3}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=Ca(this).sourceManager=new u2(this);i.prepareSource();var o=this.getInitialData(e,a);Sb(o,this),this.dataTask.context.data=o,Ca(this).dataBeforeProcessed=o,_b(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Ou(this),i=a?Zs(e):{},o=this.subType;kt.hasClass(o)&&(o+="Series"),Dt(e,n.getTheme().get(this.subType)),Dt(e,this.getDefaultOption()),yo(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&ai(e,i,a)},t.prototype.mergeOption=function(e,n){e=Dt(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Ou(this);a&&ai(this.option,e,a);var i=Ca(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);Sb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ca(this).dataBeforeProcessed=o,_b(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!vr(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=a_.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[Qf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[jc])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,a_);FI(ae,kt);function _b(r){var t=r.name;O0(r)||(r.name=M3(r)||t)}function M3(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 I3(r){return r.model.getRawData().count()}function L3(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),P3}function P3(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Sb(r,t){D(hh(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(R3,t))})}function R3(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=Ys("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}();B0(ue);Mv(ue);function Ks(){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 m2=zt(),E3=Ks(),Kt=function(){function r(){this.group=new mt,this.uid=Ys("viewChart"),this.renderTask=cu({plan:k3,reset:O3}),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&&bb(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&bb(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){ci(this.group,t)},r.markUpdateMethod=function(t,e){m2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function xb(r,t,e){r&&Ru(r)&&(t==="emphasis"?fa:ca)(r,e)}function bb(r,t,e){var n=mo(r,t),a=t&&t.highlightKey!=null?yF(t.highlightKey):null;n!=null?D(qt(n),function(i){xb(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){xb(i,e,a)})}B0(Kt);Mv(Kt);function k3(r){return E3(r.model)}function O3(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&m2(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),N3[l]}var N3={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)}}},Ih="\0__throttleOriginMethod",wb="\0__throttleRate",Tb="\0__throttleType";function f_(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 js(r,t,e,n){var a=r[t];if(a){var i=a[Ih]||a,o=a[Tb],s=a[wb];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=f_(i,e,n==="debounce"),a[Ih]=i,a[Tb]=n,a[wb]=e}return a}}function Bu(r,t){var e=r[t];e&&e[Ih]&&(e.clear&&e.clear(),r[t]=e[Ih])}var Cb=zt(),Ab={itemStyle:_o(TL,!0),lineStyle:_o(wL,!0)},B3={lineStyle:"stroke",itemStyle:"fill"};function _2(r,t){var e=r.visualStyleMapper||Ab[t];return e||(console.warn("Unknown style type '"+t+"'."),Ab.itemStyle)}function S2(r,t){var e=r.visualDrawType||B3[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var V3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=_2(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=S2(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)}}}},gl=new Ut,z3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=_2(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){gl.option=l[n];var u=a(gl),f=o.ensureUniqueItemVisual(s,"style");H(f,u),gl.option.decal&&(o.setItemVisual(s,"decal",gl.option.decal),gl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},F3={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)),Cb(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Cb(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=S2(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)}})}})}},Jf=Math.PI;function G3(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:-Jf/2,endAngle:-Jf/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:Jf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jf*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 x2=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="";rr(!(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)||cu({plan:Y3,reset:X3,count:q3}));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||cu({reset:H3});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="";rr(!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,cu({reset:W3,onDirty:$3})));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:K3(t)}),t.uid=Ys("stageHandler"),e&&(t.visualType=e),t},r}();function H3(r){r.overallReset(r.ecModel,r.api,r.payload)}function W3(r){return r.overallProgress&&U3}function U3(){this.agent.dirty(),this.getDownstream().dirty()}function $3(){this.agent&&this.agent.dirty()}function Y3(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function X3(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 b2(n)}):Z3}var Z3=b2(0);function b2(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}(),Qy=["symbol","symbolSize","symbolRotate","symbolOffset"],Lb=Qy.concat(["symbolKeepAspect"]),J3={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&&eo(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Jy(r,t,e){for(var n=t.type==="radial"?pH(r,t,e):vH(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 h_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&gH(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 yH=new Gn(!0);function Rh(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Pb(r){return typeof r=="string"&&r!=="none"}function Eh(r){var t=r.fill;return t!=null&&t!=="none"}function Rb(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 tm(r,t,e){var n=V0(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)*Vc),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function mH(r,t,e,n){var a,i=Rh(e),o=Eh(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||yH,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?Jy(r,h,x):t.__canvasFillGradient,t.__canvasFillGradient=m),d&&(_=c?Jy(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?tm(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=c||!t.__canvasStrokePattern?tm(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=h_(t),T=a[0],C=a[1]);var A=!0;(u||c&ns)&&(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&&Eb(r,e),o&&Rb(r,e)):(o&&Rb(r,e),i&&Eb(r,e))),T&&r.setLineDash([])}function _H(r,t,e){var n=t.__image=V0(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 SH(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||ti,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=h_(t),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(Rh(e)&&r.strokeText(a,e.x,e.y),Eh(e)&&r.fillText(a,e.x,e.y)):(Eh(e)&&r.fillText(a,e.x,e.y),Rh(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var kb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ob=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function M2(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){hr(r,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?lo.opacity:o}(n||t.blend!==e.blend)&&(i||(hr(r,a),i=!0),r.globalCompositeOperation=t.blend||lo.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[Ve]){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[Ve]=!0,!this._model||n){var l=new OG(this._api),u=this._theme,f=this._model=new i_;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},rm);var c={seriesTransition:s,optionChanged:!0};if(a)this[lr]={silent:i,updateParams:c},this[Ve]=!1,this.getZr().wakeUp();else{try{Uo(this),Aa.update.call(this,null,c)}catch(h){throw this[lr]=null,this[Ve]=!1,h}this._ssr||this._zr.flush(),this[lr]=null,this[Ve]=!1,yl.call(this,i),ml.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(Kb[a]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();D(vu,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=ei.createCanvas(),y=tx(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 Le({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=ou(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=ou(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?c_(s,l,n):vf(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($H,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&to(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(hu,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)}),eH(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&&BI(this.getDom(),d_,"");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 vu[n.id]},t.prototype.resize=function(e){if(!this[Ve]){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[lr]&&(i==null&&(i=this[lr].silent),a=!0,this[lr]=null),this[Ve]=!0;try{a&&Uo(this),Aa.update.call(this,{type:"resize",animation:H({duration:0},e&&e.animation)})}catch(o){throw this[Ve]=!1,o}this[Ve]=!1,yl.call(this,i),ml.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(),!!nm[e]){var a=nm[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=hu[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(gt(n)||(n={silent:!!n}),!!kh[e.type]&&this._model){if(this[Ve]){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(),yl.call(this,a),ml.call(this,a)}},t.prototype.updateLabelLayout=function(){Jr.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(){Uo=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(_s(y))return;if(y instanceof Pt&&mF(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)}})}Zb=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){fa(p,d),Dr(c)},v.prototype.leaveEmphasis=function(p,d){ca(p,d),Dr(c)},v.prototype.enterBlur=function(p){tL(p),Dr(c)},v.prototype.leaveBlur=function(p){W0(p),Dr(c)},v.prototype.enterSelect=function(p){eL(p),Dr(c)},v.prototype.leaveSelect=function(p){rL(p),Dr(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}(ZL))(c)},W2=function(c){function h(v,p){for(var d=0;d=0)){jb.push(e);var i=x2.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function q2(r,t){nm[r]=t}function QH(r,t,e){var n=LH("registerMap");n&&n(r,t,e)}var JH=v3;Io(v_,V3);Io(Zv,z3);Io(Zv,F3);Io(v_,J3);Io(Zv,tH);Io(B2,MH);X2(KL);Z2(EH,XG);q2("default",G3);Wn({type:uo,event:uo,update:uo},pe);Wn({type:Yc,event:Yc,update:Yc},pe);Wn({type:su,event:su,update:su},pe);Wn({type:Xc,event:Xc,update:Xc},pe);Wn({type:lu,event:lu,update:lu},pe);Y2("light",j3);Y2("dark",C2);var Qb=[],t4={registerPreprocessor:X2,registerProcessor:Z2,registerPostInit:ZH,registerPostUpdate:qH,registerUpdateLifecycle:g_,registerAction:Wn,registerCoordinateSystem:KH,registerLayout:jH,registerVisual:Io,registerTransform:JH,registerLoading:q2,registerMap:QH,registerImpl:IH,PRIORITY:HH,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){Vz(r,t)}};function Lt(r){if(W(r)){D(r,function(t){Lt(t)});return}It(Qb,r)>=0||(Qb.push(r),vt(r)&&(r={install:r}),r.install(t4))}function _l(r){return r==null?0:r.length||1}function Jb(r){return r}var ha=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Jb,this._newKeyGetter=a||Jb,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 Sl=gt,Da=X,o4=typeof Int32Array>"u"?Array:Int32Array,s4="e\0\0",tw=-1,l4=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],u4=["_approximateExtent"],ew,ic,xl,bl,Ad,oc,Dd,tr=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;j2(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===Yr;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():Sl(i)&&(i=H({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Sl(e)?H(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Sl(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;Oy(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:Da(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(A0(arguments)))})},r.internalField=function(){ew=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 o4(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),a[e]=l}}}(),r}();function pf(r,t){o_(r)||(r=s_(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=ut(),i=[],o=c4(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&tP(o),l=n===r.dimensionsDefine,u=l?J2(r):Q2(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=ut(f),h=new s2(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function c4(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 h4(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 v4=function(){function r(t){this.coordSysDims=[],this.axisMap=ut(),this.categoryAxisMap=ut(),this.coordSysName=t}return r}();function p4(r){var t=r.get("coordinateSystem"),e=new v4(t),n=d4[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var d4={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),$o(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),$o(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),$o(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),$o(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),$o(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),$o(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function $o(r){return r.get("type")==="category"}function g4(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;y4(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 y4(r){return!j2(r.schema)}function ii(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function eP(r,t){return ii(r,t)?r.getCalculationInfo("stackResultDimension"):t}function m4(r,t){var e=r.get("coordinateSystem"),n=hf.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=Nh(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function _4(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 _a(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=s_(r)):(a=n.getSource(),i=a.sourceFormat===Yr);var o=p4(t),s=m4(t,o),l=e.useEncodeDefaulter,u=vt(l)?l:l?bt(UL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=pf(a,f),h=_4(c.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),p=g4(t,{schema:c,store:v}),d=new tr(c,t);d.setCalculationInfo(p);var g=h!=null&&S4(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 S4(r){if(r.sourceFormat===Yr){var t=x4(r.data||[]);return!W(Gs(t))}}function x4(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(Un);var b4=0,am=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++b4}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&X(n,w4);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 w4(r){return gt(r)&&r.value!=null?r.value:r+""}function im(r){return r.type==="interval"||r.type==="log"}function T4(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=II(i/t);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=rP(o),l=a.niceTickExtent=[he(Math.ceil(r[0]/o)*o,s),he(Math.floor(r[1]/o)*o,s)];return C4(l,r),a}function Md(r){var t=Math.pow(10,k0(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,he(e*t)}function rP(r){return In(r)+2}function rw(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function C4(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),rw(r,0,t),rw(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 am({})),W(a)&&(a=new am({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}(Un);Un.registerClass(Qv);var ki=he,va=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=rP(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:ki(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 iP(r){var t=M4(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")||(fP(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:__(i),stackId:m_(n)})}),oP(e)}function oP(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 I4(r,t,e){if(r&&t){var n=r[__(t)];return n!=null&&e!=null?n[m_(e)]:n}}function sP(r,t){var e=aP(r,t),n=iP(e);D(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=m_(a),u=n[__(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function lP(r){return{seriesType:r,plan:Ks(),reset:function(t){if(uP(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=ii(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=L4(a,i),p=fP(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&&Pn(b*3),w=p&&l&&Pn(b*3),T=p&&Pn(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 P4=function(r,t,e,n){for(;e>>1;r[a][1]a&&(this._approxInterval=a);var s=sc.length,l=Math.min(P4(sc,this._approxInterval,0,s),s-1);this._interval=sc[l][1],this._minLevelUnit=sc[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Gt(e)?e:+Fn(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}(va),sc=[["second",Q0],["minute",J0],["hour",fu],["quarter-day",fu*6],["half-day",fu*12],["day",zr*1.2],["half-week",zr*3.5],["week",zr*7],["month",zr*31],["quarter",zr*95],["half-year",$x/2],["year",$x]];function R4(r,t,e,n){var a=Fn(t),i=Fn(e),o=function(p){return Xx(a,p,n)===Xx(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 E4(r,t){return r/=zr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function k4(r){var t=30*zr;return r/=t,r>6?6:r>3?3:r>2?2:1}function O4(r){return r/=fu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function nw(r,t){return r/=t?J0:Q0,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function N4(r){return II(r)}function B4(r,t,e){var n=new Date(r);switch(xs(t)){case"year":case"month":n[IL(e)](0);case"day":n[LL(e)](1);case"hour":n[PL(e)](0);case"minute":n[RL(e)](0);case"second":n[EL(e)](0),n[kL(e)](0)}return n.getTime()}function V4(r,t,e,n){var a=1e4,i=DL,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(G4(n[0]/i)*i),he(F4(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){pu.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=Kr(e)/Kr(this.base),qv(e,this._extent)},t.prototype.normalize=function(e){return e=Kr(e)/Kr(this.base),Kv(e,this._extent)},t.prototype.scale=function(e){return e=jv(e,this._extent),lc(this.base,e)},t.type="log",t}(Un),cP=x_.prototype;cP.getMinorTicks=pu.getMinorTicks;cP.getLabel=pu.getLabel;function uc(r,t){return z4(r,In(t))}Un.registerClass(x_);var H4=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[U4[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=W4[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),W4={min:"_determinedMin",max:"_determinedMax"},U4={min:"_dataMin",max:"_dataMax"};function hP(r,t,e){var n=r.rawExtentInfo;return n||(n=new H4(r,t,e),r.rawExtentInfo=n,n)}function fc(r,t){return t==null?null:Cu(t)?NaN:r.parse(t)}function vP(r,t){var e=r.type,n=hP(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=aP("bar",o),l=!1;if(D(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=iP(s),f=$4(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function $4(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=I4(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 Rs(r,t){var e=t,n=vP(r,e),a=n.extent,i=e.get("splitNumber");r instanceof x_&&(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 S_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Un.getClass(t)||va)}}function Y4(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Js(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(b_(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function b_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function X4(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=Js(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;fr[1]&&(r[1]=a[1])})}var df=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),K4=1e-8;function iw(r,t){return Math.abs(r-t)a&&(n=o,a=l)}if(n)return Q4(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"?ow(s.exterior,a,i,e):D(s.points,function(l){ow(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 eW(r,t){return r=tW(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 sw(o[0],o.slice(1)));break;case"MultiPolygon":D(a.coordinates,function(l){l[0]&&i.push(new sw(l[0],l.slice(1)))});break;case"LineString":i.push(new lw([a.coordinates]));break;case"MultiLineString":i.push(new lw(a.coordinates))}var s=new gP(n[t||"name"],i,n.cp);return s.properties=n,s})}var Fu=zt();function mP(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 rW(r){var t=r.getLabelModel().get("customValues");if(t){var e=Js(r);return{labels:mP(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?aW(r):oW(r)}function nW(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:mP(r,e)}:r.type==="category"?iW(r,t):{ticks:X(r.scale.getTicks(),function(n){return n.value})}}function aW(r){var t=r.getLabelModel(),e=_P(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function _P(r,t){var e=SP(r,"labels"),n=w_(t),a=xP(e,n);if(a)return a;var i,o;return vt(n)?i=TP(r,n):(o=n==="auto"?sW(r):n,i=wP(r,o)),bP(e,n,{labels:i,labelCategoryInterval:o})}function iW(r,t){var e=SP(r,"ticks"),n=w_(t),a=xP(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),vt(n))i=TP(r,n,!0);else if(n==="auto"){var s=_P(r,r.getLabelModel());o=s.labelCategoryInterval,i=X(s.labels,function(l){return l.tickValue})}else o=n,i=wP(r,o,!0);return bP(e,n,{ticks:i,tickCategoryInterval:o})}function oW(r){var t=r.scale.getTicks(),e=Js(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 SP(r,t){return Fu(r)[t]||(Fu(r)[t]=[])}function xP(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=nf(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=Fu(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 uW(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 wP(r,t,e){var n=Js(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=pP(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 TP(r,t,e){var n=r.scale,a=Js(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 uw=[0,1],vn=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 DI(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(),fw(n,a.count())),Yt(t,uw,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),fw(n,a.count()));var i=Yt(t,n,uw,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=nW(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 fW(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 rW(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 lW(this)},r}();function fw(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function fW(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+=wl);var v=Math.atan2(s,o);if(v<0&&(v+=wl),v>=n&&v<=a||v+wl>=n&&v+wl<=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 Vh(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 CP(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 tn=[];function pW(r,t,e){var n=CP(t.x,t.y,t.width,t.height,r.x,r.y,tn);return e.set(tn[0],tn[1]),n}function dW(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,an.fromArray(r[0]),re.fromArray(r[1]),ve.fromArray(r[2]),Ct.sub(Rn,an,re),Ct.sub(Mn,ve,re);var e=Rn.len(),n=Mn.len();if(!(e<.001||n<.001)){Rn.scale(1/e),Mn.scale(1/n);var a=Rn.dot(Mn),i=Math.cos(t);if(i1&&Ct.copy(Qe,ve),Qe.toArray(r[1])}}}}function gW(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,an.fromArray(r[0]),re.fromArray(r[1]),ve.fromArray(r[2]),Ct.sub(Rn,re,an),Ct.sub(Mn,ve,re);var n=Rn.len(),a=Mn.len();if(!(n<.001||a<.001)){Rn.scale(1/n),Mn.scale(1/a);var i=Rn.dot(t),o=Math.cos(e);if(i=l)Ct.copy(Qe,ve);else{Qe.scaleAndAdd(Mn,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 yW(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=Fa(n[0],n[1]),i=Fa(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=Fc([],n[1],n[0],o/a),l=Fc([],n[1],n[2],o/i),u=Fc([],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 mW(r,t,e,n){return MP(r,"x","width",t,e,n)}function IP(r,t,e,n){return MP(r,"y","height",t,e,n)}function LP(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),!$s(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={};cc(v,u,hc),cc(v,n.states.select,hc)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};cc(p,u,hc),cc(p,n.states.emphasis,hc)}bL(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=xW(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 wW(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Ed(e).labelManager;a||(a=Ed(e).labelManager=new bW),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,PP=Math.PI,Ni=Math.PI*2,TW=180/PP,RP=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=$a(c-Ni)||(f?u>=Ni:-u>=Ni),v=u>0?u%Ni:u%Ni+Ni,p=!1;h?p=!0:$a(c)?p=!1:p=v>=PP==!!f;var d=t+n*Od(o),g=e+a*kd(o);this._start&&this._add("M",d,g);var y=Math.round(i*TW);if(h){var m=1/this._p,_=(f?1:-1)*(Ni-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 EW(r){return""}function D_(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 RW(o,s)+(o!=="style"?ur(l):l||"")+(i?""+e+X(i,function(u){return n(u)}).join(e)+e:"")+EW(o)}return n(r)}function kW(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 lm(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function pw(r,t,e,n){return Te("svg","root",{width:r,height:t,xmlns:EP,"xmlns:xlink":kP,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var OW=0;function NP(){return OW++}var dw={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"},Fi="transform-origin";function NW(r,t,e){var n=H({},r.shape);H(n,t),r.buildPath(e,n);var a=new RP;return a.reset(mI(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function BW(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[Fi]=e+"px "+n+"px")}var VW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function BP(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function zW(r,t,e){var n=r.shape.paths,a={},i,o;if(D(n,function(l){var u=lm(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=BP(a,e);return i.replace(o,s)}}function gw(r){return nt(r)?dw[r]?"cubic-bezier("+dw[r]+")":P0(r)?r:"":""}function tp(r,t,e,n){var a=r.animators,i=a.length,o=[];if(r instanceof Y0){var s=zW(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=BP(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-"+NP();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function FW(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};yw(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=Sy(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),yw(n,t,e)}}function yw(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 Gu=Math.round;function VP(r){return r&&nt(r.src)}function zP(r){return r&&vt(r.toDataURL)}function M_(r,t,e,n){IW(function(a,i){var o=a==="fill"||a==="stroke";o&&yI(i)?GP(t,r,a,n):o&&R0(i)?HP(e,r,a,n):o&&i==="none"?r[a]="transparent":r[a]=i},t,e,!1),XW(e,r,n)}function I_(r,t){var e=zz(t);e&&(e.each(function(n,a){n!=null&&(r[(vw+a).toLowerCase()]=n+"")}),t.isSilent()&&(r[vw+"silent"]="true"))}function mw(r){return $a(r[0]-1)&&$a(r[1])&&$a(r[2])&&$a(r[3]-1)}function GW(r){return $a(r[4])&&$a(r[5])}function L_(r,t,e){if(t&&!(GW(t)&&mw(t))){var n=1e4;r.transform=mw(t)?"translate("+Gu(t[4]*n)/n+" "+Gu(t[5]*n)/n+")":lz(t)}}function _w(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.";rr(h,g),rr(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=V0(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=Te("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=_I(a);b&&(o.patternTransform=b);var x=Te("pattern","",o,[c]),w=D_(x),T=n.patternCache,C=T[w];C||(C=n.zrId+"-p"+n.patternIdx++,T[w]=C,o.id=C,x=n.defs[C]=Te("pattern",C,o,[c])),t[e]=Cv(C)}}function ZW(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]=Te("clipPath",i,o,[FP(r,e)])}t["clip-path"]=Cv(i)}function bw(r){return document.createTextNode(r)}function Xi(r,t,e){r.insertBefore(t,e)}function ww(r,t){r.removeChild(t)}function Tw(r,t){r.appendChild(t)}function WP(r){return r.parentNode}function UP(r){return r.nextSibling}function Nd(r,t){r.textContent=t}var Cw=58,qW=120,KW=Te("","");function um(r){return r===void 0}function Cn(r){return r!==void 0}function jW(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 Hl(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function Hu(r){var t,e=r.children,n=r.tag;if(Cn(n)){var a=r.elm=OP(n);if(P_(KW,r),W(e))for(t=0;ti?(p=e[l+1]==null?null:e[l+1].elm,$P(r,p,e,a,l)):Fh(r,t,n,i))}function is(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(P_(r,t),um(t.text)?Cn(n)&&Cn(a)?n!==a&&QW(e,n,a):Cn(a)?(Cn(r.text)&&Nd(e,""),$P(e,null,a,0,a.length-1)):Cn(n)?Fh(e,n,0,n.length-1):Cn(r.text)&&Nd(e,""):r.text!==t.text&&(Cn(n)&&Fh(e,n,0,n.length-1),Nd(e,t.text)))}function JW(r,t){if(Hl(r,t))is(r,t);else{var e=r.elm,n=WP(e);Hu(t),n!==null&&(Xi(n,t.elm,UP(e)),Fh(n,[r],0,0))}return t}var t6=0,e6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=Aw(),this.configLayer=Aw(),this.storage=e,this._opts=n=H({},n),this.root=t,this._id="zr"+t6++,this._oldVNode=pw(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=OP("svg");P_(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",JW(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return xw(t,lm(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=lm(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var o=[],s=this._bgVNode=r6(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Te("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(Te("defs","defs",{},u)),t.animation){var f=kW(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=Te("style","stl",{},[],f);o.push(c)}}return pw(n,a,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},D_(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?vc:0),this._needsManuallyCompositing),f.__builtin__||T0("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&Sr&&!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 Es(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Ls(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 gf=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=f6,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(){fa(this.childAt(0))},t.prototype.downplay=function(){ca(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),cn(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=Ae(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=Mo(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 Le){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;Oe(s,d,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(R){return M?e.getName(R):Es(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&&ni(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ni(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return Qs(e.getItemVisual(n,"symbolSize"))},t}(mt);function f6(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 Iw(r){return r!=null&&!gt(r)&&(r={isIgnore:r}),r||{}}function Lw(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:Ae(t),cursorStyle:t.get("cursor")}}var yf=function(){function r(t){this.group=new mt,this._SymbolCtor=t||gf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Iw(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Lw(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=Lw(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Iw(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 ZP(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 h6(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 v6(r,t,e,n,a,i,o,s){for(var l=h6(r,t),u=[],f=[],c=[],h=[],v=[],p=[],d=[],g=XP(a,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=a||d<0)break;if(vo(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||vo(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=Ma(I,Ia(x,y)),L=Ma(L,Ia(w,m)),I=Ia(I,Ma(x,y)),L=Ia(L,Ma(w,m)),A=I-y,M=L-m,v=y-A*N/F,p=m-M*N/F,v=Ma(v,Ia(u,y)),p=Ma(p,Ia(f,m)),v=Ia(v,Ma(u,y)),p=Ia(p,Ma(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 qP=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),p6=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 qP},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&vo(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?dh(s,v,d,y,e,f):dh(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),d6=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(qP),KP=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 d6},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&&vo(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 m6(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=y6(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 uf(0,0,0,0,h,!0);return m[a]=d,m[a+"2"]=g,m}}}function _6(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&S6(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 S6(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 x6(r,t){return isNaN(r)||isNaN(t)}function b6(r){for(var t=r.length/2;t>0&&x6(r[t*2-2],r[t*2-1]);t--);return t-1}function Ow(r,t){return[r[t*2],r[t*2+1]]}function w6(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 JP(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=kw(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=kw(ft.get("smooth"))),g.setShape({smooth:Z,stackedOnSmooth:ht,smoothMonotone:Q,connectNulls:T}),ke(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=mo(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 gf(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=mo(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;bh(this._polyline,e),n&&bh(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new p6({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 KP({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(JP(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=b6(l);f>=0&&(Oe(s,Ae(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?YP(o,v):Es(o,c)},enableTextSetter:!0},T6(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=w6(c,S,w),C=T.range,A=C[1]-C[0],M=void 0;if(A>=1){if(A>1&&!v){var I=Ow(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=VI(a,p,L,P,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,I=Ow(c,R);o&&(M=h.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var O=$s(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=v6(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=La(h.current,a,o,l),p=La(h.stackedOnCurrent,a,o,l),d=La(h.next,a,o,l),g=La(h.stackedOnNext,a,o,l)),Ew(v,d)>3e3||f&&Ew(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]}},D6=function(r){return Math.round(r.length/2)};function tR(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=A6[i]:vt(i)&&(p=i),p&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,p,D6))}}}}}function M6(r){r.registerChartView(C6),r.registerSeriesModel(u6),r.registerLayout(_f("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,tR("line"))}var 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.getInitialData=function(e,n){return _a(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(Wu);var I6=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 _a(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=hi(Wu.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}(Wu),L6=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}(),Gh=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 L6},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){Eu(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),Nw={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}},Bw={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?Gh:ar,f=new u({shape:n,z2:1});f.name="item";var c=eR(a);if(f.calculateTextPosition=P6(c,{isRoundCap:u===Gh}),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 O6(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 Vw(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 zw(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 V6(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function eR(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 Gw(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=no(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=Ae(n);Oe(r,p,{labelFetcher:i,labelDataIndex:e,defaultText:Es(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,R6(r,g==="outside"?v:g,eR(o),n.get(["label","rotate"]))}xL(d,p,i.getRawValue(e),function(m){return YP(t,m)});var y=n.getModel(["emphasis"]);ce(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),ke(r,n),V6(a)&&(r.style.fill="none",r.style.stroke="none",D(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function z6(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 F6=function(){function r(){}return r}(),Hw=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 F6},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 G6(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 rR(r,t,e){if(Lo(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 H6(r,t,e){var n=r.type==="polar"?ar:Vt;return new n({shape:rR(t,e,r),silent:!0,z2:0})}function W6(r){r.registerChartView(k6),r.registerSeriesModel(I6),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(sP,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lP("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,tR("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 $w=Math.PI*2,yc=Math.PI/180;function nR(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function aR(r,t){var e=nR(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 U6(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=nR(n,e),s=aR(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*yc,v=n.get("endAngle"),p=n.get("padAngle")*yc;v=v==="auto"?h-$w:-v*yc;var d=n.get("minAngle")*yc,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;z0(C,!S),h=C[0],v=C[1];var M=iR(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?Yt(B,w,[c,f]):f}),R=U}),L<$w&&y)if(L<=.001){var O=I/y;a.each(i,function(B,N){if(!isNaN(B)){var F=a.getItemLayout(N);F.angle=O;var U=0,Z=0;Oe?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 X6(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*$6,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")&&Y6(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 tl(r,t,e){t=W(t)&&{coordDimensions:t}||H({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=pf(n,t).dimensions,i=new tr(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}(),K6=zt(),j6=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 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 tl(this,{coordDimensions:["value"],encodeDefaulter:bt(r_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=K6(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Wz(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){yo(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 Q6(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 J6(r){r.registerChartView(q6),r.registerSeriesModel(j6),D2("pie",r.registerAction),r.registerLayout(bt(U6,"pie")),r.registerProcessor(Sf("pie")),r.registerProcessor(Q6("pie"))}var tU=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 _a(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),sR=4,eU=function(){function r(){}return r}(),rU=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 eU},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}(),aU=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=_f("").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 nU:new yf,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),iU=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),cm=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(cm,df);var lR={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)"]}}},oU=Dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},lR),R_=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}}},lR),sU=Dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},R_),lU=dt({logBase:10},R_);const uR={category:oU,value:R_,time:sU,log:lU};var uU={value:1,category:1,time:1,log:1};function ks(r,t,e,n){D(uU,function(a,i){var o=Dt(Dt({},uR[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=Ou(this),v=h?Zs(f):{},p=c.getTheme();Dt(f,p.get(i+"Axis")),Dt(f,this.getDefaultOption()),f.type=Xw(f),h&&ai(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=am.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",Xw)}function Xw(r){return r.type||(r.data?"category":"value")}var fU=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}(),hm=["x","y"];function Zw(r){return r.type==="interval"||r.type==="time"}var cU=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=hm,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Zw(e)||!Zw(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=Fs([],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 Re(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 Re(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}(fU),hU=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}(vn);function vm(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),Ie(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 qw(r){return r.get("coordinateSystem")==="cartesian2d"}function Kw(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 fR(r,t,e){var n=va.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=vP(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 vU=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=hm,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;im(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(Rs(d,p),im(d)&&(s=v))}f.length&&(s||(s=f.pop(),Rs(s.scale,s.model)),D(f,function(g){fR(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=X4(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]),pU(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"):Iu(a-Ya)?(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}(),Jw={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&&(Re(s,s,o),Re(l,l,o));var f=H({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new we({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Is(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=Mo(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=yU(e,n,t,r),i=_U(e,n,t,r);if(gU(t,i,a),mU(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=DP(X(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));LP(o)}},axisName:function(r,t,e,n){var a=Ie(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,eT(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Ya/180);var p;eT(i)?h=er.innerTextLayout(r.rotation,v??r.rotation,o):(h=dU(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=Ie(r.nameTruncateMaxWidth,g.maxWidth,p),_=new Ft({x:c[0],y:c[1],rotation:h.rotation,silent:er.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(Us({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=er.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,_t(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function dU(r,t,e,n){var a=MI(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Iu(a-Ya/2)?(o=l?"bottom":"top",i="center"):Iu(a-Ya*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aYa/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function gU(r,t,e){if(!pP(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?(Mr(i),Mr(u)):tT(i,o)&&(n?(Mr(o),Mr(f)):(Mr(i),Mr(u))),a===!1?(Mr(s),Mr(c)):tT(l,s)&&(a?(Mr(l),Mr(h)):(Mr(s),Mr(c)))}}function Mr(r){r&&(r.ignore=!0)}function tT(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Tv([]);return Ao(a,a,-r.rotation),e.applyTransform(aa([],a,r.getLocalTransform())),n.applyTransform(aa([],a,t.getLocalTransform())),e.intersect(n)}}function eT(r){return r==="middle"||r==="center"}function cR(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function CU(r){var t=E_(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=pm(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,df.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"}},Tl.axisLine),axisLabel:mc(Tl.axisLabel,!1),axisTick:mc(Tl.axisTick,!1),splitLine:mc(Tl.splitLine,!0),splitArea:mc(Tl.splitArea,!0),indicator:[]},t}(kt),VU=["axisLine","axisTickLabel","axisName"],zU=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 er(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(VU,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 ma({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,d,x);y[w].push(new sf({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(!sT(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}($r);function Yd(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(la(n.event),yR(r,t,e,n,a))}function yR(r,t,e,n,a){a.isAvailableBehavior=it(Jc,null,e,n),r.trigger(t,a)}function Jc(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}function O_(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function N_(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 YU={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&&!YU.hasOwnProperty(n.mainType)&&a&&a.model!==e}function mR(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,Hh={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"},lT=Ot(Hh),Wh={"alignment-baseline":"textBaseline","stop-color":"stopColor"},uT=Ot(Wh),XU=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=mR(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),yr(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;KU(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=SR(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=fT[s];if(v&&st(fT,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 Ms({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ir(e,n),yr(t,n,this._defsUsePending,!1,!1),ZU(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 Ir(e,n),yr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Vt;return Ir(e,n),yr(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 ma;return Ir(e,n),yr(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 we;return Ir(e,n),yr(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 Ir(e,n),yr(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=vT(n));var i=new ir({shape:{points:a||[]},silent:!0});return Ir(e,i),yr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=vT(n));var i=new or({shape:{points:a||[]},silent:!0});return Ir(e,i),yr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Le;return Ir(e,n),yr(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 Ir(e,s),yr(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 Ir(e,s),yr(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=uL(n);return Ir(e,a),yr(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),fT={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 cT(r,i),hT(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 vL(t,e,n);return cT(r,a),hT(r,a),a}};function cT(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function hT(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={};_R(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}e=e.nextSibling}}function Ir(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),dt(t.__inheritedStyle,r.__inheritedStyle))}function vT(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||Tr(),s){case"translate":Vn(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":L0(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ao(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);aa(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Zd);aa(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 dT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function _R(r,t,e){var n=r.getAttribute("style");if(n){dT.lastIndex=0;for(var a;(a=dT.exec(n))!=null;){var i=a[1],o=st(Hh,i)?Hh[i]:null;o&&(t[o]=a[2]);var s=st(Wh,i)?Wh[i]:null;s&&(e[s]=a[2])}}}function t$(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;Oe(t,Ae(n),{labelFetcher:h,labelDataIndex:c,defaultText:e},v);var p=t.getTextContent();if(p&&(xR(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 ST(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 xT(r,t,e,n,a){r.data||Us({el:t,componentModel:a,itemName:e,itemTooltipOption:n.get("tooltip")})}function bT(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&&gF(t,a,e),o}function wT(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 S$(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 T$(r,t){D(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var C$=function(){function r(){this.dimensions=wR}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 ym(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=DT,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 ym(s,s,H({nameMap:C0(l)},a(o[0])));u.zoomLimit=Ie.apply(null,X(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=DT,u.resize(o[0],e),D(o,function(f){f.coordinateSystem=u,T$(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 P$(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){k$(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=O$(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function R$(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function IT(r){return arguments.length?r:V$}function Wl(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function E$(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function k$(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 O$(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&&(B$(N$(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 N$(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function B$(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 V$(r,t){return r.parentNode===t.parentNode?1:2}var z$=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),F$=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 z$},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"?hh(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(_t(e).focus=L),H$(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===of||bh(e.__edge,P)}})}function H$(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 lf({shape:mm(f,c,h,a,a)})),Ht(d,{shape:mm(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 IR(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function G_(r,t){var e=IR(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 j$=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=F_.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 De("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 Q$(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 J$(r,t){r.eachSeriesByType("tree",function(e){t8(e,t)})}function t8(r,t){var e=E$(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=IT(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=e.width,i=e.height,o=IT());var s=r.getData().tree.root,l=s.children[0];if(l){L$(s),Q$(l,P$,o),s.hierNode.modifier=-l.hierNode.prelim,Al(l,R$);var u=l,f=l,c=l;Al(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),Al(l,function(_){g=(_.getLayout().x+v)*p,y=(_.depth-1)*d;var S=Wl(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),Al(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),Al(l,function(_){g=(_.getLayout().x+v)*p,y=m==="TB"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function e8(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 r8(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=V_(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function n8(r){r.registerChartView(G$),r.registerSeriesModel(j$),r.registerLayout(J$),r.registerVisual(e8),r8(r)}var kT=["treemapZoomToNode","treemapRender","treemapMove"];function a8(r){for(var t=0;t1;)i=i.parentNode;var o=Yy(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var i8=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};PR(a);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new Ut({itemStyle:o},this,n);i=e.levels=o8(i,n);var l=X(i||[],function(c){return new Ut(c,s,n)},this),u=F_.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 De("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(){LR(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 PR(r){var t=0;D(r.children,function(n){PR(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 o8(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 s8=8,OT=8,jd=5,l8=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+s8*2,e.emptyItemWidth);e.totalWidth+=s+OT,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=mG(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 ir({shape:{points:u8(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:Hs*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),f8(S,t,y),l+=m+OT}},r.prototype.remove=function(){this.group.removeAll()},r}();function u8(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 f8(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 c8=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;aBT||Math.abs(e.dy)>BT)){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=Tr();Vn(g,g,[-n,-a]),L0(g,g,[p,p]),Vn(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&&Mh(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 l8(this.group))).render(e,n,a.node,function(o){i._state!=="animating"&&(G_(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Dl(),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 Dl(){return{nodeGroup:[],background:[],content:[]}}function y8(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",_m);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),Uh(M).nodeWidth=v,Uh(M).nodeHeight=p,f.isAboveViewRoot)return M;var I=ht("background",NT,u,p8);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)Ru(M)&&Qi(M,!1),I&&(Qi(I,!O),c.setItemGraphicEl(o.dataIndex,I),Vy(I,B,R));else{var N=ht("content",NT,u,d8);N&&U(M,N),I.disableMorphing=!0,I&&Ru(I)&&Qi(I,!1),Qi(M,!O),c.setItemGraphicEl(o.dataIndex,M),Vy(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=FT(x);E.fill=ct;var k=Hi(w);k.fill=w.get("borderColor");var z=Hi(T);z.fill=T.get("borderColor");var q=Hi(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,So($)}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=FT(x);k.fill=E,k.decal=ct.decal;var z=Hi(w),q=Hi(T),Y=Hi(C);Q($,E,ct.opacity,null),$.setStyle(k),$.ensureState("emphasis").style=z,$.ensureState("blur").style=q,$.ensureState("select").style=Y,So($)}G.add($)}function Z(G){!G.invisible&&i.push(G)}function Q(G,$,K,j){var J=h.getModel(j?zT:VT),ct=_e(h.get("name"),null),E=J.getShallow("show");Oe(G,Ae(h,j?zT:VT),{defaultText:E?ct:null,inheritColor:$,defaultOpacity:K,labelFetcher:r,labelDataIndex:o.dataIndex});var k=G.getTextContent();if(k){var z=k.style,q=D0(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 Ur&&(J.z2=m8(K,j)),xt(ct,J)),t[G][y]=J}function Tt(G,$){var K=G[y]={};$ instanceof _m?(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 m8(r,t){return r*v8+t}var Yu=D,_8=gt,$h=-1,Ce=function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=yt(t);this.type=n,this.mappingMethod=e,this._normalizeData=b8[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(Qd(a),S8(a)):e==="category"?a.categories?x8(a):Qd(a,!0):(rr(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&&Yu(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(_8(t)){var e=[];Yu(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)?Yu(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]),RR(r,n)}function Sc(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:Sm([0,1])}}function GT(r){var t=this.option.visual;return t[Math.round(Yt(r,[0,1],[0,t.length-1],!0))]||{}}function Ml(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function Ul(r){var t=this.option.visual;return t[this.option.loop&&r!==$h?r%t.length:r]}function Wi(){return this.option.visual[0]}function Sm(r){return{linear:function(t){return Yt(t,r,this.option.visual,!0)},category:Ul,piecewise:function(t,e){var n=xm.call(this,e);return n==null&&(n=Yt(t,r,this.option.visual,!0)),n},fixed:Wi}}function xm(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=Ce.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function RR(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=X(t,function(e){var n=Cr(e);return n||[0,0,0,1]})),t}var b8={linear:function(r){return Yt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Ce.findPieceIndex(r,t,!0);if(e!=null)return Yt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??$h},fixed:pe};function xc(r,t,e){return r?t<=e:t=e.length||d===e[d.depth]){var y=M8(a,l,d,g,p,n);kR(d,y,e,n)}})}}}function C8(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 HT(r){var t=Jd(r,"color");if(t){var e=Jd(r,"colorAlpha"),n=Jd(r,"colorSaturation");return n&&(t=nu(t,null,null,n)),e&&(t=gh(t,e)),t}}function A8(r,t){return t!=null?nu(t,null,null,r):null}function Jd(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function D8(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 Ce(c);return ER(h).drColorMappingBy=f,h}}}function tg(r,t){var e=r.get(t);return W(e)&&e.length?{name:t,range:e}:null}function M8(r,t,e,n,a,i){var o=H({},t);if(a){var s=a.type,l=s==="color"&&ER(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 Xu=Math.max,Yh=Math.min,WT=Ie,H_=D,OR=["itemStyle","borderWidth"],I8=["itemStyle","gapWidth"],L8=["upperLabel","show"],P8=["upperLabel","height"];const R8={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(WT(s.width,l[0]),a),f=et(WT(s.height,l[1]),i),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=$u(n,h,r),p=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),g=IR(d);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?V8(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),NR(d,_,!1,0),S=d.getLayout(),H_(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(z8(s,p,v),!0),r.setLayoutInfo(s),BR(b,new Mt(-s.x,-s.y,a,i),g,d,0)}};function NR(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(OR),u=s.get(I8)/2,f=VR(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=Xu(a-2*h,0),i=Xu(i-h-v,0);var p=a*i,d=E8(r,s,p,t,e,n);if(d.length){var g={x:h,y:v,width:a,height:i},y=Yh(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 B8(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?Xu(u*n/l,l/(u*a)):1/0}function UT(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;crx&&(u=rx),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),X_=function(){function r(t){this.group=new mt,this._LineCtor=t||Y_}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=KT(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=KT(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!nY(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function KT(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:Ae(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=[],Zo=Me,ug=oo,QT=Math.abs;function JT(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]=Zo(n[0],a[0],i[0],f),og[1]=Zo(n[1],a[1],i[1],f);var c=QT(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=Au,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=[na(u[0]),na(u[1])],u[2]&&u.__original.push(na(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=Yl(s.node1),p=JT(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=Yl(s.node2),p=JT(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]),Ki(o,i[1],i[0]),zs(o,o),f&&f!=="none"){var v=Yl(s.node1);uy(i[0],i[0],o,v*t)}if(c&&c!=="none"){var v=Yl(s.node2);uy(i[1],i[1],o,-v*t)}Ke(u[0],i[0]),Ke(u[1],i[1])}})}function tC(r){return r.type==="view"}var aY=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 yf,i=new X_,o=this.group;this._controller=new bf(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(tC(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(),$l(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),$_(e,"symbolSize",_,[C.offsetX,C.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(S,[b.x,b.y]),U_(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(_){HR(_,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)}),!tC(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){O_(s,u.dx,u.dy),a.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){N_(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(),$l(e)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=$l(e);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){fg(e.getGraph(),$l(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 iY=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 Ui(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 Ui||(t=a[qo(t)]),e instanceof Ui||(e=a[qo(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new UR(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 Ui&&(t=t.id),e instanceof Ui&&(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 Ui||(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(Ui,$R("hostGraph","data"));me(UR,$R("hostGraph","edgeData"));function YR(r,t,e,n,a){for(var i=new iY(n),o=0;o "+h)),u++)}var v=e.get("coordinateSystem"),p;if(v==="cartesian2d"||v==="polar")p=_a(r,e);else{var d=hf.get(v),g=d?d.dimensions||[]:[];It(g,"value")<0&&g.concat(["value"]);var y=pf(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;p=new tr(y,e),p.initData(r)}var m=new tr(["value"],e);return m.initData(l,s),a&&a(p,m),DR({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var oY=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 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),yo(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){Y8(this);var s=YR(i,a,this,!0,l);return D(s.edges,function(u){X8(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),De("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=y2({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 tr(["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),sY={type:"graphRoam",event:"graphRoam",update:"none"};function lY(r){r.registerChartView(aY),r.registerSeriesModel(oY),r.registerProcessor(G8),r.registerVisual(H8),r.registerVisual(W8),r.registerLayout(Z8),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,K8),r.registerLayout(Q8),r.registerCoordinateSystem("graphView",{dimensions:wf.dimensions,create:tY}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},pe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},pe),r.registerAction(sY,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=V_(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var uY=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),fY=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 uY},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 cY(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 wc(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var hY=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=cY(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?Gh:ar,p=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),y=[u,f];z0(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 we({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 fY({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?Gh:ar,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]:Yt(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:Yt(M,x,w,P)}},e),c.add(L),Oy(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]:Yt(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:Yt(I,x,w,F)}},e),c.add(N),Oy(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 Le){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(Yt(m.get(_,A),x,[0,1],!0))),O.z2EmphasisLift=0,ke(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,ke(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(Yt(_,[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:wc(_,N),width:isNaN(R)?null:R,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:B})}),xL(A,{normal:M},_,function(U){return wc(U,N)}),d&&bL(A,y,l,e,{getFormattedLabel:function(U,Z,Q,ft,ht,Tt){return wc(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),vY=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 tl(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 pY(r){r.registerChartView(hY),r.registerSeriesModel(vY)}var dY=["itemStyle","opacity"],gY=function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=a,o=new or,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(dY);f=f??1,a||cn(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),ke(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;Oe(o,Ae(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}),T_(a,C_(l),{stroke:h})},t}(ir),yY=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 gY(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);Eu(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),mY=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 xf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return tl(this,{coordDimensions:["value"],encodeDefaulter:bt(r_,this)})},t.prototype._defaultLabelLine=function(e){yo(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 _Y(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function SY(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();oNY)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 zY=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),FY=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}(vn);function Ro(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=Ko(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Ko(s,[0,o]),a=i=Ko(s,[a,i]),n=0}t[0]=Ko(t[0],e),t[1]=Ko(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]=Ko(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 Ko(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,ZR=Math.min,qR=Math.max,nC=Math.floor,GY=Math.ceil,aC=he,HY=Math.PI,WY=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 FY(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)),Rs(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=Tc(t.get("axisExpandWidth"),l),c=Tc(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=Tc(v[1]-v[0],l),v[1]=v[0]+p;else{p=Tc(f*(c-1),l);var d=t.get("axisExpandCenter")||nC(u/2);v=[f*d-p/2],v[1]=v[0]+p}var g=(s-p)/(u-c);g<3&&(g=0);var y=[nC(aC(v[0]/f,1))+1,GY(aC(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?$Y:UY)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:HY/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],h=f[i],v=Tr();Ao(v,v,h),Vn(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?Ro(l,a,o,"all"):u="none";else{var v=a[1]-a[0],p=o[1]*s/v;a=[qR(0,p-v/2)],a[1]=ZR(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r}();function Tc(r,t){return ZR(qR(r,t[0]),t[1])}function UY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function $Y(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--)Fr(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;iKY}function eE(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function rE(r,t,e,n){var a=new mt;return a.add(new Vt({name:"main",style:Q_(e),silent:!0,draggable:!0,cursor:"move",drift:bt(sC,r,t,a,["n","s","w","e"]),ondragend:bt(wo,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(sC,r,t,a,i),ondragend:bt(wo,t,{isEnd:!0})}))}),a}function nE(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Os(a,jY),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;qn(r,t,"main",o,s,p,d),n.transformable&&(qn(r,t,"w",l,u,i,y),qn(r,t,"e",h,u,i,y),qn(r,t,"n",l,u,g,i),qn(r,t,"s",l,v,g,i),qn(r,t,"nw",l,u,i,i),qn(r,t,"ne",h,u,i,i),qn(r,t,"sw",l,v,i,i),qn(r,t,"se",h,v,i,i))}function Dm(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(Q_(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?Mm(r,i[0]):n7(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?JY[s]+"-resize":null})})}function qn(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(i7(J_(r,t,[[n,a],[n+i,a+o]])))}function Q_(r){return dt({strokeNoScale:!0},r.brushStyle)}function aE(r,t,e,n){var a=[qu(r,e),qu(t,n)],i=[Os(r,e),Os(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function r7(r){return co(r.group)}function Mm(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],r7(r));return n[a]}function n7(r,t){var e=[Mm(r,t[0]),Mm(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function sC(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=iE(t,a,i);D(n,function(u){var f=QY[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(aE(s[0][0],s[1][0],s[0][1],s[1][1])),q_(t,e),wo(t,{isEnd:!1})}function a7(r,t,e,n){var a=t.__brushOption.range,i=iE(r,e,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q_(r,t),wo(r,{isEnd:!1})}function iE(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 J_(r,t,e){var n=tE(r,t);return n&&n!==bo?n.clipPath(e,r._transform):yt(e)}function i7(r){var t=qu(r[0][0],r[1][0]),e=qu(r[0][1],r[1][1]),n=Os(r[0][0],r[1][0]),a=Os(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function o7(r,t,e){if(!(!r._brushType||l7(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:fC(0),lineY:fC(1),rect:{createCover:function(r,t){function e(n){return n}return rE({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=eE(r);return aE(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){nE(r,t,e,n)},updateCommon:Dm,contain:Lm},polygon:{createCover:function(r,t){var e=new mt;return e.add(new or({name:"main",style:Q_(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new ir({name:"main",draggable:!0,drift:bt(a7,r,t),ondragend:bt(wo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:J_(r,t,e)})},updateCommon:Dm,contain:Lm}};function fC(r){return{createCover:function(t,e){return rE({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=eE(t),n=qu(e[0][r],e[1][r]),a=Os(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=tE(t,e);if(o!==bo&&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(),nE(t,e,l,a)},updateCommon:Dm,contain:Lm}}function sE(r){return r=t1(r),function(t){return mL(t,r)}}function lE(r,t){return r=t1(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 uE(r,t,e){var n=t1(r);return function(a,i){return n.contain(i[0],i[1])&&!ep(a,t,e)}}function t1(r){return Mt.create(r)}var u7=["axisLine","axisTickLabel","axisName"],f7=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 Z_(n.getZr())).on("brush",it(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!c7(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=v7(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 er(e,v);D(u7,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(v,u,e,s,f,a),ff(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:sE(c),isTargetByCursor:uE(c,s,i),getLinearBrushOtherExtent:lE(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(h7(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 c7(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function h7(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 v7(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var p7={type:"axisAreaSelect",event:"axisAreaSelected"};function d7(r){r.registerAction(p7,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 g7={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function fE(r){r.registerComponentView(BY),r.registerComponentModel(zY),r.registerCoordinateSystem("parallel",XY),r.registerPreprocessor(EY),r.registerComponentModel(Cm),r.registerComponentView(f7),ks(r,"parallel",Cm,g7),d7(r)}function y7(r){Lt(fE),r.registerChartView(CY),r.registerSeriesModel(MY),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,RY)}var m7=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}(),_7=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new m7},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(){fa(this)},t.prototype.downplay=function(){ca(this)},t}(Pt),S7=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 _7,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()),cC(d.style,v,p);var Z=""+y.get("value"),Q=Ae(y,"edgeLabel");Oe(d,Q,{labelFetcher:{getFormattedLabel:function(Tt,xt,G,$,K,j){return e.getFormattedLabel(Tt,xt,"edge",$,kn(K,Q.normal&&Q.normal.get("formatter"),Z),j)}},labelDataIndex:p.dataIndex,defaultText:Z}),d.setTextConfig({position:"inside"});var ft=y.getModel("emphasis");ke(d,y,"lineStyle",function(Tt){var xt=Tt.getItemStyle();return cC(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});Oe(b,Ae(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),ke(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(x7(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Kt);function cC(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 x7(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 b7=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=YR(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 De("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 De("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 w7(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=T7(e,t);e.layoutInfo=i;var o=i.width,s=i.height,l=e.getGraph(),u=l.nodes,f=l.edges;A7(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");C7(u,f,n,a,o,s,h,v,p)})}function T7(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function C7(r,t,e,n,a,i,o,s,l){D7(r,t,e,a,i,s,l),P7(r,t,i,a,n,o,s),F7(r,s)}function A7(r){D(r,function(t){var e=Qa(t.outEdges,Xh),n=Qa(t.inEdges,Xh),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function D7(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"&&M7(r,o,i,w);var T=i==="vertical"?(a-e)/w:(n-e)/w;L7(r,T,i)}function cE(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function M7(r,t,e,n){if(t==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,k7(s,l,o),dg(s,a,e,n,o),z7(s,l,o),dg(s,a,e,n,o)}function R7(r,t){var e=[],n=t==="vertical"?"y":"x",a=Py(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 E7(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 k7(r,t,e){D(r.slice().reverse(),function(n){D(n,function(a){if(a.outEdges.length){var i=Qa(a.outEdges,O7,e)/Qa(a.outEdges,Xh);if(isNaN(i)){var o=a.outEdges.length;i=o?Qa(a.outEdges,N7,e)/o:0}if(e==="vertical"){var s=a.getLayout().x+(i-oi(a,e))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-oi(a,e))*t;a.setLayout({y:l},!0)}}})})}function O7(r,t){return oi(r.node2,t)*r.getValue()}function N7(r,t){return oi(r.node2,t)}function B7(r,t){return oi(r.node1,t)*r.getValue()}function V7(r,t){return oi(r.node1,t)}function oi(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Xh(r){return r.getValue()}function Qa(r,t,e){for(var n=0,a=r.length,i=-1;++io&&(o=l)}),D(n,function(s){var l=new Ce({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 H7(r){r.registerChartView(S7),r.registerSeriesModel(b7),r.registerLayout(w7),r.registerVisual(G7),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 hE=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:Nh(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Nh(d),dimsDef:m.slice()}];return tl(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:bt(UL,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),vE=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(vE,hE,!0);var W7=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=hC(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?(cn(c),pE(h,c,i,u)):c=hC(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),U7=function(){function r(){}return r}(),$7=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 U7},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 Q7={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Ye){var n="";Wt(n)}var a=j7(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function J7(r){r.registerSeriesModel(vE),r.registerChartView(W7),r.registerLayout(X7),r.registerTransform(Q7)}var t9=["color","borderColor"],e9=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){ci(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&&vC(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&&vC(u,v)){i.remove(h);return}h?(Ht(h,{shape:{points:v.ends}},e,f),cn(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(),pC(e,this.group);var n=e.get("clip",!0)?mf(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){pC(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),r9=function(){function r(){}return r}(),n9=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 r9},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 n9({shape:{points:e?a9(n,r):n},z2:100})}function vC(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(t9);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var dE=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(dE,hE,!0);function o9(r){!r||!W(r.series)||D(r.series,function(t){gt(t)&&t.type==="k"&&(t.type="candlestick")})}var s9=["itemStyle","borderColor"],l9=["itemStyle","borderColor0"],u9=["itemStyle","borderColorDoji"],f9=["itemStyle","color"],c9=["itemStyle","color0"],h9={seriesType:"candlestick",plan:Ks(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?f9:c9)}function n(i,o){return o.get(i===0?u9:i>0?s9:l9)}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)}}}}}},v9={seriesType:"candlestick",plan:Ks(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=p9(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:dC(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]=Zc(ht[a]+n/2,1,!1),Tt[a]=Zc(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]=Zc(Z[a],1),Z}}function p(d,g){for(var y=Pn(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++]=dC(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 dC(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 p9(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 d9(r){r.registerChartView(e9),r.registerSeriesModel(dE),r.registerPreprocessor(o9),r.registerVisual(h9),r.registerLayout(v9)}function gC(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 g9=function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=new gf(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 Fa(e.__p1,e.__cp1)+Fa(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=Me,f=gy;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}(gE),x9=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),b9=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 x9},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(UI(c,h,g,y,p,d,s,e,n))return l}else if(Ba(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}(),mE={seriesType:"lines",plan:Ks(),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)&&mf(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=mE.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 w9:new X_(o?i?S9:yE:i?gE:Y_),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),C9=typeof Uint32Array>"u"?Array:Uint32Array,A9=typeof Float64Array>"u"?Array:Float64Array;function yC(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),C0([a,e[0],e[1]])}))}var D9=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||[],yC(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(yC(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=hh(this._flatCoords,n.flatCoords),this._flatCoordsOffset=hh(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 Cc(r){return r instanceof Array||(r=[r,r]),r}var M9={seriesType:"lines",reset:function(r){var t=Cc(r.get("symbol")),e=Cc(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=Cc(s.getShallow("symbol",!0)),u=Cc(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 I9(r){r.registerChartView(T9),r.registerSeriesModel(D9),r.registerLayout(mE),r.registerVisual(M9)}var L9=256,P9=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ei.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=ei.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 R9(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 mC(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var k9=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()):mC(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&&(mC(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){ci(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,a,i,o){var s=e.coordinateSystem,l=Lo(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=Ae(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=Ae(B)}I.shape.r=S;var F=e.getRawValue(M),U="-";F&&F[2]!=null&&(U=F[2]+""),Oe(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 P9;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"?E9(S,a.option.range):R9(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 Le({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(Kt),O9=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 _a(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}(ae);function N9(r){r.registerChartView(k9),r.registerSeriesModel(O9)}var B9=["itemStyle","borderWidth"],_C=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Sg=new ma,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=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:_C[+f],categoryDim:_C[1-+f]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=xC(o,p),g=SC(o,p,d,h),y=bC(o,h,g);o.setItemGraphicEl(p,y),i.add(y),TC(y,h,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){i.remove(g);return}var y=xC(o,p),m=SC(o,p,y,h),_=TE(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?$9(g,h,m):g=bC(o,h,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,i.add(g),TC(g,h,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&wC(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var v=e.get("clip",!0)?mf(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){wC(i,_t(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(Kt);function SC(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};z9(e,i,a,n,h),F9(r,t,a,i,o,h.boundingLength,h.pxSign,f,n,h),G9(e,h.symbolScale,u,n,h);var v=h.symbolSize,p=Mo(e.get("symbolOffset"),v);return H9(e,v,a,i,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function z9(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 F9(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 G9(r,t,e,n,a){var i=r.get(B9)||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 H9(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=Ie(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=LI(n),T=w?n:CC((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?CC((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 _E(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 SE(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(e1(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 xE(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?ws(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=_E(e),a.add(i),ws(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 bE(r,t,e){var n=H({},t.barRectShape),a=r.__pictorialBarRect;a?ws(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 wE(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],Do[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function xC(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=W9,e.isAnimationEnabled=U9,e}function W9(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function U9(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function bC(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?SE(a,t,e):xE(a,t,e),bE(a,e,n),wE(a,t,e,n),a.__pictorialShapeStr=TE(r,e),a.__pictorialSymbolMeta=e,a}function $9(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?SE(r,t,e,!0):xE(r,t,e,!0),bE(r,e,!0),wE(r,t,e,!0)}function wC(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];e1(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),D(i,function(o){ni(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function TE(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function e1(r,t,e){D(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function ws(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&Do[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function TC(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");e1(r,function(d){if(d instanceof Le){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,Oe(p,Ae(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Es(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),ce(r,f,c,i.get("disabled"))}function CC(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var Y9=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=hi(Wu.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}(Wu);function X9(r){r.registerChartView(V9),r.registerSeriesModel(Y9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(sP,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lP("pictorialBar"))}var Z9=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 ha(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 J9(r){r.registerChartView(Z9),r.registerSeriesModel(K9),r.registerLayout(j9),r.registerProcessor(Sf("themeRiver"))}var tX=2,eX=4,DC=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;o.z2=tX,o.textConfig={inside:!0},_t(o).seriesIndex=n.seriesIndex;var s=new Ft({z2:eX,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=Ps(v,o));var p=no(l.getModel("itemStyle"),c,!0);H(c,p),D(nr,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=no(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),cn(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&&!Iu(O-P)&&O0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,n,a):(o.virtualPiece=new DC(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";Mh(u,f)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Pm,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),iX=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};CE(a);var i=this._levelModels=X(e.levels||[],function(l){return new Ut(l,this,n)},this),o=F_.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(){LR(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 CE(r){var t=0;D(r.children,function(n){CE(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 IC=Math.PI/180;function oX(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")*IC,p=n.get("minAngle")*IC,d=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&AE(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=_y(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 uX(r){r.registerChartView(aX),r.registerSeriesModel(iX),r.registerLayout(bt(oX,"sunburst")),r.registerProcessor(bt(Sf,"sunburst")),r.registerVisual(lX),nX(r)}var LC={color:"fill",borderColor:"stroke"},fX={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},oa=zt(),cX=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 _a(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=oa(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 hX(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 vX(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(hX,r)}}}function pX(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 dX(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(pX,r)}}}function gX(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 yX(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(gX,r)}}}function mX(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 _X(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(mX,r)}}}function SX(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 DE(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function ME(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 PC(o,r),D(o.rich,function(l){PC(l,l)}),{textConfig:a,textContent:i}}function PC(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 RC(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";EC(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){EC(s,s)}),n}function EC(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 IE={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},kC=Ot(IE);Bn(zn,function(r,t){return r[t]=1,r},{});zn.join(", ");var Zh=["","style","shape","extra"],Ns=zt();function r1(r,t,e,n,a){var i=r+"Animation",o=Ws(r,n,a)||{},s=Ns(t).userDuring;return o.duration>0&&(o.during=s?it(CX,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),H(o,e[i]),o}function th(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=Ns(r),u=t.style;l.userDuring=t.during;var f={},c={};if(DX(r,t,c),NC("shape",t,c),NC("extra",t,c),!i&&s&&(AX(r,t,f),OC("shape",r,t,f),OC("extra",r,t,f),MX(r,t,u,f)),c.style=u,xX(r,c,o),wX(r,t),s)if(i){var h={};D(Zh,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=r1("enter",r,t,e,a);v.duration>0&&r.animateFrom(h,v)}else bX(r,t,a||0,e,f);LE(r,t),u?r.dirty():r.markRedraw()}function LE(r,t){for(var e=Ns(r).leaveToProps,n=0;n0&&r.animateFrom(a,i)}}function wX(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof Ur&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Pt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var xn={},TX={setTransform:function(r,t){return xn.el[r]=t,this},getTransform:function(r){return xn.el[r]},setShape:function(r,t){var e=xn.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=xn.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=xn.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=xn.el.style;if(t)return t[r]},setExtra:function(r,t){var e=xn.el.extra||(xn.el.extra={});return e[r]=t,this},getExtra:function(r){var t=xn.el.extra;if(t)return t[r]}};function CX(){var r=this,t=r.el;if(t){var e=Ns(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}xn.el=t,n(TX)}}function OC(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]={}),po(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,Xa).getItemStyle();B!=null&&(F.fill=B),N!=null&&(F.opacity=N);var U={inheritColor:nt(B)?B:"#000"},Z=_(R,Xa),Q=ne(Z,null,U,!1,!0);Q.text=Z.getShallow("show")?St(r.getFormattedLabel(R,Xa),Es(t,R)):null;var ft=Ah(Z,U,!1);return C(P,F),F=RC(F,Q,ft),P&&T(F,P),F.legacy=!0,F}function w(P,R){R==null&&(R=u);var O=m(R,sa).getItemStyle(),B=_(R,sa),N=ne(B,null,null,!0,!0);N.text=B.getShallow("show")?kn(r.getFormattedLabel(R,sa),r.getFormattedLabel(R,Xa),Es(t,R)):null;var F=Ah(B,null,!0);return C(P,O),O=RC(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(LC,P)){var O=t.getItemVisual(R,"style");return O?O[LC[P]]:null}if(st(fX,P))return t.getItemVisual(R,P)}function M(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return D4(dt({axis:R},P))}}function I(){return e.getCurrentSeriesIndices()}function L(P){return q0(P,e)}}function VX(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=s1(r,t,e,n,a,i);return s&&o.setItemGraphicEl(e,s),s&&ce(s,n.focus,n.blurScope,n.emphasisDisabled),s}function s1(r,t,e,n,a,i){var o=-1,s=t;t&&kE(t,n,a)&&(o=It(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=i1(n),s&&kX(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Lr.normal.cfg=Lr.normal.conOpt=Lr.emphasis.cfg=Lr.emphasis.conOpt=Lr.blur.cfg=Lr.blur.conOpt=Lr.select.cfg=Lr.select.conOpt=null,Lr.isLegacy=!1,FX(u,e,n,a,l,Lr),zX(u,e,n,a,l),o1(r,u,e,n,Lr,a,l),st(n,"info")&&(oa(u).info=n.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function kE(r,t,e){var n=oa(r),a=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&$X(i)&&OE(i)!==n.customPathData||a==="image"&&st(o,"image")&&o.image!==n.customImagePath}function zX(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&&kE(o,i,n)&&(o=null),o||(o=i1(i),r.setClipPath(o)),o1(null,o,t,i,null,n,a)}}function FX(r,t,e,n,a,i){if(!r.isGroup){VC(e,null,i),VC(e,sa,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=i1(o),r.setTextContent(f)),o1(null,f,t,o,null,n,a);for(var c=o&&o.style,h=0;h=f;v--){var p=t.childAt(v);HX(t,p,a)}}}function HX(r,t,e){t&&op(t,oa(r).option,e)}function WX(r){new ha(r.oldChildren,r.newChildren,zC,zC,r).add(FC).update(FC).remove(UX).execute()}function zC(r,t){var e=r&&r.name;return e??RX+t}function FC(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;s1(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function UX(r){var t=this.context,e=t.oldChildren[r];e&&op(e,oa(e).option,t.seriesModel)}function OE(r){return r&&(r.pathData||r.d)}function $X(r){return r&&(st(r,"pathData")||st(r,"d"))}function YX(r){r.registerChartView(OX),r.registerSeriesModel(cX)}var Zi=zt(),GC=yt,Ag=it,u1=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(HC,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}UC(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=E_(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=Zi(t).pointerEl=new Do[i.type](GC(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=Zi(t).labelEl=new Ft(GC(e.label));t.add(i),WC(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=Zi(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=Zi(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),WC(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=cf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){la(u.event)},onmousedown:Ag(this._onHandleDragMove,this,0,0),drift:Ag(this._onHandleDragMove,this),ondragend:Ag(this._onHandleDragEnd,this)}),n.add(a)),UC(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,js(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){HC(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)),Zi(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),Bu(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 HC(r,t,e,n){NE(Zi(e).lastProp,n)||(Zi(e).lastProp=n,t?Ht(e,n,r):(e.stopAnimation(),e.attr(n)))}function NE(r,t){if(gt(r)&>(t)){var e=!0;return D(t,function(n,a){e=e&&NE(r[a],n)}),!!e}else return r===t}function WC(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 UC(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 f1(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 BE(r,t,e,n,a){var i=e.get("value"),o=VE(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Xs(s.get("padding")||0),u=s.getFont(),f=nf(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),XX(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 XX(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 VE(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:b_(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 c1(r,t,e){var n=Tr();return Ao(n,n,e.rotation),Vn(n,n,e.position),ln([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function zE(r,t,e,n,a,i){var o=er.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),BE(t,n,a,i,{position:c1(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function h1(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function FE(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function $C(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}var ZX=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=YC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=f1(i),v=qX[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var p=vm(l.model,a);zE(n,e,p,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=vm(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=c1(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=YC(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}(u1);function YC(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var qX={line:function(r,t,e){var n=h1([t,e[0]],[t,e[1]],XC(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:FE([t-n/2,e[0]],[n,a],XC(r))}}};function XC(r){return r.dim==="x"?0:1}var KX=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),ta=zt(),jX=D;function GE(r,t,e){if(!Rt.node){var n=t.getZr();ta(n).records||(ta(n).records={}),QX(n,t);var a=ta(n).records[r]||(ta(n).records[r]={});a.handler=e}}function QX(r,t){if(ta(r).initialized)return;ta(r).initialized=!0,e("click",bt(ZC,"click")),e("mousemove",bt(ZC,"mousemove")),e("globalout",tZ);function e(n,a){r.on(n,function(i){var o=eZ(t);jX(ta(r).records,function(s){s&&a(s,i,o.dispatchAction)}),JX(o.pendings,t)})}}function JX(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 tZ(r,t,e){r.handler("leave",null,e)}function ZC(r,t,e,n){t.handler(r,e,n)}function eZ(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 km(r,t){if(!Rt.node){var e=t.getZr(),n=(ta(e).records||{})[r];n&&(ta(e).records[r]=null)}}var rZ=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";GE("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){km("axisPointer",n)},t.prototype.dispose=function(e,n){km("axisPointer",n)},t.type="axisPointer",t}(ue);function HE(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=mo(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 qC=zt();function nZ(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){eh(a)&&(a=HE({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=eh(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||eh(a),h={},v={},p={list:[],map:{}},d={showPointer:bt(iZ,v),showTooltip:bt(oZ,p)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=fZ(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&KC(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){KC(f[m],y,d,!0,h)}),sZ(v,f,h),lZ(p,a,r,o),uZ(f,o,e),h}}function KC(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=aZ(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 aZ(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 iZ(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function oZ(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=Uu(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 sZ(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 lZ(r,t,e,n){if(eh(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 uZ(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=qC(n)[a]||{},o=qC(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 fZ(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 eh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Tf(r){Po.registerAxisPointerClass("CartesianAxisPointer",ZX),r.registerComponentModel(KX),r.registerComponentView(rZ),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=SU(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},nZ)}function cZ(r){Lt(gR),Lt(Tf)}var hZ=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=f1(i),p=pZ[h](s,l,c,f);p.style=v,e.graphicKey=p.type,e.pointer=p}var d=i.get(["label","margin"]),g=vZ(n,a,i,l,d);BE(e,a,i,o,g)},t}(u1);function vZ(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=Tr();Ao(h,h,s),Vn(h,h,[n.cx,n.cy]),u=ln([o,-a],h);var v=t.getModel("axisLabel").get("rotate")||0,p=er.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 pZ={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:h1(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:$C(t.cx,t.cy,n[0],n[1],(-e-a/2)*i,(-e+a/2)*i)}:{type:"Sector",shape:$C(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}},dZ=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),v1=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(v1,df);var gZ=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}(v1),yZ=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}(v1),p1=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}(vn);p1.prototype.dataToRadius=vn.prototype.dataToCoord;p1.prototype.radiusToData=vn.prototype.coordToData;var mZ=zt(),d1=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=nf(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=mZ(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}(vn);d1.prototype.dataToAngle=vn.prototype.dataToCoord;d1.prototype.angleToData=vn.prototype.coordToData;var WE=["radius","angle"],_Z=function(){function r(t){this.dimensions=WE,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new p1,this._angleAxis=new d1,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=QC(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=QC(e);return a===this?this.pointToData(n):null},r}();function QC(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function SZ(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 xZ(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(Bh(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),D(Bh(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Rs(n.scale,n.model),Rs(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 bZ(r){return r.mainType==="angleAxis"}function JC(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"),bZ(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 wZ={dimensions:WE,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new _Z(a+"");i.update=xZ;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");JC(o,l),JC(s,u),SZ(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}},TZ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ac(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 Dc(r){var t=r.getRadiusAxis();return t.inverse?0:1}function tA(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 CZ=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});tA(u),tA(s),D(TZ,function(f){e.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&AZ[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Po),AZ={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=Dc(e),c=f?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?h=new Do[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 sf({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[Dc(e)],u=X(n,function(f){return new we({shape:Ac(e,[l,l+s],f.coord)})});r.add(Vr(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[Dc(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:er.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=er.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 EZ(r){var t={};D(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=$E(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=UE(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=eA(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=eA(e);return a===this?this.pointToData(n):null},r}();function eA(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function UZ(r,t){var e=[];return r.eachComponent("singleAxis",function(n,a){var i=new WZ(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 $Z={create:UZ,dimensions:YE},rA=["x","y"],YZ=["width","height"],XZ=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=f1(i),v=ZZ[c](s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var p=Om(a);zE(n,e,p,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Om(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=c1(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}(u1),ZZ={line:function(r,t,e){var n=h1([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:FE([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[rA[t]],e[rA[t]]+e[YZ[t]]]}var qZ=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 KZ(r){Lt(Tf),Po.registerAxisPointerClass("SingleAxisPointer",XZ),r.registerComponentView(qZ),r.registerComponentView(FZ),r.registerComponentModel(rh),ks(r,"single",rh,rh.defaultOption),r.registerCoordinateSystem("single",$Z)}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.prototype.init=function(e,n,a){var i=Zs(e);r.prototype.init.apply(this,arguments),nA(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),nA(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 nA(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 _G(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});ai(r,t,{type:"box",ignoreSize:a})}var QZ=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 or({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?gG(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=Wy(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 aA(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}function tq(r){r.registerComponentModel(jZ),r.registerComponentView(QZ),r.registerCoordinateSystem("calendar",JZ)}function eq(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 iA(r,t){var e;return D(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function rq(r,t,e){var n=H({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(Dt(a,n,!0),ai(a,n,{ignoreSize:!0}),zL(e,a),Mc(e,a),Mc(e,a,"shape"),Mc(e,a,"style"),Mc(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var XE=["transition","enterFrom","leaveTo"],nq=XE.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Mc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?XE:nq,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=Or(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(!Or(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){nh(a,Or(a).option,n,e._lastGraphicModel)}),this._elMap=ut()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ue);function Nm(r){var t=st(oA,r)?oA[r]:Z0(r),e=new t({});return Or(e).type=r,e}function sA(r,t,e,n){var a=Nm(e);return t.add(a),n.set(r,a),Or(a).id=r,Or(a).isNew=!0,a}function nh(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){nh(i,t,e,n)}),op(r,t,n),e.removeKey(Or(r).id))}function lA(r,t,e,n){r.isGroup||D([["cursor",Ur.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 sq(r){return r=H({},r),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(VL),function(t){delete r[t]}),r}function lq(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 uq(r){r.registerComponentModel(iq),r.registerComponentView(oq),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 uA=["x","y","radius","angle","single"],fq=["cartesian2d","polar","singleAxis"];function cq(r){var t=r.get("coordinateSystem");return It(fq,t)>=0}function Za(r){return r+"Axis"}function hq(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 ZE(r){var t=r.ecModel,e={infoList:[],infoMap:ut()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(Za(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}(),Ku=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=fA(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=fA(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(uA,function(a){var i=this.getReferringComponents(Za(a),i5);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(uA,function(u){if(i){var f=a.findComponents({mainType:Za(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(Za(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(Za(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 os(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)}});os(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;os(["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=Yt(n[0]+o,n,[0,100],!0):i!=null&&(o=Yt(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=DI(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 gq(r,t,e){var n=[1/0,-1/0];os(e,function(o){q4(n,o.getData(),t)});var a=r.getAxisModel(),i=hP(a.axis.scale,a,n).calculate();return[i.min,i.max]}var yq={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Za(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 dq(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 mq(r){r.registerAction("dataZoom",function(t,e){var n=hq(e,t);D(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var hA=!1;function y1(r){hA||(hA=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,yq),mq(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function _q(r){r.registerComponentModel(vq),r.registerComponentView(pq),y1(r)}var Br=function(){function r(){}return r}(),qE={};function ss(r,t){qE[r]=t}function KE(r){return qE[r]}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.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;D(this.option.feature,function(n,a){var i=KE(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 xq(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=xe(n,i,a);ho(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Uv(r,n,i,a)}function jE(r,t){var e=Xs(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 bq=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 ha(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(wq(g))S={onclick:_.option.onclick,featureName:g};else{var b=KE(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=Ys("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Br;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"?fa:ca)(A[w])},S instanceof Br&&S.render&&S.render(_,n,a,i)}function v(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof Br&&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=cf(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:q0({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});A.setTextContent(I),Us({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"?fa:ca)(A),o.add(A),A.on("click",it(d.onclick,d,n,a,C)),w[C]=A})}xq(o,e,a),o.add(jE(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=nf(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 Br&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){D(this._features,function(a){a instanceof Br&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){D(this._features,function(a){a instanceof Br&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(ue);function wq(r){return r.indexOf("my")===0}var Tq=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}(Br),vA="__ec_magicType_stack__",Cq=[["line","bar"],["stack"]],Aq=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(pA[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,p=pA[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(Cq,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}(Br),pA={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")===vA;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Dt({id:t,stack:a?"":vA},n.get(["option","stack"])||{},!0)}};Wn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var sp=new Array(60).join("-"),Bs=" ";function Dq(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 Mq(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(Bs)],f=0;f=0)return!0}var Bm=new RegExp("["+Bs+"]+","g");function Rq(r){for(var t=r.split(/\n+/g),e=Qh(t.shift()).split(Bm),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 Vq(r){var t=m1(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return QE(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 zq(r){JE(r).snapshots=null}function Fq(r){return m1(r).length}function m1(r){var t=JE(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Gq=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){zq(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}(Br);Wn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var Hq=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],_1=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=dA(e,t);D(Wq,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:_A[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?_A[n.brushType](i.values,o.offset,Uq(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:sE(a),isTargetByCursor:uE(a,t,n.coordSysModel),getLinearBrushOtherExtent:lE(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=dA(e,t),i=0;ir[1]&&r.reverse(),r}function dA(r,t){return ou(r,t,{includeMainTypes:Hq})}var Wq={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:yA.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:yA.geo})})}},gA=[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}],yA={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(co(r)),t}},Pg={lineX:bt(mA,0),lineY:bt(mA,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=[Vm([a[0],i[0]]),Vm([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 mA(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Vm(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 _A={lineX:bt(SA,0),lineY:bt(SA,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 SA(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function Uq(r,t){var e=xA(r),n=xA(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 xA(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var zm=D,$q=t5("toolbox-dataZoom_"),Yq=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 Z_(a.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),qq(e,n,this,i,a),Zq(e,n)},t.prototype.onclick=function(e,n,a){Xq[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 _1(S1(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)}}),Bq(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=Ro(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=[];zm(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}(Br),Xq={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Vq(this.ecModel))}};function S1(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 Zq(r,t){r.setIconStatus("back",Fq(t)>1?"emphasis":"normal")}function qq(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 _1(S1(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)}CG("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=S1(n),o=ou(r,i);zm(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),zm(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:$q+u+c};h[f]=c,a.push(h)}return a});function Kq(r){r.registerComponentModel(Sq),r.registerComponentView(bq),ss("saveAsImage",Tq),ss("magicType",Aq),ss("dataView",Oq),ss("dataZoom",Yq),ss("restore",Gq),Lt(_q)}var jq=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 tk(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function ek(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 aK(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?","+x1+n:",left"+n+",top"+n),tK+":"+a}function bA(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;"+x1+":"+o+";":[["top",0],["left",0],[rk,o]]}function iK(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 oK(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=g2(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(aK(a,e)),i&&n.push("background-color:"+i),D(["width","color","radius"],function(v){var p="border-"+v,d=NL(p),g=r.get(d);g!=null&&n.push(p+":"+g+(v==="color"?"":"px"))}),n.push(iK(f)),c!=null&&n.push("padding:"+Xs(c).join("px ")+"px"),n.join(";")+";"}function wA(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&RV(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 sK=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):Ds(i)?i:vt(i)&&i(t.getDom()));wA(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();Rr(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=Jq(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=eK+oK(t,!this._firstShow,this._longHide)+bA(i[0],i[1],!0)+("border-color:"+xo(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"&&!tk(n)&&(s=nK(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=AA(i,a);this._ticket="";var s=i.dataByCoordSys,l=pK(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=uK;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=HE(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(AA(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=Il([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;to(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=Il([n.tooltipOption],i),l=this._renderMode,u=[],f=De("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=VE(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=De("section",{header:x,noHeader:!nn(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=b_(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",xo(M.color),l);var I=hb(C.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=Il([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=mb(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=Il([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",xo(y.color),v);var _=hb(u.formatTooltip(f,!1,c)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?mb(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=ur(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=Il(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=BL(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=vK(n,p,c,e.get("borderWidth"));a=y[0],i=y[1]}else{var y=cK(a,i,o,u,f,h?null:20,v?null:20);a=y[0],i=y[1]}if(h&&(a-=DA(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=DA(v)?c[1]/2:v==="bottom"?c[1]:0),tk(e)){var y=hK(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()||(Bu(this,"_updatePosition"),this._tooltipContent.dispose(),km("itemTooltip",n))},t.type="tooltip",t}(ue);function Il(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 AA(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function cK(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 hK(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 vK(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 DA(r){return r==="center"||r==="middle"}function pK(r,t,e){var n=N0(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=af(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 dK(r){Lt(Tf),r.registerComponentModel(jq),r.registerComponentView(fK),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},pe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},pe)}var gK=["rect","polygon","keep","clear"];function yK(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),mK(s),t&&!s.length&&s.push.apply(s,gK)}}function mK(r){var t={};D(r,function(e){t[e]=1}),r.length=0,D(t,function(e,n){r.push(n)})}var MA=D;function IA(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Fm(r,t,e){var n={};return MA(t,function(i){var o=n[i]=a();MA(r[i],function(s,l){if(Ce.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Ce(u),l==="opacity"&&(u=yt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ce(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function ak(r,t,e){var n;D(e,function(a){t.hasOwnProperty(a)&&IA(t[a])&&(n=!0)}),n&&D(e,function(a){t.hasOwnProperty(a)&&IA(t[a])?r[a]=yt(t[a]):delete r[a]})}function _K(r,t,e,n,a,i){var o={};D(r,function(c){var h=Ce.prepareVisualTypes(t[c]);o[c]=h});var s;function l(c){return c_(e,s,c)}function u(c,h){A2(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&&kA(t)}};function kA(r){return new Mt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var DK=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 Z_(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){ik(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),MK="#ddd",IK=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&&ak(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:MK},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=X(e,function(n){return OA(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=OA(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 OA(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 LK=["rect","polygon","lineX","lineY","keep","clear"],PK=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:LK.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}(Br);function RK(r){r.registerComponentView(DK),r.registerComponentModel(IK),r.registerPreprocessor(yK),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,bK),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),ss("brush",PK)}var EK=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),kK=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(){Mh(p,"_"+e.get("target"))}),d&&v.on("click",function(){Mh(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 OK(r){r.registerComponentModel(EK),r.registerComponentView(kK)}var NA=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(Gs(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 tr([{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),ok=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=hi(NA.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}(NA);me(ok,Yv.prototype);var NK=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),BK=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}(vn),Eg=Math.PI,BA=zt(),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.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 De("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=FK(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=Tr(),l=o.x,u=o.y+o.height;Vn(s,s,[-l,-u]),Ao(s,s,-Eg/2),Vn(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=zK(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 BK("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 we({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 we({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=VA(c,h,n,d);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),fo(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),fo(y),BA(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=fn(St(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=GK(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(_),fo(_)}}},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),zA(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){zA(c,u._progressLine,s,a,i)}};this._currentPointer=VA(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=Fr(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(h)),[o,c]}var kg={min:bt(Pc,"min"),max:bt(Pc,"max"),average:bt(Pc,"average"),median:bt(Pc,"median")};function ju(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!XK(t)&&!W(t.coord)&&W(a)){var i=sk(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]=w1(e,e.mapDimension(a[f]),u[f]));return t}}function sk(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(ZK(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 ZK(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Qu(r,t){return r&&r.containData&&t.coord&&!Hm(t)?r.containData(t.coord):!0}function qK(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Hm(t)&&!Hm(e)?r.containZone(t.coord,e.coord):!0}function lk(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 w1(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(),T1=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=da.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=da.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?tL(l):W0(l))})}})},t.type="marker",t}(ue);function GA(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 KK=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=da.getMarkerModelFromSeries(i,"markPoint");o&&(GA(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 yf),c=jK(o,e,n);n.setData(c),GA(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=vf(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}(T1);function jK(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 tr(n,e),i=X(e.get("data"),bt(ju,t));r&&(i=Zt(i,bt(Qu,r)));var o=lk(!!r,n);return a.initData(i,null,o),a}function QK(r){r.registerComponentModel(YK),r.registerComponentView(KK),r.registerPreprocessor(function(t){b1(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var JK=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}(da),Rc=zt(),tj=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=Ie(n.yAxis,n.xAxis);else{var u=sk(n,a,t,r);s=u.valueAxis;var f=eP(a,u.valueDataDim);l=w1(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=[ju(r,i[0]),ju(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 Jh(r){return!isNaN(r)&&!isFinite(r)}function HA(r,t,e,n){var a=1-r,i=n.dimensions[r];return Jh(t[a])&&Jh(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function ej(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(HA(1,e,n,r)||HA(0,e,n,r)))return!0}return Qu(r,t[0])&&Qu(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(Lo(i,"cartesian2d")){var v=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;Jh(r.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[e?0:1]):Jh(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 rj=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=da.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Rc(o).from,u=Rc(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 X_);this.group.add(f.group);var c=nj(o,e,n),h=c.from,v=c.to,p=c.line;Rc(n).from=h,Rc(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=vf(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}(T1);function nj(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 tr(n,e),i=new tr(n,e),o=new tr([],e),s=X(e.get("data"),bt(tj,t,r,e));r&&(s=Zt(s,bt(ej,r)));var l=lk(!!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 aj(r){r.registerComponentModel(JK),r.registerComponentView(rj),r.registerPreprocessor(function(t){b1(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var ij=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}(da),Ec=zt(),oj=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=ju(r,a),s=ju(r,i),l=o.coord,u=s.coord;l[0]=Ie(l[0],-1/0),l[1]=Ie(l[1],-1/0),u[0]=Ie(u[0],1/0),u[1]=Ie(u[1],1/0);var f=C0([{},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 tv(r){return!isNaN(r)&&!isFinite(r)}function WA(r,t,e,n){var a=1-r;return tv(t[a])&&tv(e[a])}function sj(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 Lo(r,"cartesian2d")?e&&n&&(WA(1,e,n)||WA(0,e,n))?!0:qK(r,a,i):Qu(r,a)||Qu(r,i)}function UA(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(Lo(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(e[0],t),g=r.get(e[1],t);tv(d)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):tv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var $A=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],lj=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=da.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=X($A,function(c){return UA(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=uj(o,e,n);n.setData(c),c.each(function(h){var v=X($A,function(T){return UA(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))];Fr(m),Fr(_);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=vf(l,"color");x.fill||(x.fill=w,nt(x.fill)&&(x.fill=gh(x.fill,.4))),x.stroke||(x.stroke=w),c.setItemVisual(h,"style",x)}),c.diff(Ec(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var p=new ir({shape:{points:v.points}});c.setItemGraphicEl(h,p),f.group.add(p)}}).update(function(h,v){var p=Ec(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 ir({shape:{points:d.points}}),c.setItemGraphicEl(h,p),f.group.add(p))}).remove(function(h){var v=Ec(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")),Oe(h,Ae(p),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:nt(d.fill)?gh(d.fill,1):"#000"}),ke(h,p),ce(h,null,null,p.get(["emphasis","disabled"])),_t(h).dataModel=n}),Ec(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(T1);function uj(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 tr(a,e)}else a=[{name:"value",type:"float"}],n=new tr(a,e);var s=X(e.get("data"),bt(oj,t,r,e));r&&(s=Zt(s,bt(sj,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 fj(r){r.registerComponentModel(ij),r.registerComponentView(lj),r.registerPreprocessor(function(t){b1(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var cj=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"])}},Wm=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,cj(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),jo=bt,Um=D,kc=mt,uk=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 kc),this.group.add(this._selectorGroup=new kc),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=jE(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)}),Um(n.getData(),function(v,p){var d=v.get("name");if(!this.newlineDisabled&&(d===""||d===` +`)){var g=new kc;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",jo(YA,d,null,i,h)).on("mouseover",jo($m,y.name,null,i,h)).on("mouseout",jo(Ym,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=Cr(A.fill);I&&I[3]===0&&(I[3]=.2,A=H(H({},A),{fill:ia(I,"rgba")}));var L=this._createItem(w,d,p,v,n,e,{},A,M,c,i);L.on("click",jo(YA,null,d,i,h)).on("mouseover",jo($m,null,d,i,h)).on("mouseout",jo(Ym,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();Um(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"]);Oe(c,{normal:h,emphasis:v},{defaultText:u.title}),fo(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=hj(f,i,l,u,v,g,h),b=new kc,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(vj({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")&&Us({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),fo(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ho(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){ho("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 hj(r,t,e,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Um(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:Ps(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 vj(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 YA(r,t,e,n){Ym(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),$m(r,t,e,n)}function fk(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}(uk);function mj(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 _j(r){Lt(ck),r.registerComponentModel(gj),r.registerComponentView(yj),mj(r)}function Sj(r){Lt(ck),Lt(_j)}var xj=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=hi(Ku.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ku),C1=zt();function bj(r,t,e){C1(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function wj(r,t){for(var e=C1(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 Mj(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=C1(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ut());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=ZE(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Tj(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){hk(a,i);return}var f=Dj(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),js(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Ij=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(),bj(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(){wj(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(g1),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(Ro(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:qA(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:qA(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 qA(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(Ro(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 vk(r){y1(r),r.registerComponentModel(xj),r.registerComponentView(Ij),Mj(r)}var Lj=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=hi(Ku.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}(Ku),Rl=Vt,KA=7,Pj=1,Gg=30,Rj=7,El="horizontal",jA="vertical",Ej=5,kj=["line","bar","candlestick","scatter"],Oj={easing:"cubicOut",duration:100,delay:0},Nj=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),js(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(){Bu(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?Rj:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===El?{right:s.width-o.x-o.width,top:s.height-Gg-KA-i,width:o.width,height:Gg}:{right:KA,top:o.y,width:Gg,height:o.height},u=Zs(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===El&&!o?{scaleY:l?1:-1,scaleX:1}:a===El&&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 Rl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Rl({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:Yt(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 ir({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new or({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(kj,u.get("type"))<0)){var f=i.getComponent(Za(o),s).axis,c=Bj(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 Rl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Rl({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:Pj,fill:"rgba(0,0,0,0)"}})),D([0,1],function(_){var S=l.get("handleIcon");!Ph[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:QA(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(),fo(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:QA(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=[Yt(e[0],[0,100],n,!0),Yt(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];Ro(n,i,o,a.get("zoomLock")?"all":e,s.minSpan!=null?Yt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Yt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Fr([Yt(i[0],o,l,!0),Yt(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=Fr(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=Fr([Yt(a.x,o,s,!0),Yt(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&&(la(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 Rl({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?Oj:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=ZE(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}(g1);function Bj(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function QA(r){return r==="vertical"?"ns-resize":"ew-resize"}function pk(r){r.registerComponentModel(Lj),r.registerComponentView(Nj),y1(r)}function Vj(r){Lt(vk),Lt(pk)}var dk={get:function(r,t,e){var n=yt((zj[r]||{})[t]);return e&&W(n)?n[n.length-1]:n}},zj={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]}},JA=Ce.mapVisual,Fj=Ce.eachVisual,Gj=W,tD=D,Hj=Fr,Wj=Yt,ev=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&&ak(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=Fm(this.option.controller,n,e),this.targetVisuals=Fm(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=Hj([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){Gj(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]={},tD(p,function(g,y){if(Ce.isValidType(y)){var m=dk.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";tD(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=JA(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;Fj(S,function(x){x>b&&(b=x)}),_.symbolSize=JA(S,function(x){return Wj(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),eD=[20,140],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.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]=eD[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=eD[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=Fr((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=rD(this,"outOfRange",this.getExtent()),a=rD(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();$j([0,1],function(f){var c=o[f];c.setStyle("fill",n.handlesColor[f]),c.y=e[f];var h=bn(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=ln(a.handleLabelPoints[f],co(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=bn(e,s,u,!0),g=l[0]-p/2,y={x:c.x,y:c.y};c.y=d,c.x=g;var m=ln(f.indicatorLabelPoint,co(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||oD(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var p=n5(h,v);this._dispatchHighDown("downplay",ah(p[0],a)),this._dispatchHighDown("highlight",ah(p[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(to(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 Jj(r,t,e,n){for(var a=t.targetVisuals[n],i=Ce.prepareVisualTypes(a),o={color:vf(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Kj,jj),D(Qj,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(tQ))}function _k(r){r.registerComponentModel(Uj),r.registerComponentView(Zj),mk(r)}var eQ=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=[],rQ[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=Ce.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]=dk.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=Ce.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=Ce.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=hi(ev.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}(ev),rQ={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 fD(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var nQ=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=Ie(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),ho(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:ah(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return yk(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}(gk);function Sk(r){r.registerComponentModel(eQ),r.registerComponentView(nQ),mk(r)}function aQ(r){Lt(_k),Lt(Sk)}var iQ={label:{enabled:!0},decal:{show:!1}},cD=zt(),oQ={};function sQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=yt(iQ);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)),cD(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=Yy(h.ecModel,h.name,oQ,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var p=h.getRawData(),d={},g=cD(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=Yy(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"},fQ=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):wV(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}(),cQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),hQ=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){hs(L,R)&&hs(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 Zm(r,t,e,n,a,i,o,s,l,u){if(hs(r,e)&&hs(t,n)&&hs(a,o)&&hs(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=[];ri(r,e,a,o,.5,C),ri(t,n,i,s,.5,A),Zm(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),Zm(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function AQ(r,t){var e=Xm(r),n=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),c=bk([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;va,o=bk([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 IQ(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 Jo(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function LQ(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),LQ(t,u,f)}function rv(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);rv(r,i[0],a,n),rv(r,i[1],e-a,n)}return n}function PQ(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 iv(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:FQ(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 Ck(r){return kQ(r.path,r.count)}function qm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function GQ(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 WQ={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;SD(r)&&(u=r,f=t),SD(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(nv(T))c({many:[T],one:C},!0,_,S,!0);else{var A=s?dt({delay:s(_,S)},l):l;D1(T,C,A),i(T,C,T,C,A)}}else for(var M=dt({dividePath:WQ[e],individualDelay:s&&function(B,N,F,U){return s(B+_,S)}},l),I=m?GQ(x,w,M):HQ(w,x,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,O=0;Ot.length,v=u?xD(f,u):xD(h?t:r,[h?r:t]),p=0,d=0;dAk))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 AD(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function DD(r){return W(r)?r.sort().join(","):r}function Va(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function KQ(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=AD(i),f=DD(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=AD(i),u=DD(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Va(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Va(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:Va(d.data),data:d.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Va(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:Va(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Va(s)})}}}}),e}function MD(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Va(t.oldData[s]),groupIdDim:o.dimension})}),D(qt(r.to),function(o){var s=MD(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Va(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Dk(a,i,n)}function QQ(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;st.status),n=Ea(null),a=Ea(null),i=Ea(null),o=Ea(null);let s=[];const l=Ea("#22c55e"),u=Ea("0"),f=He(()=>JQ(e.value.meta.os.name,e.value.meta.os.version)),c=He(()=>ID(e.value.hardware.mem.used,e.value.hardware.mem.total)),h=He(()=>e.value.hardware.swap.total>0?ID(e.value.hardware.swap.used,e.value.hardware.swap.total):"N/A");function v(){const p=ac(n.value),d=ac(a.value),g=ac(i.value),y=ac(o.value),m={color:"rgba(0, 0, 0, 0.8)",fontSize:13},_=["65%","90%"],S=["#4c4c4c","#e3e3e3"],b=["#4c4c4c","#bababa"];function x(){const w=Date.now()/1e3-e.value.meta.observed_at;u.value=w.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(),w>30&&(l.value="#ff4d4f"),p.setOption({color:S,title:{text:e.value.hardware.cpu.percent+"%",left:"center",top:"center",textStyle:m},series:[{type:"pie",radius:_,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:He(()=>[{value:e.value.hardware.cpu.percent},{value:100-e.value.hardware.cpu.percent}]).value}]}),d.setOption({color:S,title:{text:`${(e.value.hardware.mem.used/e.value.hardware.mem.total*100).toFixed(1)}%`,left:"center",top:"center",textStyle:m},series:[{type:"pie",radius:_,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}]}]}),g.setOption({color:S,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:m},series:[{type:"pie",radius:_,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}]}]}),y.setOption({color:b,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:s.map(T=>T[0]),axisLabel:{formatter:function(T){return eJ(T,!0)}}}],yAxis:[{type:"value",axisLabel:{formatter:function(T){return console.log(T),Mk(T,null,"b")}}}],series:[{name:"Up",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(T=>T[1])},{name:"Down",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(T=>T[2])}]})}x(),Kl(()=>e.value,()=>{x()})}return v0(()=>{v()}),(p,d)=>(Ql(),lh("div",rJ,[Xt("div",nJ,[Xt("div",aJ,[Xt("span",null,wn(t.status.meta.name),1)]),Xt("div",iJ,[Xt("div",oJ,wn(u.value)+"s ago",1),Xt("div",{class:"dot",style:fv([{backgroundColor:l.value},{height:"15px",width:"15px","border-radius":"50%"}])},null,4)])]),Xt("div",sJ,[Xt("div",lJ,[Xt("img",{class:"icon",src:f.value.icon,alt:"system"},null,8,uJ),Xt("span",null,wn(f.value.name),1)]),Xt("div",fJ,[d[0]||(d[0]=Xt("img",{class:"icon",src:oV,alt:"system"},null,-1)),Xt("span",null,wn(t.status.meta.location),1)])]),Xt("div",cJ,[Xt("div",hJ,[Xt("div",{class:"chart",ref_key:"cpuChartRef",ref:n},null,512),d[1]||(d[1]=Xt("div",{class:"hw-title"},"CPU",-1)),Xt("div",vJ,wn(e.value.hardware.cpu.cores)+"C "+wn(e.value.hardware.cpu.logics)+"T",1)]),Xt("div",pJ,[Xt("div",{class:"chart",ref_key:"memoryChartRef",ref:a},null,512),d[2]||(d[2]=Xt("div",{class:"hw-title"},"Mem",-1)),Xt("div",dJ,wn(c.value),1)]),Xt("div",gJ,[Xt("div",{class:"chart",ref_key:"swapChartRef",ref:i},null,512),d[3]||(d[3]=Xt("div",{class:"hw-title"},"Swap",-1)),Xt("div",yJ,wn(h.value),1)])]),Xt("div",mJ,[Xt("div",{class:"net-chart",ref_key:"netChartRef",ref:o},null,512)])]))}}),SJ=_v(_J,[["__scopeId","data-v-f7d26c86"]]),xJ={class:"grid-container"},bJ=tf({__name:"Home",setup(r){const t=Ea({});return v0(async()=>{t.value=await CS(),console.log("mounted");const e=setInterval(async()=>{t.value=await CS(),console.log("refresh")},1e3);p0(()=>{clearInterval(e),console.log("unmounted")})}),(e,n)=>(Ql(),lh("div",xJ,[(Ql(!0),lh(en,null,FO(t.value,(a,i)=>(Ql(),gN(SJ,{class:"grid-item",key:i,status:a},null,8,["status"]))),128))]))}}),wJ=_v(bJ,[["__scopeId","data-v-6bf3b93e"]]),TJ={};function CJ(r,t){return" Test "}const AJ=_v(TJ,[["render",CJ]]),DJ=[{path:"/",name:"主页",component:wJ},{path:"/test",name:"测试",component:AJ}],MJ=nV({history:EB("/"),routes:DJ}),Ik=QN(rB);Ik.use(MJ);Ik.mount("#app"); diff --git a/api/frontend/web/icon.svg b/api/frontend/web/icon.svg new file mode 100644 index 0000000..2bce659 --- /dev/null +++ b/api/frontend/web/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/api/frontend/web/index.html b/api/frontend/web/index.html new file mode 100644 index 0000000..e816e41 --- /dev/null +++ b/api/frontend/web/index.html @@ -0,0 +1,14 @@ + + + + + + + Server Status + + + + +
+ + diff --git a/api/frontend/web/svg/location.svg b/api/frontend/web/svg/location.svg new file mode 100644 index 0000000..6a22095 --- /dev/null +++ b/api/frontend/web/svg/location.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/api/frontend/web/svg/system-arch.svg b/api/frontend/web/svg/system-arch.svg new file mode 100644 index 0000000..835466d --- /dev/null +++ b/api/frontend/web/svg/system-arch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/api/frontend/web/svg/system-debian.svg b/api/frontend/web/svg/system-debian.svg new file mode 100644 index 0000000..2405bcd --- /dev/null +++ b/api/frontend/web/svg/system-debian.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/api/frontend/web/svg/system-linux.svg b/api/frontend/web/svg/system-linux.svg new file mode 100644 index 0000000..d6adcc4 --- /dev/null +++ b/api/frontend/web/svg/system-linux.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/api/frontend/web/svg/system-opensuse.svg b/api/frontend/web/svg/system-opensuse.svg new file mode 100644 index 0000000..d79d20f --- /dev/null +++ b/api/frontend/web/svg/system-opensuse.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/api/frontend/web/svg/system-ubuntu.svg b/api/frontend/web/svg/system-ubuntu.svg new file mode 100644 index 0000000..9a974a1 --- /dev/null +++ b/api/frontend/web/svg/system-ubuntu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/api/frontend/web/svg/system-windows.svg b/api/frontend/web/svg/system-windows.svg new file mode 100644 index 0000000..58263d9 --- /dev/null +++ b/api/frontend/web/svg/system-windows.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/api/frontend/web/svg/system.svg b/api/frontend/web/svg/system.svg new file mode 100644 index 0000000..372577e --- /dev/null +++ b/api/frontend/web/svg/system.svg @@ -0,0 +1 @@ + \ No newline at end of file