diff --git a/web/apiroot b/web/apiroot new file mode 100644 index 0000000..aa352f1 --- /dev/null +++ b/web/apiroot @@ -0,0 +1 @@ +http://127.0.0.1:8088 \ No newline at end of file diff --git a/web/assets/index-B8yPNO6K.js b/web/assets/index-B8yPNO6K.js new file mode 100644 index 0000000..5dce989 --- /dev/null +++ b/web/assets/index-B8yPNO6K.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 Zm(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const se={},ds=[],En=()=>{},Ek=()=>!1,sv=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),qm=r=>r.startsWith("onUpdate:"),Ee=Object.assign,Km=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},kk=Object.prototype.hasOwnProperty,jt=(r,t)=>kk.call(r,t),Nt=Array.isArray,gs=r=>lv(r)==="[object Map]",ID=r=>lv(r)==="[object Set]",Bt=r=>typeof r=="function",Se=r=>typeof r=="string",li=r=>typeof r=="symbol",ue=r=>r!==null&&typeof r=="object",LD=r=>(ue(r)||Bt(r))&&Bt(r.then)&&Bt(r.catch),PD=Object.prototype.toString,lv=r=>PD.call(r),Ok=r=>lv(r).slice(8,-1),RD=r=>lv(r)==="[object Object]",jm=r=>Se(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Kl=Zm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),uv=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},Nk=/-(\w)/g,Ur=uv(r=>r.replace(Nk,(t,e)=>e?e.toUpperCase():"")),Bk=/\B([A-Z])/g,Co=uv(r=>r.replace(Bk,"-$1").toLowerCase()),fv=uv(r=>r.charAt(0).toUpperCase()+r.slice(1)),sp=uv(r=>r?`on${fv(r)}`:""),Ja=(r,t)=>!Object.is(r,t),lp=(r,...t)=>{for(let e=0;e{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},Vk=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let L1;const kD=()=>L1||(L1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qm(r){if(Nt(r)){const t={};for(let e=0;e{if(e){const n=e.split(Fk);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Jm(r){let t="";if(Se(r))t=r;else if(Nt(r))for(let e=0;e!!(r&&r.__v_isRef===!0),Yi=r=>Se(r)?r:r==null?"":Nt(r)||ue(r)&&(r.toString===PD||!Bt(r.toString))?ND(r)?Yi(r.value):JSON.stringify(r,BD,2):String(r),BD=(r,t)=>ND(t)?BD(r,t.value):gs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,a],i)=>(e[up(n,i)+" =>"]=a,e),{})}:ID(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>up(e))}:li(t)?up(t):ue(t)&&!Nt(t)&&!RD(t)?String(t):t,up=(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 $k{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(;us;){let t=us,e;for(;t;)t.flags&1||(t.flags&=-9),t=t.next;for(t=us,us=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 GD(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function HD(r){let t,e=r.depsTail,n=e;for(;n;){const a=n.prevDep;n.version===-1?(n===e&&(e=a),r0(n),Xk(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=a}r.deps=t,r.depsTail=e}function $g(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(WD(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function WD(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===_u))return;r.globalVersion=_u;const t=r.dep;if(r.flags|=2,t.version>0&&!r.isSSR&&r.deps&&!$g(r)){r.flags&=-3;return}const e=oe,n=sn;oe=r,sn=!0;try{GD(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{oe=e,sn=n,HD(r),r.flags&=-3}}function r0(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)r0(i,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function Xk(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let sn=!0;const UD=[];function ui(){UD.push(sn),sn=!1}function fi(){const r=UD.pop();sn=r===void 0?!0:r}function P1(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=oe;oe=void 0;try{t()}finally{oe=e}}}let _u=0;class Zk{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 n0{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(!oe||!sn||oe===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==oe)e=this.activeLink=new Zk(oe,this),oe.deps?(e.prevDep=oe.depsTail,oe.depsTail.nextDep=e,oe.depsTail=e):oe.deps=oe.depsTail=e,$D(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=oe.depsTail,e.nextDep=void 0,oe.depsTail.nextDep=e,oe.depsTail=e,oe.deps===e&&(oe.deps=n)}return e}trigger(t){this.version++,_u++,this.notify(t)}notify(t){t0();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{e0()}}}function $D(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)$D(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const Yg=new WeakMap,io=Symbol(""),Xg=Symbol(""),Su=Symbol("");function We(r,t,e){if(sn&&oe){let n=Yg.get(r);n||Yg.set(r,n=new Map);let a=n.get(e);a||(n.set(e,a=new n0),a.target=r,a.map=n,a.key=e),a.track()}}function ea(r,t,e,n,a,i){const o=Yg.get(r);if(!o){_u++;return}const s=l=>{l&&l.trigger()};if(t0(),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===Su||!li(h)&&h>=f)&&s(c)})}else switch(e!==void 0&&s(o.get(e)),u&&s(o.get(Su)),t){case"add":l?u&&s(o.get("length")):(s(o.get(io)),gs(r)&&s(o.get(Xg)));break;case"delete":l||(s(o.get(io)),gs(r)&&s(o.get(Xg)));break;case"set":gs(r)&&s(o.get(io));break}}e0()}function ko(r){const t=Qt(r);return t===r?t:(We(t,"iterate",Su),Hr(r)?t:t.map(Fe))}function cv(r){return We(r=Qt(r),"iterate",Su),r}const qk={__proto__:null,[Symbol.iterator](){return cp(this,Symbol.iterator,Fe)},concat(...r){return ko(this).concat(...r.map(t=>Nt(t)?ko(t):t))},entries(){return cp(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 hp(this,"includes",r)},indexOf(...r){return hp(this,"indexOf",r)},join(r){return ko(this).join(r)},lastIndexOf(...r){return hp(this,"lastIndexOf",r)},map(r,t){return $n(this,"map",r,t,void 0,arguments)},pop(){return il(this,"pop")},push(...r){return il(this,"push",r)},reduce(r,...t){return R1(this,"reduce",r,t)},reduceRight(r,...t){return R1(this,"reduceRight",r,t)},shift(){return il(this,"shift")},some(r,t){return $n(this,"some",r,t,void 0,arguments)},splice(...r){return il(this,"splice",r)},toReversed(){return ko(this).toReversed()},toSorted(r){return ko(this).toSorted(r)},toSpliced(...r){return ko(this).toSpliced(...r)},unshift(...r){return il(this,"unshift",r)},values(){return cp(this,"values",Fe)}};function cp(r,t,e){const n=cv(r),a=n[t]();return n!==r&&!Hr(r)&&(a._next=a.next,a.next=()=>{const i=a._next();return i.value&&(i.value=e(i.value)),i}),a}const Kk=Array.prototype;function $n(r,t,e,n,a,i){const o=cv(r),s=o!==r&&!Hr(r),l=o[t];if(l!==Kk[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&&(Hr(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 hp(r,t,e){const n=Qt(r);We(n,"iterate",Su);const a=n[t](...e);return(a===-1||a===!1)&&s0(e[0])?(e[0]=Qt(e[0]),n[t](...e)):a}function il(r,t,e=[]){ui(),t0();const n=Qt(r)[t].apply(r,e);return e0(),fi(),n}const jk=Zm("__proto__,__v_isRef,__isVue"),YD=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=Qt(this);return We(t,"has",r),t.hasOwnProperty(r)}class XD{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?cO:jD:i?KD:qD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Nt(t);if(!a){let l;if(o&&(l=qk[e]))return l;if(e==="hasOwnProperty")return Qk}const s=Reflect.get(t,e,He(t)?t:n);return(li(e)?YD.has(e):jk(e))||(a||We(t,"get",e),i)?s:He(s)?o&&jm(e)?s:s.value:ue(s)?a?JD(s):vv(s):s}}class ZD extends XD{constructor(t=!1){super(!1,t)}set(t,e,n,a){let i=t[e];if(!this._isShallow){const l=yo(i);if(!Hr(n)&&!yo(n)&&(i=Qt(i),n=Qt(n)),!Nt(t)&&He(i)&&!He(n))return l?!1:(i.value=n,!0)}const o=Nt(t)&&jm(e)?Number(e)r,hv=r=>Reflect.getPrototypeOf(r);function Df(r,t,e=!1,n=!1){r=r.__v_raw;const a=Qt(r),i=Qt(t);e||(Ja(t,i)&&We(a,"get",t),We(a,"get",i));const{has:o}=hv(a),s=n?a0:e?l0: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 Mf(r,t=!1){const e=this.__v_raw,n=Qt(e),a=Qt(r);return t||(Ja(r,a)&&We(n,"has",r),We(n,"has",a)),r===a?e.has(r):e.has(r)||e.has(a)}function If(r,t=!1){return r=r.__v_raw,!t&&We(Qt(r),"iterate",io),Reflect.get(r,"size",r)}function E1(r,t=!1){!t&&!Hr(r)&&!yo(r)&&(r=Qt(r));const e=Qt(this);return hv(e).has.call(e,r)||(e.add(r),ea(e,"add",r,r)),this}function k1(r,t,e=!1){!e&&!Hr(t)&&!yo(t)&&(t=Qt(t));const n=Qt(this),{has:a,get:i}=hv(n);let o=a.call(n,r);o||(r=Qt(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=Qt(this),{has:e,get:n}=hv(t);let a=e.call(t,r);a||(r=Qt(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=Qt(this),t=r.size!==0,e=r.clear();return t&&ea(r,"clear",void 0,void 0),e}function Lf(r,t){return function(n,a){const i=this,o=i.__v_raw,s=Qt(o),l=t?a0:r?l0:Fe;return!r&&We(s,"iterate",io),o.forEach((u,f)=>n.call(a,l(u),l(f),i))}}function Pf(r,t,e){return function(...n){const a=this.__v_raw,i=Qt(a),o=gs(i),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=a[r](...n),f=e?a0:t?l0:Fe;return!t&&We(i,"iterate",l?Xg:io),{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 xa(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function nO(){const r={get(i){return Df(this,i)},get size(){return If(this)},has:Mf,add:E1,set:k1,delete:O1,clear:N1,forEach:Lf(!1,!1)},t={get(i){return Df(this,i,!1,!0)},get size(){return If(this)},has:Mf,add(i){return E1.call(this,i,!0)},set(i,o){return k1.call(this,i,o,!0)},delete:O1,clear:N1,forEach:Lf(!1,!0)},e={get(i){return Df(this,i,!0)},get size(){return If(this,!0)},has(i){return Mf.call(this,i,!0)},add:xa("add"),set:xa("set"),delete:xa("delete"),clear:xa("clear"),forEach:Lf(!0,!1)},n={get(i){return Df(this,i,!0,!0)},get size(){return If(this,!0)},has(i){return Mf.call(this,i,!0)},add:xa("add"),set:xa("set"),delete:xa("delete"),clear:xa("clear"),forEach:Lf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=Pf(i,!1,!1),e[i]=Pf(i,!0,!1),t[i]=Pf(i,!1,!0),n[i]=Pf(i,!0,!0)}),[r,e,t,n]}const[aO,iO,oO,sO]=nO();function i0(r,t){const e=t?r?sO:oO:r?iO:aO;return(n,a,i)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(jt(e,a)&&a in n?e:n,a,i)}const lO={get:i0(!1,!1)},uO={get:i0(!1,!0)},fO={get:i0(!0,!1)};const qD=new WeakMap,KD=new WeakMap,jD=new WeakMap,cO=new WeakMap;function hO(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vO(r){return r.__v_skip||!Object.isExtensible(r)?0:hO(Ok(r))}function vv(r){return yo(r)?r:o0(r,!1,tO,lO,qD)}function QD(r){return o0(r,!1,rO,uO,KD)}function JD(r){return o0(r,!0,eO,fO,jD)}function o0(r,t,e,n,a){if(!ue(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const i=a.get(r);if(i)return i;const o=vO(r);if(o===0)return r;const s=new Proxy(r,o===2?n:e);return a.set(r,s),s}function ys(r){return yo(r)?ys(r.__v_raw):!!(r&&r.__v_isReactive)}function yo(r){return!!(r&&r.__v_isReadonly)}function Hr(r){return!!(r&&r.__v_isShallow)}function s0(r){return r?!!r.__v_raw:!1}function Qt(r){const t=r&&r.__v_raw;return t?Qt(t):r}function pO(r){return!jt(r,"__v_skip")&&Object.isExtensible(r)&&ED(r,"__v_skip",!0),r}const Fe=r=>ue(r)?vv(r):r,l0=r=>ue(r)?JD(r):r;function He(r){return r?r.__v_isRef===!0:!1}function fs(r){return tM(r,!1)}function dO(r){return tM(r,!0)}function tM(r,t){return He(r)?r:new gO(r,t)}class gO{constructor(t,e){this.dep=new n0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Qt(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||Hr(t)||yo(t);t=n?t:Qt(t),Ja(t,e)&&(this._rawValue=t,this._value=n?t:Fe(t),this.dep.trigger())}}function oo(r){return He(r)?r.value:r}const yO={get:(r,t,e)=>t==="__v_raw"?r:oo(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const a=r[t];return He(a)&&!He(e)?(a.value=e,!0):Reflect.set(r,t,e,n)}};function eM(r){return ys(r)?r:new Proxy(r,yO)}class mO{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new n0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_u-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&oe!==this)return FD(this),!0}get value(){const t=this.dep.track();return WD(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function _O(r,t,e=!1){let n,a;return Bt(r)?n=r:(n=r.get,a=r.set),new mO(n,a,e)}const Rf={},sh=new WeakMap;let zi;function SO(r,t=!1,e=zi){if(e){let n=sh.get(e);n||sh.set(e,n=[]),n.push(r)}}function xO(r,t,e=se){const{immediate:n,deep:a,once:i,scheduler:o,augmentJob:s,call:l}=e,u=S=>a?S:Hr(S)||a===!1||a===0?za(S,1):za(S);let f,c,h,v,p=!1,d=!1;if(He(r)?(c=()=>r.value,p=Hr(r)):ys(r)?(c=()=>u(r),p=!0):Nt(r)?(d=!0,p=r.some(S=>ys(S)||Hr(S)),c=()=>r.map(S=>{if(He(S))return S.value;if(ys(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=Yk(),y=()=>{f.stop(),g&&Km(g.effects,f)};if(i&&t){const S=t;t=(...b)=>{S(...b),y()}}let m=d?new Array(r.length).fill(Rf):Rf;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===Rf?void 0:d&&m[0]===Rf?[]:m,v];l?l(t,3,w):t(...w),m=b}finally{zi=x}}}else f.run()};return s&&s(_),f=new VD(c),f.scheduler=o?()=>o(_,!1):_,v=S=>SO(S,!1,f),h=f.onStop=()=>{const S=sh.get(f);if(S){if(l)l(S,4);else for(const b of S)b();sh.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||!ue(r)||r.__v_skip||(e=e||new Set,e.has(r)))return r;if(e.add(r),t--,He(r))za(r.value,t,e);else if(Nt(r))for(let n=0;n{za(n,t,e)});else if(RD(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 ef(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=ef(r,t,e,n);return a&&LD(a)&&a.catch(i=>{pv(i,t,e)}),a}if(Nt(r)){const a=[];for(let i=0;i>>1,a=Qe[n],i=bu(a);i=bu(e)?Qe.push(r):Qe.splice(wO(t),0,r),r.flags|=1,aM()}}function aM(){!xu&&!Zg&&(Zg=!0,u0=rM.then(oM))}function TO(r){Nt(r)?ms.push(...r):ka&&r.id===-1?ka.splice(rs+1,0,r):r.flags&1||(ms.push(r),r.flags|=1),aM()}function B1(r,t,e=xu?Tn+1:0){for(;ebu(e)-bu(n));if(ms.length=0,ka){ka.push(...t);return}for(ka=t,rs=0;rsr.id==null?r.flags&2?-1:1/0:r.id;function oM(r){Zg=!1,xu=!0;try{for(Tn=0;Tn{n._d&&Y1(-1);const i=lh(t);let o;try{o=r(...a)}finally{lh(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 c0(r,t){r.shapeFlag&6&&r.component?(r.transition=t,c0(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 Fs(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 qg(r,t,e,n,a=!1){if(Nt(r)){r.forEach((p,d)=>qg(p,t&&(Nt(t)?t[d]:t),e,n,a));return}if(jl(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===se?s.refs={}:s.refs,c=s.setupState,h=Qt(c),v=c===se?()=>!1:p=>jt(h,p);if(u!=null&&u!==l&&(Se(u)?(f[u]=null,v(u)&&(c[u]=null)):He(u)&&(u.value=null)),Bt(l))ef(l,s,12,[o,f]);else{const p=Se(l),d=He(l);if(p||d){const g=()=>{if(r.f){const y=p?v(l)?c[l]:f[l]:l.value;a?Nt(y)&&Km(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 jl=r=>!!r.type.__asyncLoader,fM=r=>r.type.__isKeepAlive;function DO(r,t){cM(r,"a",t)}function MO(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)&&IO(n,t,e,a),a=a.parent}}function IO(r,t,e,n){const a=dv(t,r,n,!0);v0(()=>{Km(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=rf(e),l=Nn(t,e,r,o);return s(),fi(),l});return n?a.unshift(i):a.push(i),i}}const ya=r=>(t,e=Ge)=>{(!mv||r==="sp")&&dv(r,(...n)=>t(...n),e)},LO=ya("bm"),h0=ya("m"),PO=ya("bu"),RO=ya("u"),EO=ya("bum"),v0=ya("um"),kO=ya("sp"),OO=ya("rtg"),NO=ya("rtc");function BO(r,t=Ge){dv("ec",r,t)}const VO="components";function hM(r,t){return FO(VO,r,!0,t)||r}const zO=Symbol.for("v-ndc");function FO(r,t,e=!0,n=!1){const a=rn||Ge;if(a){const i=a.type;{const s=AN(i,!1);if(s&&(s===t||s===Ur(t)||s===fv(Ur(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[Ur(t)]||r[fv(Ur(t))])}function p0(r,t,e,n){let a;const i=e,o=Nt(r);if(o||Se(r)){const s=o&&ys(r);let l=!1;s&&(l=!Hr(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?kM(r)?m0(r):Kg(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=>Kg(r.parent),$root:r=>Kg(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>d0(r),$forceUpdate:r=>r.f||(r.f=()=>{f0(r.update)}),$nextTick:r=>r.n||(r.n=nM.bind(r.proxy)),$watch:r=>sN.bind(r)}),vp=(r,t)=>r!==se&&!r.__isScriptSetup&&jt(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(vp(n,t))return o[t]=1,n[t];if(a!==se&&jt(a,t))return o[t]=2,a[t];if((u=r.propsOptions[0])&&jt(u,t))return o[t]=3,i[t];if(e!==se&&jt(e,t))return o[t]=4,e[t];jg&&(o[t]=0)}}const f=Ql[t];let c,h;if(f)return t==="$attrs"&&We(r.attrs,"get",""),f(r);if((c=s.__cssModules)&&(c=c[t]))return c;if(e!==se&&jt(e,t))return o[t]=4,e[t];if(h=l.config.globalProperties,jt(h,t))return h[t]},set({_:r},t,e){const{data:n,setupState:a,ctx:i}=r;return vp(a,t)?(a[t]=e,!0):n!==se&&jt(n,t)?(n[t]=e,!0):jt(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!==se&&jt(r,o)||vp(t,o)||(s=i[0])&&jt(s,o)||jt(n,o)||jt(Ql,o)||jt(a.config.globalProperties,o)},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:jt(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 jg=!0;function HO(r){const t=d0(r),e=r.proxy,n=r.ctx;jg=!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);ue(B)&&(r.data=vv(B))}if(jg=!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=xr({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)vM(s[B],n,e,B);if(l){const B=Bt(l)?l.call(e):l;Reflect.ownKeys(B).forEach(N=>{Bc(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(LO,c),O(h0,h),O(PO,v),O(RO,p),O(DO,d),O(MO,g),O(BO,T),O(NO,x),O(OO,w),O(EO,m),O(v0,S),O(kO,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=Qg(r));for(const n in r){const a=r[n];let i;ue(a)?"default"in a?i=ra(a.from||n,a.default,!0):i=ra(a.from||n):i=ra(a),He(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 vM(r,t,e,n){let a=n.includes(".")?DM(e,n):()=>e[n];if(Se(r)){const i=t[r];Bt(i)&&Jl(a,i)}else if(Bt(r))Jl(a,r.bind(e));else if(ue(r))if(Nt(r))r.forEach(i=>vM(i,t,e,n));else{const i=Bt(r.handler)?r.handler.bind(e):t[r.handler];Bt(i)&&Jl(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=>uh(l,u,o,!0)),uh(l,t,o)),ue(t)&&i.set(t,l),l}function uh(r,t,e,n=!1){const{mixins:a,extends:i}=t;i&&uh(r,i,e,!0),a&&a.forEach(o=>uh(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:Bl,computed:Bl,beforeCreate:Xe,created:Xe,beforeMount:Xe,mounted:Xe,beforeUpdate:Xe,updated:Xe,beforeDestroy:Xe,beforeUnmount:Xe,destroyed:Xe,unmounted:Xe,activated:Xe,deactivated:Xe,errorCaptured:Xe,serverPrefetch:Xe,components:Bl,directives:Bl,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 Bl(Qg(r),Qg(t))}function Qg(r){if(Nt(r)){const t={};for(let e=0;e1)return e&&Bt(t)?t.call(n&&n.proxy):t}}const dM={},gM=()=>Object.create(dM),yM=r=>Object.getPrototypeOf(r)===dM;function qO(r,t,e,n=!1){const a={},i=gM();r.propsDefaults=Object.create(null),mM(r,t,a,i);for(const o in r.propsOptions[0])o in a||(a[o]=void 0);e?r.props=n?a:QD(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=Qt(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]=_M(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 ue(r)&&n.set(r,ds),ds;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=lM((...a)=>g0(t(...a)),e);return n._c=!1,n},xM=(r,t,e)=>{const n=r._ctx;for(const a in r){if(SM(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}}},bM=(r,t)=>{const e=g0(t);r.slots.default=()=>e},wM=(r,t,e)=>{for(const n in t)(e||n!=="_")&&(r[n]=t[n])},JO=(r,t,e)=>{const n=r.slots=gM();if(r.vnode.shapeFlag&32){const a=t._;a?(wM(n,t,e),e&&ED(n,"_",a,!0)):xM(t,n)}else t&&bM(r,t)},tN=(r,t,e)=>{const{vnode:n,slots:a}=r;let i=!0,o=se;if(n.shapeFlag&32){const s=t._;s?e&&s===1?i=!1:wM(a,t,e):(i=!t.$stable,xM(t,a)),o=t}else t&&(bM(r,t),o={default:1});if(i)for(const s in a)!SM(s)&&o[s]==null&&delete a[s]},mr=pN;function eN(r){return rN(r)}function rN(r,t){const e=kD();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&&!ol(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 wu:y(E,k,z,q);break;case gp:E==null&&m(k,z,q,ot);break;case Sr:I(E,k,z,q,Y,tt,ot,lt,at);break;default:pt&1?b(E,k,z,q,Y,tt,ot,lt,at):pt&6?L(E,k,z,q,Y,tt,ot,lt,at):(pt&64||pt&128)&&rt.process(E,k,z,q,Y,tt,ot,lt,at,j)}At!=null&&Y&&qg(At,E&&E.ref,tt,k||E,!k)},g=(E,k,z,q)=>{if(E==null)n(k.el=s(k.children),z,q);else{const Y=k.el=E.el;k.children!==E.children&&u(Y,k.children)}},y=(E,k,z,q)=>{E==null?n(k.el=l(k.children||""),z,q):k.el=E.el},m=(E,k,z,q)=>{[E.el,E.anchor]=p(E.children,k,z,q,E.el,E.anchor)},_=({el:E,anchor:k},z,q)=>{let Y;for(;E&&E!==k;)Y=h(E),n(E,z,q),E=Y;n(k,z,q)},S=({el:E,anchor:k})=>{let z;for(;E&&E!==k;)z=h(E),a(E),E=z;a(k)},b=(E,k,z,q,Y,tt,ot,lt,at)=>{k.type==="svg"?ot="svg":k.type==="math"&&(ot="mathml"),E==null?x(k,z,q,Y,tt,ot,lt,at):C(E,k,Y,tt,ot,lt,at)},x=(E,k,z,q,Y,tt,ot,lt)=>{let at,rt;const{props:At,shapeFlag:pt,transition:wt,dirs:Et}=E;if(at=E.el=o(E.type,tt,At&&At.is,At),pt&8?f(at,E.children):pt&16&&T(E.children,at,null,q,Y,pp(E,tt),ot,lt),Et&&vi(E,null,q,"created"),w(at,E,E.scopeId,ot,q),At){for(const ie in At)ie!=="value"&&!Kl(ie)&&i(at,ie,null,At[ie],tt,q);"value"in At&&i(at,"value",null,At.value,tt),(rt=At.onVnodeBeforeMount)&&gn(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&&gn(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||se,wt=k.props||se;let Et;if(z&&pi(z,!1),(Et=wt.onVnodeBeforeUpdate)&&gn(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,pp(k,Y),tt):ot||N(E,k,lt,null,z,q,pp(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 ie=0;ie<$t.length;ie++){const Jt=$t[ie],pr=pt[Jt],Ne=wt[Jt];(Ne!==pr||Jt==="value")&&i(lt,Jt,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&&gn(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!==se)for(const tt in k)!Kl(tt)&&!(tt in z)&&i(E,tt,k[tt],null,Y,q);for(const tt in z){if(Kl(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)&&TM(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=xN(E,q,Y);if(fM(E)&&(lt.ctx.renderer=j),bN(lt,!1,ot),lt.asyncDep){if(Y&&Y.registerDep(lt,O,ot),!E.el){const at=lt.subTree=hr(wu);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:ie}=E;{const dr=CM(E);if(dr){pt&&(pt.el=ie.el,B(E,pt,ot)),dr.asyncDep.then(()=>{E.isUnmounted||lt()});return}}let Jt=pt,pr;pi(E,!1),pt?(pt.el=ie.el,B(E,pt,ot)):pt=ie,wt&&lp(wt),(pr=pt.props&&pt.props.onVnodeBeforeUpdate)&&gn(pr,$t,pt,ie),pi(E,!0);const Ne=dp(E),qr=E.subTree;E.subTree=Ne,d(qr,Ne,c(qr.el),G(qr),E,Y,tt),pt.el=Ne.el,Jt===null&&vN(E,Ne.el),Et&&mr(Et,Y),(pr=pt.props&&pt.props.onVnodeUpdated)&&mr(()=>gn(pr,$t,pt,ie),Y)}else{let pt;const{el:wt,props:Et}=k,{bm:$t,m:ie,parent:Jt,root:pr,type:Ne}=E,qr=jl(k);if(pi(E,!1),$t&&lp($t),!qr&&(pt=Et&&Et.onVnodeBeforeMount)&&gn(pt,Jt,k),pi(E,!0),wt&&ct){const dr=()=>{E.subTree=dp(E),ct(wt,E.subTree,E,Y,null)};qr&&Ne.__asyncHydrate?Ne.__asyncHydrate(wt,E,dr):dr()}else{pr.ce&&pr.ce._injectChildStyle(Ne);const dr=E.subTree=dp(E);d(null,dr,z,q,E,Y,tt),k.el=dr.el}if(ie&&mr(ie,Y),!qr&&(pt=Et&&Et.onVnodeMounted)){const dr=k;mr(()=>gn(pt,Jt,dr),Y)}(k.shapeFlag&256||Jt&&jl(Jt.vnode)&&Jt.vnode.shapeFlag&256)&&E.a&&mr(E.a,Y),E.isMounted=!0,k=z=q=null}};E.scope.on();const at=E.effect=new VD(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=()=>f0(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||ds,k=k||ds;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(ol(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(ol(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,ie=new Map;for(rt=$t;rt<=wt;rt++){const gr=k[rt]=at?Oa(k[rt]):An(k[rt]);gr.key!=null&&ie.set(gr.key,rt)}let Jt,pr=0;const Ne=wt-$t+1;let qr=!1,dr=0;const al=new Array(Ne);for(rt=0;rt=Ne){Q(gr,Y,tt,!0);continue}let dn;if(gr.key!=null)dn=ie.get(gr.key);else for(Jt=$t;Jt<=wt;Jt++)if(al[Jt-$t]===0&&ol(gr,k[Jt])){dn=Jt;break}dn===void 0?Q(gr,Y,tt,!0):(al[dn-$t]=rt+1,dn>=dr?dr=dn:qr=!0,d(gr,k[dn],z,null,Y,tt,ot,lt,at),pr++)}const M1=qr?aN(al):ds;for(Jt=M1.length-1,rt=Ne-1;rt>=0;rt--){const gr=$t+rt,dn=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===Sr){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),ie=()=>{pt(tt,()=>{$t(),Et&&Et()})};wt?wt(tt,$t,ie):ie()}else n(tt,k,z)},Q=(E,k,z,q=!1,Y=!1)=>{const{type:tt,props:ot,ref:lt,children:at,dynamicChildren:rt,shapeFlag:At,patchFlag:pt,dirs:wt,cacheIndex:Et}=E;if(pt===-2&&(Y=!1),lt!=null&&qg(lt,null,z,E,!0),Et!=null&&(k.renderCache[Et]=void 0),At&256){k.ctx.deactivate(E);return}const $t=At&1&&wt,ie=!jl(E);let Jt;if(ie&&(Jt=ot&&ot.onVnodeBeforeUnmount)&&gn(Jt,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!==Sr||pt>0&&pt&64)?xt(rt,k,z,!1,!0):(tt===Sr&&pt&384||!Y&&At&16)&&xt(at,k,z),q&&ft(E)}(ie&&(Jt=ot&&ot.onVnodeUnmounted)||$t)&&mr(()=>{Jt&&gn(Jt,k,E),$t&&vi(E,null,k,"unmounted")},z)},ft=E=>{const{type:k,el:z,anchor:q,transition:Y}=E;if(k===Sr){ht(z,q);return}if(k===gp){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&&lp(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[CO];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(),iM(),$=!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 pp({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 TM(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 CM(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:CM(t)}function U1(r){if(r)for(let t=0;tra(iN);function Jl(r,t,e){return AM(r,t,e)}function AM(r,t,e=se){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():f0(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=xO(r,t,s);return l&&l.push(c),c}function sN(r,t,e){const n=this.proxy,a=Se(r)?r.includes(".")?DM(n,r):()=>n[r]:r.bind(n,n);let i;Bt(t)?i=t:(i=t.handler,e=t);const o=rf(this),s=AM(a,i.bind(n),e);return o(),s}function DM(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[`${Ur(t)}Modifiers`]||r[`${Co(t)}Modifiers`];function uN(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||se;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(Vk)));let s,l=n[s=sp(t)]||n[s=sp(Ur(t))];!l&&i&&(l=n[s=sp(Co(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 MM(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=MM(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?(ue(r)&&n.set(r,null),null):(Nt(i)?i.forEach(l=>o[l]=null):Ee(o,i),ue(r)&&n.set(r,o),o)}function gv(r,t){return!r||!sv(t)?!1:(t=t.slice(2).replace(/Once$/,""),jt(r,t[0].toLowerCase()+t.slice(1))||jt(r,Co(t))||jt(r,t))}function dp(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=lh(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){tu.length=0,pv(S,r,1),y=hr(wu)}let _=y;if(m&&d!==!1){const S=Object.keys(m),{shapeFlag:b}=_;S.length&&b&7&&(i&&S.some(qm)&&(m=cN(m,i)),_=As(_,m,!1,!0))}return e.dirs&&(_=As(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&c0(_,e.transition),y=_,lh(g),y}const fN=r=>{let t;for(const e in r)(e==="class"||e==="style"||sv(e))&&((t||(t={}))[e]=r[e]);return t},cN=(r,t)=>{const e={};for(const n in r)(!qm(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):TO(r)}const Sr=Symbol.for("v-fgt"),yv=Symbol.for("v-txt"),wu=Symbol.for("v-cmt"),gp=Symbol.for("v-stc"),tu=[];let wr=null;function nn(r=!1){tu.push(wr=r?null:[])}function dN(){tu.pop(),wr=tu[tu.length-1]||null}let Tu=1;function Y1(r){Tu+=r,r<0&&wr&&(wr.hasOnce=!0)}function LM(r){return r.dynamicChildren=Tu>0?wr||ds:null,dN(),Tu>0&&wr&&wr.push(r),r}function na(r,t,e,n,a,i){return LM(pe(r,t,e,n,a,i,!0))}function PM(r,t,e,n,a){return LM(hr(r,t,e,n,a,!0))}function fh(r){return r?r.__v_isVNode===!0:!1}function ol(r,t){return r.type===t.type&&r.key===t.key}const RM=({key:r})=>r??null,Vc=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?Se(r)||He(r)||Bt(r)?{i:rn,r,k:t,f:!!e}:r:null);function pe(r,t=null,e=null,n=0,a=null,i=r===Sr?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&RM(t),ref:t&&Vc(t),scopeId:sM,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),Tu>0&&!o&&wr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&wr.push(l),l}const hr=gN;function gN(r,t=null,e=null,n=0,a=null,i=!1){if((!r||r===zO)&&(r=wu),fh(r)){const s=As(r,t,!0);return e&&y0(s,e),Tu>0&&!i&&wr&&(s.shapeFlag&6?wr[wr.indexOf(r)]=s:wr.push(s)),s.patchFlag=-2,s}if(DN(r)&&(r=r.__vccOpts),t){t=yN(t);let{class:s,style:l}=t;s&&!Se(s)&&(t.class=Jm(s)),ue(l)&&(s0(l)&&!Nt(l)&&(l=Ee({},l)),t.style=Qm(l))}const o=Se(r)?1:IM(r)?128:AO(r)?64:ue(r)?4:Bt(r)?2:0;return pe(r,t,e,n,a,o,i,!0)}function yN(r){return r?s0(r)||yM(r)?Ee({},r):r:null}function As(r,t,e=!1,n=!1){const{props:a,ref:i,patchFlag:o,children:s,transition:l}=r,u=t?mN(a||{},t):a,f={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&RM(u),ref:t&&t.ref?e&&i?Nt(i)?i.concat(Vc(t)):[i,Vc(t)]:Vc(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!==Sr?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&&As(r.ssContent),ssFallback:r.ssFallback&&As(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return l&&n&&c0(f,l.clone(f)),f}function EM(r=" ",t=0){return hr(yv,null,r,t)}function An(r){return r==null||typeof r=="boolean"?hr(wu):Nt(r)?hr(Sr,null,r.slice()):fh(r)?Oa(r):hr(yv,null,String(r))}function Oa(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:As(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&&!yM(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=[EM(t)]):e=8);r.children=t,r.shapeFlag|=e}function mN(...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)}};ch=t("__VUE_INSTANCE_SETTERS__",e=>Ge=e),ty=t("__VUE_SSR_SETTERS__",e=>mv=e)}const rf=r=>{const t=Ge;return ch(r),r.scope.on(),()=>{r.scope.off(),ch(t)}},X1=()=>{Ge&&Ge.scope.off(),ch(null)};function kM(r){return r.vnode.shapeFlag&4}let mv=!1;function bN(r,t=!1,e=!1){t&&ty(t);const{props:n,children:a}=r.vnode,i=kM(r);qO(r,n,i,t),JO(r,a,e);const o=i?wN(r,t):void 0;return t&&ty(!1),o}function wN(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?CN(r):null,i=rf(r);ui();const o=ef(n,r,0,[r.props,a]);if(fi(),i(),LD(o)){if(jl(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 OM(r,t)}function Z1(r,t,e){Bt(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:ue(t)&&(r.setupState=eM(t)),OM(r,e)}let q1;function OM(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=rf(r);ui();try{HO(r)}finally{fi(),a()}}}const TN={get(r,t){return We(r,"get",""),r[t]}};function CN(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,TN),slots:r.slots,emit:r.emit,expose:t}}function m0(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(eM(pO(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 AN(r,t=!0){return Bt(r)?r.displayName||r.name:r.name||t&&r.__name}function DN(r){return Bt(r)&&"__vccOpts"in r}const xr=(r,t)=>_O(r,t,mv);function NM(r,t,e){const n=arguments.length;return n===2?ue(t)&&!Nt(t)?fh(t)?hr(r,null,[t]):hr(r,t):hr(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&fh(e)&&(e=[e]),hr(r,t,e))}const MN="3.5.10";/** +* @vue/runtime-dom v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ey;const K1=typeof window<"u"&&window.trustedTypes;if(K1)try{ey=K1.createPolicy("vue",{createHTML:r=>r})}catch{}const BM=ey?r=>ey.createHTML(r):r=>r,IN="http://www.w3.org/2000/svg",LN="http://www.w3.org/1998/Math/MathML",Kn=typeof document<"u"?document:null,j1=Kn&&Kn.createElement("template"),PN={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(IN,r):t==="mathml"?Kn.createElementNS(LN,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=BM(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]}},RN=Symbol("_vtc");function EN(r,t,e){const n=r[RN];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const Q1=Symbol("_vod"),kN=Symbol("_vsh"),ON=Symbol(""),NN=/(^|;)\s*display\s*:/;function BN(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&&zc(n,s,"")}else for(const o in t)e[o]==null&&zc(n,o,"");for(const o in e)o==="display"&&(i=!0),zc(n,o,e[o])}else if(a){if(t!==e){const o=n[ON];o&&(e+=";"+o),n.cssText=e,i=NN.test(e)}}else t&&r.removeAttribute("style");Q1 in r&&(r[Q1]=i?n.display:"",r[kN]&&(n.display="none"))}const J1=/\s*!important$/;function zc(r,t,e){if(Nt(e))e.forEach(n=>zc(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=VN(r,t);J1.test(e)?r.setProperty(Co(n),e.replace(J1,""),"important"):r[n]=e}}const tS=["Webkit","Moz","ms"],yp={};function VN(r,t){const e=yp[t];if(e)return e;let n=Ur(t);if(n!=="filter"&&n in r)return yp[t]=n;n=fv(n);for(let a=0;amp||(WN.then(()=>mp=0),mp=Date.now());function $N(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Nn(YN(n,e.value),t,5,[n])};return e.value=r,e.attached=UN(),e}function YN(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,XN=(r,t,e,n,a,i)=>{const o=a==="svg";t==="class"?EN(r,n,o):t==="style"?BN(r,e,n):sv(t)?qm(t)||GN(r,t,e,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ZN(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,Ur(t),n):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),rS(r,t,n,o))};function ZN(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 qN=Ee({patchProp:XN},PN);let sS;function KN(){return sS||(sS=eN(qN))}const jN=(...r)=>{const t=KN().createApp(...r),{mount:e}=t;return t.mount=n=>{const a=JN(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,QN(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function QN(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function JN(r){return Se(r)?document.querySelector(r):r}/*! + * vue-router v4.4.5 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const ns=typeof document<"u";function VM(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function tB(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&VM(r.default)}const te=Object.assign;function _p(r,t){const e={};for(const n in t){const a=t[n];e[n]=fn(a)?a.map(r):r(a)}return e}const eu=()=>{},fn=Array.isArray,zM=/#/g,eB=/&/g,rB=/\//g,nB=/=/g,aB=/\?/g,FM=/\+/g,iB=/%5B/g,oB=/%5D/g,GM=/%5E/g,sB=/%60/g,HM=/%7B/g,lB=/%7C/g,WM=/%7D/g,uB=/%20/g;function _0(r){return encodeURI(""+r).replace(lB,"|").replace(iB,"[").replace(oB,"]")}function fB(r){return _0(r).replace(HM,"{").replace(WM,"}").replace(GM,"^")}function ry(r){return _0(r).replace(FM,"%2B").replace(uB,"+").replace(zM,"%23").replace(eB,"%26").replace(sB,"`").replace(HM,"{").replace(WM,"}").replace(GM,"^")}function cB(r){return ry(r).replace(nB,"%3D")}function hB(r){return _0(r).replace(zM,"%23").replace(aB,"%3F")}function vB(r){return r==null?"":hB(r).replace(rB,"%2F")}function Cu(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const pB=/\/$/,dB=r=>r.replace(pB,"");function Sp(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=_B(n??t,e),{fullPath:n+(i&&"?")+i+o,path:n,query:a,hash:Cu(o)}}function gB(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 yB(r,t,e){const n=t.matched.length-1,a=e.matched.length-1;return n>-1&&n===a&&Ds(t.matched[n],e.matched[a])&&UM(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Ds(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function UM(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(!mB(r[e],t[e]))return!1;return!0}function mB(r,t){return fn(r)?uS(r,t):fn(t)?uS(t,r):r===t}function uS(r,t){return fn(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function _B(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 ba={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Au;(function(r){r.pop="pop",r.push="push"})(Au||(Au={}));var ru;(function(r){r.back="back",r.forward="forward",r.unknown=""})(ru||(ru={}));function SB(r){if(!r)if(ns){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),dB(r)}const xB=/^[^#]+#/;function bB(r,t){return r.replace(xB,"#")+t}function wB(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 _v=()=>({left:window.scrollX,top:window.scrollY});function TB(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=wB(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 ny=new Map;function CB(r,t){ny.set(r,t)}function AB(r){const t=ny.get(r);return ny.delete(r),t}let DB=()=>location.protocol+"//"+location.host;function $M(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 MB(r,t,e,n){let a=[],i=[],o=null;const s=({state:h})=>{const v=$M(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:Au.pop,direction:g?g>0?ru.forward:ru.back:ru.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(te({},h.state,{scroll:_v()}),"")}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?_v():null}}function IB(r){const{history:t,location:e}=window,n={value:$M(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:DB()+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=te({},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=te({},a.value,t.state,{forward:l,scroll:_v()});i(f.current,f,!0);const c=te({},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 LB(r){r=SB(r);const t=IB(r),e=MB(r,t.state,t.location,t.replace);function n(i,o=!0){o||e.pauseListeners(),history.go(i)}const a=te({location:"",base:r,go:n,createHref:bB.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 PB(r){return typeof r=="string"||r&&typeof r=="object"}function YM(r){return typeof r=="string"||typeof r=="symbol"}const XM=Symbol("");var hS;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(hS||(hS={}));function Ms(r,t){return te(new Error,{type:r,[XM]:!0},t)}function Yn(r,t){return r instanceof Error&&XM in r&&(t==null||!!(r.type&t))}const vS="[^/]+?",RB={sensitive:!1,strict:!1,start:!0,end:!0},EB=/[.+*?^${}()[\]/\\]/g;function kB(r,t){const e=te({},RB,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 ZM(r,t){let e=0;const n=r.score,a=t.score;for(;e0&&t[t.length-1]<0}const NB={type:0,value:""},BB=/[a-zA-Z0-9_]/;function VB(r){if(!r)return[[]];if(r==="/")return[[NB]];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(_)}:eu}function o(c){if(YM(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=WB(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 Ms(1,{location:c});g=v.record.name,p=te(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 Ms(1,{location:c,currentLocation:h});g=v.record.name,p=te({},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:HB(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:GB(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 GB(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 HB(r){return r.reduce((t,e)=>te(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 WB(r,t){let e=0,n=t.length;for(;e!==n;){const i=e+n>>1;ZM(r,t[i])<0?n=i:e=i+1}const a=UB(r);return a&&(n=t.lastIndexOf(a,n-1)),n}function UB(r){let t=r;for(;t=t.parent;)if(qM(t)&&ZM(r,t)===0)return t}function qM({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function $B(r){const t={};if(r===""||r==="?")return t;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let a=0;ai&&ry(i)):[n&&ry(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function YB(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=fn(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const XB=Symbol(""),SS=Symbol(""),S0=Symbol(""),KM=Symbol(""),ay=Symbol("");function sl(){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(Ms(4,{from:e,to:t})):h instanceof Error?l(h):PB(h)?l(Ms(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 xp(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(VM(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=tB(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(KM),n=xr(()=>{const l=oo(r.to);return t.resolve(l)}),a=xr(()=>{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(Ds.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(Ds.bind(null,l[u-2])):h}),i=xr(()=>a.value>-1&&jB(e.params,n.value.params)),o=xr(()=>a.value>-1&&a.value===e.matched.length-1&&UM(e.params,n.value.params));function s(l={}){return KB(l)?t[oo(r.replace)?"replace":"push"](oo(r.to)).catch(eu):Promise.resolve()}return{route:n,href:xr(()=>n.value.href),isActive:i,isExactActive:o,navigate:s}}const ZB=Fs({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=xr(()=>({[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:NM("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:a.value},i)}}}),qB=ZB;function KB(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 jB(r,t){for(const e in t){const n=t[e],a=r[e];if(typeof n=="string"){if(n!==a)return!1}else if(!fn(a)||a.length!==n.length||n.some((i,o)=>i!==a[o]))return!1}return!0}function bS(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const wS=(r,t,e)=>r??t??e,QB=Fs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=ra(ay),a=xr(()=>r.route||n.value),i=ra(SS,0),o=xr(()=>{let u=oo(i);const{matched:f}=a.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=xr(()=>a.value.matched[o.value]);Bc(SS,xr(()=>o.value+1)),Bc(XB,s),Bc(ay,a);const l=fs();return Jl(()=>[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||!Ds(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=NM(h,te({},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 JB=QB;function tV(r){const t=FB(r.routes,r),e=r.parseQuery||$B,n=r.stringifyQuery||_S,a=r.history,i=sl(),o=sl(),s=sl(),l=dO(ba);let u=ba;ns&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=_p.bind(null,G=>""+G),c=_p.bind(null,vB),h=_p.bind(null,Cu);function v(G,$){let K,j;return YM(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($=te({},$||l.value),typeof G=="string"){const k=Sp(e,G,$.path),z=t.resolve({path:k.path},$),q=a.createHref(k.fullPath);return te(k,z,{params:h(z.params),hash:Cu(k.hash),redirectedFrom:void 0,href:q})}let K;if(G.path!=null)K=te({},G,{path:Sp(e,G.path,$.path).path});else{const k=te({},G.params);for(const z in k)k[z]==null&&delete k[z];K=te({},G,{params:c(k)}),$.params=c($.params)}const j=t.resolve(K,$),J=G.hash||"";j.params=f(h(j.params));const ct=gB(n,te({},G,{hash:fB(J),path:j.path})),E=a.createHref(ct);return te({fullPath:ct,hash:J,query:n===_S?YB(G.query):G.query||{}},j,{redirectedFrom:void 0,href:E})}function m(G){return typeof G=="string"?Sp(e,G,l.value.path):te({},G)}function _(G,$){if(u!==G)return Ms(8,{from:$,to:G})}function S(G){return w(G)}function b(G){return S(te(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={}),te({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(te(m(k),{state:typeof k=="object"?te({},J,k.state):J,force:ct,replace:E}),$||K);const z=K;z.redirectedFrom=$;let q;return!ct&&yB(n,j,K)&&(q=Ms(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(te({replace:E},m(Y.to),{state:typeof Y.to=="object"?te({},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]=eV(G,$);K=xp(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=xp(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(fn(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=xp(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=$===ba,k=ns?history.state:{};K&&(j||E?a.replace(G.fullPath,te({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(te(J,{replace:!0}),j).catch(eu);return}u=j;const ct=l.value;ns&&CB(fS(ct.fullPath,K.delta),_v()),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===Au.pop&&a.go(-1,!1)}).catch(eu),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===Au.pop&&Yn(E,20)&&a.go(-1,!1)),M(j,ct,E)}).catch(eu)}))}let R=sl(),O=sl(),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!==ba?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(!ns||!J)return Promise.resolve();const ct=!K&&AB(fS(G.fullPath,0))||(j||!K)&&history.state&&history.state.scroll||null;return nM().then(()=>J(G,$,ct)).then(E=>E&&TB(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",JB),G.config.globalProperties.$router=$,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>oo(l)}),ns&&!ft&&l.value===ba&&(ft=!0,S(a.location).catch(J=>{}));const K={};for(const J in ba)Object.defineProperty(K,J,{get:()=>l.value[J],enumerable:!0});G.provide(S0,$),G.provide(KM,QD(K)),G.provide(ay,l);const j=G.unmount;ht.add(G),G.unmount=function(){ht.delete(G),ht.size<1&&(u=ba,L&&L(),L=null,l.value=ba,ft=!1,B=!1),j()}}};function xt(G){return G.reduce(($,K)=>$.then(()=>C(K)),Promise.resolve())}return Tt}function eV(r,t){const e=[],n=[],a=[],i=Math.max(t.matched.length,r.matched.length);for(let o=0;oDs(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Ds(u,l))||a.push(l))}return[e,n,a]}const rV="";async function CS(){return(await fetch(`${rV}/api/status`)).json()}const nV="/svg/location.svg",aV="/svg/system.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 iy=function(r,t){return iy=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])},iy(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");iy(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var iV=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),oV=function(){function r(){this.browser=new iV,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 oV;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):sV(navigator.userAgent,Rt);function sV(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,jM="sans-serif",ti=x0+"px "+jM,lV=20,uV=100,fV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function cV(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 RV(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 aI(r){return r.nodeName.toUpperCase()==="CANVAS"}var EV=/([&<>"'])/g,kV={"&":"&","<":"<",">":">",'"':""","'":"'"};function lr(r){return r==null?"":(r+"").replace(EV,function(t,e){return kV[e]})}var OV=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,wp=[],NV=Rt.browser.firefox&&+Rt.browser.version.split(".")[0]<39;function hy(r,t,e,n){return e=e||{},n?PS(r,t,e):NV&&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(aI(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(cy(wp,r,n,a)){e.zrX=wp[0],e.zrY=wp[1];return}}e.zrX=e.zrY=0}function M0(r){return r||window.event}function Er(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&&hy(r,o,t,e)}else{hy(r,t,t,e);var i=BV(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&OV.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function BV(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 vy(r,t,e,n){r.addEventListener(t,e,n)}function VV(r,t,e,n){r.removeEventListener(t,e,n)}var ua=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function RS(r){return r.which===2||r.which===3}var zV=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=FV(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Cr(){return[1,0,0,1,0,0]}function wv(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 ia(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 Do(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 Ws(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 GV(r){var t=Cr();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}(),kf=Math.min,Of=Math.max,di=new Ct,gi=new Ct,yi=new Ct,mi=new Ct,ll=new Ct,ul=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=kf(t.x,this.x),n=kf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Of(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Of(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=Cr();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=kf(di.x,gi.x,yi.x,mi.x),t.y=kf(di.y,gi.y,yi.y,mi.y);var l=Of(di.x,gi.x,yi.x,mi.x),u=Of(di.y,gi.y,yi.y,mi.y);t.width=l-t.x,t.height=u-t.y},r}(),iI="silent";function HV(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:WV}}function WV(){ua(this.event)}var UV=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}(Yr),fl=function(){function r(t,e){this.x=t,this.y=e}return r}(),$V=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Cp=new Mt(0,0,0,0),oI=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this)||this;return s._hovered=new fl(0,0),s.storage=e,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new UV,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new MV(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(D($V,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=sI(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 fl(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 fl(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=HV(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 fl(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)&&(Cp.copy(h.getBoundingRect()),h.transform&&Cp.applyTransform(h.transform),Cp.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 YV(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?iI:!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=YV(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==iI)){t.target=o;break}}}function sI(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var lI=32,cl=7;function XV(r){for(var t=0;r>=lI;)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 ZV(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 Ap(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 Dp(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 qV(r,t){var e=cl,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]=cl||w>=cl);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-Ap(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y=cl||C>=cl);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 br=1,Vl=2,as=4,BS=!1;function Mp(){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 KV=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)&&(Mp(),f.z=0),isNaN(f.z2)&&(Mp(),f.z2=0),isNaN(f.zlevel)&&(Mp(),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}(),ph;ph=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 au={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-au.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?au.bounceIn(r*2)*.5:au.bounceOut(r*2-1)*.5+.5}},Nf=Math.pow,qa=Math.sqrt,dh=1e-8,uI=1e-4,zS=qa(3),Bf=1/3,Dn=Ao(),Br=Ao(),Ss=Ao();function Wa(r){return r>-dh&&rdh||r<-dh}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 gh(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?_=-Nf(-_,Bf):_=Nf(_,Bf),S<0?S=-Nf(-S,Bf):S=Nf(S,Bf);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 cI(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(fI(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 hI(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)Br[0]=be(r,e,a,o,m),Br[1]=be(t,n,i,s,m),g=so(Dn,Br),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 vI(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Mu(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 pI(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){Br[0]=Me(r,e,a,h),Br[1]=Me(t,n,i,h);var v=so(Dn,Br);v=0&&v=1?1:gh(0,n,i,1,l,s)&&be(0,a,o,1,s[0])}}}var ez=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||ve,this.ondestroy=t.ondestroy||ve,this.onrestart=t.onrestart||ve,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:au[t]||P0(t)},r}(),dI=function(){function r(t){this.value=t}return r}(),rz=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new dI(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}(),nf=function(){function r(t){this._list=new rz,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 dI(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 ln(r){return r=Math.round(r),r<0?0:r>255?255:r}function nz(r){return r=Math.round(r),r<0?0:r>360?360:r}function Iu(r){return r<0?0:r>1?1:r}function Ip(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?ln(parseFloat(t)/100*255):ln(parseInt(t,10))}function lo(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Iu(parseFloat(t)/100):Iu(parseFloat(t))}function Lp(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 Rr(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function dy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var gI=new nf(20),Vf=null;function No(r,t){Vf&&dy(Vf,t),Vf=gI.put(r,Vf||t.slice())}function Ar(r,t){if(r){t=t||[];var e=gI.get(r);if(e)return dy(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in GS)return dy(t,GS[n]),No(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)){Rr(t,0,0,0,1);return}return Rr(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),No(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Rr(t,0,0,0,1);return}return Rr(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),No(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?Rr(t,+u[0],+u[1],+u[2],1):Rr(t,0,0,0,1);f=lo(u.pop());case"rgb":if(u.length>=3)return Rr(t,Ip(u[0]),Ip(u[1]),Ip(u[2]),u.length===3?f:lo(u[3])),No(r,t),t;Rr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Rr(t,0,0,0,1);return}return u[3]=lo(u[3]),gy(u,t),No(r,t),t;case"hsl":if(u.length!==3){Rr(t,0,0,0,1);return}return gy(u,t),No(r,t),t;default:return}}Rr(t,0,0,0,1)}}function gy(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=lo(r[1]),a=lo(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Rr(t,ln(Lp(o,i,e+1/3)*255),ln(Lp(o,i,e)*255),ln(Lp(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function az(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 yy(r,t){var e=Ar(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return oa(e,e.length===4?"rgba":"rgb")}}function Pp(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return e[0]=ln(Ua(o[0],s[0],l)),e[1]=ln(Ua(o[1],s[1],l)),e[2]=ln(Ua(o[2],s[2],l)),e[3]=Iu(Ua(o[3],s[3],l)),e}}function iz(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=Ar(t[a]),s=Ar(t[i]),l=n-a,u=oa([ln(Ua(o[0],s[0],l)),ln(Ua(o[1],s[1],l)),ln(Ua(o[2],s[2],l)),Iu(Ua(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function iu(r,t,e,n){var a=Ar(r);if(r)return a=az(a),t!=null&&(a[0]=nz(t)),e!=null&&(a[1]=lo(e)),n!=null&&(a[2]=lo(n)),oa(gy(a),"rgba")}function yh(r,t){var e=Ar(r);if(e&&t!=null)return e[3]=Iu(t),oa(e,"rgba")}function oa(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function mh(r,t){var e=Ar(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var HS=new nf(100);function my(r){if(nt(r)){var t=HS.get(r);return t||(t=yy(r,-.1),HS.put(r,t)),t}else if(xv(r)){var e=H({},r);return e.colorStops=X(r.colorStops,function(n){return{offset:n.offset,color:yy(n.color,-.1)}}),e}return r}var _h=Math.round;function Lu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Ar(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 zf(r){return _h(r*1e3)/1e3}function _y(r){return _h(r*1e4)/1e4}function oz(r){return"matrix("+zf(r[0])+","+zf(r[1])+","+zf(r[2])+","+zf(r[3])+","+_y(r[4])+","+_y(r[5])+")"}var sz={left:"start",right:"end",center:"middle",middle:"middle"};function lz(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function uz(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function fz(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 yI(r){return r&&!!r.image}function cz(r){return r&&!!r.svgElement}function R0(r){return yI(r)||cz(r)}function mI(r){return r.type==="linear"}function _I(r){return r.type==="radial"}function SI(r){return r&&(r.type==="linear"||r.type==="radial")}function Tv(r){return"url(#"+r+")"}function xI(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 bI(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Fc,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("+_h(o*Fc)+"deg, "+_h(s*Fc)+"deg)"),l.join(" ")}var hz=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}}(),Sy=Array.prototype.slice;function jn(r,t,e){return(t-r)*e+r}function Rp(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(Ue(e)){var u=gz(e);s=u,(u===1&&!Gt(e[0])||u===2&&!Gt(e[0][0]))&&(o=!0)}else if(Gt(e)&&!Du(e))s=Gf;else if(nt(e))if(!isNaN(+e))s=Gf;else{var f=Ar(e);f&&(l=f,s=zl)}else if(xv(e)){var c=H({},l);c.colorStops=X(e.colorStops,function(v){return{offset:v.offset,color:Ar(v.color)}}),mI(e)?s=xy:_I(e)&&(s=by),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:au[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=Hf(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?hl:t[l];if((Hf(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:p.rawValue;else if(Hf(i))i===$c?Rp(m,v[a],p[a],y):vz(m,v[a],p[a],y);else if(YS(i)){var _=v[a],S=p[a],b=i===xy;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:Uc(Rp([],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)Rp(m,v[a],p[a],y),n||(t[l]=Uc(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===Gf?t[n]=t[n]+a:e===zl?(Ar(t[n],hl),Ff(hl,hl,a,1),t[n]=Uc(hl)):e===$c?Ff(t[n],t[n],a,1):e===wI&&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,ou(u),a),this._trackKeys.push(s)}l.addKeyframe(t,ou(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 cs(){return new Date().getTime()}var mz=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=cs()-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&&(ph(n),!e._paused&&e.update())}ph(n)},t.prototype.start=function(){this._running||(this._time=cs(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=cs(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=cs()-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}(Yr),_z=300,Ep=Rt.domSupported,kp=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 wy(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Sz(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 Op(r){r&&(r.zrByTouch=!0)}function xz(r,t){return Er(r.dom,new bz(r,t),!0)}function TI(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 bz=function(){function r(t,e){this.stopPropagation=ve,this.stopImmediatePropagation=ve,this.preventDefault=ve,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Jr={mousedown:function(r){r=Er(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Er(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=Er(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Er(this.dom,r);var t=r.toElement||r.relatedTarget;TI(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){ZS=!0,r=Er(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){ZS||(r=Er(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Er(this.dom,r),Op(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Jr.mousemove.call(this,r),Jr.mousedown.call(this,r)},touchmove:function(r){r=Er(this.dom,r),Op(r),this.handler.processGesture(r,"change"),Jr.mousemove.call(this,r)},touchend:function(r){r=Er(this.dom,r),Op(r),this.handler.processGesture(r,"end"),Jr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<_z&&Jr.click.call(this,r)},pointerdown:function(r){Jr.mousedown.call(this,r)},pointermove:function(r){wy(r)||Jr.mousemove.call(this,r)},pointerup:function(r){Jr.mouseup.call(this,r)},pointerout:function(r){wy(r)||Jr.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Jr[r]=function(t){t=Er(this.dom,t),this.trigger(r,t)}});var Ty={pointermove:function(r){wy(r)||Ty.mousemove.call(this,r)},pointerup:function(r){Ty.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function wz(r,t){var e=t.domHandlers;Rt.pointerEventsSupported?D(kp.pointer,function(n){Yc(t,n,function(a){e[n].call(r,a)})}):(Rt.touchEventsSupported&&D(kp.touch,function(n){Yc(t,n,function(a){e[n].call(r,a),Sz(t)})}),D(kp.mouse,function(n){Yc(t,n,function(a){a=M0(a),t.touching||e[n].call(r,a)})}))}function Tz(r,t){Rt.pointerEventsSupported?D(XS.pointer,e):Rt.touchEventsSupported||D(XS.mouse,e);function e(n){function a(i){i=M0(i),TI(r,i.target)||(i=xz(r,i),t.domHandlers[n].call(r,i))}Yc(t,n,a,{capture:!0})}}function Yc(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,vy(r.domTarget,t,e,n)}function Np(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&VV(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var qS=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),Cz=function(r){V(t,r);function t(e,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new qS(e,Jr),Ep&&(a._globalHandlerScope=new qS(document,Ty)),wz(a,a._localHandlerScope),a}return t.prototype.dispose=function(){Np(this._localHandlerScope),Ep&&Np(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Ep&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?Tz(this,n):Np(n)}},t}(Yr),CI=1;Rt.hasGlobalWindow&&(CI=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sh=CI,Cy=.4,Ay="#333",Dy="#ccc",Az="#eee",KS=wv,jS=5e-5;function _i(r){return r>jS||r<-jS}var Si=[],Bo=[],Bp=Cr(),Vp=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||Cr(),e?this.getLocalTransform(n):KS(n),t&&(e?ia(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||Cr(),Ws(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||Cr(),ia(Bo,t.invTransform,e),e=Bo);var n=this.originX,a=this.originY;(n||a)&&(Bp[4]=n,Bp[5]=a,ia(Bo,e,Bp),Bo[4]-=n,Bo[5]-=a,e=Bo),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&&Vp(t[0]-1)>1e-10&&Vp(t[3]-1)>1e-10?Math.sqrt(Vp(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){AI(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&&Do(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 AI(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function xh(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",c="top";if(n instanceof Array)l+=cn(n[0],e.width),u+=cn(n[1],e.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var zp="__zr_normal__",Fp=zn.concat(["ignore"]),Dz=Bn(zn,function(r,t){return r[t]=!0,r},{ignore:!1}),Vo={},Mz=new Mt(0,0,0,0),Av=function(){function r(t){this.id=tI(),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=Mz;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Vo,n,f):xh(Vo,n,f),i.x=Vo.x,i.y=Vo.y,o=Vo.align,s=Vo.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=cn(c[0],f.width),v=cn(c[1],f.height)),u=!0,i.originX=-i.x+h+(a?0:f.x),i.originY=-i.y+v+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=br,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()?Dy:Ay},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Ar(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,oa(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},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(zp,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===zp,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&=~br),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&=~br)}},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]=ou(e[y]),Lz(e,n,y)}}var b=new E0(e,!1,!1,c?Xt(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)?zz(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function ce(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),II),r=(+r).toFixed(t),e?r:+r}function Gr(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 Fz(r)}function Fz(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 LI(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 Gz(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 Hz(r,t){var e=Math.max(In(r),In(t)),n=r+t;return e>II?n:ce(n,e)}var rx=9007199254740991;function PI(r){var t=Math.PI*2;return(r%t+t)%t}function Pu(r){return r>-ex&&r=10&&t++,t}function RI(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 Wp(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 p5=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],d5=So(p5),g5=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return d5(this,t,e)},r}(),Ly=new nf(50);function y5(r){if(typeof r=="string"){var t=Ly.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=Ly.get(r),o={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!Mv(t)&&i.pending.push(o)):(t=ei.loadImage(r,sx,sx),t.__zrImageSrc=r,Ly.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=Dr(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 $I(r,t){var e=t.containerWidth,n=t.font,a=t.contentWidth;if(!e)return"";var i=Dr(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?_5(r,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*a/i):0;r=r.substr(0,s),i=Dr(r,n)}return r===""&&(r=t.placeholder),r}function _5(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=UI(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&$p(e,r.substring(s,u),t,o),$p(e,l[2],t,o,l[1]),s=Up.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=Dr(x.text,A);else{if(L){var P=w.backgroundColor,R=P&&P.image;R&&(R=y5(R),Mv(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=YI(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 C5=Bn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function A5(r){return T5(r)?!!C5[r]:!0}function YI(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 Py="__zr_style_"+Math.round(Math.random()*10),uo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Iv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};uo[Py]=!0;var ux=["z","z2","invisible"],D5=["invisible"],$r=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(Wf[0]=qp(a)*e+r,Wf[1]=Zp(a)*n+t,Uf[0]=qp(i)*e+r,Uf[1]=Zp(i)*n+t,u(s,Wf,Uf),f(l,Wf,Uf),a=a%bi,a<0&&(a=a+bi),i=i%bi,i<0&&(i=i+bi),a>i&&!o?i+=bi:aa&&($f[0]=qp(v)*e+r,$f[1]=Zp(v)*n+t,u(s,$f,s),f(l,$f,l))}var Kt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wi=[],Ti=[],yn=[],wa=[],mn=[],_n=[],Kp=Math.min,jp=Math.max,Ci=Math.cos,Ai=Math.sin,Xn=Math.abs,Ry=Math.PI,Ra=Ry*2,Qp=typeof Float32Array<"u",vl=[];function Jp(r){var t=Math.round(r/Ry*1e8)/1e8;return t%2*Ry}function z0(r,t){var e=Jp(r[0]);e<0&&(e+=Ra);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=Ra?a=e+Ra:t&&e-a>=Ra?a=e-Ra:!t&&e>a?a=e+(Ra-Jp(e-a)):t&&e0&&(this._ux=Xn(n/Sh/t)||0,this._uy=Xn(n/Sh/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(Kt.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(Kt.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(Kt.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(Kt.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(),vl[0]=a,vl[1]=i,z0(vl,o),a=vl[0],i=vl[1];var s=i-a;return this.addData(Kt.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(Kt.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Kt.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)&&Qp&&(this.data=new Float32Array(e));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){yn[0]=yn[1]=mn[0]=mn[1]=Number.MAX_VALUE,wa[0]=wa[1]=_n[0]=_n[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,o;for(o=0;on||Xn(_)>a||h===e-1)&&(d=Math.sqrt(m*m+_*_),i=g,o=y);break}case Kt.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 Kt.Q:{var S=t[h++],b=t[h++],g=t[h++],y=t[h++];d=JV(i,o,S,b,g,y,10),i=g,o=y;break}case Kt.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=jp(A,M)*Kp(Ra,Math.abs(L)),i=Ci(P)*A+T,o=Ai(P)*M+C;break;case Kt.R:{s=i=t[h++],l=o=t[h++];var R=t[h++],O=t[h++];d=R*2+O*2;break}case Kt.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 Kt.M:s=u=n[x++],l=f=n[x++],t.moveTo(u,f);break;case Kt.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 Kt.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 Kt.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;Mu(u,P,O,I,wi),Mu(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 Kt.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 Kt.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+Kp(k,ct),h),k-=ct,k>0&&t.lineTo(c+ct,h+Kp(k,E)),k-=E,k>0&&t.lineTo(c+jp(ct-k,0),h+E),k-=ct,k>0&&t.lineTo(c,h+jp(E-k,0));break t}g+=M}t.rect(c,h,ct,E);break;case Kt.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=Kt,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+=pl);var h=Math.atan2(l,s);return h<0&&(h+=pl),h>=n&&h<=a||h+pl>=n&&h+pl<=a}function Qn(r,t,e,n,a,i){if(i>t&&i>n||ia?s:0}var Ta=Gn.CMD,Di=Math.PI*2,k5=1e-4;function O5(r,t){return Math.abs(r-t)t&&u>n&&u>i&&u>s||u1&&N5(),v=be(t,n,i,s,Or[0]),h>1&&(p=be(t,n,i,s,Or[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);Ke[0]=-l,Ke[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>=Ke[0]+r&&o<=Ke[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=Ke[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 Ta.M:f=i[p++],c=i[p++],l=f,u=c;break;case Ta.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 Ta.C:if(e){if(R5(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=B5(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 Ta.Q:if(e){if(XI(l,u,i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=V5(l,u,i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Ta.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(E5(y,m,S,b,b+x,w,t,T,a))return!0}else s+=z5(y,m,S,b,b+x,w,T,a);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case Ta.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 Ta.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&&!O5(u,c)&&(s+=Qn(l,u,f,c,n,a)||0),s!==0}function F5(r,t,e){return ZI(r,0,!1,t,e)}function G5(r,t,e,n){return ZI(r,t,!0,e,n)}var bh=dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},uo),H5={style:dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Iv.style)},td=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?Ay:n>.2?Az:Dy}else if(e)return Dy}return Ay},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=mh(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&as)&&(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)),G5(s,l/u,e,n)))return!0}if(this.hasFill())return F5(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=as,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:H(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&as)},t.prototype.createStyle=function(e){return bv(bh,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 bv(W5,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=af(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}($r);Ls.prototype.type="tspan";var U5=dt({x:0,y:0},uo),$5={style:dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Iv.style)};function Y5(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 bv(U5,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=Y5(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 $5},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}($r);Le.prototype.type="image";function X5(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 hs=Math.round;function qI(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&&(hs(n*2)===hs(a*2)&&(r.x1=r.x2=Qi(n,s,!0)),hs(i*2)===hs(o*2)&&(r.y1=r.y2=Qi(i,s,!0))),r}}function KI(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=Qi(n,s,!0),r.y=Qi(a,s,!0),r.width=Math.max(Qi(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Qi(a+o,s,!1)-r.y,o===0?0:1)),r}}function Qi(r,t,e){if(!t)return r;var n=hs(r*2);return(n+hs(t))%2===0?n/2:(n+(e?1:-1))/2}var Z5=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),q5={},Vt=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Z5},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=KI(q5,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?X5(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,K5={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},Iv.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&&ed(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(Ls),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(Fl(g.x,w,g.textAlign),is(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,jI(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&an(n)||e.textFont||e.font},t}($r),j5={left:!0,right:1,center:1},Q5={top:1,bottom:1,middle:1},gx=["fontStyle","fontWeight","fontSize","fontFamily"];function jI(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?x0+"px":r+"px"}function yx(r,t){for(var e=0;e=0,i=!1;if(r instanceof Pt){var o=JI(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(zo(s)||zo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=H({},n),u=H({},u),u.fill=s):!zo(u.fill)&&zo(s)?(i=!0,n=H({},n),u=H({},u),u.fill=my(s)):!zo(u.stroke)&&zo(l)&&(i||(n=H({},n),u=H({},u)),u.stroke=my(l)),n.style=u}}if(n&&n.z2==null){i||(n=H({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??$s)}return n}function iF(r,t,e){if(e&&e.z2==null){e=H({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??tF)}return e}function oF(r,t,e){var n=It(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:nF(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 rd(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return aF(this,r,t,e);if(r==="blur")return oF(this,r,e);if(r==="select")return iF(this,r,e)}return e}function xo(r){r.stateProxy=rd;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=rd),e&&(e.stateProxy=rd)}function Dx(r,t){!oL(r,t)&&!r.__highByOuter&&ma(r,tL)}function Mx(r,t){!oL(r,t)&&!r.__highByOuter&&ma(r,eL)}function ca(r,t){r.__highByOuter|=1<<(t||0),ma(r,tL)}function ha(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ma(r,eL)}function nL(r){ma(r,H0)}function W0(r){ma(r,rL)}function aL(r){ma(r,eF)}function iL(r){ma(r,rF)}function oL(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function sL(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){rL(u)}),s&&e.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function ky(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 co(r,t,e){Ji(r,!0),ma(r,xo),Ny(r,t,e)}function hF(r){Ji(r,!1)}function fe(r,t,e,n){n?hF(r):co(r,t,e)}function Ny(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"],vF={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ke(r,t,e,n){e=e||"itemStyle";for(var a=0;a1&&(o*=nd(p),s*=nd(p));var d=(a===i?-1:1)*nd((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+Xf(c)*g-Yf(c)*y,_=(t+n)/2+Yf(c)*g+Xf(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(Vy(b,x)<=-1&&(w=dl),Vy(b,x)>=1&&(w=0),w<0){var T=Math.round(w/dl*1e6)/1e6;w=dl*2+T%2*dl}f.addData(u,m,_,o,s,S,w,c,i)}var _F=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,SF=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function xF(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(_F);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 MF(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 IF(r,t){var e,n=Gl(t.r,0),a=Gl(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>ad&&v%ad;if(p>Qr&&(v=p),!(n>Qr))r.moveTo(f,c);else if(v>ad-Qr)r.moveTo(f+n*Go(l),c+n*Mi(l)),r.arc(f,c,n,l,u,!h),a>Qr&&(r.moveTo(f+a*Go(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*Go(l),O=n*Mi(l),B=a*Go(u),N=a*Mi(u),F=v>Qr;if(F){var U=t.cornerRadius;U&&(e=MF(U),d=e[0],g=e[1],y=e[2],m=e[3]);var Z=Nx(n-a)/2;if(_=Sn(Z,y),S=Sn(Z,m),b=Sn(Z,d),x=Sn(Z,g),C=w=Gl(_,S),A=T=Gl(b,x),(w>Qr||T>Qr)&&(M=n*Go(u),I=n*Mi(u),L=a*Go(l),P=a*Mi(l),vQr){var K=Sn(y,C),j=Sn(m,C),J=Zf(L,P,R,O,n,K,h),ct=Zf(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>Qr)||!F)r.lineTo(f+B,c+N);else if(A>Qr){var K=Sn(d,A),j=Sn(g,A),J=Zf(B,N,M,I,a,-j,h),ct=Zf(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 LF=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}(),nr=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new LF},t.prototype.buildPath=function(e,n){IF(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Pt);nr.prototype.type="sector";var PF=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),lf=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new PF},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);lf.prototype.type="ring";function RF(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=RF(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 ae(r,t,e,n,a,i){X0("enter",r,t,e,n,a,i)}function xs(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function zx(r){return!r.isGroup}function YF(r){return r.shape!=null}function cf(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 YF(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 xL(r,t){return X(r,function(e){var n=e[0];n=Ch(n,t.x),n=Ah(n,t.x+t.width);var a=e[1];return a=Ch(a,t.y),a=Ah(a,t.y+t.height),[n,a]})}function XF(r,t){var e=Ch(r.x,t.x),n=Ah(r.x+r.width,t.x+t.width),a=Ch(r.y,t.y),i=Ah(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 hf(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)):Ov(r.replace("path://",""),n,e,"center")}function Hl(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=id(v,p,f,c)/h;return!(g<0||g>1)}function id(r,t,e,n){return r*n-e*t}function ZF(r){return r<=1e-6&&r>=-1e-6}function Xs(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 oG={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:". "}}}},sG={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 Mh="ZH",K0="EN",bs=K0,jc={},j0={},ML=Rt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||bs).toUpperCase();return r.indexOf(Mh)>-1?Mh:bs}():bs;function IL(r,t){r=r.toUpperCase(),j0[r]=new Ut(t),jc[r]=t}function lG(r){if(nt(r)){var t=jc[r.toUpperCase()]||{};return r===Mh||r===K0?yt(t):Dt(yt(t),yt(jc[bs]),!1)}else return Dt(yt(r),yt(jc[bs]),!1)}function Gy(r){return j0[r]}function uG(){return j0[bs]}IL(K0,oG);IL(Mh,sG);var Q0=1e3,J0=Q0*60,hu=J0*60,Fr=hu*24,$x=Fr*365,Wl={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}"},jf="{yyyy}-{MM}-{dd}",Yx={year:"{yyyy}",month:"{yyyy}-{MM}",day:jf,hour:jf+" "+Wl.hour,minute:jf+" "+Wl.minute,second:jf+" "+Wl.second,millisecond:Wl.none},ld=["year","month","day","hour","minute","second","millisecond"],LL=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ca(r,t){return r+="","0000".substr(0,t-r.length)+r}function ws(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 fG(r){return r===ws(r)}function cG(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Vv(r,t,e,n){var a=Fn(r),i=a[t_(e)](),o=a[Ts(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[zv(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[Nu(e)](),c=(f-1)%12+1,h=a[Fv(e)](),v=a[Gv(e)](),p=a[Hv(e)](),d=f>=12?"pm":"am",g=d.toUpperCase(),y=n instanceof Ut?n:Gy(n||ML)||uG(),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,Ca(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Ca(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ca(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ca(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ca(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ca(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ca(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ca(p,3)).replace(/{S}/g,p+"")}function hG(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({},Wl);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 Vv(new Date(r.value),i,a,n)}function PL(r,t){var e=Fn(r),n=e[Ts(t)]()+1,a=e[zv(t)](),i=e[Nu(t)](),o=e[Fv(t)](),s=e[Gv(t)](),l=e[Hv(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||PL(r,e),t){case"year":return n[t_(e)]();case"half-year":return n[Ts(e)]()>=6?1:0;case"quarter":return Math.floor((n[Ts(e)]()+1)/4);case"month":return n[Ts(e)]();case"day":return n[zv(e)]();case"half-day":return n[Nu(e)]()/24;case"hour":return n[Nu(e)]();case"minute":return n[Fv(e)]();case"second":return n[Gv(e)]();case"millisecond":return n[Hv(e)]()}}function t_(r){return r?"getUTCFullYear":"getFullYear"}function Ts(r){return r?"getUTCMonth":"getMonth"}function zv(r){return r?"getUTCDate":"getDate"}function Nu(r){return r?"getUTCHours":"getHours"}function Fv(r){return r?"getUTCMinutes":"getMinutes"}function Gv(r){return r?"getUTCSeconds":"getSeconds"}function Hv(r){return r?"getUTCMilliseconds":"getMilliseconds"}function vG(r){return r?"setUTCFullYear":"setFullYear"}function RL(r){return r?"setUTCMonth":"setMonth"}function EL(r){return r?"setUTCDate":"setDate"}function kL(r){return r?"setUTCHours":"setHours"}function OL(r){return r?"setUTCMinutes":"setMinutes"}function NL(r){return r?"setUTCSeconds":"setSeconds"}function BL(r){return r?"setUTCMilliseconds":"setMilliseconds"}function VL(r){if(!EI(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 zL(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 Ks=D0;function Hy(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&an(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Fn(r):r;if(isNaN(+l)){if(s)return"-"}else return Vv(l,n,e)}if(t==="ordinal")return oy(r)?a(r):Gt(r)&&i(r)?r+"":"-";var u=fa(r);return i(u)?VL(u):oy(r)?a(r):typeof r=="boolean"?r+"":"-"}var Zx=["a","b","c","d","e","f","g"],ud=function(r,t){return"{"+r+(t??"")+"}"};function FL(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 bo(r,t){return t=t||"transparent",nt(r)?r:gt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Ih(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Qc=D,GL=["left","right","top","bottom","width","height"],to=[["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 vo=e_;bt(e_,"vertical");bt(e_,"horizontal");function gG(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=Ks(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=Ks(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 Wv(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 yG(r,t){return r[to[t][0]]!=null||r[to[t][1]]!=null&&r[to[t][2]]!=null}function Bu(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(to[0],0),i=o(to[1],1);u(to[0],r,a),u(to[1],r,i);function o(f,c){var h={},v=0,p={},d=0,g=2;if(Qc(f,function(_){p[_]=r[_]}),Qc(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 of(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);WI(kt,Ut);Dv(kt);aG(kt);iG(kt,_G);function _G(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 WL="";typeof navigator<"u"&&(WL=navigator.platform||"");var Ho="rgba(0, 0, 0, 0.2)";const SG={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ho,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ho,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ho,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ho,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ho,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ho,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:WL.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 UL=ut(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xr="original",$e="arrayRows",Zr="objectRows",Hn="keyedColumns",Ka="typedArray",$L="unknown",On="column",Qs="row",Pe={Must:1,Might:2,Not:3},YL=zt();function xG(r){YL(r).datasetMap=ut()}function XL(r,t,e){var n={},a=n_(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=YL(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 KL(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:AG(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 DG(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Qf,gl,Kx,jx="\0_ec_inner",MG=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;xG(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=TG(this,c,Zt(e[c])),v=i.get(c),p=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=VI(v,h,p);Jz(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"&&Qf(this)}this._seriesIndices||Qf(this)},t.prototype.getOption=function(){var e=yt(this.option);return D(e,function(n,a){if(kt.hasClass(a)){for(var i=Zt(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Ru(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 BG(r,t){return r.join(",")===t.join(",")}var Kr=D,Vu=gt,eb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function cd(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=Hz(h,m),d=m;break}}}return n[0]=h,n[1]=d,n})})}var Uv=function(){function r(t){this.data=t.data||(t.sourceFormat===Hn?{}:[]),this.sourceFormat=t.sourceFormat||$L,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[$e+"_"+On]={pure:!0,appendData:i},t[$e+"_"+Qs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Zr]={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[Xr]={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 Rs(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 vu(r){return new t3(r)}var t3=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}},r3=function(){function r(t,e){if(!Gt(e)){var n="";Wt(n)}this._opFn=s2[t],this._rvalFloat=fa(e)}return r.prototype.evaluate=function(t){return Gt(t)?this._opFn(t,this._rvalFloat):this._opFn(fa(t),this._rvalFloat)},r}(),l2=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:fa(t),a=Gt(e)?e:fa(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}(),n3=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=fa(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=fa(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function a3(r,t){return r==="eq"||r==="ne"?new n3(r==="eq",t):st(s2,r)?new r3(r,t):null}var i3=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 o3(r,t){var e=new i3,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?p3:d3}function Wo(){return[1/0,-1/0]}function g3(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function db(r,t,e,n,a){var i=c2[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(ml(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])}pd={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}(),h2=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:Xr,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?[$y(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=[$y(_,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=h3(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[XG(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=g2(a);i>=t&&(t=i+ +(n&&(!i||Xy(a)&&!a.noHeader)))}),t}return 0}function _3(r,t,e,n){var a=t.noHeader,i=x3(g2(t)),o=[],s=t.blocks||[];er(!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 l2(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=d2(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):Zy(o.join(""),a?e:i.html);if(a)return c;var h=Hy(t.header,"ordinal",r.useUTC),v=p2(n,r.renderMode).nameStyle;return r.renderMode==="richText"?y2(r,h,v)+i.richText+c:Zy('
'+lr(h)+"
"+c,e)}function S3(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 Hy(b,W(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Hy(l,"ordinal",u),v=t.valueType,p=o?[]:f(t.value,t.dataIndex),d=!s||!i,g=!s&&i,y=p2(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":y2(r,h,m))+(o?"":T3(r,p,d,g,_)):Zy((s?"":c)+(i?"":b3(h,!s,m))+(o?"":w3(p,d,g,_)),e)}}function mb(r,t,e,n,a,i){if(r){var o=d2(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function x3(r){return{html:y3[r],richText:m3[r]}}function Zy(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function b3(r,t,e){var n=t?"margin-left:2px":"";return''+lr(r)+""}function w3(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 lr(o)}).join("  ")+""}function y2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function T3(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 m2(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return bo(n)}function _2(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var dd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=kI()}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=dG({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 S2(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=m2(t,e),f,c,h,v;if(o>1||l&&!o){var p=C3(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=Rs(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:!an(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function C3(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(Rs(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 Aa=zt();function tc(r,t){return r.getName(t)||r.getId(t)}var Jc="__universalTransitionEnabled",ne=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=vu({count:D3,reset:M3}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=Aa(this).sourceManager=new h2(this);i.prepareSource();var o=this.getInitialData(e,a);Sb(o,this),this.dataTask.context.data=o,Aa(this).dataBeforeProcessed=o,_b(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Bu(this),i=a?js(e):{},o=this.subType;kt.hasClass(o)&&(o+="Series"),Dt(e,n.getTheme().get(this.subType)),Dt(e,this.getDefaultOption()),mo(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=Bu(this);a&&ai(this.option,e,a);var i=Aa(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);Sb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Aa(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[tc(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(ne,$v);me(ne,a_);WI(ne,kt);function _b(r){var t=r.name;O0(r)||(r.name=A3(r)||t)}function A3(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 D3(r){return r.model.getRawData().count()}function M3(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),I3}function I3(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Sb(r,t){D(vh(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(L3,t))})}function L3(r,t){var e=qy(r);return e&&e.setOutputEnd((t||this).count()),t}function qy(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 le=function(){function r(){this.group=new mt,this.uid=qs("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(le);Dv(le);function Js(){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 x2=zt(),P3=Js(),qt=function(){function r(){this.group=new mt,this.uid=qs("viewChart"),this.renderTask=vu({plan:R3,reset:E3}),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){x2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function xb(r,t,e){r&&ku(r)&&(t==="emphasis"?ca:ha)(r,e)}function bb(r,t,e){var n=_o(r,t),a=t&&t.highlightKey!=null?dF(t.highlightKey):null;n!=null?D(Zt(n),function(i){xb(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){xb(i,e,a)})}B0(qt);Dv(qt);function R3(r){return P3(r.model)}function E3(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&x2(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),k3[l]}var k3={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)}}},Lh="\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 tl(r,t,e,n){var a=r[t];if(a){var i=a[Lh]||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[Lh]=i,a[Tb]=n,a[wb]=e}return a}}function zu(r,t){var e=r[t];e&&e[Lh]&&(e.clear&&e.clear(),r[t]=e[Lh])}var Cb=zt(),Ab={itemStyle:So(DL,!0),lineStyle:So(AL,!0)},O3={lineStyle:"stroke",itemStyle:"fill"};function b2(r,t){var e=r.visualStyleMapper||Ab[t];return e||(console.warn("Unknown style type '"+t+"'."),Ab.itemStyle)}function w2(r,t){var e=r.visualDrawType||O3[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var N3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=b2(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=w2(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)}}}},_l=new Ut,B3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=b2(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){_l.option=l[n];var u=a(_l),f=o.ensureUniqueItemVisual(s,"style");H(f,u),_l.option.decal&&(o.setItemVisual(s,"decal",_l.option.decal),_l.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},V3={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=w2(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)}})}})}},ec=Math.PI;function z3(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 kv({shape:{startAngle:-ec/2,endAngle:-ec/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:ec*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ec*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 T2=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="";er(!(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)||vu({plan:U3,reset:$3,count:X3}));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||vu({reset:F3});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="";er(!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,vu({reset:G3,onDirty:W3})));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:Z3(t)}),t.uid=qs("stageHandler"),e&&(t.visualType=e),t},r}();function F3(r){r.overallReset(r.ecModel,r.api,r.payload)}function G3(r){return r.overallProgress&&H3}function H3(){this.agent.dirty(),this.getDownstream().dirty()}function W3(){this.agent&&this.agent.dirty()}function U3(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function $3(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Zt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?X(t,function(e,n){return C2(n)}):Y3}var Y3=C2(0);function C2(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}(),Ky=["symbol","symbolSize","symbolRotate","symbolOffset"],Lb=Ky.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&&ro(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"?hH(r,t,e):cH(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&&pH(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 dH=new Gn(!0);function Eh(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Pb(r){return typeof r=="string"&&r!=="none"}function kh(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 Qy(r,t,e){var n=V0(t.image,t.__image,e);if(Mv(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)*Fc),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function gH(r,t,e,n){var a,i=Eh(e),o=kh(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||dH,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?Qy(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=c||!t.__canvasStrokePattern?Qy(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&as)&&(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 yH(r,t,e){var n=t.__image=V0(e.image,t.__image,t,t.onload);if(!(!n||!Mv(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 mH(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?(Eh(e)&&r.strokeText(a,e.x,e.y),kh(e)&&r.fillText(a,e.x,e.y)):(kh(e)&&r.fillText(a,e.x,e.y),Eh(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var kb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ob=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function P2(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){cr(r,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?uo.opacity:o}(n||t.blend!==e.blend)&&(i||(cr(r,a),i=!0),r.globalCompositeOperation=t.blend||uo.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 EG(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},tm);var c={seriesTransition:s,optionChanged:!0};if(a)this[sr]={silent:i,updateParams:c},this[Ve]=!1,this.getZr().wakeUp();else{try{$o(this),Da.update.call(this,null,c)}catch(h){throw this[sr]=null,this[Ve]=!1,h}this._ssr||this._zr.flush(),this[sr]=null,this[Ve]=!1,Sl.call(this,i),xl.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(du,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 Sd(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Sd(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=lu(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=lu(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):pf(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(WH,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&eo(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(pu,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)}),J3(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&&FI(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 du[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[sr]&&(i==null&&(i=this[sr].silent),a=!0,this[sr]=null),this[Ve]=!0;try{a&&$o(this),Da.update.call(this,{type:"resize",animation:H({duration:0},e&&e.animation)})}catch(o){throw this[Ve]=!1,o}this[Ve]=!1,Sl.call(this,i),xl.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(),!!em[e]){var a=em[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=pu[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(gt(n)||(n={silent:!!n}),!!Oh[e.type]&&this._model){if(this[Ve]){this._pendingActions.push(e);return}var a=n.silent;bd.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&Rt.browser.weChat&&this._throttledZrFlush(),Sl.call(this,a),xl.call(this,a)}},t.prototype.updateLabelLayout=function(){tn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){$o=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),_d(c,!0),_d(c,!1),h.plan()},_d=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(xs(y))return;if(y instanceof Pt&&gF(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){ca(p,d),Mr(c)},v.prototype.leaveEmphasis=function(p,d){ha(p,d),Mr(c)},v.prototype.enterBlur=function(p){nL(p),Mr(c)},v.prototype.leaveBlur=function(p){W0(p),Mr(c)},v.prototype.enterSelect=function(p){aL(p),Mr(c)},v.prototype.leaveSelect=function(p){iL(p),Mr(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(p){return c.getViewOfComponentModel(p)},v.prototype.getViewOfSeriesModel=function(p){return c.getViewOfSeriesModel(p)},v}(jL))(c)},Y2=function(c){function h(v,p){for(var d=0;d=0)){jb.push(e);var i=T2.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function Q2(r,t){em[r]=t}function KH(r,t,e){var n=MH("registerMap");n&&n(r,t,e)}var jH=c3;Lo(v_,N3);Lo(Xv,B3);Lo(Xv,V3);Lo(v_,j3);Lo(Xv,Q3);Lo(F2,AH);K2(JL);j2(PH,$G);Q2("default",z3);Wn({type:fo,event:fo,update:fo},ve);Wn({type:Zc,event:Zc,update:Zc},ve);Wn({type:uu,event:uu,update:uu},ve);Wn({type:qc,event:qc,update:qc},ve);Wn({type:fu,event:fu,update:fu},ve);q2("light",q3);q2("dark",M2);var Qb=[],QH={registerPreprocessor:K2,registerProcessor:j2,registerPostInit:YH,registerPostUpdate:XH,registerUpdateLifecycle:g_,registerAction:Wn,registerCoordinateSystem:ZH,registerLayout:qH,registerVisual:Lo,registerTransform:jH,registerLoading:Q2,registerMap:KH,registerImpl:DH,PRIORITY:FH,ComponentModel:kt,ComponentView:le,SeriesModel:ne,ChartView:qt,registerComponentModel:function(r){kt.registerClass(r)},registerComponentView:function(r){le.registerClass(r)},registerSeriesModel:function(r){ne.registerClass(r)},registerChartView:function(r){qt.registerClass(r)},registerSubTypeDefaulter:function(r,t){kt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){Nz(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(QH))}function bl(r){return r==null?0:r.length||1}function Jb(r){return r}var va=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 wl=gt,Ma=X,a4=typeof Int32Array>"u"?Array:Int32Array,i4="e\0\0",tw=-1,o4=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],s4=["_approximateExtent"],ew,sc,Tl,Cl,Cd,lc,Ad,Je=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;tP(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===Xr;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():wl(i)&&(i=H({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,wl(e)?H(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){wl(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;Ey(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:Ma(this.dimensions,this._getDimInfo,this),this.hostModel)),Cd(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 a4(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),a[e]=l}}}(),r}();function df(r,t){o_(r)||(r=s_(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=ut(),i=[],o=u4(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&nP(o),l=n===r.dimensionsDefine,u=l?rP(r):eP(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=ut(f),h=new f2(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function u4(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 f4(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 c4=function(){function r(t){this.coordSysDims=[],this.axisMap=ut(),this.categoryAxisMap=ut(),this.coordSysName=t}return r}();function h4(r){var t=r.get("coordinateSystem"),e=new c4(t),n=v4[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var v4={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),Yo(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Yo(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),Yo(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),Yo(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Yo(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),Yo(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Yo(r){return r.get("type")==="category"}function p4(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;d4(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 d4(r){return!tP(r.schema)}function ii(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function aP(r,t){return ii(r,t)?r.getCalculationInfo("stackResultDimension"):t}function g4(r,t){var e=r.get("coordinateSystem"),n=vf.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=Bh(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function y4(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 Sa(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=s_(r)):(a=n.getSource(),i=a.sourceFormat===Xr);var o=h4(t),s=g4(t,o),l=e.useEncodeDefaulter,u=vt(l)?l:l?bt(XL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=df(a,f),h=y4(c.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),p=p4(t,{schema:c,store:v}),d=new Je(c,t);d.setCalculationInfo(p);var g=h!=null&&m4(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 m4(r){if(r.sourceFormat===Xr){var t=_4(r.data||[]);return!W(Us(t))}}function _4(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}();Dv(Un);var S4=0,rm=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++S4}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&X(n,x4);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 x4(r){return gt(r)&&r.value!=null?r.value:r+""}function nm(r){return r.type==="interval"||r.type==="log"}function b4(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=RI(i/t);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=iP(o),l=a.niceTickExtent=[ce(Math.ceil(r[0]/o)*o,s),ce(Math.floor(r[1]/o)*o,s)];return w4(l,r),a}function Dd(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,ce(e*t)}function iP(r){return In(r)+2}function rw(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function w4(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 Zv(r,t){return r>=t[0]&&r<=t[1]}function qv(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Kv(r,t){return r*(t[1]-t[0])+t[0]}var jv=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 rm({})),W(a)&&(a=new rm({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),Zv(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),qv(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Kv(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(jv);var ki=ce,pa=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 Zv(e,this._extent)},t.prototype.normalize=function(e){return qv(e,this._extent)},t.prototype.scale=function(e){return Kv(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=iP(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 lP(r){var t=A4(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")||(vP(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)})}),uP(e)}function uP(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 D4(r,t,e){if(r&&t){var n=r[__(t)];return n!=null&&e!=null?n[m_(e)]:n}}function fP(r,t){var e=sP(r,t),n=lP(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 cP(r){return{seriesType:r,plan:Js(),reset:function(t){if(hP(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=M4(a,i),p=vP(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 I4=function(r,t,e,n){for(;e>>1;r[a][1]a&&(this._approxInterval=a);var s=uc.length,l=Math.min(I4(uc,this._approxInterval,0,s),s-1);this._interval=uc[l][1],this._minLevelUnit=uc[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Gt(e)?e:+Fn(e)},t.prototype.contain=function(e){return Zv(this.parse(e),this._extent)},t.prototype.normalize=function(e){return qv(this.parse(e),this._extent)},t.prototype.scale=function(e){return Kv(e,this._extent)},t.type="time",t}(pa),uc=[["second",Q0],["minute",J0],["hour",hu],["quarter-day",hu*6],["half-day",hu*12],["day",Fr*1.2],["half-week",Fr*3.5],["week",Fr*7],["month",Fr*31],["quarter",Fr*95],["half-year",$x/2],["year",$x]];function L4(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 P4(r,t){return r/=Fr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function R4(r){var t=30*Fr;return r/=t,r>6?6:r>3?3:r>2?2:1}function E4(r){return r/=hu,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 k4(r){return RI(r)}function O4(r,t,e){var n=new Date(r);switch(ws(t)){case"year":case"month":n[RL(e)](0);case"day":n[EL(e)](1);case"hour":n[kL(e)](0);case"minute":n[OL(e)](0);case"second":n[NL(e)](0),n[BL(e)](0)}return n.getTime()}function N4(r,t,e,n){var a=1e4,i=LL,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=Xt(X(u,function(A){return Xt(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=[ce(z4(n[0]/i)*i),ce(V4(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){gu.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=jr(e)/jr(this.base),Zv(e,this._extent)},t.prototype.normalize=function(e){return e=jr(e)/jr(this.base),qv(e,this._extent)},t.prototype.scale=function(e){return e=Kv(e,this._extent),fc(this.base,e)},t.type="log",t}(Un),pP=x_.prototype;pP.getMinorTicks=gu.getMinorTicks;pP.getLabel=gu.getLabel;function cc(r,t){return B4(r,In(t))}Un.registerClass(x_);var F4=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[H4[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=G4[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),G4={min:"_determinedMin",max:"_determinedMax"},H4={min:"_dataMin",max:"_dataMax"};function dP(r,t,e){var n=r.rawExtentInfo;return n||(n=new F4(r,t,e),r.rawExtentInfo=n,n)}function hc(r,t){return t==null?null:Du(t)?NaN:r.parse(t)}function gP(r,t){var e=r.type,n=dP(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=sP("bar",o),l=!1;if(D(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=lP(s),f=W4(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function W4(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=D4(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 ks(r,t){var e=t,n=gP(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 Qv(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new jv({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)||pa)}}function U4(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function rl(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 $4(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof jv?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=rl(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;fr[1]&&(r[1]=a[1])})}var gf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Z4=1e-8;function iw(r,t){return Math.abs(r-t)a&&(n=o,a=l)}if(n)return K4(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 J4(r,t){return r=Q4(r),X(Xt(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 _P(n[t||"name"],i,n.cp);return s.properties=n,s})}var Hu=zt();function xP(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 tW(r){var t=r.getLabelModel().get("customValues");if(t){var e=rl(r);return{labels:xP(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?rW(r):aW(r)}function eW(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:xP(r,e)}:r.type==="category"?nW(r,t):{ticks:X(r.scale.getTicks(),function(n){return n.value})}}function rW(r){var t=r.getLabelModel(),e=bP(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function bP(r,t){var e=wP(r,"labels"),n=w_(t),a=TP(e,n);if(a)return a;var i,o;return vt(n)?i=DP(r,n):(o=n==="auto"?iW(r):n,i=AP(r,o)),CP(e,n,{labels:i,labelCategoryInterval:o})}function nW(r,t){var e=wP(r,"ticks"),n=w_(t),a=TP(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),vt(n))i=DP(r,n,!0);else if(n==="auto"){var s=bP(r,r.getLabelModel());o=s.labelCategoryInterval,i=X(s.labels,function(l){return l.tickValue})}else o=n,i=AP(r,o,!0);return CP(e,n,{ticks:i,tickCategoryInterval:o})}function aW(r){var t=r.scale.getTicks(),e=rl(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 wP(r,t){return Hu(r)[t]||(Hu(r)[t]=[])}function TP(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=af(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=Hu(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 sW(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 AP(r,t,e){var n=rl(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=yP(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 DP(r,t,e){var n=r.scale,a=rl(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],pn=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return LI(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=eW(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 lW(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 tW(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 oW(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 lW(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=ce(v),p=ce(p),c?v>p:va&&(a+=Al);var v=Math.atan2(s,o);if(v<0&&(v+=Al),v>=n&&v<=a||v+Al>=n&&v+Al<=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 zh(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 MP(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 en=[];function hW(r,t,e){var n=MP(t.x,t.y,t.width,t.height,r.x,r.y,en);return e.set(en[0],en[1]),n}function vW(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,on.fromArray(r[0]),ee.fromArray(r[1]),he.fromArray(r[2]),Ct.sub(Rn,on,ee),Ct.sub(Mn,he,ee);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(je,he),je.toArray(r[1])}}}}function pW(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,on.fromArray(r[0]),ee.fromArray(r[1]),he.fromArray(r[2]),Ct.sub(Rn,ee,on),Ct.sub(Mn,he,ee);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(je,he);else{je.scaleAndAdd(Mn,s/Math.tan(Math.PI/2-f));var c=he.x!==ee.x?(je.x-ee.x)/(he.x-ee.x):(je.y-ee.y)/(he.y-ee.y);if(isNaN(c))return;c<0?Ct.copy(je,ee):c>1&&Ct.copy(je,he)}je.toArray(r[1])}}}}function Ld(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 dW(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=Hc([],n[1],n[0],o/a),l=Hc([],n[1],n[2],o/i),u=Hc([],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 gW(r,t,e,n){return PP(r,"x","width",t,e,n)}function RP(r,t,e,n){return PP(r,"y","height",t,e,n)}function EP(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),!Zs(n).valueAnimation){var c=St(n.style.opacity,1);n.style.opacity=0,ae(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};vc(v,u,pc),vc(v,n.states.select,pc)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};vc(p,u,pc),vc(p,n.states.emphasis,pc)}CL(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=_W(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,ae(a,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),Rd=zt();function xW(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Rd(e).labelManager;a||(a=Rd(e).labelManager=new SW),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Rd(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var Ed=Math.sin,kd=Math.cos,kP=Math.PI,Ni=Math.PI*2,bW=180/kP,OP=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>=kP==!!f;var d=t+n*kd(o),g=e+a*Ed(o);this._start&&this._add("M",d,g);var y=Math.round(i*bW);if(h){var m=1/this._p,_=(f?1:-1)*(Ni-m);this._add("A",n,a,y,1,+f,t+n*kd(o+_),e+a*Ed(o+_)),m>.01&&this._add("A",n,a,y,0,+f,d,g)}else{var S=t+n*kd(s),b=e+a*Ed(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 PW(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 LW(o,s)+(o!=="style"?lr(l):l||"")+(i?""+e+X(i,function(u){return n(u)}).join(e)+e:"")+PW(o)}return n(r)}function RW(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 om(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:NP,"xmlns:xlink":BP,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var EW=0;function zP(){return EW++}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 kW(r,t,e){var n=H({},r.shape);H(n,t),r.buildPath(e,n);var a=new OP;return a.reset(xI(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function OW(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[Fi]=e+"px "+n+"px")}var NW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function FP(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function BW(r,t,e){var n=r.shape.paths,a={},i,o;if(D(n,function(l){var u=om(e.zrId);u.animation=!0,Jv(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=FP(a,e);return i.replace(o,s)}}function gw(r){return nt(r)?dw[r]?"cubic-bezier("+dw[r]+")":P0(r)?r:"":""}function Jv(r,t,e,n){var a=r.animators,i=a.length,o=[];if(r instanceof Y0){var s=BW(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=FP(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-"+zP();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function VW(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=my(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-"+zP(),e.cssStyleCache[a]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var Wu=Math.round;function GP(r){return r&&nt(r.src)}function HP(r){return r&&vt(r.toDataURL)}function M_(r,t,e,n){DW(function(a,i){var o=a==="fill"||a==="stroke";o&&SI(i)?UP(t,r,a,n):o&&R0(i)?$P(e,r,a,n):o&&i==="none"?r[a]="transparent":r[a]=i},t,e,!1),$W(e,r,n)}function I_(r,t){var e=Bz(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 zW(r){return $a(r[4])&&$a(r[5])}function L_(r,t,e){if(t&&!(zW(t)&&mw(t))){var n=1e4;r.transform=mw(t)?"translate("+Wu(t[4]*n)/n+" "+Wu(t[5]*n)/n+")":oz(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.";er(h,g),er(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=bI(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]=Tv(C)}}function YW(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,[WP(r,e)])}t["clip-path"]=Tv(i)}function bw(r){return document.createTextNode(r)}function Zi(r,t,e){r.insertBefore(t,e)}function ww(r,t){r.removeChild(t)}function Tw(r,t){r.appendChild(t)}function YP(r){return r.parentNode}function XP(r){return r.nextSibling}function Od(r,t){r.textContent=t}var Cw=58,XW=120,ZW=Te("","");function sm(r){return r===void 0}function Cn(r){return r!==void 0}function qW(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 $l(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function Uu(r){var t,e=r.children,n=r.tag;if(Cn(n)){var a=r.elm=VP(n);if(P_(ZW,r),W(e))for(t=0;ti?(p=e[l+1]==null?null:e[l+1].elm,ZP(r,p,e,a,l)):Gh(r,t,n,i))}function os(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(P_(r,t),sm(t.text)?Cn(n)&&Cn(a)?n!==a&&KW(e,n,a):Cn(a)?(Cn(r.text)&&Od(e,""),ZP(e,null,a,0,a.length-1)):Cn(n)?Gh(e,n,0,n.length-1):Cn(r.text)&&Od(e,""):r.text!==t.text&&(Cn(n)&&Gh(e,n,0,n.length-1),Od(e,t.text)))}function jW(r,t){if($l(r,t))os(r,t);else{var e=r.elm,n=YP(e);Uu(t),n!==null&&(Zi(n,t.elm,XP(e)),Gh(n,[r],0,0))}return t}var QW=0,JW=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"+QW++,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=VP("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,om(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=om(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var o=[],s=this._bgVNode=t6(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=RW(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?dc: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&br&&!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}(ne);function Os(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Rs(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var yf=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=l6,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(){ca(this.childAt(0))},t.prototype.downplay=function(){ha(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):Ht(h,v,s,n),hn(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ae(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=Io(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):Os(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),fe(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 el(e.getItemVisual(n,"symbolSize"))},t}(mt);function l6(r,t){this.parent.drift(r,t)}function Bd(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 mf=function(){function r(t){this.group=new mt,this._SymbolCtor=t||yf}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(Bd(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(!Bd(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 jP(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function f6(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 c6(r,t,e,n,a,i,o,s){for(var l=f6(r,t),u=[],f=[],c=[],h=[],v=[],p=[],d=[],g=KP(a,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=a||d<0)break;if(po(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||po(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=Ia(I,La(x,y)),L=Ia(L,La(w,m)),I=La(I,Ia(x,y)),L=La(L,Ia(w,m)),A=I-y,M=L-m,v=y-A*N/F,p=m-M*N/F,v=Ia(v,La(u,y)),p=Ia(p,La(f,m)),v=La(v,Ia(u,y)),p=La(p,Ia(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}(),h6=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&&po(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?gh(s,v,d,y,e,f):gh(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),v6=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(QP),JP=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 v6},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&&po(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 g6(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=d6(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 ff(0,0,0,0,h,!0);return m[a]=d,m[a+"2"]=g,m}}}function y6(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&m6(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 m6(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 _6(r,t){return isNaN(r)||isNaN(t)}function S6(r){for(var t=r.length/2;t>0&&_6(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 x6(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 rR(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,fe(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,fe(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=_o(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 yf(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 qt.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=_o(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 qt.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;wh(this._polyline,e),n&&wh(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new h6({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 JP({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(rR(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=S6(l);f>=0&&(Oe(s,Ae(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?qP(o,v):Os(o,c)},enableTextSetter:!0},b6(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=x6(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=GI(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=Zs(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=c6(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=Pa(h.current,a,o,l),p=Pa(h.stackedOnCurrent,a,o,l),d=Pa(h.next,a,o,l),g=Pa(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]}},C6=function(r){return Math.round(r.length/2)};function nR(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=T6[i]:vt(i)&&(p=i),p&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,p,C6))}}}}}function A6(r){r.registerChartView(w6),r.registerSeriesModel(s6),r.registerLayout(Sf("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,nR("line"))}var $u=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 Sa(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}(ne);ne.registerClass($u);var D6=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 Sa(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($u.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}($u),M6=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}(),Hh=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 M6},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){Ou(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}(qt),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=zd(t.x,r.x),s=Fd(t.x+t.width,a),l=zd(t.y,r.y),u=Fd(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=Fd(t.r,r.r),i=zd(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?Hh:nr,f=new u({shape:n,z2:1});f.name="item";var c=aR(a);if(f.calculateTextPosition=I6(c,{isRoundCap:u===Hh}),i){var h=f.shape,v=a?"r":"endAngle",p={};h[v]=a?n.r0:n.startAngle,p[v]=n[v],(s?Ht:ae)(f,{shape:p},i)}return f}};function E6(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:ae)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Ht:ae)(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 N6(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function aR(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=ao(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:Os(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,L6(r,g==="outside"?v:g,aR(o),n.get(["label","rotate"]))}TL(d,p,i.getRawValue(e),function(m){return qP(t,m)});var y=n.getModel(["emphasis"]);fe(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),ke(r,n),N6(a)&&(r.style.fill="none",r.style.stroke="none",D(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function B6(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 V6=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 V6},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 z6(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 iR(r,t,e){if(Po(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 F6(r,t,e){var n=r.type==="polar"?nr:Vt;return new n({shape:iR(t,e,r),silent:!0,z2:0})}function G6(r){r.registerChartView(R6),r.registerSeriesModel(D6),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(fP,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,cP("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,nR("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,_c=Math.PI/180;function oR(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function sR(r,t){var e=oR(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 H6(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=oR(n,e),s=sR(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*_c,v=n.get("endAngle"),p=n.get("padAngle")*_c;v=v==="auto"?h-$w:-v*_c;var d=n.get("minAngle")*_c,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=lR(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 Gd(r){return r.position==="center"}function $6(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*W6,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")&&U6(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}(qt);function nl(r,t,e){t=W(t)&&{coordDimensions:t}||H({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=df(n,t).dimensions,i=new Je(a,r);return i.initData(n,e),i}var bf=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}(),Z6=zt(),q6=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 bf(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 nl(this,{coordDimensions:["value"],encodeDefaulter:bt(r_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=Z6(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Gz(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){mo(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}(ne);function K6(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(X6),r.registerSeriesModel(q6),L2("pie",r.registerAction),r.registerLayout(bt(H6,"pie")),r.registerProcessor(xf("pie")),r.registerProcessor(K6("pie"))}var Q6=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 Sa(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}(ne),fR=4,J6=function(){function r(){}return r}(),tU=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 J6},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}(),rU=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=Sf("").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 eU:new mf,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}(qt),nU=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),um=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(um,gf);var cR={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)"]}}},aU=Dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},cR),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}}},cR),iU=Dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},R_),oU=dt({logBase:10},R_);const hR={category:aU,value:R_,time:iU,log:oU};var sU={value:1,category:1,time:1,log:1};function Ns(r,t,e,n){D(sU,function(a,i){var o=Dt(Dt({},hR[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=Bu(this),v=h?js(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=rm.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 lU=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(),Xt(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}(),fm=["x","y"];function Zw(r){return r.type==="interval"||r.type==="time"}var uU=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=fm,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=Ws([],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}(lU),fU=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(pn);function cm(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 Hd=Math.log;function vR(r,t,e){var n=pa.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=gP(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=Hd(r.base);u=[Hd(u[0])/h,Hd(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=Dd(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=Dd(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=ce(g-m),d<0&&u[0]>=0?(d=0,g=ce(m)):g>0&&u[1]<=0&&(g=0,d=-ce(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 cU=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fm,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;nm(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(ks(d,p),nm(d)&&(s=v))}f.length&&(s||(s=f.pop(),ks(s.scale,s.model)),D(f,function(g){vR(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=$4(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]),hU(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"):Pu(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});Ps(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=Io(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=dU(e,n,t,r),i=yU(e,n,t,r);if(pU(t,i,a),gU(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=LP(X(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));EP(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=tr.innerTextLayout(r.rotation,v??r.rotation,o):(h=vU(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:tr.isLabelSilent(t),style:re(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(Xs({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=tr.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,_t(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function vU(r,t,e,n){var a=PI(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Pu(a-Ya/2)?(o=l?"bottom":"top",i="center"):Pu(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 pU(r,t,e){if(!yP(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?(Ir(i),Ir(u)):tT(i,o)&&(n?(Ir(o),Ir(f)):(Ir(i),Ir(u))),a===!1?(Ir(s),Ir(c)):tT(l,s)&&(a?(Ir(l),Ir(h)):(Ir(s),Ir(c)))}}function Ir(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=wv([]);return Do(a,a,-r.rotation),e.applyTransform(ia([],a,r.getLocalTransform())),n.applyTransform(ia([],a,t.getLocalTransform())),e.intersect(n)}}function eT(r){return r==="middle"||r==="center"}function pR(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function wU(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=hm(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,gf.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"}},Dl.axisLine),axisLabel:Sc(Dl.axisLabel,!1),axisTick:Sc(Dl.axisTick,!1),splitLine:Sc(Dl.splitLine,!0),splitArea:Sc(Dl.splitArea,!0),indicator:[]},t}(kt),NU=["axisLine","axisTickLabel","axisName"],BU=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 tr(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(NU,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 _a({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,d,x);y[w].push(new lf({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;$d(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);$d(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;$d(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Yr);function $d(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(ua(n.event),SR(r,t,e,n,a))}function SR(r,t,e,n,a){a.isAvailableBehavior=it(eh,null,e,n),r.trigger(t,a)}function eh(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 UU={axisPointer:1,tooltip:1,brush:1};function tp(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!UU.hasOwnProperty(n.mainType)&&a&&a.model!==e}function xR(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 Yd,Wh={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(Wh),Uh={"alignment-baseline":"textBaseline","stop-color":"stopColor"},uT=Ot(Uh),$U=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=xR(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;ZU(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=ep(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=wR(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=Yd[s];if(f&&st(Yd,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 Ls({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Lr(e,n),yr(t,n,this._defsUsePending,!1,!1),YU(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(){Yd={g:function(t,e){var n=new mt;return Lr(e,n),yr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Vt;return Lr(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 _a;return Lr(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 Lr(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 Ev;return Lr(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 ar({shape:{points:a||[]},silent:!0});return Lr(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 ir({shape:{points:a||[]},silent:!0});return Lr(e,i),yr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Le;return Lr(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 Lr(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 Lr(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=hL(n);return Lr(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 ff(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 gL(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={};bR(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}e=e.nextSibling}}function Lr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),dt(t.__inheritedStyle,r.__inheritedStyle))}function vT(r){for(var t=ep(r),e=[],n=0;n0;i-=2){var o=n[i],s=n[i-1],l=ep(o);switch(a=a||Cr(),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":Do(a,a,-parseFloat(l[0])*Xd,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Xd);ia(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Xd);ia(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 bR(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(Wh,i)?Wh[i]:null;o&&(t[o]=a[2]);var s=st(Uh,i)?Uh[i]:null;s&&(e[s]=a[2])}}}function QU(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&&(TR(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||Xs({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 fe(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&pF(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}(ne);function m8(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 b8(r,t){D(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var w8=function(){function r(){this.dimensions=AR}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 dm(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 dm(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,b8(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 I8(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){R8(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=E8(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function L8(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:N8}function Yl(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function P8(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function R8(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 E8(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=Zd(s),i=qd(i),s&&i;){a=Zd(a),o=qd(o),a.hierNode.ancestor=r;var h=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);h>0&&(O8(k8(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&&!Zd(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!qd(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function Zd(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function qd(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function k8(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function O8(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 N8(r,t){return r.parentNode===t.parentNode?1:2}var B8=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),V8=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 B8},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"?vh(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(_t(e).focus=L),F8(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===sf||wh(e.__edge,P)}})}function F8(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 uf({shape:gm(f,c,h,a,a)})),Ht(d,{shape:gm(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 RR(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function G_(r,t){var e=RR(r);return It(e,t)>=0}function rp(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 q8=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=rp(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}(ne);function K8(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 j8(r,t){r.eachSeriesByType("tree",function(e){Q8(e,t)})}function Q8(r,t){var e=P8(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){M8(s),K8(l,I8,o),s.hierNode.modifier=-l.hierNode.prelim,Il(l,L8);var u=l,f=l,c=l;Il(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),Il(l,function(_){g=(_.getLayout().x+v)*p,y=(_.depth-1)*d;var S=Yl(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),Il(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),Il(l,function(_){g=(_.getLayout().x+v)*p,y=m==="TB"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function J8(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 t$(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 e$(r){r.registerChartView(z8),r.registerSeriesModel(q8),r.registerLayout(j8),r.registerVisual(J8),t$(r)}var kT=["treemapZoomToNode","treemapRender","treemapMove"];function r$(r){for(var t=0;t1;)i=i.parentNode;var o=Uy(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var n$=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};kR(a);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new Ut({itemStyle:o},this,n);i=e.levels=a$(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=rp(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(){ER(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}(ne);function kR(r){var t=0;D(r.children,function(n){kR(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 a$(r,t){var e=Zt(t.get("color")),n=Zt(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 i$=8,OT=8,Kd=5,o$=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),Wv(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+i$*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=gG(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 ar({shape:{points:s$(l,0,m,f,d===v.length-1,d===0)},style:dt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ft({style:re(i,{text:_})}),textConfig:{position:"inside"},z2:$s*1e4,onclick:bt(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=re(o,{text:_}),S.ensureState("emphasis").style=p,fe(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),l$(S,t,y),l+=m+OT}},r.prototype.remove=function(){this.group.removeAll()},r}();function s$(r,t,e,n,a,i){var o=[[a?r:r-Kd,t],[r+e,t],[r+e,t+n],[a?r:r-Kd,t+n]];return!i&&o.splice(2,0,[r+e+Kd,t+n/2]),!a&&o.push([r,t+n/2]),o}function l$(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&&rp(e,t)}}var u$=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=Cr();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&&Ih(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 o$(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=Ll(),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}(qt);function Ll(){return{nodeGroup:[],background:[],content:[]}}function d$(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",ym);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),$h(M).nodeWidth=v,$h(M).nodeHeight=p,f.isAboveViewRoot)return M;var I=ht("background",NT,u,h$);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)ku(M)&&Ji(M,!1),I&&(Ji(I,!O),c.setItemGraphicEl(o.dataIndex,I),Ny(I,B,R));else{var N=ht("content",NT,u,v$);N&&U(M,N),I.disableMorphing=!0,I&&ku(I)&&Ji(I,!1),Ji(M,!O),c.setItemGraphicEl(o.dataIndex,M),Ny(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,xo($)}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,xo($)}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 $r&&(J.z2=g$(K,j)),xt(ct,J)),t[G][y]=J}function Tt(G,$){var K=G[y]={};$ instanceof ym?(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 g$(r,t){return r*c$+t}var Zu=D,y$=gt,Yh=-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=S$[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(jd(a),m$(a)):e==="category"?a.categories?_$(a):jd(a,!0):(er(e!=="linear"||a.dataExtent),jd(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&&Zu(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(y$(t)){var e=[];Zu(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 jd(r,t){var e=r.visual,n=[];gt(e)?Zu(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]),OR(r,n)}function bc(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:mm([0,1])}}function GT(r){var t=this.option.visual;return t[Math.round(Yt(r,[0,1],[0,t.length-1],!0))]||{}}function Pl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function Xl(r){var t=this.option.visual;return t[this.option.loop&&r!==Yh?r%t.length:r]}function Wi(){return this.option.visual[0]}function mm(r){return{linear:function(t){return Yt(t,r,this.option.visual,!0)},category:Xl,piecewise:function(t,e){var n=_m.call(this,e);return n==null&&(n=Yt(t,r,this.option.visual,!0)),n},fixed:Wi}}function _m(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 OR(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=X(t,function(e){var n=Ar(e);return n||[0,0,0,1]})),t}var S$={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??Yh},fixed:ve};function wc(r,t,e){return r?t<=e:t=e.length||d===e[d.depth]){var y=A$(a,l,d,g,p,n);BR(d,y,e,n)}})}}}function w$(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=Qd(r,"color");if(t){var e=Qd(r,"colorAlpha"),n=Qd(r,"colorSaturation");return n&&(t=iu(t,null,null,n)),e&&(t=yh(t,e)),t}}function T$(r,t){return t!=null?iu(t,null,null,r):null}function Qd(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function C$(r,t,e,n,a,i){if(!(!i||!i.length)){var o=Jd(t,"color")||a.color!=null&&a.color!=="none"&&(Jd(t,"colorAlpha")||Jd(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 NR(h).drColorMappingBy=f,h}}}function Jd(r,t){var e=r.get(t);return W(e)&&e.length?{name:t,range:e}:null}function A$(r,t,e,n,a,i){var o=H({},t);if(a){var s=a.type,l=s==="color"&&NR(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 qu=Math.max,Xh=Math.min,WT=Ie,H_=D,VR=["itemStyle","borderWidth"],D$=["itemStyle","gapWidth"],M$=["upperLabel","show"],I$=["upperLabel","height"];const L$={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=Xu(n,h,r),p=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),g=RR(d);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?N$(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),zR(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(B$(s,p,v),!0),r.setLayoutInfo(s),FR(b,new Mt(-s.x,-s.y,a,i),g,d,0)}};function zR(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(VR),u=s.get(D$)/2,f=GR(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=qu(a-2*h,0),i=qu(i-h-v,0);var p=a*i,d=P$(r,s,p,t,e,n);if(d.length){var g={x:h,y:v,width:a,height:i},y=Xh(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 O$(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?qu(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&&!eY(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 ag(r){return r&&!jT(r[0])&&!jT(r[1])}var ig=[],og=[],sg=[],qo=Me,lg=so,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){ig[0]=qo(n[0],a[0],i[0],f),ig[1]=qo(n[1],a[1],i[1],f);var c=QT(lg(ig,t)-l);c=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function ug(r,t){var e=[],n=Mu,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=[aa(u[0]),aa(u[1])],u[2]&&u.__original.push(aa(u[2])));var h=u.__original;if(u[2]!=null){if(qe(a[0],h[0]),qe(a[1],h[2]),qe(a[2],h[1]),f&&f!=="none"){var v=ql(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=ql(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]}qe(u[0],a[0]),qe(u[1],a[2]),qe(u[2],a[1])}else{if(qe(i[0],h[0]),qe(i[1],h[1]),ji(o,i[1],i[0]),Hs(o,o),f&&f!=="none"){var v=ql(s.node1);sy(i[0],i[0],o,v*t)}if(c&&c!=="none"){var v=ql(s.node2);sy(i[1],i[1],o,-v*t)}qe(u[0],i[0]),qe(u[1],i[1])}})}function tC(r){return r.type==="view"}var rY=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 mf,i=new X_,o=this.group;this._controller=new wf(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)}ug(e.getGraph(),Zl(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(_){$R(_,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)&&!tp(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(),ug(e.getGraph(),Zl(e)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=Zl(e);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){ug(e.getGraph(),Zl(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}(qt);function Ko(r){return"_EC_"+r}var nY=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[Ko(t)]){var a=new Ui(t,e);return a.hostGraph=this,this.nodes.push(a),n[Ko(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[Ko(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[Ko(t)]),e instanceof Ui||(e=a[Ko(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new XR(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[Ko(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,ZR("hostGraph","data"));me(XR,ZR("hostGraph","edgeData"));function qR(r,t,e,n,a){for(var i=new nY(n),o=0;o "+h)),u++)}var v=e.get("coordinateSystem"),p;if(v==="cartesian2d"||v==="polar")p=Sa(r,e);else{var d=vf.get(v),g=d?d.dimensions||[]:[];It(g,"value")<0&&g.concat(["value"]);var y=df(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;p=new Je(y,e),p.initData(r)}var m=new Je(["value"],e);return m.initData(l,s),a&&a(p,m),LR({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var aY=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 bf(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),mo(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){U$(this);var s=qR(i,a,this,!0,l);return D(s.edges,function(u){$$(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=S2({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 Je(["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}(ne),iY={type:"graphRoam",event:"graphRoam",update:"none"};function oY(r){r.registerChartView(rY),r.registerSeriesModel(aY),r.registerProcessor(z$),r.registerVisual(F$),r.registerVisual(G$),r.registerLayout(Y$),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Z$),r.registerLayout(K$),r.registerCoordinateSystem("graphView",{dimensions:Tf.dimensions,create:Q$}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ve),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ve),r.registerAction(iY,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 sY=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),lY=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 sY},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 uY(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 Cc(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var fY=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=uY(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?Hh:nr,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:re(_,{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:re(_,{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 lY({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?Hh:nr,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);ae(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");ae(L,{shape:{endAngle:Yt(M,x,w,P)}},e),c.add(L),Ey(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),Ey(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),fe(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),fe(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:re(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:re(M,{x:L,y:P,text:Cc(_,N),width:isNaN(R)?null:R,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:B})}),TL(A,{normal:M},_,function(U){return Cc(U,N)}),d&&CL(A,y,l,e,{getFormattedLabel:function(U,Z,Q,ft,ht,Tt){return Cc(Tt?Tt.interpolatedValue:_,N)}}),S.add(A)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=p},t.type="gauge",t}(qt),cY=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 nl(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}(ne);function hY(r){r.registerChartView(fY),r.registerSeriesModel(cY)}var vY=["itemStyle","opacity"],pY=function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=a,o=new ir,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(vY);f=f??1,a||hn(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,ae(i,{style:{opacity:f}},o,n)):Ht(i,{style:{opacity:f},shape:{points:l.points}},o,n),ke(i,s),this._updateLabel(e,n),fe(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}(ar),dY=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 pY(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);Ou(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}(qt),gY=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new bf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return nl(this,{coordDimensions:["value"],encodeDefaulter:bt(r_,this)})},t.prototype._defaultLabelLine=function(e){mo(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}(ne);function yY(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function mY(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();okY)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||!cg(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 cg(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var BY=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){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=Xt(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),VY=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(pn);function Eo(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=jo(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=jo(s,[0,o]),a=i=jo(s,[a,i]),n=0}t[0]=jo(t[0],e),t[1]=jo(t[1],e);var l=hg(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=jo(t[n],f);var c;return c=hg(t,n),a!=null&&(c.sign!==l.sign||c.spani&&(t[1-n]=t[n]+c.sign*i),t}function hg(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function jo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var vg=D,jR=Math.min,QR=Math.max,nC=Math.floor,zY=Math.ceil,aC=ce,FY=Math.PI,GY=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;vg(a,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new VY(o,Qv(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();vg(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),ks(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=Ac(t.get("axisExpandWidth"),l),c=Ac(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=Ac(v[1]-v[0],l),v[1]=v[0]+p;else{p=Ac(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,zY(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])}),vg(n,function(o,s){var l=(a.axisExpandable?WY:HY)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:FY/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],h=f[i],v=Cr();Do(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?Eo(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]=jR(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r}();function Ac(r,t){return jR(QR(r,t[0]),t[1])}function HY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function WY(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--)Gr(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;iZY}function aE(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function iE(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(To,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(To,t,{isEnd:!0})}))}),a}function oE(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Bs(a,qY),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 Cm(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?Am(r,i[0]):e7(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(n7(J_(r,t,[[n,a],[n+i,a+o]])))}function Q_(r){return dt({strokeNoScale:!0},r.brushStyle)}function sE(r,t,e,n){var a=[ju(r,e),ju(t,n)],i=[Bs(r,e),Bs(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function t7(r){return ho(r.group)}function Am(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Nv(e[t],t7(r));return n[a]}function e7(r,t){var e=[Am(r,t[0]),Am(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=lE(t,a,i);D(n,function(u){var f=KY[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(sE(s[0][0],s[1][0],s[0][1],s[1][1])),q_(t,e),To(t,{isEnd:!1})}function r7(r,t,e,n){var a=t.__brushOption.range,i=lE(r,e,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q_(r,t),To(r,{isEnd:!1})}function lE(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=nE(r,t);return n&&n!==wo?n.clipPath(e,r._transform):yt(e)}function n7(r){var t=ju(r[0][0],r[1][0]),e=ju(r[0][1],r[1][1]),n=Bs(r[0][0],r[1][0]),a=Bs(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function a7(r,t,e){if(!(!r._brushType||o7(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 ap={lineX:fC(0),lineY:fC(1),rect:{createCover:function(r,t){function e(n){return n}return iE({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=aE(r);return sE(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){oE(r,t,e,n)},updateCommon:Cm,contain:Mm},polygon:{createCover:function(r,t){var e=new mt;return e.add(new ir({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 ar({name:"main",draggable:!0,drift:bt(r7,r,t),ondragend:bt(To,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:J_(r,t,e)})},updateCommon:Cm,contain:Mm}};function fC(r){return{createCover:function(t,e){return iE({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=aE(t),n=ju(e[0][r],e[1][r]),a=Bs(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=nE(t,e);if(o!==wo&&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(),oE(t,e,l,a)},updateCommon:Cm,contain:Mm}}function fE(r){return r=t1(r),function(t){return xL(t,r)}}function cE(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 hE(r,t,e){var n=t1(r);return function(a,i){return n.contain(i[0],i[1])&&!tp(a,t,e)}}function t1(r){return Mt.create(r)}var s7=["axisLine","axisTickLabel","axisName"],l7=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(!u7(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=c7(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 tr(e,v);D(s7,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(v,u,e,s,f,a),cf(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:fE(c),isTargetByCursor:hE(c,s,i),getLinearBrushOtherExtent:cE(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(f7(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}(le);function u7(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function f7(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 c7(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var h7={type:"axisAreaSelect",event:"axisAreaSelected"};function v7(r){r.registerAction(h7,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 p7={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function vE(r){r.registerComponentView(OY),r.registerComponentModel(BY),r.registerCoordinateSystem("parallel",$Y),r.registerPreprocessor(PY),r.registerComponentModel(wm),r.registerComponentView(l7),Ns(r,"parallel",wm,p7),v7(r)}function d7(r){Lt(vE),r.registerChartView(wY),r.registerSeriesModel(AY),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,LY)}var g7=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}(),y7=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new g7},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(){ca(this)},t.prototype.downplay=function(){ha(this)},t}(Pt),m7=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 y7,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");fe(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");fe(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(_7(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(qt);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 ff(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function _7(r,t,e){var n=new Vt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ae(n,{shape:{width:r.width+20}},t,e),n}var S7=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=qR(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}(ne);function x7(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=b7(e,t);e.layoutInfo=i;var o=i.width,s=i.height,l=e.getGraph(),u=l.nodes,f=l.edges;T7(u);var c=Xt(u,function(d){return d.getLayout().value===0}),h=c.length!==0?0:e.get("layoutIterations"),v=e.get("orient"),p=e.get("nodeAlign");w7(u,f,n,a,o,s,h,v,p)})}function b7(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function w7(r,t,e,n,a,i,o,s,l){C7(r,t,e,a,i,s,l),I7(r,t,i,a,n,o,s),V7(r,s)}function T7(r){D(r,function(t){var e=Qa(t.outEdges,Zh),n=Qa(t.inEdges,Zh),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function C7(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"&&A7(r,o,i,w);var T=i==="vertical"?(a-e)/w:(n-e)/w;M7(r,T,i)}function pE(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function A7(r,t,e,n){if(t==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,R7(s,l,o),pg(s,a,e,n,o),B7(s,l,o),pg(s,a,e,n,o)}function L7(r,t){var e=[],n=t==="vertical"?"y":"x",a=Iy(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 P7(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 R7(r,t,e){D(r.slice().reverse(),function(n){D(n,function(a){if(a.outEdges.length){var i=Qa(a.outEdges,E7,e)/Qa(a.outEdges,Zh);if(isNaN(i)){var o=a.outEdges.length;i=o?Qa(a.outEdges,k7,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 E7(r,t){return oi(r.node2,t)*r.getValue()}function k7(r,t){return oi(r.node2,t)}function O7(r,t){return oi(r.node1,t)*r.getValue()}function N7(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 Zh(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 F7(r){r.registerChartView(m7),r.registerSeriesModel(S7),r.registerLayout(x7),r.registerVisual(z7),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 dE=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:Bh(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Bh(d),dimsDef:m.slice()}];return nl(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:bt(XL,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),gE=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}(ne);me(gE,dE,!0);var G7=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?(hn(c),yE(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}(qt),H7=function(){function r(){}return r}(),W7=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 H7},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 K7={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==$e){var n="";Wt(n)}var a=q7(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function j7(r){r.registerSeriesModel(gE),r.registerChartView(G7),r.registerLayout($7),r.registerTransform(K7)}var Q7=["color","borderColor"],J7=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=dg(c,f,!0);ae(h,{shape:{points:c.ends}},e,f),gg(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),hn(h)):h=dg(v),gg(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)?_f(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=dg(s);gg(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}(qt),t9=function(){function r(){}return r}(),e9=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 t9},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 dg(r,t,e){var n=r.ends;return new e9({shape:{points:e?r9(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(Q7);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var mE=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"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}(ne);me(mE,dE,!0);function a9(r){!r||!W(r.series)||D(r.series,function(t){gt(t)&&t.type==="k"&&(t.type="candlestick")})}var i9=["itemStyle","borderColor"],o9=["itemStyle","borderColor0"],s9=["itemStyle","borderColorDoji"],l9=["itemStyle","color"],u9=["itemStyle","color0"],f9={seriesType:"candlestick",plan:Js(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?l9:u9)}function n(i,o){return o.get(i===0?s9:i>0?i9:o9)}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)}}}}}},c9={seriesType:"candlestick",plan:Js(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=h9(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]=Kc(ht[a]+n/2,1,!1),Tt[a]=Kc(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]=Kc(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 h9(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 v9(r){r.registerChartView(J7),r.registerSeriesModel(mE),r.registerPreprocessor(a9),r.registerVisual(f9),r.registerLayout(c9)}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 p9=function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=new yf(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=py;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}(_E),_9=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),S9=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 _9},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(XI(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}(),xE={seriesType:"lines",plan:Js(),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)&&_f(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=xE.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 x9:new X_(o?i?m9:SE:i?_E: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}(qt),w9=typeof Uint32Array>"u"?Array:Uint32Array,T9=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 C9=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=vh(this._flatCoords,n.flatCoords),this._flatCoordsOffset=vh(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}(ne);function Dc(r){return r instanceof Array||(r=[r,r]),r}var A9={seriesType:"lines",reset:function(r){var t=Dc(r.get("symbol")),e=Dc(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=Dc(s.getShallow("symbol",!0)),u=Dc(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 D9(r){r.registerChartView(b9),r.registerSeriesModel(C9),r.registerLayout(xE),r.registerVisual(A9)}var M9=256,I9=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 L9(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 R9=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=Po(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=_,fe(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 I9;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"?P9(S,a.option.range):L9(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}(qt),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.getInitialData=function(e,n){return Sa(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=vf.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}(ne);function k9(r){r.registerChartView(R9),r.registerSeriesModel(E9)}var O9=["itemStyle","borderWidth"],_C=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],_g=new _a,N9=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),_=DE(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?W9(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)?_f(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}(qt);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};B9(e,i,a,n,h),V9(r,t,a,i,o,h.boundingLength,h.pxSign,f,n,h),z9(e,h.symbolScale,u,n,h);var v=h.symbolSize,p=Io(e.get("symbolOffset"),v);return F9(e,v,a,i,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function B9(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=[Sg(s,o[0])-l,Sg(s,o[1])-l];c[1]0?1:-1}function Sg(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function V9(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 z9(r,t,e,n,a){var i=r.get(O9)||0;i&&(_g.attr({scaleX:t[0],scaleY:t[1],rotation:e}),_g.updateTransform(),i/=_g.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function F9(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=EI(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 bE(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 wE(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 TE(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Cs(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=bE(e),a.add(i),Cs(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 CE(r,t,e){var n=H({},t.barRectShape),a=r.__pictorialBarRect;a?Cs(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 AE(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],Mo[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function xC(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=G9,e.isAnimationEnabled=H9,e}function G9(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function H9(){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?wE(a,t,e):TE(a,t,e),CE(a,e,n),AE(a,t,e,n),a.__pictorialShapeStr=DE(r,e),a.__pictorialSymbolMeta=e,a}function W9(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?wE(r,t,e,!0):TE(r,t,e,!0),CE(r,e,!0),AE(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 DE(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 Cs(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&Mo[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:Os(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),fe(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 U9=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($u.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}($u);function $9(r){r.registerChartView(N9),r.registerSeriesModel(U9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(fP,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,cP("pictorialBar"))}var Y9=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 va(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(Y9),r.registerSeriesModel(Z9),r.registerLayout(q9),r.registerProcessor(xf("themeRiver"))}var Q9=2,J9=4,DC=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;o.z2=Q9,o.textConfig={inside:!0},_t(o).seriesIndex=n.seriesIndex;var s=new Ft({z2:J9,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=Es(v,o));var p=ao(l.getModel("itemStyle"),c,!0);H(c,p),D(rr,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=ao(S,c);b&&(_.shape=b)}),e?(s.setShape(c),s.shape.r=f.r0,ae(s,{shape:{r:f.r}},a,n.dataIndex)):(Ht(s,{shape:c},a),hn(s)),s.useStyle(h),this._updateLabel(a);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;fe(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&&!Pu(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";Ih(u,f)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Im,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}(qt),nX=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};ME(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=rp(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(){ER(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}(ne);function ME(r){var t=0;D(r.children,function(n){ME(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 aX(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&&IE(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=yy(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 sX(r){r.registerChartView(rX),r.registerSeriesModel(nX),r.registerLayout(bt(aX,"sunburst")),r.registerProcessor(bt(xf,"sunburst")),r.registerVisual(oX),eX(r)}var LC={color:"fill",borderColor:"stroke"},lX={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},sa=zt(),uX=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 Sa(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=sa(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}(ne);function fX(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 cX(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(fX,r)}}}function hX(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 vX(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(hX,r)}}}function pX(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 dX(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(pX,r)}}}function gX(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 yX(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(gX,r)}}}function mX(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 LE(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function PE(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 RE={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},kC=Ot(RE);Bn(zn,function(r,t){return r[t]=1,r},{});zn.join(", ");var qh=["","style","shape","extra"],Vs=zt();function r1(r,t,e,n,a){var i=r+"Animation",o=Ys(r,n,a)||{},s=Vs(t).userDuring;return o.duration>0&&(o.during=s?it(wX,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),H(o,e[i]),o}function rh(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=Vs(r),u=t.style;l.userDuring=t.during;var f={},c={};if(CX(r,t,c),NC("shape",t,c),NC("extra",t,c),!i&&s&&(TX(r,t,f),OC("shape",r,t,f),OC("extra",r,t,f),AX(r,t,u,f)),c.style=u,_X(r,c,o),xX(r,t),s)if(i){var h={};D(qh,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 SX(r,t,a||0,e,f);EE(r,t),u?r.dirty():r.markRedraw()}function EE(r,t){for(var e=Vs(r).leaveToProps,n=0;n0&&r.animateFrom(a,i)}}function xX(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof $r&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Pt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var bn={},bX={setTransform:function(r,t){return bn.el[r]=t,this},getTransform:function(r){return bn.el[r]},setShape:function(r,t){var e=bn.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=bn.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=bn.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=bn.el.style;if(t)return t[r]},setExtra:function(r,t){var e=bn.el.extra||(bn.el.extra={});return e[r]=t,this},getExtra:function(r){var t=bn.el.extra;if(t)return t[r]}};function wX(){var r=this,t=r.el;if(t){var e=Vs(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}bn.el=t,n(bX)}}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]={}),go(l))H(o,i);else for(var u=Zt(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=re(Z,null,U,!1,!0);Q.text=Z.getShallow("show")?St(r.getFormattedLabel(R,Xa),Os(t,R)):null;var ft=Dh(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,la).getItemStyle(),B=_(R,la),N=re(B,null,null,!0,!0);N.text=B.getShallow("show")?kn(r.getFormattedLabel(R,la),r.getFormattedLabel(R,Xa),Os(t,R)):null;var F=Dh(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(lX,P))return t.getItemVisual(R,P)}function M(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return C4(dt({axis:R},P))}}function I(){return e.getCurrentSeriesIndices()}function L(P){return q0(P,e)}}function NX(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 Tg(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&&fe(s,n.focus,n.blurScope,n.emphasisDisabled),s}function s1(r,t,e,n,a,i){var o=-1,s=t;t&&BE(t,n,a)&&(o=It(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=i1(n),s&&RX(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Pr.normal.cfg=Pr.normal.conOpt=Pr.emphasis.cfg=Pr.emphasis.conOpt=Pr.blur.cfg=Pr.blur.conOpt=Pr.select.cfg=Pr.select.conOpt=null,Pr.isLegacy=!1,VX(u,e,n,a,l,Pr),BX(u,e,n,a,l),o1(r,u,e,n,Pr,a,l),st(n,"info")&&(sa(u).info=n.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function BE(r,t,e){var n=sa(r),a=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&WX(i)&&VE(i)!==n.customPathData||a==="image"&&st(o,"image")&&o.image!==n.customImagePath}function BX(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&&BE(o,i,n)&&(o=null),o||(o=i1(i),r.setClipPath(o)),o1(null,o,t,i,null,n,a)}}function VX(r,t,e,n,a,i){if(!r.isGroup){VC(e,null,i),VC(e,la,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);FX(t,p,a)}}}function FX(r,t,e){t&&ip(t,sa(r).option,e)}function GX(r){new va(r.oldChildren,r.newChildren,zC,zC,r).add(FC).update(FC).remove(HX).execute()}function zC(r,t){var e=r&&r.name;return e??LX+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 HX(r){var t=this.context,e=t.oldChildren[r];e&&ip(e,sa(e).option,t.seriesModel)}function VE(r){return r&&(r.pathData||r.d)}function WX(r){return r&&(st(r,"pathData")||st(r,"d"))}function UX(r){r.registerChartView(EX),r.registerSeriesModel(uX)}var qi=zt(),GC=yt,Cg=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=qi(t).pointerEl=new Mo[i.type](GC(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=qi(t).labelEl=new Ft(GC(e.label));t.add(i),WC(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=qi(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=qi(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=hf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ua(u.event)},onmousedown:Cg(this._onHandleDragMove,this,0,0),drift:Cg(this._onHandleDragMove,this),ondragend:Cg(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,tl(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,Ag(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(Ag(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Ag(a)),qi(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),zu(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){zE(qi(e).lastProp,n)||(qi(e).lastProp=n,t?Ht(e,n,r):(e.stopAnimation(),e.attr(n)))}function zE(r,t){if(gt(r)&>(t)){var e=!0;return D(t,function(n,a){e=e&&zE(r[a],n)}),!!e}else return r===t}function WC(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Ag(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 FE(r,t,e,n,a){var i=e.get("value"),o=GE(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ks(s.get("padding")||0),u=s.getFont(),f=af(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),$X(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:re(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function $X(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 GE(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=Cr();return Do(n,n,e.rotation),Vn(n,n,e.position),un([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function HE(r,t,e,n,a,i){var o=tr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),FE(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 WE(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 YX=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=XX[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var p=cm(l.model,a);HE(n,e,p,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=cm(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 XX={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:WE([t-n/2,e[0]],[n,a],XC(r))}}};function XC(r){return r.dim==="x"?0:1}var ZX=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(),qX=D;function UE(r,t,e){if(!Rt.node){var n=t.getZr();ta(n).records||(ta(n).records={}),KX(n,t);var a=ta(n).records[r]||(ta(n).records[r]={});a.handler=e}}function KX(r,t){if(ta(r).initialized)return;ta(r).initialized=!0,e("click",bt(ZC,"click")),e("mousemove",bt(ZC,"mousemove")),e("globalout",QX);function e(n,a){r.on(n,function(i){var o=JX(t);qX(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 QX(r,t,e){r.handler("leave",null,e)}function ZC(r,t,e,n){t.handler(r,e,n)}function JX(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 Rm(r,t){if(!Rt.node){var e=t.getZr(),n=(ta(e).records||{})[r];n&&(ta(e).records[r]=null)}}var tZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";UE("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){Rm("axisPointer",n)},t.prototype.dispose=function(e,n){Rm("axisPointer",n)},t.type="axisPointer",t}(le);function $E(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=_o(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 eZ(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){nh(a)&&(a=$E({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=nh(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||nh(a),h={},v={},p={list:[],map:{}},d={showPointer:bt(nZ,v),showTooltip:bt(aZ,p)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=lZ(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)}),iZ(v,f,h),oZ(p,a,r,o),sZ(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=rZ(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 rZ(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 nZ(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function aZ(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=Yu(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 iZ(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 oZ(r,t,e,n){if(nh(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 sZ(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 lZ(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 nh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Cf(r){Ro.registerAxisPointerClass("CartesianAxisPointer",YX),r.registerComponentModel(ZX),r.registerComponentView(tZ),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=mU(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},eZ)}function uZ(r){Lt(_R),Lt(Cf)}var fZ=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=hZ[h](s,l,c,f);p.style=v,e.graphicKey=p.type,e.pointer=p}var d=i.get(["label","margin"]),g=cZ(n,a,i,l,d);FE(e,a,i,o,g)},t}(u1);function cZ(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=Cr();Do(h,h,s),Vn(h,h,[n.cx,n.cy]),u=un([o,-a],h);var v=t.getModel("axisLabel").get("rotate")||0,p=tr.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 hZ={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)}}},vZ=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,gf);var pZ=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),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.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}(pn);p1.prototype.dataToRadius=pn.prototype.dataToCoord;p1.prototype.radiusToData=pn.prototype.coordToData;var gZ=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=af(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=gZ(e.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-v)<=1&&Math.abs(g-o)<=1&&d>v?v=d:(p.lastTickCount=o,p.lastAutoInterval=v),v},t}(pn);d1.prototype.dataToAngle=pn.prototype.dataToCoord;d1.prototype.angleToData=pn.prototype.coordToData;var YE=["radius","angle"],yZ=function(){function r(t){this.dimensions=YE,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 mZ(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 _Z(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(Vh(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),D(Vh(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),ks(n.scale,n.model),ks(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 SZ(r){return r.mainType==="angleAxis"}function JC(r,t){var e;if(r.type=t.get("type"),r.scale=Qv(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),SZ(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 xZ={dimensions:YE,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new yZ(a+"");i.update=_Z;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");JC(o,l),JC(s,u),mZ(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}},bZ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Mc(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 Ic(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 wZ=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(bZ,function(f){e.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&TZ[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Ro),TZ={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=Ic(e),c=f?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?h=new Mo[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 lf({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[Ic(e)],u=X(n,function(f){return new we({shape:Mc(e,[l,l+s],f.coord)})});r.add(zr(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[Ic(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:tr.isLabelSilent(t),style:re(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=tr.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 PZ(r){var t={};D(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=ZE(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=XE(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 HZ(r,t){var e=[];return r.eachComponent("singleAxis",function(n,a){var i=new GZ(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 WZ={create:HZ,dimensions:qE},rA=["x","y"],UZ=["width","height"],$Z=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=Dg(l,1-Qh(s)),f=l.dataToPoint(n)[0],c=i.get("type");if(c&&c!=="none"){var h=f1(i),v=YZ[c](s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var p=Em(a);HE(n,e,p,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Em(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=Qh(o),u=Dg(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=Dg(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),YZ={line:function(r,t,e){var n=h1([t,e[0]],[t,e[1]],Qh(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:WE([t-n/2,e[0]],[n,a],Qh(r))}}};function Qh(r){return r.isHorizontal()?0:1}function Dg(r,t){var e=r.getRect();return[e[rA[t]],e[rA[t]]+e[UZ[t]]]}var XZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(le);function ZZ(r){Lt(Cf),Ro.registerAxisPointerClass("SingleAxisPointer",$Z),r.registerComponentView(XZ),r.registerComponentView(VZ),r.registerComponentModel(ah),Ns(r,"single",ah,ah.defaultOption),r.registerCoordinateSystem("single",WZ)}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.init=function(e,n,a){var i=js(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 yG(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});ai(r,t,{type:"box",ignoreSize:a})}var KZ=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 ir({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?pG(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:re(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=Gy(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/Mg)-Math.floor(e[0].time/Mg)+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 QZ(r){r.registerComponentModel(qZ),r.registerComponentView(KZ),r.registerCoordinateSystem("calendar",jZ)}function JZ(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 tq(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}),HL(e,a),Lc(e,a),Lc(e,a,"shape"),Lc(e,a,"style"),Lc(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var KE=["transition","enterFrom","leaveTo"],eq=KE.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Lc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?KE:eq,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=Nr(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wv(v,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!Nr(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){ih(a,Nr(a).option,n,e._lastGraphicModel)}),this._elMap=ut()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(le);function km(r){var t=st(oA,r)?oA[r]:Z0(r),e=new t({});return Nr(e).type=r,e}function sA(r,t,e,n){var a=km(e);return t.add(a),n.set(r,a),Nr(a).id=r,Nr(a).isNew=!0,a}function ih(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){ih(i,t,e,n)}),ip(r,t,n),e.removeKey(Nr(r).id))}function lA(r,t,e,n){r.isGroup||D([["cursor",$r.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 iq(r){return r=H({},r),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(GL),function(t){delete r[t]}),r}function oq(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 sq(r){r.registerComponentModel(nq),r.registerComponentView(aq),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"],lq=["cartesian2d","polar","singleAxis"];function uq(r){var t=r.get("coordinateSystem");return It(lq,t)>=0}function Za(r){return r+"Axis"}function fq(r,t){var e=ut(),n=[],a=ut();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var p=e.get(h);p&&p[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}function jE(r){var t=r.ecModel,e={infoList:[],infoMap:ut()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(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 Ig=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}(),Qu=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),n5);if(i.specified){n=!0;var o=new Ig;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 Ig;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 Ig;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 ss(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)}});ss(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;ss(["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=LI(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 pq(r,t,e){var n=[1/0,-1/0];ss(e,function(o){X4(n,o.getData(),t)});var a=r.getAxisModel(),i=dP(a.axis.scale,a,n).calculate();return[i.min,i.max]}var dq={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 vq(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 gq(r){r.registerAction("dataZoom",function(t,e){var n=fq(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,dq),gq(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function yq(r){r.registerComponentModel(cq),r.registerComponentView(hq),y1(r)}var Vr=function(){function r(){}return r}(),QE={};function ls(r,t){QE[r]=t}function JE(r){return QE[r]}var mq=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=JE(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 _q(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=xe(n,i,a);vo(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Wv(r,n,i,a)}function tk(r,t){var e=Ks(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 Sq=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 va(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(xq(g))S={onclick:_.option.onclick,featureName:g};else{var b=JE(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=qs("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Vr;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"?ca:ha)(A[w])},S instanceof Vr&&S.render&&S.render(_,n,a,i)}function v(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof Vr&&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=hf(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),Xs({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"?ca:ha)(A),o.add(A),A.on("click",it(d.onclick,d,n,a,C)),w[C]=A})}_q(o,e,a),o.add(tk(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=af(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 Vr&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){D(this._features,function(a){a instanceof Vr&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){D(this._features,function(a){a instanceof Vr&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(le);function xq(r){return r.indexOf("my")===0}var bq=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}(Vr),vA="__ec_magicType_stack__",wq=[["line","bar"],["stack"]],Tq=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(wq,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}(Vr),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 op=new Array(60).join("-"),zs=" ";function Cq(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 Aq(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(zs)],f=0;f=0)return!0}var Om=new RegExp("["+zs+"]+","g");function Lq(r){for(var t=r.split(/\n+/g),e=Jh(t.shift()).split(Om),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 Nq(r){var t=m1(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return ek(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 Bq(r){rk(r).snapshots=null}function Vq(r){return m1(r).length}function m1(r){var t=rk(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var zq=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Bq(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}(Vr);Wn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var Fq=["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(Gq,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=Lg[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=Lg[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=Lg[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?_A[n.brushType](i.values,o.offset,Hq(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:fE(a),isTargetByCursor:hE(a,t,n.coordSysModel),getLinearBrushOtherExtent:cE(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 lu(r,t,{includeMainTypes:Fq})}var Gq={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(ho(r)),t}},Lg={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=[Nm([a[0],i[0]]),Nm([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=Nm(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 Hq(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 Bm=D,Wq=Qz("toolbox-dataZoom_"),Uq=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()),Xq(e,n,this,i,a),Yq(e,n)},t.prototype.onclick=function(e,n,a){$q[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)}}),Oq(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=Eo(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=[];Bm(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}(Vr),$q={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Nq(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 Yq(r,t){r.setIconStatus("back",Vq(t)>1?"emphasis":"normal")}function Xq(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)}wG("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=lu(r,i);Bm(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Bm(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:Wq+u+c};h[f]=c,a.push(h)}return a});function Zq(r){r.registerComponentModel(mq),r.registerComponentView(Sq),ls("saveAsImage",bq),ls("magicType",Tq),ls("dataView",Eq),ls("dataZoom",Uq),ls("restore",zq),Lt(yq)}var qq=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 nk(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function ak(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 rK(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),Qq+":"+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],[ik,o]]}function nK(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 aK(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=_2(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(rK(a,e)),i&&n.push("background-color:"+i),D(["width","color","radius"],function(v){var p="border-"+v,d=zL(p),g=r.get(d);g!=null&&n.push(p+":"+g+(v==="color"?"":"px"))}),n.push(nK(f)),c!=null&&n.push("padding:"+Ks(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&&LV(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 iK=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):Is(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();Er(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=Jq+aK(t,!this._firstShow,this._longHide)+bA(i[0],i[1],!0)+("border-color:"+bo(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"&&!nk(n)&&(s=eK(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=hK(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=sK;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=$E(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=Rl([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;eo(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=Rl([n.tooltipOption],i),l=this._renderMode,u=[],f=De("section",{blocks:[],noHeader:!0}),c=[],h=new dd;D(e,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=GE(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=De("section",{header:x,noHeader:!an(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),D(_.seriesDataIndices,function(T){var C=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=C.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=b_(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",bo(M.color),l);var I=hb(C.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=Rl([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=Rl([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 dd;y.marker=m.makeTooltipMarker("item",bo(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=lr(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=Rl(c,this._tooltipModel,v?{position:v}:null),d=p.get("content"),g=Math.random()+"",y=new dd;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=Vv(y.axisValue,v,g)),v=FL(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=cK(n,p,c,e.get("borderWidth"));a=y[0],i=y[1]}else{var y=uK(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),nk(e)){var y=fK(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()||(zu(this,"_updatePosition"),this._tooltipContent.dispose(),Rm("itemTooltip",n))},t.type="tooltip",t}(le);function Rl(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 uK(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 fK(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 cK(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 hK(r,t,e){var n=N0(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=of(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 vK(r){Lt(Cf),r.registerComponentModel(qq),r.registerComponentView(lK),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ve),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ve)}var pK=["rect","polygon","keep","clear"];function dK(r,t){var e=Zt(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),gK(s),t&&!s.length&&s.push.apply(s,pK)}}function gK(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 Vm(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 sk(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 yK(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){I2(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 CK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.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){lk(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}(le),AK="#ddd",DK=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&&sk(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:AK},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 MK=["rect","polygon","lineX","lineY","keep","clear"],IK=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:MK.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}(Vr);function LK(r){r.registerComponentView(CK),r.registerComponentModel(DK),r.registerPreprocessor(dK),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,SK),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"},ve),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ve),ls("brush",IK)}var PK=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),RK=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:re(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new Ft({style:re(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(){Ih(p,"_"+e.get("target"))}),d&&v.on("click",function(){Ih(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}(le);function EK(r){r.registerComponentModel(PK),r.registerComponentView(RK)}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(Us(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 Je([{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),uk=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(uk,$v.prototype);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.type="timeline",t}(le),OK=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(pn),Rg=Math.PI,BA=zt(),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.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=VK(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:Rg/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*Rg/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=Cr(),l=o.x,u=o.y+o.height;Vn(s,s,[-l,-u]),Do(s,s,-Rg/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=BK(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 OK("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(),co(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:re(v,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=re(p),y.ensureState("progress").style=re(d),n.add(y),co(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=cn(St(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=zK(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(_),co(_)}}},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=Gr(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(h)),[o,c]}var Eg={min:bt(Ec,"min"),max:bt(Ec,"max"),average:bt(Ec,"average"),median:bt(Ec,"median")};function Ju(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!$K(t)&&!W(t.coord)&&W(a)){var i=fk(t,e,n,r);if(t=yt(t),t.type&&Eg[t.type]&&i.baseAxis&&i.valueAxis){var o=It(a,i.baseAxis.dim),s=It(a,i.valueAxis.dim),l=Eg[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++)Eg[u[f]]&&(u[f]=w1(e,e.mapDimension(a[f]),u[f]));return t}}function fk(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(YK(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 YK(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function tf(r,t){return r&&r.containData&&t.coord&&!Fm(t)?r.containData(t.coord):!0}function XK(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Fm(t)&&!Fm(e)?r.containZone(t.coord,e.coord):!0}function ck(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 kg=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){kg(s).keep=!1}),n.eachSeries(function(s){var l=ga.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!kg(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(e){kg(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;D(e,function(i){var o=ga.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?nL(l):W0(l))})}})},t.type="marker",t}(le);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 ZK=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=ga.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 mf),c=qK(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=pf(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 qK(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 Je(n,e),i=X(e.get("data"),bt(Ju,t));r&&(i=Xt(i,bt(tf,r)));var o=ck(!!r,n);return a.initData(i,null,o),a}function KK(r){r.registerComponentModel(UK),r.registerComponentView(ZK),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}(ga),kc=zt(),QK=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=fk(n,a,t,r);s=u.valueAxis;var f=aP(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 tv(r){return!isNaN(r)&&!isFinite(r)}function HA(r,t,e,n){var a=1-r,i=n.dimensions[r];return tv(t[a])&&tv(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function JK(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 tf(r,t[0])&&tf(r,t[1])}function Og(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(Po(i,"cartesian2d")){var v=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;tv(r.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[e?0:1]):tv(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 tj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=ga.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=kc(o).from,u=kc(o).to;l.each(function(f){Og(l,f,!0,i,a),Og(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=ej(o,e,n),h=c.from,v=c.to,p=c.line;kc(n).from=h,kc(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);Og(S,b,x,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=pf(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 ej(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 Je(n,e),i=new Je(n,e),o=new Je([],e),s=X(e.get("data"),bt(QK,t,r,e));r&&(s=Xt(s,bt(JK,r)));var l=ck(!!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 rj(r){r.registerComponentModel(jK),r.registerComponentView(tj),r.registerPreprocessor(function(t){b1(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var nj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="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}(ga),Oc=zt(),aj=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 ev(r){return!isNaN(r)&&!isFinite(r)}function WA(r,t,e,n){var a=1-r;return ev(t[a])&&ev(e[a])}function ij(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 Po(r,"cartesian2d")?e&&n&&(WA(1,e,n)||WA(0,e,n))?!0:XK(r,a,i):tf(r,a)||tf(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(Po(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(e[0],t),g=r.get(e[1],t);ev(d)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):ev(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"]],oj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=ga.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=sj(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))];Gr(m),Gr(_);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=pf(l,"color");x.fill||(x.fill=w,nt(x.fill)&&(x.fill=yh(x.fill,.4))),x.stroke||(x.stroke=w),c.setItemVisual(h,"style",x)}),c.diff(Oc(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var p=new ar({shape:{points:v.points}});c.setItemGraphicEl(h,p),f.group.add(p)}}).update(function(h,v){var p=Oc(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 ar({shape:{points:d.points}}),c.setItemGraphicEl(h,p),f.group.add(p))}).remove(function(h){var v=Oc(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)?yh(d.fill,1):"#000"}),ke(h,p),fe(h,null,null,p.get(["emphasis","disabled"])),_t(h).dataModel=n}),Oc(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(T1);function sj(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 Je(a,e)}else a=[{name:"value",type:"float"}],n=new Je(a,e);var s=X(e.get("data"),bt(aj,t,r,e));r&&(s=Xt(s,bt(ij,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 lj(r){r.registerComponentModel(nj),r.registerComponentView(oj),r.registerPreprocessor(function(t){b1(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var uj=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"])}},Gm=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,uj(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),Qo=bt,Hm=D,Nc=mt,hk=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 Nc),this.group.add(this._selectorGroup=new Nc),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=tk(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)}),Hm(n.getData(),function(v,p){var d=v.get("name");if(!this.newlineDisabled&&(d===""||d===` +`)){var g=new Nc;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",Qo(YA,d,null,i,h)).on("mouseover",Qo(Wm,y.name,null,i,h)).on("mouseout",Qo(Um,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=Ar(A.fill);I&&I[3]===0&&(I[3]=.2,A=H(H({},A),{fill:oa(I,"rgba")}));var L=this._createItem(w,d,p,v,n,e,{},A,M,c,i);L.on("click",Qo(YA,null,d,i,h)).on("mouseover",Qo(Wm,null,d,i,h)).on("mouseout",Qo(Um,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();Hm(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}),co(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=fj(f,i,l,u,v,g,h),b=new Nc,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(cj({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:re(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")&&Xs({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),co(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();vo(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){vo("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}(le);function fj(r,t,e,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Hm(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:Es(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 cj(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){Um(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Wm(r,t,e,n)}function vk(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=Ng[o],l=Bg[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}(hk);function gj(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 yj(r){Lt(pk),r.registerComponentModel(pj),r.registerComponentView(dj),gj(r)}function mj(r){Lt(pk),Lt(yj)}var _j=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(Qu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Qu),C1=zt();function Sj(r,t,e){C1(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function xj(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 Aj(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=jE(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,bj(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){dk(a,i);return}var f=Cj(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),tl(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Dj=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(),Sj(a,e,{pan:it(Vg.pan,this),zoom:it(Vg.zoom,this),scrollMove:it(Vg.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xj(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(g1),Vg={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=zg[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(Eo(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=zg[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=zg[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(Eo(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var zg={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 gk(r){y1(r),r.registerComponentModel(_j),r.registerComponentView(Dj),Aj(r)}var Mj=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(Qu.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}(Qu),Ol=Vt,KA=7,Ij=1,Fg=30,Lj=7,Nl="horizontal",jA="vertical",Pj=5,Rj=["line","bar","candlestick","scatter"],Ej={easing:"cubicOut",duration:100,delay:0},kj=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),tl(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(){zu(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?Lj:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Nl?{right:s.width-o.x-o.width,top:s.height-Fg-KA-i,width:o.width,height:Fg}:{right:KA,top:o.y,width:Fg,height:o.height},u=js(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===Nl&&!o?{scaleY:l?1:-1,scaleX:1}:a===Nl&&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 Ol({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Ol({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 ar({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new ir({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(Rj,u.get("type"))<0)){var f=i.getComponent(Za(o),s).axis,c=Oj(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 Ol({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Ol({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:Ij,fill:"rgba(0,0,0,0)"}})),D([0,1],function(_){var S=l.get("handleIcon");!Rh[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(),co(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:re(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];Eo(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=Gr([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=Gr(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=Gr([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&&(ua(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 Ol({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?Ej:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=jE(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(g1);function Oj(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 yk(r){r.registerComponentModel(Mj),r.registerComponentView(kj),y1(r)}function Nj(r){Lt(gk),Lt(yk)}var mk={get:function(r,t,e){var n=yt((Bj[r]||{})[t]);return e&&W(n)?n[n.length-1]:n}},Bj={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,Vj=Ce.eachVisual,zj=W,tD=D,Fj=Gr,Gj=Yt,rv=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&&sk(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=Vm(this.option.controller,n,e),this.targetVisuals=Vm(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=Zt(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=Fj([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){zj(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=mk.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;Vj(S,function(x){x>b&&(b=x)}),_.symbolSize=JA(S,function(x){return Gj(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],Hj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.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=Gr((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();Wj([0,1],function(f){var c=o[f];c.setStyle("fill",n.handlesColor[f]),c.y=e[f];var h=wn(e[f],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=v/l[0],c.x=l[0]-v/2;var p=un(a.handleLabelPoints[f],ho(c,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",h),p=this.getControllerVisual(e,"symbolSize"),d=wn(e,s,u,!0),g=l[0]-p/2,y={x:c.x,y:c.y};c.y=d,c.x=g;var m=un(f.indicatorLabelPoint,ho(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=e5(h,v);this._dispatchHighDown("downplay",oh(p[0],a)),this._dispatchHighDown("highlight",oh(p[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(eo(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:pf(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Zj,qj),D(Kj,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Qj))}function bk(r){r.registerComponentModel(Hj),r.registerComponentView(Yj),xk(r)}var Jj=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=[],tQ[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]=mk.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(rv.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}(rv),tQ={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 eQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.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),vo(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:oh(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return Sk(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:re(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}(_k);function wk(r){r.registerComponentModel(Jj),r.registerComponentView(eQ),xk(r)}function rQ(r){Lt(bk),Lt(wk)}var nQ={label:{enabled:!0},decal:{show:!1}},cD=zt(),aQ={};function iQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=yt(nQ);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=Uy(h.ecModel,h.name,aQ,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=Uy(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"},lQ=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):xV(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}(),uQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),fQ=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){ps(L,R)&&ps(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 Ym(r,t,e,n,a,i,o,s,l,u){if(ps(r,e)&&ps(t,n)&&ps(a,o)&&ps(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),Ym(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),Ym(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function TQ(r,t){var e=$m(r),n=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),c=Ck([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;va,o=Ck([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 DQ(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 ts(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function MQ(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),MQ(t,u,f)}function nv(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);nv(r,i[0],a,n),nv(r,i[1],e-a,n)}return n}function IQ(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 ov(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:VQ(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 Mk(r){return RQ(r.path,r.count)}function Xm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function zQ(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 GQ={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(av(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:GQ[e],individualDelay:s&&function(B,N,F,U){return s(B+_,S)}},l),I=m?zQ(x,w,M):FQ(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;dIk))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 ZQ(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(Zt(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&&Lk(a,i,n)}function KQ(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){D(Zt(n.seriesTransition),function(a){D(Zt(a.to),function(i){for(var o=n.updatedSeries,s=0;st.status),n=fs(null),a=fs(null),i=fs(null),o=fs(null);h0(()=>{s()});function s(){const l=oc(n.value),u=oc(a.value),f=oc(i.value),c=oc(o.value);function h(){l.setOption({title:{text:"CPU",left:"center",top:"center",textStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14}},series:[{type:"pie",radius:["50%","70%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:xr(()=>[{value:e.value.hardware.cpu.percent,name:"CPU"},{value:100-e.value.hardware.cpu.percent,name:"空闲"}]).value}]}),u.setOption({title:{text:"Memory",left:"center",top:"center",textStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14}},series:[{type:"pie",radius:["50%","70%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:t.status.hardware.mem.used,name:"Memory"},{value:t.status.hardware.mem.total-t.status.hardware.mem.used,name:"空闲"}]}]}),f.setOption({title:{text:"Swap",left:"center",top:"center",textStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14}},series:[{type:"pie",radius:["50%","70%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:t.status.hardware.swap.used,name:"Swap"},{value:t.status.hardware.swap.total-t.status.hardware.swap.used,name:"空闲"}]}]}),c.setOption({title:{text:"Disk",left:"center",top:"center",textStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14}}})}h(),Jl(()=>e.value,()=>{h()})}return(l,u)=>(nn(),na("div",jQ,[pe("div",QQ,[pe("span",null,Yi(t.status.meta.name),1),pe("span",null,Yi(t.status.meta.id),1)]),pe("div",JQ,[pe("div",tJ,[u[0]||(u[0]=pe("img",{class:"icon",src:nV,alt:"system"},null,-1)),pe("span",null,Yi(t.status.meta.location),1)]),pe("div",eJ,[u[1]||(u[1]=pe("img",{class:"icon",src:aV,alt:"system"},null,-1)),pe("span",null,Yi(t.status.meta.os.name),1)])]),pe("div",rJ,[(nn(!0),na(Sr,null,p0(t.status.meta.labels,f=>(nn(),na("span",{class:"label",key:f},Yi(f),1))),128))]),pe("div",nJ,[pe("div",{class:"chart",ref_key:"cpuChartRef",ref:n},null,512),pe("div",{class:"chart",ref_key:"memoryChartRef",ref:a},null,512),pe("div",{class:"chart",ref_key:"swapChartRef",ref:i},null,512),pe("div",{class:"chart",ref_key:"diskChartRef",ref:o},null,512)])]))}}),Af=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e},iJ=Af(aJ,[["__scopeId","data-v-70ccf727"]]),oJ={class:"grid-container"},sJ=Fs({__name:"Home",setup(r){const t=fs({});return h0(async()=>{t.value=await CS(),console.log("mounted");const e=setInterval(async()=>{t.value=await CS(),console.log("refresh")},1e3);v0(()=>{clearInterval(e),console.log("unmounted")})}),(e,n)=>(nn(),na("div",oJ,[(nn(!0),na(Sr,null,p0(t.value,(a,i)=>(nn(),PM(iJ,{class:"grid-item",key:i,status:a},null,8,["status"]))),128))]))}}),lJ=Af(sJ,[["__scopeId","data-v-9196e233"]]),uJ={};function fJ(r,t){return" Test "}const cJ=Af(uJ,[["render",fJ]]),hJ=[{path:"/",name:"主页",component:lJ},{path:"/test",name:"测试",component:cJ}],Pk=tV({history:LB("/"),routes:hJ}),vJ={class:"navbar"},pJ={class:"navbar-right"},dJ=Fs({__name:"Nav",setup(r){return(t,e)=>{const n=hM("router-link");return nn(),na("div",vJ,[e[0]||(e[0]=pe("div",{class:"navbar-left"},null,-1)),e[1]||(e[1]=pe("div",{class:"navbar-center"},null,-1)),pe("div",pJ,[(nn(!0),na(Sr,null,p0(oo(Pk).getRoutes(),a=>(nn(),na("div",null,[(nn(),PM(n,{to:a.path,key:a.name},{default:lM(()=>[EM(Yi(a.name),1)]),_:2},1032,["to"]))]))),256))])])}}}),gJ=Af(dJ,[["__scopeId","data-v-dc98e94b"]]),yJ=Fs({__name:"App",setup(r){return console.log("App.vue"),(t,e)=>{const n=hM("router-view");return nn(),na(Sr,null,[hr(gJ),hr(n)],64)}}}),mJ=Af(yJ,[["__scopeId","data-v-3a9bcf68"]]),Rk=jN(mJ);Rk.use(Pk);Rk.mount("#app"); diff --git a/web/assets/index-B8yPNO6K.js.hertz.gz b/web/assets/index-B8yPNO6K.js.hertz.gz new file mode 100644 index 0000000..db47756 Binary files /dev/null and b/web/assets/index-B8yPNO6K.js.hertz.gz differ diff --git a/web/assets/index-CAe8-t8f.js b/web/assets/index-CAe8-t8f.js deleted file mode 100644 index 0ac8a58..0000000 --- a/web/assets/index-CAe8-t8f.js +++ /dev/null @@ -1,21 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** -* @vue/shared v3.4.34 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Xn(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const te={},yt=[],ve=()=>{},Ko=()=>!1,hn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zn=e=>e.startsWith("onUpdate:"),ue=Object.assign,es=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Uo=Object.prototype.hasOwnProperty,k=(e,t)=>Uo.call(e,t),F=Array.isArray,bt=e=>pn(e)==="[object Map]",yr=e=>pn(e)==="[object Set]",B=e=>typeof e=="function",oe=e=>typeof e=="string",Ye=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",br=e=>(ee(e)||B(e))&&B(e.then)&&B(e.catch),vr=Object.prototype.toString,pn=e=>vr.call(e),Vo=e=>pn(e).slice(8,-1),Er=e=>pn(e)==="[object Object]",ts=e=>oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$t=Xn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Do=/-(\w)/g,Oe=gn(e=>e.replace(Do,(t,n)=>n?n.toUpperCase():"")),ko=/\B([A-Z])/g,ft=gn(e=>e.replace(ko,"-$1").toLowerCase()),mn=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Rn=gn(e=>e?`on${mn(e)}`:""),Qe=(e,t)=>!Object.is(e,t),Cn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Wo=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ss;const xr=()=>Ss||(Ss=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ns(e){if(F(e)){const t={};for(let n=0;n{if(n){const s=n.split(qo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function qt(e){let t="";if(oe(e))t=e;else if(F(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Cr=e=>oe(e)?e:e==null?"":F(e)||ee(e)&&(e.toString===vr||!B(e.toString))?Rr(e)?Cr(e.value):JSON.stringify(e,Pr,2):String(e),Pr=(e,t)=>Rr(t)?Pr(e,t.value):bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Pn(s,o)+" =>"]=r,n),{})}:yr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Pn(n))}:Ye(t)?Pn(t):ee(t)&&!F(t)&&!Er(t)?String(t):t,Pn=(e,t="")=>{var n;return Ye(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.4.34 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Re;class Xo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Re,!t&&Re&&(this.index=(Re.scopes||(Re.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Re;try{return Re=this,t()}finally{Re=n}}}on(){Re=this}off(){Re=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ze()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ge,n=it;try{return Ge=!0,it=this,this._runnings++,Rs(this),this.fn()}finally{Cs(this),this._runnings--,it=n,Ge=t}}stop(){this.active&&(Rs(this),Cs(this),this.onStop&&this.onStop(),this.active=!1)}}function ti(e){return e.value}function Rs(e){e._trackId++,e._depsLength=0}function Cs(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Bn=new WeakMap,lt=Symbol(""),Kn=Symbol("");function ge(e,t,n){if(Ge&&it){let s=Bn.get(e);s||Bn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=Ir(()=>s.delete(n))),Mr(it,r)}}function Ne(e,t,n,s,r,o){const i=Bn.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&F(e)){const l=Number(s);i.forEach((d,f)=>{(f==="length"||!Ye(f)&&f>=l)&&c.push(d)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":F(e)?ts(n)&&c.push(i.get("length")):(c.push(i.get(lt)),bt(e)&&c.push(i.get(Kn)));break;case"delete":F(e)||(c.push(i.get(lt)),bt(e)&&c.push(i.get(Kn)));break;case"set":bt(e)&&c.push(i.get(lt));break}rs();for(const l of c)l&&Tr(l,4);os()}const ni=Xn("__proto__,__v_isRef,__isVue"),$r=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye)),Ps=si();function si(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=q(this);for(let o=0,i=this.length;o{e[t]=function(...n){Xe(),rs();const s=q(this)[t].apply(this,n);return os(),Ze(),s}}),e}function ri(e){Ye(e)||(e=String(e));const t=q(this);return ge(t,"has",e),t.hasOwnProperty(e)}class Lr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?_i:jr:o?Nr:Hr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=F(t);if(!r){if(i&&k(Ps,n))return Reflect.get(Ps,n,s);if(n==="hasOwnProperty")return ri}const c=Reflect.get(t,n,s);return(Ye(n)?$r.has(n):ni(n))||(r||ge(t,"get",n),o)?c:me(c)?i&&ts(n)?c:c.value:ee(c)?r?Br(c):Gt(c):c}}class Fr extends Lr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const l=ut(o);if(!Et(s)&&!ut(s)&&(o=q(o),s=q(s)),!F(t)&&me(o)&&!me(s))return l?!1:(o.value=s,!0)}const i=F(t)&&ts(n)?Number(n)e,_n=e=>Reflect.getPrototypeOf(e);function Qt(e,t,n=!1,s=!1){e=e.__v_raw;const r=q(e),o=q(t);n||(Qe(t,o)&&ge(r,"get",t),ge(r,"get",o));const{has:i}=_n(r),c=s?is:n?us:Ut;if(i.call(r,t))return c(e.get(t));if(i.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function Yt(e,t=!1){const n=this.__v_raw,s=q(n),r=q(e);return t||(Qe(e,r)&&ge(s,"has",e),ge(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Xt(e,t=!1){return e=e.__v_raw,!t&&ge(q(e),"iterate",lt),Reflect.get(e,"size",e)}function Os(e,t=!1){!t&&!Et(e)&&!ut(e)&&(e=q(e));const n=q(this);return _n(n).has.call(n,e)||(n.add(e),Ne(n,"add",e,e)),this}function As(e,t,n=!1){!n&&!Et(t)&&!ut(t)&&(t=q(t));const s=q(this),{has:r,get:o}=_n(s);let i=r.call(s,e);i||(e=q(e),i=r.call(s,e));const c=o.call(s,e);return s.set(e,t),i?Qe(t,c)&&Ne(s,"set",e,t):Ne(s,"add",e,t),this}function Ms(e){const t=q(this),{has:n,get:s}=_n(t);let r=n.call(t,e);r||(e=q(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Ne(t,"delete",e,void 0),o}function Ts(){const e=q(this),t=e.size!==0,n=e.clear();return t&&Ne(e,"clear",void 0,void 0),n}function Zt(e,t){return function(s,r){const o=this,i=o.__v_raw,c=q(i),l=t?is:e?us:Ut;return!e&&ge(c,"iterate",lt),i.forEach((d,f)=>s.call(r,l(d),l(f),o))}}function en(e,t,n){return function(...s){const r=this.__v_raw,o=q(r),i=bt(o),c=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,d=r[e](...s),f=n?is:t?us:Ut;return!t&&ge(o,"iterate",l?Kn:lt),{next(){const{value:h,done:p}=d.next();return p?{value:h,done:p}:{value:c?[f(h[0]),f(h[1])]:f(h),done:p}},[Symbol.iterator](){return this}}}}function Ve(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ui(){const e={get(o){return Qt(this,o)},get size(){return Xt(this)},has:Yt,add:Os,set:As,delete:Ms,clear:Ts,forEach:Zt(!1,!1)},t={get(o){return Qt(this,o,!1,!0)},get size(){return Xt(this)},has:Yt,add(o){return Os.call(this,o,!0)},set(o,i){return As.call(this,o,i,!0)},delete:Ms,clear:Ts,forEach:Zt(!1,!0)},n={get(o){return Qt(this,o,!0)},get size(){return Xt(this,!0)},has(o){return Yt.call(this,o,!0)},add:Ve("add"),set:Ve("set"),delete:Ve("delete"),clear:Ve("clear"),forEach:Zt(!0,!1)},s={get(o){return Qt(this,o,!0,!0)},get size(){return Xt(this,!0)},has(o){return Yt.call(this,o,!0)},add:Ve("add"),set:Ve("set"),delete:Ve("delete"),clear:Ve("clear"),forEach:Zt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=en(o,!1,!1),n[o]=en(o,!0,!1),t[o]=en(o,!1,!0),s[o]=en(o,!0,!0)}),[e,n,t,s]}const[fi,ai,di,hi]=ui();function ls(e,t){const n=t?e?hi:di:e?ai:fi;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(k(n,r)&&r in s?n:s,r,o)}const pi={get:ls(!1,!1)},gi={get:ls(!1,!0)},mi={get:ls(!0,!1)};const Hr=new WeakMap,Nr=new WeakMap,jr=new WeakMap,_i=new WeakMap;function yi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bi(e){return e.__v_skip||!Object.isExtensible(e)?0:yi(Vo(e))}function Gt(e){return ut(e)?e:cs(e,!1,ii,pi,Hr)}function vi(e){return cs(e,!1,ci,gi,Nr)}function Br(e){return cs(e,!0,li,mi,jr)}function cs(e,t,n,s,r){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=bi(e);if(i===0)return e;const c=new Proxy(e,i===2?s:n);return r.set(e,c),c}function Lt(e){return ut(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function ut(e){return!!(e&&e.__v_isReadonly)}function Et(e){return!!(e&&e.__v_isShallow)}function Kr(e){return e?!!e.__v_raw:!1}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function Ei(e){return Object.isExtensible(e)&&wr(e,"__v_skip",!0),e}const Ut=e=>ee(e)?Gt(e):e,us=e=>ee(e)?Br(e):e;class Ur{constructor(t,n,s,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ss(()=>t(this._value),()=>nn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=q(this);return(!t._cacheable||t.effect.dirty)&&Qe(t._value,t._value=t.effect.run())&&nn(t,4),Vr(t),t.effect._dirtyLevel>=2&&nn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function wi(e,t,n=!1){let s,r;const o=B(e);return o?(s=e,r=ve):(s=e.get,r=e.set),new Ur(s,r,o||!r,n)}function Vr(e){var t;Ge&&it&&(e=q(e),Mr(it,(t=e.dep)!=null?t:e.dep=Ir(()=>e.dep=void 0,e instanceof Ur?e:void 0)))}function nn(e,t=4,n,s){e=q(e);const r=e.dep;r&&Tr(r,t)}function me(e){return!!(e&&e.__v_isRef===!0)}function Dr(e){return kr(e,!1)}function xi(e){return kr(e,!0)}function kr(e,t){return me(e)?e:new Si(e,t)}class Si{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:q(t),this._value=n?t:Ut(t)}get value(){return Vr(this),this._value}set value(t){const n=this.__v_isShallow||Et(t)||ut(t);t=n?t:q(t),Qe(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:Ut(t),nn(this,4))}}function Ee(e){return me(e)?e.value:e}const Ri={get:(e,t,n)=>Ee(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return me(r)&&!me(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Wr(e){return Lt(e)?e:new Proxy(e,Ri)}/** -* @vue/runtime-core v3.4.34 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Je(e,t,n,s){try{return s?e(...s):e()}catch(r){yn(r,t,n)}}function Pe(e,t,n,s){if(B(e)){const r=Je(e,t,n,s);return r&&br(r)&&r.catch(o=>{yn(o,t,n)}),r}if(F(e)){const r=[];for(let o=0;o>>1,r=le[s],o=Dt(r);oLe&&le.splice(t,1)}function Ai(e){F(e)?vt.push(...e):(!We||!We.includes(e,e.allowRecurse?rt+1:rt))&&vt.push(e),Gr()}function Is(e,t,n=Vt?Le+1:0){for(;nDt(n)-Dt(s));if(vt.length=0,We){We.push(...t);return}for(We=t,rt=0;rte.id==null?1/0:e.id,Mi=(e,t)=>{const n=Dt(e)-Dt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Qr(e){Un=!1,Vt=!0,le.sort(Mi);try{for(Le=0;Le{s._d&&ks(-1);const o=un(t);let i;try{i=e(...r)}finally{un(o),s._d&&ks(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function nt(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i!!e.type.__asyncLoader,Zr=e=>e.type.__isKeepAlive;function Ti(e,t){eo(e,"a",t)}function Ii(e,t){eo(e,"da",t)}function eo(e,t,n=ce){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(vn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Zr(r.parent.vnode)&&$i(s,t,n,r),r=r.parent}}function $i(e,t,n,s){const r=vn(t,e,s,!0);to(()=>{es(s[t],r)},n)}function vn(e,t,n=ce,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Xe();const c=Jt(n),l=Pe(t,n,e,i);return c(),Ze(),l});return s?r.unshift(o):r.push(o),o}}const Be=e=>(t,n=ce)=>{(!xn||e==="sp")&&vn(e,(...s)=>t(...s),n)},Li=Be("bm"),Fi=Be("m"),Hi=Be("bu"),Ni=Be("u"),ji=Be("bum"),to=Be("um"),Bi=Be("sp"),Ki=Be("rtg"),Ui=Be("rtc");function Vi(e,t=ce){vn("ec",e,t)}const Di="components";function no(e,t){return Wi(Di,e,!0,t)||e}const ki=Symbol.for("v-ndc");function Wi(e,t,n=!0,s=!1){const r=Ce||ce;if(r){const o=r.type;{const c=Hl(o,!1);if(c&&(c===t||c===Oe(t)||c===mn(Oe(t))))return o}const i=$s(r[e]||o[e],t)||$s(r.appContext[e],t);return!i&&s?o:i}}function $s(e,t){return e&&(e[t]||e[Oe(t)]||e[mn(Oe(t))])}function zi(e,t,n,s){let r;const o=n;if(F(e)||oe(e)){r=new Array(e.length);for(let i=0,c=e.length;it(i,c,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,l=i.length;ce?wo(e)?_s(e):Vn(e.parent):null,Ft=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Vn(e.parent),$root:e=>Vn(e.root),$emit:e=>e.emit,$options:e=>ps(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,as(e.update)}),$nextTick:e=>e.n||(e.n=qr.bind(e.proxy)),$watch:e=>gl.bind(e)}),On=(e,t)=>e!==te&&!e.__isScriptSetup&&k(e,t),qi={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:l}=e;let d;if(t[0]!=="$"){const E=i[t];if(E!==void 0)switch(E){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(On(s,t))return i[t]=1,s[t];if(r!==te&&k(r,t))return i[t]=2,r[t];if((d=e.propsOptions[0])&&k(d,t))return i[t]=3,o[t];if(n!==te&&k(n,t))return i[t]=4,n[t];Dn&&(i[t]=0)}}const f=Ft[t];let h,p;if(f)return t==="$attrs"&&ge(e.attrs,"get",""),f(e);if((h=c.__cssModules)&&(h=h[t]))return h;if(n!==te&&k(n,t))return i[t]=4,n[t];if(p=l.config.globalProperties,k(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return On(r,t)?(r[t]=n,!0):s!==te&&k(s,t)?(s[t]=n,!0):k(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==te&&k(e,i)||On(t,i)||(c=o[0])&&k(c,i)||k(s,i)||k(Ft,i)||k(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:k(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ls(e){return F(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Dn=!0;function Gi(e){const t=ps(e),n=e.proxy,s=e.ctx;Dn=!1,t.beforeCreate&&Fs(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:l,inject:d,created:f,beforeMount:h,mounted:p,beforeUpdate:E,updated:O,activated:I,deactivated:V,beforeDestroy:$,beforeUnmount:L,destroyed:N,unmounted:W,render:ne,renderTracked:j,renderTriggered:fe,errorCaptured:be,serverPrefetch:dt,expose:Ae,inheritAttrs:Ke,components:Ue,directives:ht,filters:et}=t;if(d&&Ji(d,s,null),i)for(const J in i){const G=i[J];B(G)&&(s[J]=G.bind(n))}if(r){const J=r.call(n,n);ee(J)&&(e.data=Gt(J))}if(Dn=!0,o)for(const J in o){const G=o[J],we=B(G)?G.bind(n,n):B(G.get)?G.get.bind(n,n):ve,tt=!B(G)&&B(G.set)?G.set.bind(n):ve,xe=Fe({get:we,set:tt});Object.defineProperty(s,J,{enumerable:!0,configurable:!0,get:()=>xe.value,set:he=>xe.value=he})}if(c)for(const J in c)so(c[J],s,n,J);if(l){const J=B(l)?l.call(n):l;Reflect.ownKeys(J).forEach(G=>{rn(G,J[G])})}f&&Fs(f,e,"c");function se(J,G){F(G)?G.forEach(we=>J(we.bind(n))):G&&J(G.bind(n))}if(se(Li,h),se(Fi,p),se(Hi,E),se(Ni,O),se(Ti,I),se(Ii,V),se(Vi,be),se(Ui,j),se(Ki,fe),se(ji,L),se(to,W),se(Bi,dt),F(Ae))if(Ae.length){const J=e.exposed||(e.exposed={});Ae.forEach(G=>{Object.defineProperty(J,G,{get:()=>n[G],set:we=>n[G]=we})})}else e.exposed||(e.exposed={});ne&&e.render===ve&&(e.render=ne),Ke!=null&&(e.inheritAttrs=Ke),Ue&&(e.components=Ue),ht&&(e.directives=ht)}function Ji(e,t,n=ve){F(e)&&(e=kn(e));for(const s in e){const r=e[s];let o;ee(r)?"default"in r?o=je(r.from||s,r.default,!0):o=je(r.from||s):o=je(r),me(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Fs(e,t,n){Pe(F(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function so(e,t,n,s){const r=s.includes(".")?yo(n,s):()=>n[s];if(oe(e)){const o=t[e];B(o)&&on(r,o)}else if(B(e))on(r,e.bind(n));else if(ee(e))if(F(e))e.forEach(o=>so(o,t,n,s));else{const o=B(e.handler)?e.handler.bind(n):t[e.handler];B(o)&&on(r,o,e)}}function ps(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let l;return c?l=c:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(d=>fn(l,d,i,!0)),fn(l,t,i)),ee(t)&&o.set(t,l),l}function fn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&fn(e,o,n,!0),r&&r.forEach(i=>fn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const c=Qi[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Qi={data:Hs,props:Ns,emits:Ns,methods:It,computed:It,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:It,directives:It,watch:Xi,provide:Hs,inject:Yi};function Hs(e,t){return t?e?function(){return ue(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function Yi(e,t){return It(kn(e),kn(t))}function kn(e){if(F(e)){const t={};for(let n=0;n1)return n&&B(t)?t.call(s&&s.proxy):t}}const oo={},io=()=>Object.create(oo),lo=e=>Object.getPrototypeOf(e)===oo;function tl(e,t,n,s=!1){const r={},o=io();e.propsDefaults=Object.create(null),co(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:vi(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function nl(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,c=q(r),[l]=e.propsOptions;let d=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h{l=!0;const[p,E]=uo(h,t,!0);ue(i,p),E&&c.push(...E)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!l)return ee(e)&&s.set(e,yt),yt;if(F(o))for(let f=0;f-1,E[1]=I<0||O-1||k(E,"default"))&&c.push(h)}}}const d=[i,c];return ee(e)&&s.set(e,d),d}function js(e){return e[0]!=="$"&&!$t(e)}function Bs(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ks(e,t){return Bs(e)===Bs(t)}function Us(e,t){return F(t)?t.findIndex(n=>Ks(n,e)):B(t)&&Ks(t,e)?0:-1}const fo=e=>e[0]==="_"||e==="$stable",gs=e=>F(e)?e.map($e):[$e(e)],rl=(e,t,n)=>{if(t._n)return t;const s=Yr((...r)=>gs(t(...r)),n);return s._c=!1,s},ao=(e,t,n)=>{const s=e._ctx;for(const r in e){if(fo(r))continue;const o=e[r];if(B(o))t[r]=rl(r,o,s);else if(o!=null){const i=gs(o);t[r]=()=>i}}},ho=(e,t)=>{const n=gs(t);e.slots.default=()=>n},po=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},ol=(e,t,n)=>{const s=e.slots=io();if(e.vnode.shapeFlag&32){const r=t._;r?(po(s,t,n),n&&wr(s,"_",r,!0)):ao(t,s)}else t&&ho(e,t)},il=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=te;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:po(r,t,n):(o=!t.$stable,ao(t,r)),i=t}else t&&(ho(e,t),i={default:1});if(o)for(const c in r)!fo(c)&&i[c]==null&&delete r[c]};function zn(e,t,n,s,r=!1){if(F(e)){e.forEach((p,E)=>zn(p,t&&(F(t)?t[E]:t),n,s,r));return}if(sn(s)&&!r)return;const o=s.shapeFlag&4?_s(s.component):s.el,i=r?null:o,{i:c,r:l}=e,d=t&&t.r,f=c.refs===te?c.refs={}:c.refs,h=c.setupState;if(d!=null&&d!==l&&(oe(d)?(f[d]=null,k(h,d)&&(h[d]=null)):me(d)&&(d.value=null)),B(l))Je(l,c,12,[i,f]);else{const p=oe(l),E=me(l);if(p||E){const O=()=>{if(e.f){const I=p?k(h,l)?h[l]:f[l]:l.value;r?F(I)&&es(I,o):F(I)?I.includes(o)||I.push(o):p?(f[l]=[o],k(h,l)&&(h[l]=f[l])):(l.value=[o],e.k&&(f[e.k]=l.value))}else p?(f[l]=i,k(h,l)&&(h[l]=i)):E&&(l.value=i,e.k&&(f[e.k]=i))};i?(O.id=-1,pe(O,n)):O()}}}const ll=Symbol("_vte"),cl=e=>e.__isTeleport,pe=xl;function ul(e){return fl(e)}function fl(e,t){const n=xr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:c,createComment:l,setText:d,setElementText:f,parentNode:h,nextSibling:p,setScopeId:E=ve,insertStaticContent:O}=e,I=(u,a,g,b=null,_=null,v=null,S=void 0,w=null,x=!!a.dynamicChildren)=>{if(u===a)return;u&&!Mt(u,a)&&(b=R(u),he(u,_,v,!0),u=null),a.patchFlag===-2&&(x=!1,a.dynamicChildren=null);const{type:y,ref:C,shapeFlag:T}=a;switch(y){case wn:V(u,a,g,b);break;case kt:$(u,a,g,b);break;case Tn:u==null&&L(a,g,b,S);break;case Ie:Ue(u,a,g,b,_,v,S,w,x);break;default:T&1?ne(u,a,g,b,_,v,S,w,x):T&6?ht(u,a,g,b,_,v,S,w,x):(T&64||T&128)&&y.process(u,a,g,b,_,v,S,w,x,X)}C!=null&&_&&zn(C,u&&u.ref,v,a||u,!a)},V=(u,a,g,b)=>{if(u==null)s(a.el=c(a.children),g,b);else{const _=a.el=u.el;a.children!==u.children&&d(_,a.children)}},$=(u,a,g,b)=>{u==null?s(a.el=l(a.children||""),g,b):a.el=u.el},L=(u,a,g,b)=>{[u.el,u.anchor]=O(u.children,a,g,b,u.el,u.anchor)},N=({el:u,anchor:a},g,b)=>{let _;for(;u&&u!==a;)_=p(u),s(u,g,b),u=_;s(a,g,b)},W=({el:u,anchor:a})=>{let g;for(;u&&u!==a;)g=p(u),r(u),u=g;r(a)},ne=(u,a,g,b,_,v,S,w,x)=>{a.type==="svg"?S="svg":a.type==="math"&&(S="mathml"),u==null?j(a,g,b,_,v,S,w,x):dt(u,a,_,v,S,w,x)},j=(u,a,g,b,_,v,S,w)=>{let x,y;const{props:C,shapeFlag:T,transition:A,dirs:H}=u;if(x=u.el=i(u.type,v,C&&C.is,C),T&8?f(x,u.children):T&16&&be(u.children,x,null,b,_,An(u,v),S,w),H&&nt(u,null,b,"created"),fe(x,u,u.scopeId,S,b),C){for(const Z in C)Z!=="value"&&!$t(Z)&&o(x,Z,null,C[Z],v,b);"value"in C&&o(x,"value",null,C.value,v),(y=C.onVnodeBeforeMount)&&Te(y,b,u)}H&&nt(u,null,b,"beforeMount");const U=al(_,A);U&&A.beforeEnter(x),s(x,a,g),((y=C&&C.onVnodeMounted)||U||H)&&pe(()=>{y&&Te(y,b,u),U&&A.enter(x),H&&nt(u,null,b,"mounted")},_)},fe=(u,a,g,b,_)=>{if(g&&E(u,g),b)for(let v=0;v{for(let y=x;y{const w=a.el=u.el;let{patchFlag:x,dynamicChildren:y,dirs:C}=a;x|=u.patchFlag&16;const T=u.props||te,A=a.props||te;let H;if(g&&st(g,!1),(H=A.onVnodeBeforeUpdate)&&Te(H,g,a,u),C&&nt(a,u,g,"beforeUpdate"),g&&st(g,!0),(T.innerHTML&&A.innerHTML==null||T.textContent&&A.textContent==null)&&f(w,""),y?Ae(u.dynamicChildren,y,w,g,b,An(a,_),v):S||G(u,a,w,null,g,b,An(a,_),v,!1),x>0){if(x&16)Ke(w,T,A,g,_);else if(x&2&&T.class!==A.class&&o(w,"class",null,A.class,_),x&4&&o(w,"style",T.style,A.style,_),x&8){const U=a.dynamicProps;for(let Z=0;Z{H&&Te(H,g,a,u),C&&nt(a,u,g,"updated")},b)},Ae=(u,a,g,b,_,v,S)=>{for(let w=0;w{if(a!==g){if(a!==te)for(const v in a)!$t(v)&&!(v in g)&&o(u,v,a[v],null,_,b);for(const v in g){if($t(v))continue;const S=g[v],w=a[v];S!==w&&v!=="value"&&o(u,v,w,S,_,b)}"value"in g&&o(u,"value",a.value,g.value,_)}},Ue=(u,a,g,b,_,v,S,w,x)=>{const y=a.el=u?u.el:c(""),C=a.anchor=u?u.anchor:c("");let{patchFlag:T,dynamicChildren:A,slotScopeIds:H}=a;H&&(w=w?w.concat(H):H),u==null?(s(y,g,b),s(C,g,b),be(a.children||[],g,C,_,v,S,w,x)):T>0&&T&64&&A&&u.dynamicChildren?(Ae(u.dynamicChildren,A,g,_,v,S,w),(a.key!=null||_&&a===_.subTree)&&go(u,a,!0)):G(u,a,g,C,_,v,S,w,x)},ht=(u,a,g,b,_,v,S,w,x)=>{a.slotScopeIds=w,u==null?a.shapeFlag&512?_.ctx.activate(a,g,b,S,x):et(a,g,b,_,v,S,x):Ot(u,a,x)},et=(u,a,g,b,_,v,S)=>{const w=u.component=Tl(u,b,_);if(Zr(u)&&(w.ctx.renderer=X),Il(w,!1,S),w.asyncDep){if(_&&_.registerDep(w,se,S),!u.el){const x=w.subTree=de(kt);$(null,x,a,g)}}else se(w,u,a,g,_,v,S)},Ot=(u,a,g)=>{const b=a.component=u.component;if(vl(u,a,g))if(b.asyncDep&&!b.asyncResolved){J(b,a,g);return}else b.next=a,Oi(b.update),b.effect.dirty=!0,b.update();else a.el=u.el,b.vnode=a},se=(u,a,g,b,_,v,S)=>{const w=()=>{if(u.isMounted){let{next:C,bu:T,u:A,parent:H,vnode:U}=u;{const gt=mo(u);if(gt){C&&(C.el=U.el,J(u,C,S)),gt.asyncDep.then(()=>{u.isUnmounted||w()});return}}let Z=C,z;st(u,!1),C?(C.el=U.el,J(u,C,S)):C=U,T&&Cn(T),(z=C.props&&C.props.onVnodeBeforeUpdate)&&Te(z,H,C,U),st(u,!0);const ie=Mn(u),Se=u.subTree;u.subTree=ie,I(Se,ie,h(Se.el),R(Se),u,_,v),C.el=ie.el,Z===null&&El(u,ie.el),A&&pe(A,_),(z=C.props&&C.props.onVnodeUpdated)&&pe(()=>Te(z,H,C,U),_)}else{let C;const{el:T,props:A}=a,{bm:H,m:U,parent:Z}=u,z=sn(a);if(st(u,!1),H&&Cn(H),!z&&(C=A&&A.onVnodeBeforeMount)&&Te(C,Z,a),st(u,!0),T&&K){const ie=()=>{u.subTree=Mn(u),K(T,u.subTree,u,_,null)};z?a.type.__asyncLoader().then(()=>!u.isUnmounted&&ie()):ie()}else{const ie=u.subTree=Mn(u);I(null,ie,g,b,u,_,v),a.el=ie.el}if(U&&pe(U,_),!z&&(C=A&&A.onVnodeMounted)){const ie=a;pe(()=>Te(C,Z,ie),_)}(a.shapeFlag&256||Z&&sn(Z.vnode)&&Z.vnode.shapeFlag&256)&&u.a&&pe(u.a,_),u.isMounted=!0,a=g=b=null}},x=u.effect=new ss(w,ve,()=>as(y),u.scope),y=u.update=()=>{x.dirty&&x.run()};y.i=u,y.id=u.uid,st(u,!0),y()},J=(u,a,g)=>{a.component=u;const b=u.vnode.props;u.vnode=a,u.next=null,nl(u,a.props,b,g),il(u,a.children,g),Xe(),Is(u),Ze()},G=(u,a,g,b,_,v,S,w,x=!1)=>{const y=u&&u.children,C=u?u.shapeFlag:0,T=a.children,{patchFlag:A,shapeFlag:H}=a;if(A>0){if(A&128){tt(y,T,g,b,_,v,S,w,x);return}else if(A&256){we(y,T,g,b,_,v,S,w,x);return}}H&8?(C&16&&P(y,_,v),T!==y&&f(g,T)):C&16?H&16?tt(y,T,g,b,_,v,S,w,x):P(y,_,v,!0):(C&8&&f(g,""),H&16&&be(T,g,b,_,v,S,w,x))},we=(u,a,g,b,_,v,S,w,x)=>{u=u||yt,a=a||yt;const y=u.length,C=a.length,T=Math.min(y,C);let A;for(A=0;AC?P(u,_,v,!0,!1,T):be(a,g,b,_,v,S,w,x,T)},tt=(u,a,g,b,_,v,S,w,x)=>{let y=0;const C=a.length;let T=u.length-1,A=C-1;for(;y<=T&&y<=A;){const H=u[y],U=a[y]=x?ze(a[y]):$e(a[y]);if(Mt(H,U))I(H,U,g,null,_,v,S,w,x);else break;y++}for(;y<=T&&y<=A;){const H=u[T],U=a[A]=x?ze(a[A]):$e(a[A]);if(Mt(H,U))I(H,U,g,null,_,v,S,w,x);else break;T--,A--}if(y>T){if(y<=A){const H=A+1,U=HA)for(;y<=T;)he(u[y],_,v,!0),y++;else{const H=y,U=y,Z=new Map;for(y=U;y<=A;y++){const _e=a[y]=x?ze(a[y]):$e(a[y]);_e.key!=null&&Z.set(_e.key,y)}let z,ie=0;const Se=A-U+1;let gt=!1,Es=0;const At=new Array(Se);for(y=0;y=Se){he(_e,_,v,!0);continue}let Me;if(_e.key!=null)Me=Z.get(_e.key);else for(z=U;z<=A;z++)if(At[z-U]===0&&Mt(_e,a[z])){Me=z;break}Me===void 0?he(_e,_,v,!0):(At[Me-U]=y+1,Me>=Es?Es=Me:gt=!0,I(_e,a[Me],g,null,_,v,S,w,x),ie++)}const ws=gt?dl(At):yt;for(z=ws.length-1,y=Se-1;y>=0;y--){const _e=U+y,Me=a[_e],xs=_e+1{const{el:v,type:S,transition:w,children:x,shapeFlag:y}=u;if(y&6){xe(u.component.subTree,a,g,b);return}if(y&128){u.suspense.move(a,g,b);return}if(y&64){S.move(u,a,g,X);return}if(S===Ie){s(v,a,g);for(let T=0;Tw.enter(v),_);else{const{leave:T,delayLeave:A,afterLeave:H}=w,U=()=>s(v,a,g),Z=()=>{T(v,()=>{U(),H&&H()})};A?A(v,U,Z):Z()}else s(v,a,g)},he=(u,a,g,b=!1,_=!1)=>{const{type:v,props:S,ref:w,children:x,dynamicChildren:y,shapeFlag:C,patchFlag:T,dirs:A,cacheIndex:H}=u;if(T===-2&&(_=!1),w!=null&&zn(w,null,g,u,!0),H!=null&&(a.renderCache[H]=void 0),C&256){a.ctx.deactivate(u);return}const U=C&1&&A,Z=!sn(u);let z;if(Z&&(z=S&&S.onVnodeBeforeUnmount)&&Te(z,a,u),C&6)m(u.component,g,b);else{if(C&128){u.suspense.unmount(g,b);return}U&&nt(u,null,a,"beforeUnmount"),C&64?u.type.remove(u,a,g,X,b):y&&!y.hasOnce&&(v!==Ie||T>0&&T&64)?P(y,a,g,!1,!0):(v===Ie&&T&384||!_&&C&16)&&P(x,a,g),b&&pt(u)}(Z&&(z=S&&S.onVnodeUnmounted)||U)&&pe(()=>{z&&Te(z,a,u),U&&nt(u,null,a,"unmounted")},g)},pt=u=>{const{type:a,el:g,anchor:b,transition:_}=u;if(a===Ie){vs(g,b);return}if(a===Tn){W(u);return}const v=()=>{r(g),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(u.shapeFlag&1&&_&&!_.persisted){const{leave:S,delayLeave:w}=_,x=()=>S(g,v);w?w(u.el,v,x):x()}else v()},vs=(u,a)=>{let g;for(;u!==a;)g=p(u),r(u),u=g;r(a)},m=(u,a,g)=>{const{bum:b,scope:_,update:v,subTree:S,um:w,m:x,a:y}=u;Vs(x),Vs(y),b&&Cn(b),_.stop(),v&&(v.active=!1,he(S,u,a,g)),w&&pe(w,a),pe(()=>{u.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},P=(u,a,g,b=!1,_=!1,v=0)=>{for(let S=v;S{if(u.shapeFlag&6)return R(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const a=p(u.anchor||u.el),g=a&&a[ll];return g?p(g):a};let M=!1;const Q=(u,a,g)=>{u==null?a._vnode&&he(a._vnode,null,null,!0):I(a._vnode||null,u,a,null,null,null,g),M||(M=!0,Is(),Jr(),M=!1),a._vnode=u},X={p:I,um:he,m:xe,r:pt,mt:et,mc:be,pc:G,pbc:Ae,n:R,o:e};let D,K;return{render:Q,hydrate:D,createApp:el(Q,D)}}function An({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function st({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function al(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function go(e,t,n=!1){const s=e.children,r=t.children;if(F(s)&&F(r))for(let o=0;o>1,e[n[c]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function mo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:mo(t)}function Vs(e){if(e)for(let t=0;tje(hl),tn={};function on(e,t,n){return _o(e,t,n)}function _o(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:c}=te){if(t&&o){const j=t;t=(...fe)=>{j(...fe),ne()}}const l=ce,d=j=>s===!0?j:ot(j,s===!1?1:void 0);let f,h=!1,p=!1;if(me(e)?(f=()=>e.value,h=Et(e)):Lt(e)?(f=()=>d(e),h=!0):F(e)?(p=!0,h=e.some(j=>Lt(j)||Et(j)),f=()=>e.map(j=>{if(me(j))return j.value;if(Lt(j))return d(j);if(B(j))return Je(j,l,2)})):B(e)?t?f=()=>Je(e,l,2):f=()=>(E&&E(),Pe(e,l,3,[O])):f=ve,t&&s){const j=f;f=()=>ot(j())}let E,O=j=>{E=N.onStop=()=>{Je(j,l,4),E=N.onStop=void 0}},I;if(xn)if(O=ve,t?n&&Pe(t,l,3,[f(),p?[]:void 0,O]):f(),r==="sync"){const j=pl();I=j.__watcherHandles||(j.__watcherHandles=[])}else return ve;let V=p?new Array(e.length).fill(tn):tn;const $=()=>{if(!(!N.active||!N.dirty))if(t){const j=N.run();(s||h||(p?j.some((fe,be)=>Qe(fe,V[be])):Qe(j,V)))&&(E&&E(),Pe(t,l,3,[j,V===tn?void 0:p&&V[0]===tn?[]:V,O]),V=j)}else N.run()};$.allowRecurse=!!t;let L;r==="sync"?L=$:r==="post"?L=()=>pe($,l&&l.suspense):($.pre=!0,l&&($.id=l.uid),L=()=>as($));const N=new ss(f,ve,L),W=ei(),ne=()=>{N.stop(),W&&es(W.effects,N)};return t?n?$():V=N.run():r==="post"?pe(N.run.bind(N),l&&l.suspense):N.run(),I&&I.push(ne),ne}function gl(e,t,n){const s=this.proxy,r=oe(e)?e.includes(".")?yo(s,e):()=>s[e]:e.bind(s,s);let o;B(t)?o=t:(o=t.handler,n=t);const i=Jt(this),c=_o(r,o.bind(s),n);return i(),c}function yo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{ot(s,t,n)});else if(Er(e)){for(const s in e)ot(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ot(e[s],t,n)}return e}const ml=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Oe(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function _l(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||te;let r=n;const o=t.startsWith("update:"),i=o&&ml(s,t.slice(7));i&&(i.trim&&(r=n.map(f=>oe(f)?f.trim():f)),i.number&&(r=n.map(Wo)));let c,l=s[c=Rn(t)]||s[c=Rn(Oe(t))];!l&&o&&(l=s[c=Rn(ft(t))]),l&&Pe(l,e,6,r);const d=s[c+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Pe(d,e,6,r)}}function bo(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},c=!1;if(!B(e)){const l=d=>{const f=bo(d,t,!0);f&&(c=!0,ue(i,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!c?(ee(e)&&s.set(e,null),null):(F(o)?o.forEach(l=>i[l]=null):ue(i,o),ee(e)&&s.set(e,i),i)}function En(e,t){return!e||!hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),k(e,t[0].toLowerCase()+t.slice(1))||k(e,ft(t))||k(e,t))}function Mn(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:c,emit:l,render:d,renderCache:f,props:h,data:p,setupState:E,ctx:O,inheritAttrs:I}=e,V=un(e);let $,L;try{if(n.shapeFlag&4){const W=r||s,ne=W;$=$e(d.call(ne,W,f,h,E,p,O)),L=c}else{const W=t;$=$e(W.length>1?W(h,{attrs:c,slots:i,emit:l}):W(h,null)),L=t.props?c:yl(c)}}catch(W){Nt.length=0,yn(W,e,1),$=de(kt)}let N=$;if(L&&I!==!1){const W=Object.keys(L),{shapeFlag:ne}=N;W.length&&ne&7&&(o&&W.some(Zn)&&(L=bl(L,o)),N=xt(N,L,!1,!0))}return n.dirs&&(N=xt(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(N.transition=n.transition),$=N,un(V),$}const yl=e=>{let t;for(const n in e)(n==="class"||n==="style"||hn(n))&&((t||(t={}))[n]=e[n]);return t},bl=(e,t)=>{const n={};for(const s in e)(!Zn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function vl(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:c,patchFlag:l}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Ds(s,i,d):!!i;if(l&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function xl(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):Ai(e)}const Ie=Symbol.for("v-fgt"),wn=Symbol.for("v-txt"),kt=Symbol.for("v-cmt"),Tn=Symbol.for("v-stc"),Nt=[];let ye=null;function ct(e=!1){Nt.push(ye=e?null:[])}function Sl(){Nt.pop(),ye=Nt[Nt.length-1]||null}let Wt=1;function ks(e){Wt+=e,e<0&&ye&&(ye.hasOnce=!0)}function vo(e){return e.dynamicChildren=Wt>0?ye||yt:null,Sl(),Wt>0&&ye&&ye.push(e),e}function wt(e,t,n,s,r,o){return vo(re(e,t,n,s,r,o,!0))}function Rl(e,t,n,s,r){return vo(de(e,t,n,s,r,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function Mt(e,t){return e.type===t.type&&e.key===t.key}const Eo=({key:e})=>e??null,ln=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?oe(e)||me(e)||B(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function re(e,t=null,n=null,s=0,r=null,o=e===Ie?0:1,i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Eo(t),ref:t&&ln(t),scopeId:bn,slotScopeIds:null,children:n,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:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ce};return c?(ms(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=oe(n)?8:16),Wt>0&&!i&&ye&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&ye.push(l),l}const de=Cl;function Cl(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===ki)&&(e=kt),qn(e)){const c=xt(e,t,!0);return n&&ms(c,n),Wt>0&&!o&&ye&&(c.shapeFlag&6?ye[ye.indexOf(e)]=c:ye.push(c)),c.patchFlag=-2,c}if(Nl(e)&&(e=e.__vccOpts),t){t=Pl(t);let{class:c,style:l}=t;c&&!oe(c)&&(t.class=qt(c)),ee(l)&&(Kr(l)&&!F(l)&&(l=ue({},l)),t.style=ns(l))}const i=oe(e)?1:wl(e)?128:cl(e)?64:ee(e)?4:B(e)?2:0;return re(e,t,n,s,r,i,o,!0)}function Pl(e){return e?Kr(e)||lo(e)?ue({},e):e:null}function xt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:c,transition:l}=e,d=t?Ol(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Eo(d),ref:t&&t.ref?n&&o?F(o)?o.concat(ln(t)):[o,ln(t)]:ln(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Xr(f,l.clone(f)),f}function jt(e=" ",t=0){return de(wn,null,e,t)}function $e(e){return e==null||typeof e=="boolean"?de(kt):F(e)?de(Ie,null,e.slice()):typeof e=="object"?ze(e):de(wn,null,String(e))}function ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function ms(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(F(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),ms(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!lo(t)?t._ctx=Ce:r===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else B(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[jt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ol(...e){const t={};for(let n=0;n{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};an=t("__VUE_INSTANCE_SETTERS__",n=>ce=n),Gn=t("__VUE_SSR_SETTERS__",n=>xn=n)}const Jt=e=>{const t=ce;return an(e),e.scope.on(),()=>{e.scope.off(),an(t)}},Ws=()=>{ce&&ce.scope.off(),an(null)};function wo(e){return e.vnode.shapeFlag&4}let xn=!1;function Il(e,t=!1,n=!1){t&&Gn(t);const{props:s,children:r}=e.vnode,o=wo(e);tl(e,s,o,t),ol(e,r,n);const i=o?$l(e,t):void 0;return t&&Gn(!1),i}function $l(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qi);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Fl(e):null,o=Jt(e);Xe();const i=Je(s,e,0,[e.props,r]);if(Ze(),o(),br(i)){if(i.then(Ws,Ws),t)return i.then(c=>{zs(e,c,t)}).catch(c=>{yn(c,e,0)});e.asyncDep=i}else zs(e,i,t)}else xo(e,t)}function zs(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=Wr(t)),xo(e,n)}let qs;function xo(e,t,n){const s=e.type;if(!e.render){if(!t&&qs&&!s.render){const r=s.template||ps(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:l}=s,d=ue(ue({isCustomElement:o,delimiters:c},i),l);s.render=qs(r,d)}}e.render=s.render||ve}{const r=Jt(e);Xe();try{Gi(e)}finally{Ze(),r()}}}const Ll={get(e,t){return ge(e,"get",""),e[t]}};function Fl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ll),slots:e.slots,emit:e.emit,expose:t}}function _s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Wr(Ei(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ft)return Ft[n](e)},has(t,n){return n in t||n in Ft}})):e.proxy}function Hl(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function Nl(e){return B(e)&&"__vccOpts"in e}const Fe=(e,t)=>wi(e,t,xn);function So(e,t,n){const s=arguments.length;return s===2?ee(t)&&!F(t)?qn(t)?de(e,null,[t]):de(e,t):de(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&qn(n)&&(n=[n]),de(e,t,n))}const jl="3.4.34";/** -* @vue/runtime-dom v3.4.34 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const Bl="http://www.w3.org/2000/svg",Kl="http://www.w3.org/1998/Math/MathML",He=typeof document<"u"?document:null,Gs=He&&He.createElement("template"),Ul={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?He.createElementNS(Bl,e):t==="mathml"?He.createElementNS(Kl,e):n?He.createElement(e,{is:n}):He.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>He.createTextNode(e),createComment:e=>He.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>He.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Gs.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const c=Gs.content;if(s==="svg"||s==="mathml"){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Vl=Symbol("_vtc");function Dl(e,t,n){const s=e[Vl];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Js=Symbol("_vod"),kl=Symbol("_vsh"),Wl=Symbol(""),zl=/(^|;)\s*display\s*:/;function ql(e,t,n){const s=e.style,r=oe(n);let o=!1;if(n&&!r){if(t)if(oe(t))for(const i of t.split(";")){const c=i.slice(0,i.indexOf(":")).trim();n[c]==null&&cn(s,c,"")}else for(const i in t)n[i]==null&&cn(s,i,"");for(const i in n)i==="display"&&(o=!0),cn(s,i,n[i])}else if(r){if(t!==n){const i=s[Wl];i&&(n+=";"+i),s.cssText=n,o=zl.test(n)}}else t&&e.removeAttribute("style");Js in e&&(e[Js]=o?s.display:"",e[kl]&&(s.display="none"))}const Qs=/\s*!important$/;function cn(e,t,n){if(F(n))n.forEach(s=>cn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Gl(e,t);Qs.test(n)?e.setProperty(ft(s),n.replace(Qs,""),"important"):e[s]=n}}const Ys=["Webkit","Moz","ms"],In={};function Gl(e,t){const n=In[t];if(n)return n;let s=Oe(t);if(s!=="filter"&&s in e)return In[t]=s;s=mn(s);for(let r=0;r$n||(ec.then(()=>$n=0),$n=Date.now());function nc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Pe(sc(s,n.value),t,5,[s])};return n.value=e,n.attached=tc(),n}function sc(e,t){if(F(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const nr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,rc=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Dl(e,s,i):t==="style"?ql(e,n,s):hn(t)?Zn(t)||Xl(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):oc(e,t,s,i))?(Jl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Zs(e,t,s,i,o,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Zs(e,t,s,i))};function oc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&nr(t)&&B(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return nr(t)&&oe(n)?!1:t in e}const ic=["ctrl","shift","alt","meta"],lc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ic.some(n=>e[`${n}Key`]&&!t.includes(n))},cc=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i{const t=fc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=hc(s);if(!r)return;const o=t._component;!B(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,dc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function dc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function hc(e){return oe(e)?document.querySelector(e):e}const Ro="/assets/logo-c0Hh2kbx.png",pc="data:image/svg+xml,%3csvg%20t='1722349436669'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4248'%20width='256'%20height='256'%3e%3cpath%20d='M86.4%20198.4h44.8c12.4%200%2022.4%2010.1%2022.4%2022.4v44.8c0%2012.4-10%2022.4-22.4%2022.4H86.4C74%20288%2064%20278%2064%20265.6v-44.8c0-12.3%2010-22.4%2022.4-22.4zM355.2%20198.4h582.4c12.4%200%2022.4%2010.1%2022.4%2022.4v44.8c0%2012.4-10%2022.4-22.4%2022.4H355.2c-12.4%200-22.4-10-22.4-22.4v-44.8c0-12.3%2010-22.4%2022.4-22.4zM86.4%20736h44.8c12.4%200%2022.4%2010.1%2022.4%2022.4v44.8c0%2012.4-10%2022.4-22.4%2022.4H86.4c-12.4%200-22.4-10-22.4-22.4v-44.8c0-12.3%2010-22.4%2022.4-22.4zM355.2%20736h582.4c12.4%200%2022.4%2010.1%2022.4%2022.4v44.8c0%2012.4-10%2022.4-22.4%2022.4H355.2c-12.4%200-22.4-10-22.4-22.4v-44.8c0-12.3%2010-22.4%2022.4-22.4zM86.4%20467.2h44.8c12.4%200%2022.4%2010.1%2022.4%2022.4v44.8c0%2012.4-10%2022.4-22.4%2022.4H86.4c-12.4%200-22.4-10-22.4-22.4v-44.8c0-12.3%2010-22.4%2022.4-22.4zM355.2%20467.2h582.4c12.4%200%2022.4%2010.1%2022.4%2022.4v44.8c0%2012.4-10%2022.4-22.4%2022.4H355.2c-12.4%200-22.4-10-22.4-22.4v-44.8c0-12.3%2010-22.4%2022.4-22.4z'%20p-id='4249'%20fill='%2311254a'%3e%3c/path%3e%3c/svg%3e",gc=e=>(ds("data-v-bbbecc06"),e=e(),hs(),e),mc={class:"navbar"},_c={class:"navbar-left"},yc=["src"],bc={class:"navbar-center"},vc=["src"],Ec=gc(()=>re("div",{class:"navbar-right"}," Eng ",-1)),wc=Ct({__name:"Navbar",props:{toggleSidebar:{type:Object,required:!0,validator:e=>typeof e=="function"}},setup(e){const t=e;return(n,s)=>(ct(),wt("div",mc,[re("div",_c,[re("img",{id:"sidebar-button",src:Ee(pc),alt:"sidebar",onClick:s[0]||(s[0]=cc((...r)=>t.toggleSidebar&&t.toggleSidebar(...r),["stop"]))},null,8,yc)]),re("div",bc,[re("img",{id:"logo",src:Ee(Ro),alt:"logo"},null,8,vc)]),Ec]))}}),at=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},xc=at(wc,[["__scopeId","data-v-bbbecc06"]]);/*! - * vue-router v4.0.13 - * (c) 2022 Eduardo San Martin Morote - * @license MIT - */const Co=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Pt=e=>Co?Symbol(e):"_vr_"+e,Sc=Pt("rvlm"),rr=Pt("rvd"),ys=Pt("r"),Po=Pt("rl"),Jn=Pt("rvl"),_t=typeof window<"u";function Rc(e){return e.__esModule||Co&&e[Symbol.toStringTag]==="Module"}const Y=Object.assign;function Ln(e,t){const n={};for(const s in t){const r=t[s];n[s]=Array.isArray(r)?r.map(e):e(r)}return n}const Bt=()=>{},Cc=/\/$/,Pc=e=>e.replace(Cc,"");function Fn(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("?"),l=t.indexOf("#",c>-1?c:0);return c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=Tc(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function Oc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function or(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ac(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&St(t.matched[s],n.matched[r])&&Oo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function St(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Oo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Mc(e[n],t[n]))return!1;return!0}function Mc(e,t){return Array.isArray(e)?ir(e,t):Array.isArray(t)?ir(t,e):e===t}function ir(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Tc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o({left:window.pageXOffset,top:window.pageYOffset});function Hc(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Fc(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function lr(e,t){return(history.state?history.state.position-t:-1)+e}const Qn=new Map;function Nc(e,t){Qn.set(e,t)}function jc(e){const t=Qn.get(e);return Qn.delete(e),t}let Bc=()=>location.protocol+"//"+location.host;function Ao(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),or(l,"")}return or(n,e)+s+r}function Kc(e,t,n,s){let r=[],o=[],i=null;const c=({state:p})=>{const E=Ao(e,location),O=n.value,I=t.value;let V=0;if(p){if(n.value=E,t.value=p,i&&i===O){i=null;return}V=I?p.position-I.position:0}else s(E);r.forEach($=>{$(n.value,O,{delta:V,type:zt.pop,direction:V?V>0?Kt.forward:Kt.back:Kt.unknown})})};function l(){i=n.value}function d(p){r.push(p);const E=()=>{const O=r.indexOf(p);O>-1&&r.splice(O,1)};return o.push(E),E}function f(){const{history:p}=window;p.state&&p.replaceState(Y({},p.state,{scroll:Sn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:d,destroy:h}}function cr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Sn():null}}function Uc(e){const{history:t,location:n}=window,s={value:Ao(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,d,f){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Bc()+e+l;try{t[f?"replaceState":"pushState"](d,"",p),r.value=d}catch(E){console.error(E),n[f?"replace":"assign"](p)}}function i(l,d){const f=Y({},t.state,cr(r.value.back,l,r.value.forward,!0),d,{position:r.value.position});o(l,f,!0),s.value=l}function c(l,d){const f=Y({},r.value,t.state,{forward:l,scroll:Sn()});o(f.current,f,!0);const h=Y({},cr(s.value,l,null),{position:f.position+1},d);o(l,h,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function Vc(e){e=Ic(e);const t=Uc(e),n=Kc(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Y({location:"",base:e,go:s,createHref:Lc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Dc(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Vc(e)}function kc(e){return typeof e=="string"||e&&typeof e=="object"}function Mo(e){return typeof e=="string"||typeof e=="symbol"}const De={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},To=Pt("nf");var ur;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ur||(ur={}));function Rt(e,t){return Y(new Error,{type:e,[To]:!0},t)}function ke(e,t){return e instanceof Error&&To in e&&(t==null||!!(e.type&t))}const fr="[^/]+?",Wc={sensitive:!1,strict:!1,start:!0,end:!0},zc=/[.+*?^${}()[\]/\\]/g;function qc(e,t){const n=Y({},Wc,t),s=[];let r=n.start?"^":"";const o=[];for(const d of e){const f=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function Jc(e,t){let n=0;const s=e.score,r=t.score;for(;n1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=l}for(;c{i(L)}:Bt}function i(f){if(Mo(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function c(){return n}function l(f){let h=0;for(;h=0&&(f.record.path!==n[h].record.path||!Io(f,n[h]));)h++;n.splice(h,0,f),f.record.name&&!ar(f)&&s.set(f.record.name,f)}function d(f,h){let p,E={},O,I;if("name"in f&&f.name){if(p=s.get(f.name),!p)throw Rt(1,{location:f});I=p.record.name,E=Y(tu(h.params,p.keys.filter(L=>!L.optional).map(L=>L.name)),f.params),O=p.stringify(E)}else if("path"in f)O=f.path,p=n.find(L=>L.re.test(O)),p&&(E=p.parse(O),I=p.record.name);else{if(p=h.name?s.get(h.name):n.find(L=>L.re.test(h.path)),!p)throw Rt(1,{location:f,currentLocation:h});I=p.record.name,E=Y({},h.params,f.params),O=p.stringify(E)}const V=[];let $=p;for(;$;)V.unshift($.record),$=$.parent;return{name:I,path:O,params:E,matched:V,meta:ru(V)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:d,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function tu(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function nu(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:su(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function su(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function ar(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ru(e){return e.reduce((t,n)=>Y(t,n.meta),{})}function dr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Io(e,t){return t.children.some(n=>n===e||Io(e,n))}const $o=/#/g,ou=/&/g,iu=/\//g,lu=/=/g,cu=/\?/g,Lo=/\+/g,uu=/%5B/g,fu=/%5D/g,Fo=/%5E/g,au=/%60/g,Ho=/%7B/g,du=/%7C/g,No=/%7D/g,hu=/%20/g;function bs(e){return encodeURI(""+e).replace(du,"|").replace(uu,"[").replace(fu,"]")}function pu(e){return bs(e).replace(Ho,"{").replace(No,"}").replace(Fo,"^")}function Yn(e){return bs(e).replace(Lo,"%2B").replace(hu,"+").replace($o,"%23").replace(ou,"%26").replace(au,"`").replace(Ho,"{").replace(No,"}").replace(Fo,"^")}function gu(e){return Yn(e).replace(lu,"%3D")}function mu(e){return bs(e).replace($o,"%23").replace(cu,"%3F")}function _u(e){return e==null?"":mu(e).replace(iu,"%2F")}function dn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function yu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Yn(o)):[s&&Yn(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function bu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Array.isArray(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}function Tt(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function qe(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,c)=>{const l=h=>{h===!1?c(Rt(4,{from:n,to:t})):h instanceof Error?c(h):kc(h)?c(Rt(2,{from:t,to:h})):(o&&s.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),i())},d=e.call(s&&s.instances[r],t,n,l);let f=Promise.resolve(d);e.length<3&&(f=f.then(l)),f.catch(h=>c(h))})}function Hn(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(vu(c)){const d=(c.__vccOpts||c)[t];d&&r.push(qe(d,n,s,o,i))}else{let l=c();r.push(()=>l.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const f=Rc(d)?d.default:d;o.components[i]=f;const p=(f.__vccOpts||f)[t];return p&&qe(p,n,s,o,i)()}))}}return r}function vu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function pr(e){const t=je(ys),n=je(Po),s=Fe(()=>t.resolve(Ee(e.to))),r=Fe(()=>{const{matched:l}=s.value,{length:d}=l,f=l[d-1],h=n.matched;if(!f||!h.length)return-1;const p=h.findIndex(St.bind(null,f));if(p>-1)return p;const E=gr(l[d-2]);return d>1&&gr(f)===E&&h[h.length-1].path!==E?h.findIndex(St.bind(null,l[d-2])):p}),o=Fe(()=>r.value>-1&&Su(n.params,s.value.params)),i=Fe(()=>r.value>-1&&r.value===n.matched.length-1&&Oo(n.params,s.value.params));function c(l={}){return xu(l)?t[Ee(e.replace)?"replace":"push"](Ee(e.to)).catch(Bt):Promise.resolve()}return{route:s,href:Fe(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const Eu=Ct({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:pr,setup(e,{slots:t}){const n=Gt(pr(e)),{options:s}=je(ys),r=Fe(()=>({[mr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[mr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:So("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),wu=Eu;function xu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Su(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Array.isArray(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function gr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const mr=(e,t,n)=>e??t??n,Ru=Ct({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:n}){const s=je(Jn),r=Fe(()=>e.route||s.value),o=je(rr,0),i=Fe(()=>r.value.matched[o]);rn(rr,o+1),rn(Sc,i),rn(Jn,r);const c=Dr();return on(()=>[c.value,i.value,e.name],([l,d,f],[h,p,E])=>{d&&(d.instances[f]=l,p&&p!==d&&l&&l===h&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),l&&d&&(!p||!St(d,p)||!h)&&(d.enterCallbacks[f]||[]).forEach(O=>O(l))},{flush:"post"}),()=>{const l=r.value,d=i.value,f=d&&d.components[e.name],h=e.name;if(!f)return _r(n.default,{Component:f,route:l});const p=d.props[e.name],E=p?p===!0?l.params:typeof p=="function"?p(l):p:null,I=So(f,Y({},E,t,{onVnodeUnmounted:V=>{V.component.isUnmounted&&(d.instances[h]=null)},ref:c}));return _r(n.default,{Component:I,route:l})||I}}});function _r(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Cu=Ru;function Pu(e){const t=eu(e.routes,e),n=e.parseQuery||yu,s=e.stringifyQuery||hr,r=e.history,o=Tt(),i=Tt(),c=Tt(),l=xi(De);let d=De;_t&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Ln.bind(null,m=>""+m),h=Ln.bind(null,_u),p=Ln.bind(null,dn);function E(m,P){let R,M;return Mo(m)?(R=t.getRecordMatcher(m),M=P):M=m,t.addRoute(M,R)}function O(m){const P=t.getRecordMatcher(m);P&&t.removeRoute(P)}function I(){return t.getRoutes().map(m=>m.record)}function V(m){return!!t.getRecordMatcher(m)}function $(m,P){if(P=Y({},P||l.value),typeof m=="string"){const K=Fn(n,m,P.path),u=t.resolve({path:K.path},P),a=r.createHref(K.fullPath);return Y(K,u,{params:p(u.params),hash:dn(K.hash),redirectedFrom:void 0,href:a})}let R;if("path"in m)R=Y({},m,{path:Fn(n,m.path,P.path).path});else{const K=Y({},m.params);for(const u in K)K[u]==null&&delete K[u];R=Y({},m,{params:h(m.params)}),P.params=h(P.params)}const M=t.resolve(R,P),Q=m.hash||"";M.params=f(p(M.params));const X=Oc(s,Y({},m,{hash:pu(Q),path:M.path})),D=r.createHref(X);return Y({fullPath:X,hash:Q,query:s===hr?bu(m.query):m.query||{}},M,{redirectedFrom:void 0,href:D})}function L(m){return typeof m=="string"?Fn(n,m,l.value.path):Y({},m)}function N(m,P){if(d!==m)return Rt(8,{from:P,to:m})}function W(m){return fe(m)}function ne(m){return W(Y(L(m),{replace:!0}))}function j(m){const P=m.matched[m.matched.length-1];if(P&&P.redirect){const{redirect:R}=P;let M=typeof R=="function"?R(m):R;return typeof M=="string"&&(M=M.includes("?")||M.includes("#")?M=L(M):{path:M},M.params={}),Y({query:m.query,hash:m.hash,params:m.params},M)}}function fe(m,P){const R=d=$(m),M=l.value,Q=m.state,X=m.force,D=m.replace===!0,K=j(R);if(K)return fe(Y(L(K),{state:Q,force:X,replace:D}),P||R);const u=R;u.redirectedFrom=P;let a;return!X&&Ac(s,M,R)&&(a=Rt(16,{to:u,from:M}),tt(M,M,!0,!1)),(a?Promise.resolve(a):dt(u,M)).catch(g=>ke(g)?ke(g,2)?g:we(g):J(g,u,M)).then(g=>{if(g){if(ke(g,2))return fe(Y(L(g.to),{state:Q,force:X,replace:D}),P||u)}else g=Ke(u,M,!0,D,Q);return Ae(u,M,g),g})}function be(m,P){const R=N(m,P);return R?Promise.reject(R):Promise.resolve()}function dt(m,P){let R;const[M,Q,X]=Ou(m,P);R=Hn(M.reverse(),"beforeRouteLeave",m,P);for(const K of M)K.leaveGuards.forEach(u=>{R.push(qe(u,m,P))});const D=be.bind(null,m,P);return R.push(D),mt(R).then(()=>{R=[];for(const K of o.list())R.push(qe(K,m,P));return R.push(D),mt(R)}).then(()=>{R=Hn(Q,"beforeRouteUpdate",m,P);for(const K of Q)K.updateGuards.forEach(u=>{R.push(qe(u,m,P))});return R.push(D),mt(R)}).then(()=>{R=[];for(const K of m.matched)if(K.beforeEnter&&!P.matched.includes(K))if(Array.isArray(K.beforeEnter))for(const u of K.beforeEnter)R.push(qe(u,m,P));else R.push(qe(K.beforeEnter,m,P));return R.push(D),mt(R)}).then(()=>(m.matched.forEach(K=>K.enterCallbacks={}),R=Hn(X,"beforeRouteEnter",m,P),R.push(D),mt(R))).then(()=>{R=[];for(const K of i.list())R.push(qe(K,m,P));return R.push(D),mt(R)}).catch(K=>ke(K,8)?K:Promise.reject(K))}function Ae(m,P,R){for(const M of c.list())M(m,P,R)}function Ke(m,P,R,M,Q){const X=N(m,P);if(X)return X;const D=P===De,K=_t?history.state:{};R&&(M||D?r.replace(m.fullPath,Y({scroll:D&&K&&K.scroll},Q)):r.push(m.fullPath,Q)),l.value=m,tt(m,P,R,D),we()}let Ue;function ht(){Ue=r.listen((m,P,R)=>{const M=$(m),Q=j(M);if(Q){fe(Y(Q,{replace:!0}),M).catch(Bt);return}d=M;const X=l.value;_t&&Nc(lr(X.fullPath,R.delta),Sn()),dt(M,X).catch(D=>ke(D,12)?D:ke(D,2)?(fe(D.to,M).then(K=>{ke(K,20)&&!R.delta&&R.type===zt.pop&&r.go(-1,!1)}).catch(Bt),Promise.reject()):(R.delta&&r.go(-R.delta,!1),J(D,M,X))).then(D=>{D=D||Ke(M,X,!1),D&&(R.delta?r.go(-R.delta,!1):R.type===zt.pop&&ke(D,20)&&r.go(-1,!1)),Ae(M,X,D)}).catch(Bt)})}let et=Tt(),Ot=Tt(),se;function J(m,P,R){we(m);const M=Ot.list();return M.length?M.forEach(Q=>Q(m,P,R)):console.error(m),Promise.reject(m)}function G(){return se&&l.value!==De?Promise.resolve():new Promise((m,P)=>{et.add([m,P])})}function we(m){return se||(se=!m,ht(),et.list().forEach(([P,R])=>m?R(m):P()),et.reset()),m}function tt(m,P,R,M){const{scrollBehavior:Q}=e;if(!_t||!Q)return Promise.resolve();const X=!R&&jc(lr(m.fullPath,0))||(M||!R)&&history.state&&history.state.scroll||null;return qr().then(()=>Q(m,P,X)).then(D=>D&&Hc(D)).catch(D=>J(D,m,P))}const xe=m=>r.go(m);let he;const pt=new Set;return{currentRoute:l,addRoute:E,removeRoute:O,hasRoute:V,getRoutes:I,resolve:$,options:e,push:W,replace:ne,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:Ot.add,isReady:G,install(m){const P=this;m.component("RouterLink",wu),m.component("RouterView",Cu),m.config.globalProperties.$router=P,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>Ee(l)}),_t&&!he&&l.value===De&&(he=!0,W(r.location).catch(Q=>{}));const R={};for(const Q in De)R[Q]=Fe(()=>l.value[Q]);m.provide(ys,P),m.provide(Po,Gt(R)),m.provide(Jn,l);const M=m.unmount;pt.add(m),m.unmount=function(){pt.delete(m),pt.size<1&&(d=De,Ue&&Ue(),l.value=De,he=!1,se=!1),M()}}}}function mt(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Ou(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iSt(d,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(d=>St(d,l))||r.push(l))}return[n,s,r]}const Au={},Mu=e=>(ds("data-v-fc7947ef"),e=e(),hs(),e),Tu={class:"content main-content"},Iu=Mu(()=>re("div",{class:"content-section"},[re("h2",null,"关于"),re("p",null," LMTR,Liteyuki Minecraft Transit Railway,轻雪铁路,亦可简称轻铁, 服务于Liteyuki Minecraft Server的官方铁路系统。目标是为Liteyuki Minecraft Server的玩家提供一个便捷、快速、安全的交通方式, 使玩家能够更好地探索Liteyuki Minecraft Server的世界。 ")],-1)),$u=[Iu];function Lu(e,t){return ct(),wt("div",Tu,$u)}const Fu=at(Au,[["render",Lu],["__scopeId","data-v-fc7947ef"]]),Hu={};function Nu(e,t){return" 周边 "}const ju=at(Hu,[["render",Nu]]),Bu={};function Ku(e,t){return" 加入 "}const Uu=at(Bu,[["render",Ku]]),Vu="/assets/system-plan-BD64JMf2.png",jo=e=>(ds("data-v-721fe15b"),e=e(),hs(),e),Du={class:"content",id:"content-map"},ku=jo(()=>re("h2",null,"LMTR System Plan",-1)),Wu=["src"],zu=jo(()=>re("p",{style:{"text-align":"center"}},[jt("该线路图使用"),re("a",{href:"https://railmapgen.github.io/rmp/"},"地铁线路图绘制器"),jt("绘制,图中所用素材部分为"),re("a",{href:"https://mtr.com.hk/"},"港铁公司"),jt("所设计,均为非商用")],-1)),qu=Ct({__name:"Map",setup(e){return(t,n)=>(ct(),wt("div",Du,[ku,re("img",{class:"map",src:Ee(Vu),alt:"system-plan"},null,8,Wu),zu]))}}),Gu=at(qu,[["__scopeId","data-v-721fe15b"]]),Ju=[{path:"/",name:"主页",component:Fu},{path:"/surroundings",name:"周边环境",component:ju},{path:"/map",name:"线路图",component:Gu},{path:"/join",name:"加入",component:Uu}],Bo=Pu({history:Dc("#"),routes:Ju}),Qu={class:"sidebar-header"},Yu=["src"],Xu={class:"sidebar-content"},Zu={class:"sidebar-options"},ef=Ct({__name:"Sidebar",props:{isSidebarOpen:Boolean},setup(e){const t=e,s=Bo.getRoutes().map(r=>({name:r.name,path:r.path}));return(r,o)=>{const i=no("router-link");return ct(),wt("div",{class:qt(["sidebar",{open:t.isSidebarOpen}])},[re("div",Qu,[re("img",{id:"logo",src:Ee(Ro),alt:"logo"},null,8,Yu)]),re("div",Xu,[re("div",Zu,[(ct(!0),wt(Ie,null,zi(Ee(s),c=>(ct(),Rl(i,{key:c.name,to:c.path},{default:Yr(()=>[jt(Cr(c.name),1)]),_:2},1032,["to"]))),128))])])],2)}}}),tf=at(ef,[["__scopeId","data-v-cbf5d250"]]),nf={class:"container"},sf=Ct({__name:"App",setup(e){let t=Dr(!1);const n=()=>{t.value=!t.value},s=()=>{t.value=!1};return(r,o)=>{const i=no("router-view");return ct(),wt("div",{onClick:s,class:qt({shadow:Ee(t)})},[re("div",nf,[de(xc,{toggleSidebar:n}),de(tf,{isSidebarOpen:Ee(t)},null,8,["isSidebarOpen"])]),de(i)],2)}}}),rf=at(sf,[["__scopeId","data-v-22e89850"]]);ac(rf).use(Bo).mount("#app"); diff --git a/web/assets/index-D-XXFb5n.css b/web/assets/index-D-XXFb5n.css new file mode 100644 index 0000000..a66c6f9 --- /dev/null +++ b/web/assets/index-D-XXFb5n.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}.host[data-v-70ccf727]{padding:1em;border:1px solid #ccc;border-radius:20px;margin:.5em;flex-direction:column;justify-content:space-between}.icon[data-v-70ccf727]{margin-right:.5em;height:20px}.section[data-v-70ccf727]{display:flex;margin-right:10px}.label[data-v-70ccf727]{background-color:#535bf2;padding:2px 5px;border-radius:5px;margin-right:10px}.chart[data-v-70ccf727]{width:150px;height:150px}.grid-container[data-v-9196e233]{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px;padding:10px}.grid-item[data-v-9196e233]{background-color:#3bb7c3;padding:20px;text-align:center;border:1px solid #3bb7c3;border-radius:5px}.navbar[data-v-dc98e94b]{z-index:3;display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:80px;background-color:#d0e9ff;box-shadow:0 2px 4px #0000001a}.navbar-left img[data-v-dc98e94b]{height:40px}.navbar-left[data-v-dc98e94b],.navbar-right[data-v-dc98e94b]{display:flex;align-items:center}.navbar-center img[data-v-dc98e94b]{height:80px}.logo[data-v-3a9bcf68]{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo[data-v-3a9bcf68]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-3a9bcf68]:hover{filter:drop-shadow(0 0 2em #42b883aa)} diff --git a/web/assets/index-D-XXFb5n.css.hertz.gz b/web/assets/index-D-XXFb5n.css.hertz.gz new file mode 100644 index 0000000..41c5161 Binary files /dev/null and b/web/assets/index-D-XXFb5n.css.hertz.gz differ diff --git a/web/assets/index-h4O0pTvc.css b/web/assets/index-h4O0pTvc.css deleted file mode 100644 index 8b5f188..0000000 --- a/web/assets/index-h4O0pTvc.css +++ /dev/null @@ -1 +0,0 @@ -:root{--white-color: #f3f3f3;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}body{margin:0;padding:0}.content{margin:20px}.content-section{margin:10px}.navbar[data-v-bbbecc06]{z-index:3;display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:80px;background-color:var(--white-color);box-shadow:0 2px 4px #0000001a}.navbar-left img[data-v-bbbecc06]{height:40px}.navbar-left[data-v-bbbecc06],.navbar-right[data-v-bbbecc06]{display:flex;align-items:center}.navbar-center img[data-v-bbbecc06]{height:80px}.main-content[data-v-fc7947ef]{flex:1;background-color:var(--white-color)}h2[data-v-721fe15b]{margin-top:0;text-align:center}.map[data-v-721fe15b]{width:100%;max-width:800px;margin:0 auto;display:block}.sidebar[data-v-cbf5d250]{z-index:2;position:fixed;top:0;left:0;width:200px;height:100%;background-color:var(--white-color);transform:translate(-100%);transition:transform .3s}#logo[data-v-cbf5d250]{height:80px}.sidebar[data-v-cbf5d250]{transform:translate(-100%);transition:transform .3s}.sidebar.open[data-v-cbf5d250]{box-shadow:8px 0 8px #0006;transform:translate(0)}.sidebar-content[data-v-cbf5d250]{padding-left:20px}.sidebar-options[data-v-cbf5d250]>*{display:block}a[data-v-cbf5d250]{color:#333;text-decoration:none;margin-bottom:10px}.container[data-v-22e89850]{position:relative;z-index:1} diff --git a/web/assets/logo-c0Hh2kbx.png b/web/assets/logo-c0Hh2kbx.png deleted file mode 100644 index 3ae54a9..0000000 Binary files a/web/assets/logo-c0Hh2kbx.png and /dev/null differ diff --git a/web/assets/system-plan-BD64JMf2.png b/web/assets/system-plan-BD64JMf2.png deleted file mode 100644 index 3160876..0000000 Binary files a/web/assets/system-plan-BD64JMf2.png and /dev/null differ diff --git a/web/favicon.ico b/web/favicon.ico deleted file mode 100644 index 4ae15f4..0000000 Binary files a/web/favicon.ico and /dev/null differ diff --git a/web/icon.svg b/web/icon.svg new file mode 100644 index 0000000..2bce659 --- /dev/null +++ b/web/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/web/icon.svg.hertz.gz b/web/icon.svg.hertz.gz new file mode 100644 index 0000000..76af8e1 Binary files /dev/null and b/web/icon.svg.hertz.gz differ diff --git a/web/index.html b/web/index.html index cb4dd31..075d51d 100644 --- a/web/index.html +++ b/web/index.html @@ -1,13 +1,14 @@ - - - - 轻铁 | LMTR - - - - -
- - \ No newline at end of file + + + + + Server Status + + + + +
+ + diff --git a/web/index.html.hertz.gz b/web/index.html.hertz.gz new file mode 100644 index 0000000..87741b0 Binary files /dev/null and b/web/index.html.hertz.gz differ diff --git a/web/svg/location.svg b/web/svg/location.svg new file mode 100644 index 0000000..8e4e4cf --- /dev/null +++ b/web/svg/location.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/web/svg/location.svg.hertz.gz b/web/svg/location.svg.hertz.gz new file mode 100644 index 0000000..8eb7cbd Binary files /dev/null and b/web/svg/location.svg.hertz.gz differ diff --git a/web/svg/system.svg b/web/svg/system.svg new file mode 100644 index 0000000..9800386 --- /dev/null +++ b/web/svg/system.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/web/svg/system.svg.hertz.gz b/web/svg/system.svg.hertz.gz new file mode 100644 index 0000000..26a8c5c Binary files /dev/null and b/web/svg/system.svg.hertz.gz differ