var GO=Object.defineProperty,FO=Object.defineProperties;var HO=Object.getOwnPropertyDescriptors;var eS=Object.getOwnPropertySymbols;var WO=Object.prototype.hasOwnProperty,$O=Object.prototype.propertyIsEnumerable;var rS=(r,t,e)=>t in r?GO(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,nS=(r,t)=>{for(var e in t||(t={}))WO.call(t,e)&&rS(r,e,t[e]);if(eS)for(var e of eS(t))$O.call(t,e)&&rS(r,e,t[e]);return r},iS=(r,t)=>FO(r,HO(t));var vl=(r,t,e)=>new Promise((n,i)=>{var a=l=>{try{s(e.next(l))}catch(u){i(u)}},o=l=>{try{s(e.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((e=e.apply(r,t)).next())});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function e(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=e(i);fetch(i.href,a)}})();/** * @vue/shared v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function p0(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const ie={},bs=[],sn=()=>{},hD=()=>!1,Tv=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Av=r=>r.startsWith("onUpdate:"),Me=Object.assign,g0=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},UO=Object.prototype.hasOwnProperty,jt=(r,t)=>UO.call(r,t),It=Array.isArray,ws=r=>hf(r)==="[object Map]",Cv=r=>hf(r)==="[object Set]",aS=r=>hf(r)==="[object Date]",Ot=r=>typeof r=="function",xe=r=>typeof r=="string",Ir=r=>typeof r=="symbol",re=r=>r!==null&&typeof r=="object",vD=r=>(re(r)||Ot(r))&&Ot(r.then)&&Ot(r.catch),dD=Object.prototype.toString,hf=r=>dD.call(r),YO=r=>hf(r).slice(8,-1),pD=r=>hf(r)==="[object Object]",Mv=r=>xe(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,ou=p0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dv=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},ZO=/-\w/g,ir=Dv(r=>r.replace(ZO,t=>t.slice(1).toUpperCase())),XO=/\B([A-Z])/g,va=Dv(r=>r.replace(XO,"-$1").toLowerCase()),Iv=Dv(r=>r.charAt(0).toUpperCase()+r.slice(1)),Md=Dv(r=>r?`on${Iv(r)}`:""),Pn=(r,t)=>!Object.is(r,t),Wc=(r,...t)=>{for(let e=0;e{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},Lv=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let oS;const Pv=()=>oS||(oS=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function y0(r){if(It(r)){const t={};for(let e=0;e{if(e){const n=e.split(KO);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function m0(r){let t="";if(xe(r))t=r;else if(It(r))for(let e=0;evf(e,t))}const mD=r=>!!(r&&r.__v_isRef===!0),nN=r=>xe(r)?r:r==null?"":It(r)||re(r)&&(r.toString===dD||!Ot(r.toString))?mD(r)?nN(r.value):JSON.stringify(r,_D,2):String(r),_D=(r,t)=>mD(t)?_D(r,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],a)=>(e[Dd(n,a)+" =>"]=i,e),{})}:Cv(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Dd(e))}:Ir(t)?Dd(t):re(t)&&!It(t)&&!pD(t)?String(t):t,Dd=(r,t="")=>{var e;return Ir(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/** * @vue/reactivity v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let cr;class iN{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=cr,!t&&cr&&(this.index=(cr.scopes||(cr.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&&--this._on===0&&(cr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let e,n;for(e=0,n=this.effects.length;e0)return;if(lu){let t=lu;for(lu=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let r;for(;su;){let t=su;for(su=void 0;t;){const e=t.next;if(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 wD(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function TD(r){let t,e=r.depsTail,n=e;for(;n;){const i=n.prevDep;n.version===-1?(n===e&&(e=i),x0(n),oN(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}r.deps=t,r.depsTail=e}function cy(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(AD(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function AD(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===Lu)||(r.globalVersion=Lu,!r.isSSR&&r.flags&128&&(!r.deps&&!r._dirty||!cy(r))))return;r.flags|=2;const t=r.dep,e=se,n=ln;se=r,ln=!0;try{wD(r);const i=r.fn(r._value);(t.version===0||Pn(i,r._value))&&(r.flags|=128,r._value=i,t.version++)}catch(i){throw t.version++,i}finally{se=e,ln=n,TD(r),r.flags&=-3}}function x0(r,t=!1){const{dep:e,prevSub:n,nextSub:i}=r;if(n&&(n.nextSub=i,r.prevSub=void 0),i&&(i.prevSub=n,r.nextSub=void 0),e.subs===r&&(e.subs=n,!n&&e.computed)){e.computed.flags&=-5;for(let a=e.computed.deps;a;a=a.nextDep)x0(a,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function oN(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let ln=!0;const CD=[];function hi(){CD.push(ln),ln=!1}function vi(){const r=CD.pop();ln=r===void 0?!0:r}function sS(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=se;se=void 0;try{t()}finally{se=e}}}let Lu=0;class sN{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 b0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!se||!ln||se===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==se)e=this.activeLink=new sN(se,this),se.deps?(e.prevDep=se.depsTail,se.depsTail.nextDep=e,se.depsTail=e):se.deps=se.depsTail=e,MD(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=se.depsTail,e.nextDep=void 0,se.depsTail.nextDep=e,se.depsTail=e,se.deps===e&&(se.deps=n)}return e}trigger(t){this.version++,Lu++,this.notify(t)}notify(t){_0();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{S0()}}}function MD(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)MD(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const yh=new WeakMap,co=Symbol(""),hy=Symbol(""),Pu=Symbol("");function Ze(r,t,e){if(ln&&se){let n=yh.get(r);n||yh.set(r,n=new Map);let i=n.get(e);i||(n.set(e,i=new b0),i.map=n,i.key=e),i.track()}}function ni(r,t,e,n,i,a){const o=yh.get(r);if(!o){Lu++;return}const s=l=>{l&&l.trigger()};if(_0(),t==="clear")o.forEach(s);else{const l=It(r),u=l&&Mv(e);if(l&&e==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===Pu||!Ir(h)&&h>=f)&&s(c)})}else switch((e!==void 0||o.has(void 0))&&s(o.get(e)),u&&s(o.get(Pu)),t){case"add":l?u&&s(o.get("length")):(s(o.get(co)),ws(r)&&s(o.get(hy)));break;case"delete":l||(s(o.get(co)),ws(r)&&s(o.get(hy)));break;case"set":ws(r)&&s(o.get(co));break}}S0()}function lN(r,t){const e=yh.get(r);return e&&e.get(t)}function Ho(r){const t=Xt(r);return t===r?t:(Ze(t,"iterate",Pu),Ar(r)?t:t.map(hn))}function Rv(r){return Ze(r=Xt(r),"iterate",Pu),r}function In(r,t){return di(r)?ks(ho(r)?hn(t):t):hn(t)}const uN={__proto__:null,[Symbol.iterator](){return Ld(this,Symbol.iterator,r=>In(this,r))},concat(...r){return Ho(this).concat(...r.map(t=>It(t)?Ho(t):t))},entries(){return Ld(this,"entries",r=>(r[1]=In(this,r[1]),r))},every(r,t){return Xn(this,"every",r,t,void 0,arguments)},filter(r,t){return Xn(this,"filter",r,t,e=>e.map(n=>In(this,n)),arguments)},find(r,t){return Xn(this,"find",r,t,e=>In(this,e),arguments)},findIndex(r,t){return Xn(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return Xn(this,"findLast",r,t,e=>In(this,e),arguments)},findLastIndex(r,t){return Xn(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return Xn(this,"forEach",r,t,void 0,arguments)},includes(...r){return Pd(this,"includes",r)},indexOf(...r){return Pd(this,"indexOf",r)},join(r){return Ho(this).join(r)},lastIndexOf(...r){return Pd(this,"lastIndexOf",r)},map(r,t){return Xn(this,"map",r,t,void 0,arguments)},pop(){return dl(this,"pop")},push(...r){return dl(this,"push",r)},reduce(r,...t){return lS(this,"reduce",r,t)},reduceRight(r,...t){return lS(this,"reduceRight",r,t)},shift(){return dl(this,"shift")},some(r,t){return Xn(this,"some",r,t,void 0,arguments)},splice(...r){return dl(this,"splice",r)},toReversed(){return Ho(this).toReversed()},toSorted(r){return Ho(this).toSorted(r)},toSpliced(...r){return Ho(this).toSpliced(...r)},unshift(...r){return dl(this,"unshift",r)},values(){return Ld(this,"values",r=>In(this,r))}};function Ld(r,t,e){const n=Rv(r),i=n[t]();return n!==r&&!Ar(r)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=e(a.value)),a}),i}const fN=Array.prototype;function Xn(r,t,e,n,i,a){const o=Rv(r),s=o!==r&&!Ar(r),l=o[t];if(l!==fN[t]){const c=l.apply(r,a);return s?hn(c):c}let u=e;o!==r&&(s?u=function(c,h){return e.call(this,In(r,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&&i?i(f):f}function lS(r,t,e,n){const i=Rv(r),a=i!==r&&!Ar(r);let o=e,s=!1;i!==r&&(a?(s=n.length===0,o=function(u,f,c){return s&&(s=!1,u=In(r,u)),e.call(this,u,In(r,f),c,r)}):e.length>3&&(o=function(u,f,c){return e.call(this,u,f,c,r)}));const l=i[t](o,...n);return s?In(r,l):l}function Pd(r,t,e){const n=Xt(r);Ze(n,"iterate",Pu);const i=n[t](...e);return(i===-1||i===!1)&&kv(e[0])?(e[0]=Xt(e[0]),n[t](...e)):i}function dl(r,t,e=[]){hi(),_0();const n=Xt(r)[t].apply(r,e);return S0(),vi(),n}const cN=p0("__proto__,__v_isRef,__isVue"),DD=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Ir));function hN(r){Ir(r)||(r=String(r));const t=Xt(this);return Ze(t,"has",r),t.hasOwnProperty(r)}class ID{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){if(e==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return a;if(e==="__v_raw")return n===(i?a?bN:ED:a?RD:PD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=It(t);if(!i){let l;if(o&&(l=uN[e]))return l;if(e==="hasOwnProperty")return hN}const s=Reflect.get(t,e,ke(t)?t:n);if((Ir(e)?DD.has(e):cN(e))||(i||Ze(t,"get",e),a))return s;if(ke(s)){const l=o&&Mv(e)?s:s.value;return i&&re(l)?dy(l):l}return re(s)?i?dy(s):Ev(s):s}}class LD extends ID{constructor(t=!1){super(!1,t)}set(t,e,n,i){let a=t[e];const o=It(t)&&Mv(e);if(!this._isShallow){const u=di(a);if(!Ar(n)&&!di(n)&&(a=Xt(a),n=Xt(n)),!o&&ke(a)&&!ke(n))return u||(a.value=n),!0}const s=o?Number(e)r,Vf=r=>Reflect.getPrototypeOf(r);function yN(r,t,e){return function(...n){const i=this.__v_raw,a=Xt(i),o=ws(a),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=i[r](...n),f=e?vy:t?ks:hn;return!t&&Ze(a,"iterate",l?hy:co),Me(Object.create(u),{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}}})}}function Bf(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function mN(r,t){const e={get(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);r||(Pn(i,s)&&Ze(o,"get",i),Ze(o,"get",s));const{has:l}=Vf(o),u=t?vy:r?ks:hn;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!r&&Ze(Xt(i),"iterate",co),i.size},has(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);return r||(Pn(i,s)&&Ze(o,"has",i),Ze(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=Xt(s),u=t?vy:r?ks:hn;return!r&&Ze(l,"iterate",co),s.forEach((f,c)=>i.call(a,u(f),u(c),o))}};return Me(e,r?{add:Bf("add"),set:Bf("set"),delete:Bf("delete"),clear:Bf("clear")}:{add(i){const a=Xt(this),o=Vf(a),s=Xt(i),l=!t&&!Ar(i)&&!di(i)?s:i;return o.has.call(a,l)||Pn(i,l)&&o.has.call(a,i)||Pn(s,l)&&o.has.call(a,s)||(a.add(l),ni(a,"add",l,l)),this},set(i,a){!t&&!Ar(a)&&!di(a)&&(a=Xt(a));const o=Xt(this),{has:s,get:l}=Vf(o);let u=s.call(o,i);u||(i=Xt(i),u=s.call(o,i));const f=l.call(o,i);return o.set(i,a),u?Pn(a,f)&&ni(o,"set",i,a):ni(o,"add",i,a),this},delete(i){const a=Xt(this),{has:o,get:s}=Vf(a);let l=o.call(a,i);l||(i=Xt(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&ni(a,"delete",i,void 0),u},clear(){const i=Xt(this),a=i.size!==0,o=i.clear();return a&&ni(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=yN(i,r,t)}),e}function w0(r,t){const e=mN(r,t);return(n,i,a)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(jt(e,i)&&i in n?e:n,i,a)}const _N={get:w0(!1,!1)},SN={get:w0(!1,!0)},xN={get:w0(!0,!1)};const PD=new WeakMap,RD=new WeakMap,ED=new WeakMap,bN=new WeakMap;function wN(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function TN(r){return r.__v_skip||!Object.isExtensible(r)?0:wN(YO(r))}function Ev(r){return di(r)?r:T0(r,!1,dN,_N,PD)}function kD(r){return T0(r,!1,gN,SN,RD)}function dy(r){return T0(r,!0,pN,xN,ED)}function T0(r,t,e,n,i){if(!re(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const a=TN(r);if(a===0)return r;const o=i.get(r);if(o)return o;const s=new Proxy(r,a===2?n:e);return i.set(r,s),s}function ho(r){return di(r)?ho(r.__v_raw):!!(r&&r.__v_isReactive)}function di(r){return!!(r&&r.__v_isReadonly)}function Ar(r){return!!(r&&r.__v_isShallow)}function kv(r){return r?!!r.__v_raw:!1}function Xt(r){const t=r&&r.__v_raw;return t?Xt(t):r}function AN(r){return!jt(r,"__v_skip")&&Object.isExtensible(r)&&gD(r,"__v_skip",!0),r}const hn=r=>re(r)?Ev(r):r,ks=r=>re(r)?dy(r):r;function ke(r){return r?r.__v_isRef===!0:!1}function $c(r){return OD(r,!1)}function CN(r){return OD(r,!0)}function OD(r,t){return ke(r)?r:new MN(r,t)}class MN{constructor(t,e){this.dep=new b0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Xt(t),this._value=e?t:hn(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||Ar(t)||di(t);t=n?t:Xt(t),Pn(t,e)&&(this._rawValue=t,this._value=n?t:hn(t),this.dep.trigger())}}function vo(r){return ke(r)?r.value:r}const DN={get:(r,t,e)=>t==="__v_raw"?r:vo(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const i=r[t];return ke(i)&&!ke(e)?(i.value=e,!0):Reflect.set(r,t,e,n)}};function ND(r){return ho(r)?r:new Proxy(r,DN)}function Sit(r){const t=It(r)?new Array(r.length):{};for(const e in r)t[e]=LN(r,e);return t}class IN{constructor(t,e,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Ir(e)?e:String(e),this._raw=Xt(t);let i=!0,a=t;if(!It(t)||Ir(this._key)||!Mv(this._key))do i=!kv(a)||Ar(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=vo(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ke(this._raw[this._key])){const e=this._object[this._key];if(ke(e)){e.value=t;return}}this._object[this._key]=t}get dep(){return lN(this._raw,this._key)}}function LN(r,t,e){return new IN(r,t,e)}class PN{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new b0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Lu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&se!==this)return bD(this,!0),!0}get value(){const t=this.dep.track();return AD(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function RN(r,t,e=!1){let n,i;return Ot(r)?n=r:(n=r.get,i=r.set),new PN(n,i,e)}const zf={},mh=new WeakMap;let Wa;function EN(r,t=!1,e=Wa){if(e){let n=mh.get(e);n||mh.set(e,n=[]),n.push(r)}}function kN(r,t,e=ie){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=e,u=S=>i?S:Ar(S)||i===!1||i===0?ii(S,1):ii(S);let f,c,h,v,d=!1,p=!1;if(ke(r)?(c=()=>r.value,d=Ar(r)):ho(r)?(c=()=>u(r),d=!0):It(r)?(p=!0,d=r.some(S=>ho(S)||Ar(S)),c=()=>r.map(S=>{if(ke(S))return S.value;if(ho(S))return u(S);if(Ot(S))return l?l(S,2):S()})):Ot(r)?t?c=l?()=>l(r,2):r:c=()=>{if(h){hi();try{h()}finally{vi()}}const S=Wa;Wa=f;try{return l?l(r,3,[v]):r(v)}finally{Wa=S}}:c=sn,t&&i){const S=c,x=i===!0?1/0:i;c=()=>ii(S(),x)}const g=aN(),y=()=>{f.stop(),g&&g.active&&g0(g.effects,f)};if(a&&t){const S=t;t=(...x)=>{S(...x),y()}}let m=p?new Array(r.length).fill(zf):zf;const _=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(t){const x=f.run();if(i||d||(p?x.some((b,w)=>Pn(b,m[w])):Pn(x,m))){h&&h();const b=Wa;Wa=f;try{const w=[x,m===zf?void 0:p&&m[0]===zf?[]:m,v];m=x,l?l(t,3,w):t(...w)}finally{Wa=b}}}else f.run()};return s&&s(_),f=new SD(c),f.scheduler=o?()=>o(_,!1):_,v=S=>EN(S,!1,f),h=f.onStop=()=>{const S=mh.get(f);if(S){if(l)l(S,4);else for(const x of S)x();mh.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 ii(r,t=1/0,e){if(t<=0||!re(r)||r.__v_skip||(e=e||new Map,(e.get(r)||0)>=t))return r;if(e.set(r,t),t--,ke(r))ii(r.value,t,e);else if(It(r))for(let n=0;n{ii(n,t,e)});else if(pD(r)){for(const n in r)ii(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&ii(r[n],t,e)}return r}/** * @vue/runtime-core v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function df(r,t,e,n){try{return n?r(...n):r()}catch(i){pf(i,t,e)}}function Gn(r,t,e,n){if(Ot(r)){const i=df(r,t,e,n);return i&&vD(i)&&i.catch(a=>{pf(a,t,e)}),i}if(It(r)){const i=[];for(let a=0;a>>1,i=nr[n],a=Ru(i);a=Ru(e)?nr.push(r):nr.splice(NN(t),0,r),r.flags|=1,BD()}}function BD(){_h||(_h=VD.then(GD))}function VN(r){It(r)?Ts.push(...r):Gi&&r.id===-1?Gi.splice(cs+1,0,r):r.flags&1||(Ts.push(r),r.flags|=1),BD()}function uS(r,t,e=Mn+1){for(;eRu(e)-Ru(n));if(Ts.length=0,Gi){Gi.push(...t);return}for(Gi=t,cs=0;csr.id==null?r.flags&2?-1:1/0:r.id;function GD(r){const t=sn;try{for(Mn=0;Mn{n._d&&Th(-1);const a=Sh(t);let o;try{o=r(...i)}finally{Sh(a),n._d&&Th(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function xit(r,t){if(Ve===null)return r;const e=Bv(Ve),n=r.dirs||(r.dirs=[]);for(let i=0;i1)return e&&Ot(t)?t.call(n&&n.proxy):t}}const zN=Symbol.for("v-scx"),GN=()=>un(zN);function bit(r,t){return M0(r,null,t)}function Yc(r,t,e){return M0(r,t,e)}function M0(r,t,e=ie){const{immediate:n,deep:i,flush:a,once:o}=e,s=Me({},e),l=t&&n||!t&&a!=="post";let u;if(Ns){if(a==="sync"){const v=GN();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=sn,v.resume=sn,v.pause=sn,v}}const f=Ne;s.call=(v,d,p)=>Gn(v,f,d,p);let c=!1;a==="post"?s.scheduler=v=>{fr(v,f&&f.suspense)}:a!=="sync"&&(c=!0,s.scheduler=(v,d)=>{d?v():C0(v)}),s.augmentJob=v=>{t&&(v.flags|=4),c&&(v.flags|=2,f&&(v.id=f.uid,v.i=f))};const h=kN(r,t,s);return Ns&&(u?u.push(h):l&&h()),h}function FN(r,t,e){const n=this.proxy,i=xe(r)?r.includes(".")?HD(n,r):()=>n[r]:r.bind(n,n);let a;Ot(t)?a=t:(a=t.handler,e=t);const o=gf(this),s=M0(i,a.bind(n),e);return o(),s}function HD(r,t){const e=t.split(".");return()=>{let n=r;for(let i=0;ir.__isTeleport,$N=Symbol("_leaveCb");function D0(r,t){r.shapeFlag&6&&r.component?(r.transition=t,D0(r.component.subTree,t)):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}function I0(r,t){return Ot(r)?(()=>Me({name:r.name},t,{setup:r}))():r}function L0(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function fS(r,t){let e;return!!((e=Object.getOwnPropertyDescriptor(r,t))&&!e.configurable)}const xh=new WeakMap;function uu(r,t,e,n,i=!1){if(It(r)){r.forEach((p,g)=>uu(p,t&&(It(t)?t[g]:t),e,n,i));return}if(As(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&uu(r,t,e,n.component.subTree);return}const a=n.shapeFlag&4?Bv(n.component):n.el,o=i?null:a,{i:s,r:l}=r,u=t&&t.r,f=s.refs===ie?s.refs={}:s.refs,c=s.setupState,h=Xt(c),v=c===ie?hD:p=>fS(f,p)?!1:jt(h,p),d=(p,g)=>!(g&&fS(f,g));if(u!=null&&u!==l){if(cS(t),xe(u))f[u]=null,v(u)&&(c[u]=null);else if(ke(u)){const p=t;d(u,p.k)&&(u.value=null),p.k&&(f[p.k]=null)}}if(Ot(l))df(l,s,12,[o,f]);else{const p=xe(l),g=ke(l);if(p||g){const y=()=>{if(r.f){const m=p?v(l)?c[l]:f[l]:d()||!r.k?l.value:f[r.k];if(i)It(m)&&g0(m,a);else if(It(m))m.includes(a)||m.push(a);else if(p)f[l]=[a],v(l)&&(c[l]=f[l]);else{const _=[a];d(l,r.k)&&(l.value=_),r.k&&(f[r.k]=_)}}else p?(f[l]=o,v(l)&&(c[l]=o)):g&&(d(l,r.k)&&(l.value=o),r.k&&(f[r.k]=o))};if(o){const m=()=>{y(),xh.delete(r)};m.id=-1,xh.set(r,m),fr(m,e)}else cS(r),y()}}}function cS(r){const t=xh.get(r);t&&(t.flags|=8,xh.delete(r))}const hS=r=>r.nodeType===8;Pv().requestIdleCallback;Pv().cancelIdleCallback;function UN(r,t){if(hS(r)&&r.data==="["){let e=1,n=r.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(hS(n))if(n.data==="]"){if(--e===0)break}else n.data==="["&&e++;n=n.nextSibling}}else t(r)}const As=r=>!!r.type.__asyncLoader;function wit(r){Ot(r)&&(r={loader:r});const{loader:t,loadingComponent:e,errorComponent:n,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:l}=r;let u=null,f,c=0;const h=()=>(c++,u=null,v()),v=()=>{let d;return u||(d=u=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((g,y)=>{l(p,()=>g(h()),()=>y(p),c+1)});throw p}).then(p=>d!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),f=p,p)))};return I0({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(d,p,g){let y=!1;(p.bu||(p.bu=[])).push(()=>y=!0);const m=()=>{y||g()},_=a?()=>{const S=a(m,x=>UN(d,x));S&&(p.bum||(p.bum=[])).push(S)}:m;f?_():v().then(()=>!p.isUnmounted&&_())},get __asyncResolved(){return f},setup(){const d=Ne;if(L0(d),f)return()=>Gf(f,d);const p=_=>{u=null,pf(_,d,13,!n)};if(s&&d.suspense||Ns)return v().then(_=>()=>Gf(_,d)).catch(_=>(p(_),()=>n?Pe(n,{error:_}):null));const g=$c(!1),y=$c(),m=$c(!!i);return i&&setTimeout(()=>{m.value=!1},i),o!=null&&setTimeout(()=>{if(!g.value&&!y.value){const _=new Error(`Async component timed out after ${o}ms.`);p(_),y.value=_}},o),v().then(()=>{g.value=!0,d.parent&&P0(d.parent.vnode)&&d.parent.update()}).catch(_=>{p(_),y.value=_}),()=>{if(g.value&&f)return Gf(f,d);if(y.value&&n)return Pe(n,{error:y.value});if(e&&!m.value)return Gf(e,d)}}})}function Gf(r,t){const{ref:e,props:n,children:i,ce:a}=t.vnode,o=Pe(r,n,i);return o.ref=e,o.ce=a,delete t.vnode.ce,o}const P0=r=>r.type.__isKeepAlive;function YN(r,t){WD(r,"a",t)}function ZN(r,t){WD(r,"da",t)}function WD(r,t,e=Ne){const n=r.__wdc||(r.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(Ov(t,n,e),e){let i=e.parent;for(;i&&i.parent;)P0(i.parent.vnode)&&XN(n,t,e,i),i=i.parent}}function XN(r,t,e,n){const i=Ov(t,r,n,!0);$D(()=>{g0(n[t],i)},e)}function Ov(r,t,e=Ne,n=!1){if(e){const i=e[r]||(e[r]=[]),a=t.__weh||(t.__weh=(...o)=>{hi();const s=gf(e),l=Gn(t,e,r,o);return s(),vi(),l});return n?i.unshift(a):i.push(a),a}}const wi=r=>(t,e=Ne)=>{(!Ns||r==="sp")&&Ov(r,(...n)=>t(...n),e)},qN=wi("bm"),KN=wi("m"),jN=wi("bu"),JN=wi("u"),QN=wi("bum"),$D=wi("um"),tV=wi("sp"),eV=wi("rtg"),rV=wi("rtc");function nV(r,t=Ne){Ov("ec",r,t)}const UD="components";function iV(r,t){return oV(UD,r,!0,t)||r}const aV=Symbol.for("v-ndc");function oV(r,t,e=!0,n=!1){const i=Ve||Ne;if(i){const a=i.type;if(r===UD){const s=YV(a,!1);if(s&&(s===t||s===ir(t)||s===Iv(ir(t))))return a}const o=vS(i[r]||a[r],t)||vS(i.appContext[r],t);return!o&&n?a:o}}function vS(r,t){return r&&(r[t]||r[ir(t)]||r[Iv(ir(t))])}function Tit(r,t,e,n){let i;const a=e&&e[n],o=It(r);if(o||xe(r)){const s=o&&ho(r);let l=!1,u=!1;s&&(l=!Ar(r),u=di(r),r=Rv(r)),i=new Array(r.length);for(let f=0,c=r.length;ft(s,l,void 0,a&&a[l]));else{const s=Object.keys(r);i=new Array(s.length);for(let l=0,u=s.length;l0;return t!=="default"&&(e.name=t),wh(),Ah(zr,null,[Pe("slot",e,n&&n())],u?-2:64)}let a=r[t];a&&a._c&&(a._d=!1),wh();const o=a&&YD(a(e)),s=e.key||o&&o.key,l=Ah(zr,{key:(s&&!Ir(s)?s:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&r._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function YD(r){return r.some(t=>ku(t)?!(t.type===pi||t.type===zr&&!YD(t.children)):!0)?r:null}const py=r=>r?hI(r)?Bv(r):py(r.parent):null,fu=Me(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=>py(r.parent),$root:r=>py(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>R0(r),$forceUpdate:r=>r.f||(r.f=()=>{C0(r.update)}),$nextTick:r=>r.n||(r.n=A0.bind(r.proxy)),$watch:r=>FN.bind(r)}),Rd=(r,t)=>r!==ie&&!r.__isScriptSetup&&jt(r,t),sV={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=r;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return a[t]}else{if(Rd(n,t))return o[t]=1,n[t];if(i!==ie&&jt(i,t))return o[t]=2,i[t];if(jt(a,t))return o[t]=3,a[t];if(e!==ie&&jt(e,t))return o[t]=4,e[t];gy&&(o[t]=0)}}const u=fu[t];let f,c;if(u)return t==="$attrs"&&Ze(r.attrs,"get",""),u(r);if((f=s.__cssModules)&&(f=f[t]))return f;if(e!==ie&&jt(e,t))return o[t]=4,e[t];if(c=l.config.globalProperties,jt(c,t))return c[t]},set({_:r},t,e){const{data:n,setupState:i,ctx:a}=r;return Rd(i,t)?(i[t]=e,!0):n!==ie&&jt(n,t)?(n[t]=e,!0):jt(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(a[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:i,props:a,type:o}},s){let l;return!!(e[s]||r!==ie&&s[0]!=="$"&&jt(r,s)||Rd(t,s)||jt(a,s)||jt(n,s)||jt(fu,s)||jt(i.config.globalProperties,s)||(l=o.__cssModules)&&l[s])},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 dS(r){return It(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let gy=!0;function lV(r){const t=R0(r),e=r.proxy,n=r.ctx;gy=!1,t.beforeCreate&&pS(t.beforeCreate,r,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:v,updated:d,activated:p,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:_,unmounted:S,render:x,renderTracked:b,renderTriggered:w,errorCaptured:T,serverPrefetch:A,expose:C,inheritAttrs:D,components:I,directives:L,filters:P}=t;if(u&&uV(u,n,null),o)for(const V in o){const N=o[V];Ot(N)&&(n[V]=N.bind(e))}if(i){const V=i.call(e,e);re(V)&&(r.data=Ev(V))}if(gy=!0,a)for(const V in a){const N=a[V],z=Ot(N)?N.bind(e,e):Ot(N.get)?N.get.bind(e,e):sn,$=!Ot(N)&&Ot(N.set)?N.set.bind(e):sn,q=nn({get:z,set:$});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>q.value,set:Q=>q.value=Q})}if(s)for(const V in s)ZD(s[V],n,e,V);if(l){const V=Ot(l)?l.call(e):l;Reflect.ownKeys(V).forEach(N=>{Uc(N,V[N])})}f&&pS(f,r,"c");function O(V,N){It(N)?N.forEach(z=>V(z.bind(e))):N&&V(N.bind(e))}if(O(qN,c),O(KN,h),O(jN,v),O(JN,d),O(YN,p),O(ZN,g),O(nV,T),O(rV,b),O(eV,w),O(QN,m),O($D,S),O(tV,A),It(C))if(C.length){const V=r.exposed||(r.exposed={});C.forEach(N=>{Object.defineProperty(V,N,{get:()=>e[N],set:z=>e[N]=z,enumerable:!0})})}else r.exposed||(r.exposed={});x&&r.render===sn&&(r.render=x),D!=null&&(r.inheritAttrs=D),I&&(r.components=I),L&&(r.directives=L),A&&L0(r)}function uV(r,t,e=sn){It(r)&&(r=yy(r));for(const n in r){const i=r[n];let a;re(i)?"default"in i?a=un(i.from||n,i.default,!0):a=un(i.from||n):a=un(i),ke(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function pS(r,t,e){Gn(It(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function ZD(r,t,e,n){let i=n.includes(".")?HD(e,n):()=>e[n];if(xe(r)){const a=t[r];Ot(a)&&Yc(i,a)}else if(Ot(r))Yc(i,r.bind(e));else if(re(r))if(It(r))r.forEach(a=>ZD(a,t,e,n));else{const a=Ot(r.handler)?r.handler.bind(e):t[r.handler];Ot(a)&&Yc(i,a,r)}}function R0(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=r.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(u=>bh(l,u,o,!0)),bh(l,t,o)),re(t)&&a.set(t,l),l}function bh(r,t,e,n=!1){const{mixins:i,extends:a}=t;a&&bh(r,a,e,!0),i&&i.forEach(o=>bh(r,o,e,!0));for(const o in t)if(!(n&&o==="expose")){const s=fV[o]||e&&e[o];r[o]=s?s(r[o],t[o]):t[o]}return r}const fV={data:gS,props:yS,emits:yS,methods:Zl,computed:Zl,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:Zl,directives:Zl,watch:hV,provide:gS,inject:cV};function gS(r,t){return t?r?function(){return Me(Ot(r)?r.call(this,this):r,Ot(t)?t.call(this,this):t)}:t:r}function cV(r,t){return Zl(yy(r),yy(t))}function yy(r){if(It(r)){const t={};for(let e=0;et==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${ir(t)}Modifiers`]||r[`${va(t)}Modifiers`];function gV(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||ie;let i=e;const a=t.startsWith("update:"),o=a&&pV(n,t.slice(7));o&&(o.trim&&(i=e.map(f=>xe(f)?f.trim():f)),o.number&&(i=e.map(Lv)));let s,l=n[s=Md(t)]||n[s=Md(ir(t))];!l&&a&&(l=n[s=Md(va(t))]),l&&Gn(l,r,6,i);const u=n[s+"Once"];if(u){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,Gn(u,r,6,i)}}const yV=new WeakMap;function qD(r,t,e=!1){const n=e?yV:t.emitsCache,i=n.get(r);if(i!==void 0)return i;const a=r.emits;let o={},s=!1;if(!Ot(r)){const l=u=>{const f=qD(u,t,!0);f&&(s=!0,Me(o,f))};!e&&t.mixins.length&&t.mixins.forEach(l),r.extends&&l(r.extends),r.mixins&&r.mixins.forEach(l)}return!a&&!s?(re(r)&&n.set(r,null),null):(It(a)?a.forEach(l=>o[l]=null):Me(o,a),re(r)&&n.set(r,o),o)}function Nv(r,t){return!r||!Tv(t)?!1:(t=t.slice(2).replace(/Once$/,""),jt(r,t[0].toLowerCase()+t.slice(1))||jt(r,va(t))||jt(r,t))}function Ed(r){const{type:t,vnode:e,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:v,ctx:d,inheritAttrs:p}=r,g=Sh(r);let y,m;try{if(e.shapeFlag&4){const S=i||n,x=S;y=Ln(u.call(x,S,f,c,v,h,d)),m=s}else{const S=t;y=Ln(S.length>1?S(c,{attrs:s,slots:o,emit:l}):S(c,null)),m=t.props?s:mV(s)}}catch(S){cu.length=0,pf(S,r,1),y=Pe(pi)}let _=y;if(m&&p!==!1){const S=Object.keys(m),{shapeFlag:x}=_;S.length&&x&7&&(a&&S.some(Av)&&(m=_V(m,a)),_=Os(_,m,!1,!0))}return e.dirs&&(_=Os(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&D0(_,e.transition),y=_,Sh(g),y}const mV=r=>{let t;for(const e in r)(e==="class"||e==="style"||Tv(e))&&((t||(t={}))[e]=r[e]);return t},_V=(r,t)=>{const e={};for(const n in r)(!Av(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function SV(r,t,e){const{props:n,children:i,component:a}=r,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?mS(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;cObject.create(jD),QD=r=>Object.getPrototypeOf(r)===jD;function bV(r,t,e,n=!1){const i={},a=JD();r.propsDefaults=Object.create(null),tI(r,t,i,a);for(const o in r.propsOptions[0])o in i||(i[o]=void 0);e?r.props=n?i:kD(i):r.type.props?r.props=i:r.props=a,r.attrs=a}function wV(r,t,e,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=r,s=Xt(i),[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]=eI(c,t,!0);Me(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(!a&&!l)return re(r)&&n.set(r,bs),bs;if(It(a))for(let f=0;fr==="_"||r==="_ctx"||r==="$stable",k0=r=>It(r)?r.map(Ln):[Ln(r)],AV=(r,t,e)=>{if(t._n)return t;const n=BN((...i)=>k0(t(...i)),e);return n._c=!1,n},rI=(r,t,e)=>{const n=r._ctx;for(const i in r){if(E0(i))continue;const a=r[i];if(Ot(a))t[i]=AV(i,a,n);else if(a!=null){const o=k0(a);t[i]=()=>o}}},nI=(r,t)=>{const e=k0(t);r.slots.default=()=>e},iI=(r,t,e)=>{for(const n in t)(e||!E0(n))&&(r[n]=t[n])},CV=(r,t,e)=>{const n=r.slots=JD();if(r.vnode.shapeFlag&32){const i=t._;i?(iI(n,t,e),e&&gD(n,"_",i,!0)):rI(t,n)}else t&&nI(r,t)},MV=(r,t,e)=>{const{vnode:n,slots:i}=r;let a=!0,o=ie;if(n.shapeFlag&32){const s=t._;s?e&&s===1?a=!1:iI(i,t,e):(a=!t.$stable,rI(t,i)),o=t}else t&&(nI(r,t),o={default:1});if(a)for(const s in i)!E0(s)&&o[s]==null&&delete i[s]},fr=RV;function DV(r){return IV(r)}function IV(r,t){const e=Pv();e.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:v=sn,insertStaticContent:d}=r,p=(R,k,G,X=null,W=null,J=null,ot=void 0,ut=null,it=!!k.dynamicChildren)=>{if(R===k)return;R&&!pl(R,k)&&(X=U(R),Q(R,W,J,!0),R=null),k.patchFlag===-2&&(it=!1,k.dynamicChildren=null);const{type:rt,ref:At,shapeFlag:dt}=k;switch(rt){case Vv:g(R,k,G,X);break;case pi:y(R,k,G,X);break;case Zc:R==null&&m(k,G,X,ot);break;case zr:I(R,k,G,X,W,J,ot,ut,it);break;default:dt&1?x(R,k,G,X,W,J,ot,ut,it):dt&6?L(R,k,G,X,W,J,ot,ut,it):(dt&64||dt&128)&&rt.process(R,k,G,X,W,J,ot,ut,it,tt)}At!=null&&W?uu(At,R&&R.ref,J,k||R,!k):At==null&&R&&R.ref!=null&&uu(R.ref,null,J,R,!0)},g=(R,k,G,X)=>{if(R==null)n(k.el=s(k.children),G,X);else{const W=k.el=R.el;k.children!==R.children&&u(W,k.children)}},y=(R,k,G,X)=>{R==null?n(k.el=l(k.children||""),G,X):k.el=R.el},m=(R,k,G,X)=>{[R.el,R.anchor]=d(R.children,k,G,X,R.el,R.anchor)},_=({el:R,anchor:k},G,X)=>{let W;for(;R&&R!==k;)W=h(R),n(R,G,X),R=W;n(k,G,X)},S=({el:R,anchor:k})=>{let G;for(;R&&R!==k;)G=h(R),i(R),R=G;i(k)},x=(R,k,G,X,W,J,ot,ut,it)=>{if(k.type==="svg"?ot="svg":k.type==="math"&&(ot="mathml"),R==null)b(k,G,X,W,J,ot,ut,it);else{const rt=R.el&&R.el._isVueCE?R.el:null;try{rt&&rt._beginPatch(),A(R,k,W,J,ot,ut,it)}finally{rt&&rt._endPatch()}}},b=(R,k,G,X,W,J,ot,ut)=>{let it,rt;const{props:At,shapeFlag:dt,transition:wt,dirs:Rt}=R;if(it=R.el=o(R.type,J,At&&At.is,At),dt&8?f(it,R.children):dt&16&&T(R.children,it,null,X,W,kd(R,J),ot,ut),Rt&&ya(R,null,X,"created"),w(it,R,R.scopeId,ot,X),At){for(const ne in At)ne!=="value"&&!ou(ne)&&a(it,ne,null,At[ne],J,X);"value"in At&&a(it,"value",null,At.value,J),(rt=At.onVnodeBeforeMount)&&_n(rt,X,R)}Rt&&ya(R,null,X,"beforeMount");const Yt=LV(W,wt);Yt&&wt.beforeEnter(it),n(it,k,G),((rt=At&&At.onVnodeMounted)||Yt||Rt)&&fr(()=>{try{rt&&_n(rt,X,R),Yt&&wt.enter(it),Rt&&ya(R,null,X,"mounted")}finally{}},W)},w=(R,k,G,X,W)=>{if(G&&v(R,G),X)for(let J=0;J{for(let rt=it;rt{const ut=k.el=R.el;let{patchFlag:it,dynamicChildren:rt,dirs:At}=k;it|=R.patchFlag&16;const dt=R.props||ie,wt=k.props||ie;let Rt;if(G&&ma(G,!1),(Rt=wt.onVnodeBeforeUpdate)&&_n(Rt,G,k,R),At&&ya(k,R,G,"beforeUpdate"),G&&ma(G,!0),(dt.innerHTML&&wt.innerHTML==null||dt.textContent&&wt.textContent==null)&&f(ut,""),rt?C(R.dynamicChildren,rt,ut,G,X,kd(k,W),J):ot||N(R,k,ut,null,G,X,kd(k,W),J,!1),it>0){if(it&16)D(ut,dt,wt,G,W);else if(it&2&&dt.class!==wt.class&&a(ut,"class",null,wt.class,W),it&4&&a(ut,"style",dt.style,wt.style,W),it&8){const Yt=k.dynamicProps;for(let ne=0;ne{Rt&&_n(Rt,G,k,R),At&&ya(k,R,G,"updated")},X)},C=(R,k,G,X,W,J,ot)=>{for(let ut=0;ut{if(k!==G){if(k!==ie)for(const J in k)!ou(J)&&!(J in G)&&a(R,J,k[J],null,W,X);for(const J in G){if(ou(J))continue;const ot=G[J],ut=k[J];ot!==ut&&J!=="value"&&a(R,J,ut,ot,W,X)}"value"in G&&a(R,"value",k.value,G.value,W)}},I=(R,k,G,X,W,J,ot,ut,it)=>{const rt=k.el=R?R.el:s(""),At=k.anchor=R?R.anchor:s("");let{patchFlag:dt,dynamicChildren:wt,slotScopeIds:Rt}=k;Rt&&(ut=ut?ut.concat(Rt):Rt),R==null?(n(rt,G,X),n(At,G,X),T(k.children||[],G,At,W,J,ot,ut,it)):dt>0&&dt&64&&wt&&R.dynamicChildren&&R.dynamicChildren.length===wt.length?(C(R.dynamicChildren,wt,G,W,J,ot,ut),(k.key!=null||W&&k===W.subTree)&&aI(R,k,!0)):N(R,k,G,At,W,J,ot,ut,it)},L=(R,k,G,X,W,J,ot,ut,it)=>{k.slotScopeIds=ut,R==null?k.shapeFlag&512?W.ctx.activate(k,G,X,ot,it):P(k,G,X,W,J,ot,it):E(R,k,it)},P=(R,k,G,X,W,J,ot)=>{const ut=R.component=GV(R,X,W);if(P0(R)&&(ut.ctx.renderer=tt),HV(ut,!1,ot),ut.asyncDep){if(W&&W.registerDep(ut,O,ot),!R.el){const it=ut.subTree=Pe(pi);y(null,it,k,G),R.placeholder=it.el}}else O(ut,R,k,G,W,J,ot)},E=(R,k,G)=>{const X=k.component=R.component;if(SV(R,k,G))if(X.asyncDep&&!X.asyncResolved){V(X,k,G);return}else X.next=k,X.update();else k.el=R.el,X.vnode=k},O=(R,k,G,X,W,J,ot)=>{const ut=()=>{if(R.isMounted){let{next:dt,bu:wt,u:Rt,parent:Yt,vnode:ne}=R;{const _r=oI(R);if(_r){dt&&(dt.el=ne.el,V(R,dt,ot)),_r.asyncDep.then(()=>{fr(()=>{R.isUnmounted||rt()},W)});return}}let oe=dt,_e;ma(R,!1),dt?(dt.el=ne.el,V(R,dt,ot)):dt=ne,wt&&Wc(wt),(_e=dt.props&&dt.props.onVnodeBeforeUpdate)&&_n(_e,Yt,dt,ne),ma(R,!0);const we=Ed(R),Kr=R.subTree;R.subTree=we,p(Kr,we,c(Kr.el),U(Kr),R,W,J),dt.el=we.el,oe===null&&xV(R,we.el),Rt&&fr(Rt,W),(_e=dt.props&&dt.props.onVnodeUpdated)&&fr(()=>_n(_e,Yt,dt,ne),W)}else{let dt;const{el:wt,props:Rt}=k,{bm:Yt,m:ne,parent:oe,root:_e,type:we}=R,Kr=As(k);if(ma(R,!1),Yt&&Wc(Yt),!Kr&&(dt=Rt&&Rt.onVnodeBeforeMount)&&_n(dt,oe,k),ma(R,!0),wt&<){const _r=()=>{R.subTree=Ed(R),lt(wt,R.subTree,R,W,null)};Kr&&we.__asyncHydrate?we.__asyncHydrate(wt,R,_r):_r()}else{_e.ce&&_e.ce._hasShadowRoot()&&_e.ce._injectChildStyle(we,R.parent?R.parent.type:void 0);const _r=R.subTree=Ed(R);p(null,_r,G,X,R,W,J),k.el=_r.el}if(ne&&fr(ne,W),!Kr&&(dt=Rt&&Rt.onVnodeMounted)){const _r=k;fr(()=>_n(dt,oe,_r),W)}(k.shapeFlag&256||oe&&As(oe.vnode)&&oe.vnode.shapeFlag&256)&&R.a&&fr(R.a,W),R.isMounted=!0,k=G=X=null}};R.scope.on();const it=R.effect=new SD(ut);R.scope.off();const rt=R.update=it.run.bind(it),At=R.job=it.runIfDirty.bind(it);At.i=R,At.id=R.uid,it.scheduler=()=>C0(At),ma(R,!0),rt()},V=(R,k,G)=>{k.component=R;const X=R.vnode.props;R.vnode=k,R.next=null,wV(R,k.props,X,G),MV(R,k.children,G),hi(),uS(R),vi()},N=(R,k,G,X,W,J,ot,ut,it=!1)=>{const rt=R&&R.children,At=R?R.shapeFlag:0,dt=k.children,{patchFlag:wt,shapeFlag:Rt}=k;if(wt>0){if(wt&128){$(rt,dt,G,X,W,J,ot,ut,it);return}else if(wt&256){z(rt,dt,G,X,W,J,ot,ut,it);return}}Rt&8?(At&16&&Et(rt,W,J),dt!==rt&&f(G,dt)):At&16?Rt&16?$(rt,dt,G,X,W,J,ot,ut,it):Et(rt,W,J,!0):(At&8&&f(G,""),Rt&16&&T(dt,G,X,W,J,ot,ut,it))},z=(R,k,G,X,W,J,ot,ut,it)=>{R=R||bs,k=k||bs;const rt=R.length,At=k.length,dt=Math.min(rt,At);let wt;for(wt=0;wtAt?Et(R,W,J,!0,!1,dt):T(k,G,X,W,J,ot,ut,it,dt)},$=(R,k,G,X,W,J,ot,ut,it)=>{let rt=0;const At=k.length;let dt=R.length-1,wt=At-1;for(;rt<=dt&&rt<=wt;){const Rt=R[rt],Yt=k[rt]=it?ri(k[rt]):Ln(k[rt]);if(pl(Rt,Yt))p(Rt,Yt,G,null,W,J,ot,ut,it);else break;rt++}for(;rt<=dt&&rt<=wt;){const Rt=R[dt],Yt=k[wt]=it?ri(k[wt]):Ln(k[wt]);if(pl(Rt,Yt))p(Rt,Yt,G,null,W,J,ot,ut,it);else break;dt--,wt--}if(rt>dt){if(rt<=wt){const Rt=wt+1,Yt=Rtwt)for(;rt<=dt;)Q(R[rt],W,J,!0),rt++;else{const Rt=rt,Yt=rt,ne=new Map;for(rt=Yt;rt<=wt;rt++){const Sr=k[rt]=it?ri(k[rt]):Ln(k[rt]);Sr.key!=null&&ne.set(Sr.key,rt)}let oe,_e=0;const we=wt-Yt+1;let Kr=!1,_r=0;const hl=new Array(we);for(rt=0;rt=we){Q(Sr,W,J,!0);continue}let mn;if(Sr.key!=null)mn=ne.get(Sr.key);else for(oe=Yt;oe<=wt;oe++)if(hl[oe-Yt]===0&&pl(Sr,k[oe])){mn=oe;break}mn===void 0?Q(Sr,W,J,!0):(hl[mn-Yt]=rt+1,mn>=_r?_r=mn:Kr=!0,p(Sr,k[mn],G,null,W,J,ot,ut,it),_e++)}const J1=Kr?PV(hl):bs;for(oe=J1.length-1,rt=we-1;rt>=0;rt--){const Sr=Yt+rt,mn=k[Sr],Q1=k[Sr+1],tS=Sr+1{const{el:J,type:ot,transition:ut,children:it,shapeFlag:rt}=R;if(rt&6){q(R.component.subTree,k,G,X);return}if(rt&128){R.suspense.move(k,G,X);return}if(rt&64){ot.move(R,k,G,tt);return}if(ot===zr){n(J,k,G);for(let dt=0;dtut.enter(J),W);else{const{leave:dt,delayLeave:wt,afterLeave:Rt}=ut,Yt=()=>{R.ctx.isUnmounted?i(J):n(J,k,G)},ne=()=>{J._isLeaving&&J[$N](!0),dt(J,()=>{Yt(),Rt&&Rt()})};wt?wt(J,Yt,ne):ne()}else n(J,k,G)},Q=(R,k,G,X=!1,W=!1)=>{const{type:J,props:ot,ref:ut,children:it,dynamicChildren:rt,shapeFlag:At,patchFlag:dt,dirs:wt,cacheIndex:Rt,memo:Yt}=R;if(dt===-2&&(W=!1),ut!=null&&(hi(),uu(ut,null,G,R,!0),vi()),Rt!=null&&(k.renderCache[Rt]=void 0),At&256){k.ctx.deactivate(R);return}const ne=At&1&&wt,oe=!As(R);let _e;if(oe&&(_e=ot&&ot.onVnodeBeforeUnmount)&&_n(_e,k,R),At&6)gt(R.component,G,X);else{if(At&128){R.suspense.unmount(G,X);return}ne&&ya(R,null,k,"beforeUnmount"),At&64?R.type.remove(R,k,G,tt,X):rt&&!rt.hasOnce&&(J!==zr||dt>0&&dt&64)?Et(rt,k,G,!1,!0):(J===zr&&dt&384||!W&&At&16)&&Et(it,k,G),X&&ct(R)}const we=Yt!=null&&Rt==null;(oe&&(_e=ot&&ot.onVnodeUnmounted)||ne||we)&&fr(()=>{_e&&_n(_e,k,R),ne&&ya(R,null,k,"unmounted"),we&&(R.el=null)},G)},ct=R=>{const{type:k,el:G,anchor:X,transition:W}=R;if(k===zr){ht(G,X);return}if(k===Zc){S(R);return}const J=()=>{i(G),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(R.shapeFlag&1&&W&&!W.persisted){const{leave:ot,delayLeave:ut}=W,it=()=>ot(G,J);ut?ut(R.el,J,it):it()}else J()},ht=(R,k)=>{let G;for(;R!==k;)G=h(R),i(R),R=G;i(k)},gt=(R,k,G)=>{const{bum:X,scope:W,job:J,subTree:ot,um:ut,m:it,a:rt}=R;SS(it),SS(rt),X&&Wc(X),W.stop(),J&&(J.flags|=8,Q(ot,R,k,G)),ut&&fr(ut,k),fr(()=>{R.isUnmounted=!0},k)},Et=(R,k,G,X=!1,W=!1,J=0)=>{for(let ot=J;ot{if(R.shapeFlag&6)return U(R.component.subTree);if(R.shapeFlag&128)return R.suspense.next();const k=h(R.anchor||R.el),G=k&&k[HN];return G?h(G):k};let K=!1;const H=(R,k,G)=>{let X;R==null?k._vnode&&(Q(k._vnode,null,null,!0),X=k._vnode.component):p(k._vnode||null,R,k,null,null,null,G),k._vnode=R,K||(K=!0,uS(X),zD(),K=!1)},tt={p,um:Q,m:q,r:ct,mt:P,mc:T,pc:N,pbc:C,n:U,o:r};let j,lt;return t&&([j,lt]=t(tt)),{render:H,hydrate:j,createApp:dV(H,j)}}function kd({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 ma({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function LV(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function aI(r,t,e=!1){const n=r.children,i=t.children;if(It(n)&&It(i))for(let a=0;a>1,r[e[s]]0&&(t[n]=e[a-1]),e[a]=n)}}for(a=e.length,o=e[a-1];a-- >0;)e[a]=o,o=t[o];return e}function oI(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:oI(t)}function SS(r){if(r)for(let t=0;tr.__isSuspense;function RV(r,t){t&&t.pendingBranch?It(r)?t.effects.push(...r):t.effects.push(r):VN(r)}const zr=Symbol.for("v-fgt"),Vv=Symbol.for("v-txt"),pi=Symbol.for("v-cmt"),Zc=Symbol.for("v-stc"),cu=[];let wr=null;function wh(r=!1){cu.push(wr=r?null:[])}function EV(){cu.pop(),wr=cu[cu.length-1]||null}let Eu=1;function Th(r,t=!1){Eu+=r,r<0&&wr&&t&&(wr.hasOnce=!0)}function uI(r){return r.dynamicChildren=Eu>0?wr||bs:null,EV(),Eu>0&&wr&&wr.push(r),r}function Cit(r,t,e,n,i,a){return uI(cI(r,t,e,n,i,a,!0))}function Ah(r,t,e,n,i){return uI(Pe(r,t,e,n,i,!0))}function ku(r){return r?r.__v_isVNode===!0:!1}function pl(r,t){return r.type===t.type&&r.key===t.key}const fI=({key:r})=>r!=null?r:null,Xc=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?xe(r)||ke(r)||Ot(r)?{i:Ve,r,k:t,f:!!e}:r:null);function cI(r,t=null,e=null,n=0,i=null,a=r===zr?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&fI(t),ref:t&&Xc(t),scopeId:FD,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:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ve};return s?(O0(l,e),a&128&&r.normalize(l)):e&&(l.shapeFlag|=xe(e)?8:16),Eu>0&&!o&&wr&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&wr.push(l),l}const Pe=kV;function kV(r,t=null,e=null,n=0,i=null,a=!1){if((!r||r===aV)&&(r=pi),ku(r)){const s=Os(r,t,!0);return e&&O0(s,e),Eu>0&&!a&&wr&&(s.shapeFlag&6?wr[wr.indexOf(r)]=s:wr.push(s)),s.patchFlag=-2,s}if(ZV(r)&&(r=r.__vccOpts),t){t=OV(t);let{class:s,style:l}=t;s&&!xe(s)&&(t.class=m0(s)),re(l)&&(kv(l)&&!It(l)&&(l=Me({},l)),t.style=y0(l))}const o=xe(r)?1:lI(r)?128:WN(r)?64:re(r)?4:Ot(r)?2:0;return cI(r,t,e,n,i,o,a,!0)}function OV(r){return r?kv(r)||QD(r)?Me({},r):r:null}function Os(r,t,e=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=r,u=t?VV(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&fI(u),ref:t&&t.ref?e&&a?It(a)?a.concat(Xc(t)):[a,Xc(t)]:Xc(t):a,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!==zr?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&&Os(r.ssContent),ssFallback:r.ssFallback&&Os(r.ssFallback),placeholder:r.placeholder,el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return l&&n&&D0(f,l.clone(f)),f}function NV(r=" ",t=0){return Pe(Vv,null,r,t)}function Mit(r,t){const e=Pe(Zc,null,r);return e.staticCount=t,e}function Dit(r="",t=!1){return t?(wh(),Ah(pi,null,r)):Pe(pi,null,r)}function Ln(r){return r==null||typeof r=="boolean"?Pe(pi):It(r)?Pe(zr,null,r.slice()):ku(r)?ri(r):Pe(Vv,null,String(r))}function ri(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Os(r)}function O0(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(It(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),O0(r,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!QD(t)?t._ctx=Ve:i===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else Ot(t)?(t={default:t,_ctx:Ve},e=32):(t=String(t),n&64?(e=16,t=[NV(t)]):e=8);r.children=t,r.shapeFlag|=e}function VV(...r){const t={};for(let e=0;eNe||Ve;let Ch,_y;{const r=Pv(),t=(e,n)=>{let i;return(i=r[e])||(i=r[e]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};Ch=t("__VUE_INSTANCE_SETTERS__",e=>Ne=e),_y=t("__VUE_SSR_SETTERS__",e=>Ns=e)}const gf=r=>{const t=Ne;return Ch(r),r.scope.on(),()=>{r.scope.off(),Ch(t)}},xS=()=>{Ne&&Ne.scope.off(),Ch(null)};function hI(r){return r.vnode.shapeFlag&4}let Ns=!1;function HV(r,t=!1,e=!1){t&&_y(t);const{props:n,children:i}=r.vnode,a=hI(r);bV(r,n,a,t),CV(r,i,e||t);const o=a?WV(r,t):void 0;return t&&_y(!1),o}function WV(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,sV);const{setup:n}=e;if(n){hi();const i=r.setupContext=n.length>1?UV(r):null,a=gf(r),o=df(n,r,0,[r.props,i]),s=vD(o);if(vi(),a(),(s||r.sp)&&!As(r)&&L0(r),s){if(o.then(xS,xS),t)return o.then(l=>{bS(r,l,t)}).catch(l=>{pf(l,r,0)});r.asyncDep=o}else bS(r,o,t)}else vI(r,t)}function bS(r,t,e){Ot(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:re(t)&&(r.setupState=ND(t)),vI(r,e)}let wS;function vI(r,t,e){const n=r.type;if(!r.render){if(!t&&wS&&!n.render){const i=n.template||R0(r).template;if(i){const{isCustomElement:a,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Me(Me({isCustomElement:a,delimiters:s},o),l);n.render=wS(i,u)}}r.render=n.render||sn}{const i=gf(r);hi();try{lV(r)}finally{vi(),i()}}}const $V={get(r,t){return Ze(r,"get",""),r[t]}};function UV(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,$V),slots:r.slots,emit:r.emit,expose:t}}function Bv(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(ND(AN(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in fu)return fu[e](r)},has(t,e){return e in t||e in fu}})):r.proxy}function YV(r,t=!0){return Ot(r)?r.displayName||r.name:r.name||t&&r.__name}function ZV(r){return Ot(r)&&"__vccOpts"in r}const nn=(r,t)=>RN(r,t,Ns);function dI(r,t,e){try{Th(-1);const n=arguments.length;return n===2?re(t)&&!It(t)?ku(t)?Pe(r,null,[t]):Pe(r,t):Pe(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&ku(e)&&(e=[e]),Pe(r,t,e))}finally{Th(1)}}const XV="3.5.31";/** * @vue/runtime-dom v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Sy;const TS=typeof window!="undefined"&&window.trustedTypes;if(TS)try{Sy=TS.createPolicy("vue",{createHTML:r=>r})}catch(r){}const pI=Sy?r=>Sy.createHTML(r):r=>r,qV="http://www.w3.org/2000/svg",KV="http://www.w3.org/1998/Math/MathML",Qn=typeof document!="undefined"?document:null,AS=Qn&&Qn.createElement("template"),jV={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 i=t==="svg"?Qn.createElementNS(qV,r):t==="mathml"?Qn.createElementNS(KV,r):e?Qn.createElement(r,{is:e}):Qn.createElement(r);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>Qn.createTextNode(r),createComment:r=>Qn.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Qn.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,i,a){const o=e?e.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),e),!(i===a||!(i=i.nextSibling)););else{AS.innerHTML=pI(n==="svg"?`${r}`:n==="mathml"?`${r}`:r);const s=AS.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]}},JV=Symbol("_vtc");function QV(r,t,e){const n=r[JV];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const Mh=Symbol("_vod"),gI=Symbol("_vsh"),Iit={name:"show",beforeMount(r,{value:t},{transition:e}){r[Mh]=r.style.display==="none"?"":r.style.display,e&&t?e.beforeEnter(r):gl(r,t)},mounted(r,{value:t},{transition:e}){e&&t&&e.enter(r)},updated(r,{value:t,oldValue:e},{transition:n}){!t!=!e&&(n?t?(n.beforeEnter(r),gl(r,!0),n.enter(r)):n.leave(r,()=>{gl(r,!1)}):gl(r,t))},beforeUnmount(r,{value:t}){gl(r,t)}};function gl(r,t){r.style.display=t?r[Mh]:"none",r[gI]=!t}const tB=Symbol(""),eB=/(?:^|;)\s*display\s*:/;function rB(r,t,e){const n=r.style,i=xe(e);let a=!1;if(e&&!i){if(t)if(xe(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();e[s]==null&&qc(n,s,"")}else for(const o in t)e[o]==null&&qc(n,o,"");for(const o in e)o==="display"&&(a=!0),qc(n,o,e[o])}else if(i){if(t!==e){const o=n[tB];o&&(e+=";"+o),n.cssText=e,a=eB.test(e)}}else t&&r.removeAttribute("style");Mh in r&&(r[Mh]=a?n.display:"",r[gI]&&(n.display="none"))}const CS=/\s*!important$/;function qc(r,t,e){if(It(e))e.forEach(n=>qc(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=nB(r,t);CS.test(e)?r.setProperty(va(n),e.replace(CS,""),"important"):r[n]=e}}const MS=["Webkit","Moz","ms"],Od={};function nB(r,t){const e=Od[t];if(e)return e;let n=ir(t);if(n!=="filter"&&n in r)return Od[t]=n;n=Iv(n);for(let i=0;iNd||(sB.then(()=>Nd=0),Nd=Date.now());function uB(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Gn(fB(n,e.value),t,5,[n])};return e.value=r,e.attached=lB(),e}function fB(r,t){if(It(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const ES=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,cB=(r,t,e,n,i,a)=>{const o=i==="svg";t==="class"?QV(r,n,o):t==="style"?rB(r,e,n):Tv(t)?Av(t)||aB(r,t,e,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):hB(r,t,n,o))?(LS(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&IS(r,t,n,o,a,t!=="value")):r._isVueCE&&(vB(r,t)||r._def.__asyncLoader&&(/[A-Z]/.test(t)||!xe(n)))?LS(r,ir(t),n,a,t):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),IS(r,t,n,o))};function hB(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&ES(t)&&Ot(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&r.tagName==="IFRAME"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=r.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ES(t)&&xe(e)?!1:t in r}function vB(r,t){const e=r._def.props;if(!e)return!1;const n=ir(t);return Array.isArray(e)?e.some(i=>ir(i)===n):Object.keys(e).some(i=>ir(i)===n)}const Dh=r=>{const t=r.props["onUpdate:modelValue"]||!1;return It(t)?e=>Wc(t,e):t};function dB(r){r.target.composing=!0}function kS(r){const t=r.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ms=Symbol("_assign");function OS(r,t,e){return t&&(r=r.trim()),e&&(r=Lv(r)),r}const Lit={created(r,{modifiers:{lazy:t,trim:e,number:n}},i){r[Ms]=Dh(i);const a=n||i.props&&i.props.type==="number";Ka(r,t?"change":"input",o=>{o.target.composing||r[Ms](OS(r.value,e,a))}),(e||a)&&Ka(r,"change",()=>{r.value=OS(r.value,e,a)}),t||(Ka(r,"compositionstart",dB),Ka(r,"compositionend",kS),Ka(r,"change",kS))},mounted(r,{value:t}){r.value=t==null?"":t},beforeUpdate(r,{value:t,oldValue:e,modifiers:{lazy:n,trim:i,number:a}},o){if(r[Ms]=Dh(o),r.composing)return;const s=(a||r.type==="number")&&!/^0\d/.test(r.value)?Lv(r.value):r.value,l=t==null?"":t;if(s===l)return;const u=r.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===r&&r.type!=="range"&&(n&&t===e||i&&r.value.trim()===l)||(r.value=l)}},Pit={deep:!0,created(r,{value:t,modifiers:{number:e}},n){const i=Cv(t);Ka(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>e?Lv(Ih(o)):Ih(o));r[Ms](r.multiple?i?new Set(a):a:a[0]),r._assigning=!0,A0(()=>{r._assigning=!1})}),r[Ms]=Dh(n)},mounted(r,{value:t}){NS(r,t)},beforeUpdate(r,t,e){r[Ms]=Dh(e)},updated(r,{value:t}){r._assigning||NS(r,t)}};function NS(r,t){const e=r.multiple,n=It(t);if(!(e&&!n&&!Cv(t))){for(let i=0,a=r.options.length;iString(u)===String(s)):o.selected=rN(t,s)>-1}else o.selected=t.has(s);else if(vf(Ih(o),t)){r.selectedIndex!==i&&(r.selectedIndex=i);return}}!e&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Ih(r){return"_value"in r?r._value:r.value}const pB=["ctrl","shift","alt","meta"],gB={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,t)=>pB.some(e=>r[`${e}Key`]&&!t.includes(e))},Rit=(r,t)=>{if(!r)return r;const e=r._withMods||(r._withMods={}),n=t.join(".");return e[n]||(e[n]=(i,...a)=>{for(let o=0;o{const e=r._withKeys||(r._withKeys={}),n=t.join(".");return e[n]||(e[n]=i=>{if(!("key"in i))return;const a=va(i.key);if(t.some(o=>o===a||yB[o]===a))return r(i)})},mB=Me({patchProp:cB},jV);let VS;function _B(){return VS||(VS=DV(mB))}const SB=(...r)=>{const t=_B().createApp(...r),{mount:e}=t;return t.mount=n=>{const i=bB(n);if(!i)return;const a=t._component;!Ot(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=e(i,!1,xB(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function xB(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function bB(r){return xe(r)?document.querySelector(r):r}const wB="modulepreload",TB=function(r,t){return new URL(r,t).href},BS={},yI=function(t,e,n){if(!e||e.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(e.map(a=>{if(a=TB(a,n),a in BS)return;BS[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!n)for(let f=i.length-1;f>=0;f--){const c=i[f];if(c.href===a&&(!o||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":wB,o||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),o)return new Promise((f,c)=>{u.addEventListener("load",f),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})};/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const hs=typeof document!="undefined";function mI(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function AB(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&mI(r.default)}const Kt=Object.assign;function Vd(r,t){const e={};for(const n in t){const i=t[n];e[n]=vn(i)?i.map(r):r(i)}return e}const hu=()=>{},vn=Array.isArray;function zS(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}const _I=/#/g,CB=/&/g,MB=/\//g,DB=/=/g,IB=/\?/g,SI=/\+/g,LB=/%5B/g,PB=/%5D/g,xI=/%5E/g,RB=/%60/g,bI=/%7B/g,EB=/%7C/g,wI=/%7D/g,kB=/%20/g;function N0(r){return r==null?"":encodeURI(""+r).replace(EB,"|").replace(LB,"[").replace(PB,"]")}function OB(r){return N0(r).replace(bI,"{").replace(wI,"}").replace(xI,"^")}function xy(r){return N0(r).replace(SI,"%2B").replace(kB,"+").replace(_I,"%23").replace(CB,"%26").replace(RB,"`").replace(bI,"{").replace(wI,"}").replace(xI,"^")}function NB(r){return xy(r).replace(DB,"%3D")}function VB(r){return N0(r).replace(_I,"%23").replace(IB,"%3F")}function BB(r){return VB(r).replace(MB,"%2F")}function Ou(r){if(r==null)return null;try{return decodeURIComponent(""+r)}catch(t){}return""+r}const zB=/\/$/,GB=r=>r.replace(zB,"");function Bd(r,t,e="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(n=t.slice(0,l),a=t.slice(l,s>0?s:t.length),i=r(a.slice(1))),s>=0&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=$B(n!=null?n:t,e),{fullPath:n+a+o,path:n,query:i,hash:Ou(o)}}function FB(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function GS(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function HB(r,t,e){const n=t.matched.length-1,i=e.matched.length-1;return n>-1&&n===i&&Vs(t.matched[n],e.matched[i])&&TI(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Vs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function TI(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(var e in r)if(!WB(r[e],t[e]))return!1;return!0}function WB(r,t){return vn(r)?FS(r,t):vn(t)?FS(t,r):(r==null?void 0:r.valueOf())===(t==null?void 0:t.valueOf())}function FS(r,t){return vn(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("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=e.length-1,o,s;for(o=0;o1&&a--;else break;return e.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const Mi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let by=function(r){return r.pop="pop",r.push="push",r}({}),zd=function(r){return r.back="back",r.forward="forward",r.unknown="",r}({});function UB(r){if(!r)if(hs){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),GB(r)}const YB=/^[^#]+#/;function ZB(r,t){return r.replace(YB,"#")+t}function XB(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 zv=()=>({left:window.scrollX,top:window.scrollY});function qB(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),i=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!i)return;t=XB(i,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function HS(r,t){return(history.state?history.state.position-t:-1)+r}const wy=new Map;function KB(r,t){wy.set(r,t)}function jB(r){const t=wy.get(r);return wy.delete(r),t}function JB(r){return typeof r=="string"||r&&typeof r=="object"}function AI(r){return typeof r=="string"||typeof r=="symbol"}let he=function(r){return r[r.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",r[r.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",r[r.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",r[r.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",r[r.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",r}({});const CI=Symbol("");he.MATCHER_NOT_FOUND+"",he.NAVIGATION_GUARD_REDIRECT+"",he.NAVIGATION_ABORTED+"",he.NAVIGATION_CANCELLED+"",he.NAVIGATION_DUPLICATED+"";function Bs(r,t){return Kt(new Error,{type:r,[CI]:!0},t)}function qn(r,t){return r instanceof Error&&CI in r&&(t==null||!!(r.type&t))}const QB=["params","query","hash"];function tz(r){if(typeof r=="string")return r;if(r.path!=null)return r.path;const t={};for(const e of QB)e in r&&(t[e]=r[e]);return JSON.stringify(t,null,2)}function ez(r){const t={};if(r===""||r==="?")return t;const e=(r[0]==="?"?r.slice(1):r).split("&");for(let n=0;ni&&xy(i)):[n&&xy(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function rz(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=vn(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const nz=Symbol(""),$S=Symbol(""),Gv=Symbol(""),V0=Symbol(""),Ty=Symbol("");function yl(){let r=[];function t(n){return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function Fi(r,t,e,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(Bs(he.NAVIGATION_ABORTED,{from:e,to:t})):h instanceof Error?l(h):JB(h)?l(Bs(he.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(o&&n.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),s())},f=a(()=>r.call(n&&n.instances[i],t,e,u));let c=Promise.resolve(f);r.length<3&&(c=c.then(u)),c.catch(h=>l(h))})}function Gd(r,t,e,n,i=a=>a()){const a=[];for(const o of r)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(mI(l)){const u=(l.__vccOpts||l)[t];u&&a.push(Fi(u,e,n,o,s,i))}else{let u=l();a.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const c=AB(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const h=(c.__vccOpts||c)[t];return h&&Fi(h,e,n,o,s,i)()}))}}return a}function iz(r,t){const e=[],n=[],i=[],a=Math.max(t.matched.length,r.matched.length);for(let o=0;oVs(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Vs(u,l))||i.push(l))}return[e,n,i]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let az=()=>location.protocol+"//"+location.host;function MI(r,t){const{pathname:e,search:n,hash:i}=t,a=r.indexOf("#");if(a>-1){let o=i.includes(r.slice(a))?r.slice(a).length:1,s=i.slice(o);return s[0]!=="/"&&(s="/"+s),GS(s,"")}return GS(e,r)+n+i}function oz(r,t,e,n){let i=[],a=[],o=null;const s=({state:h})=>{const v=MI(r,location),d=e.value,p=t.value;let g=0;if(h){if(e.value=v,t.value=h,o&&o===d){o=null;return}g=p?h.position-p.position:0}else n(v);i.forEach(y=>{y(e.value,d,{delta:g,type:by.pop,direction:g?g>0?zd.forward:zd.back:zd.unknown})})};function l(){o=e.value}function u(h){i.push(h);const v=()=>{const d=i.indexOf(h);d>-1&&i.splice(d,1)};return a.push(v),v}function f(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Kt({},h.state,{scroll:zv()}),"")}}function c(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:l,listen:u,destroy:c}}function US(r,t,e,n=!1,i=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:i?zv():null}}function sz(r){const{history:t,location:e}=window,n={value:MI(r,e)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=r.indexOf("#"),h=c>-1?(e.host&&document.querySelector("base")?r:r.slice(c))+l:az()+r+l;try{t[f?"replaceState":"pushState"](u,"",h),i.value=u}catch(v){console.error(v),e[f?"replace":"assign"](h)}}function o(l,u){a(l,Kt({},t.state,US(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),n.value=l}function s(l,u){const f=Kt({},i.value,t.state,{forward:l,scroll:zv()});a(f.current,f,!0),a(l,Kt({},US(n.value,l,null),{position:f.position+1},u),!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function lz(r){r=UB(r);const t=sz(r),e=oz(r,t.state,t.location,t.replace);function n(a,o=!0){o||e.pauseListeners(),history.go(a)}const i=Kt({location:"",base:r,go:n,createHref:ZB.bind(null,r)},t,e);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function uz(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),lz(r)}let eo=function(r){return r[r.Static=0]="Static",r[r.Param=1]="Param",r[r.Group=2]="Group",r}({});var Te=function(r){return r[r.Static=0]="Static",r[r.Param=1]="Param",r[r.ParamRegExp=2]="ParamRegExp",r[r.ParamRegExpEnd=3]="ParamRegExpEnd",r[r.EscapeNext=4]="EscapeNext",r}(Te||{});const fz={type:eo.Static,value:""},cz=/[a-zA-Z0-9_]/;function hz(r){if(!r)return[[]];if(r==="/")return[[fz]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(v){throw new Error(`ERR (${e})/"${u}": ${v}`)}let e=Te.Static,n=e;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(e===Te.Static?a.push({type:eo.Static,value:u}):e===Te.Param||e===Te.ParamRegExp||e===Te.ParamRegExpEnd?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:eo.Param,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;st.length?t.length===1&&t[0]===Qe.Static+Qe.Segment?1:-1:0}function DI(r,t){let e=0;const n=r.score,i=t.score;for(;e0&&t[t.length-1]<0}const yz={strict:!1,end:!0,sensitive:!1};function mz(r,t,e){const n=pz(hz(r.path),e),i=Kt(n,{record:r,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function _z(r,t){const e=[],n=new Map;t=zS(yz,t);function i(c){return n.get(c)}function a(c,h,v){const d=!v,p=qS(c);p.aliasOf=v&&v.record;const g=zS(t,c),y=[p];if("alias"in c){const S=typeof c.alias=="string"?[c.alias]:c.alias;for(const x of S)y.push(qS(Kt({},p,{components:v?v.record.components:p.components,path:x,aliasOf:v?v.record:p})))}let m,_;for(const S of y){const{path:x}=S;if(h&&x[0]!=="/"){const b=h.record.path,w=b[b.length-1]==="/"?"":"/";S.path=h.record.path+(x&&w+x)}if(m=mz(S,h,g),v?v.alias.push(m):(_=_||m,_!==m&&_.alias.push(m),d&&c.name&&!KS(m)&&o(c.name)),II(m)&&l(m),p.children){const b=p.children;for(let w=0;w{o(_)}:hu}function o(c){if(AI(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=bz(c,e);e.splice(h,0,c),c.record.name&&!KS(c)&&n.set(c.record.name,c)}function u(c,h){let v,d={},p,g;if("name"in c&&c.name){if(v=n.get(c.name),!v)throw Bs(he.MATCHER_NOT_FOUND,{location:c});g=v.record.name,d=Kt(XS(h.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&XS(c.params,v.keys.map(_=>_.name))),p=v.stringify(d)}else if(c.path!=null)p=c.path,v=e.find(_=>_.re.test(p)),v&&(d=v.parse(p),g=v.record.name);else{if(v=h.name?n.get(h.name):e.find(_=>_.re.test(h.path)),!v)throw Bs(he.MATCHER_NOT_FOUND,{location:c,currentLocation:h});g=v.record.name,d=Kt({},h.params,c.params),p=v.stringify(d)}const y=[];let m=v;for(;m;)y.unshift(m.record),m=m.parent;return{name:g,path:p,params:d,matched:y,meta:xz(y)}}r.forEach(c=>a(c));function f(){e.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:s,getRecordMatcher:i}}function XS(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function qS(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:Sz(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 Sz(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 KS(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function xz(r){return r.reduce((t,e)=>Kt(t,e.meta),{})}function bz(r,t){let e=0,n=t.length;for(;e!==n;){const a=e+n>>1;DI(r,t[a])<0?n=a:e=a+1}const i=wz(r);return i&&(n=t.lastIndexOf(i,n-1)),n}function wz(r){let t=r;for(;t=t.parent;)if(II(t)&&DI(r,t)===0)return t}function II({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function jS(r){const t=un(Gv),e=un(V0),n=nn(()=>{const l=vo(r.to);return t.resolve(l)}),i=nn(()=>{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(Vs.bind(null,f));if(h>-1)return h;const v=JS(l[u-2]);return u>1&&JS(f)===v&&c[c.length-1].path!==v?c.findIndex(Vs.bind(null,l[u-2])):h}),a=nn(()=>i.value>-1&&Dz(e.params,n.value.params)),o=nn(()=>i.value>-1&&i.value===e.matched.length-1&&TI(e.params,n.value.params));function s(l={}){if(Mz(l)){const u=t[vo(r.replace)?"replace":"push"](vo(r.to)).catch(hu);return r.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:nn(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function Tz(r){return r.length===1?r[0]:r}const Az=I0({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"},viewTransition:Boolean},useLink:jS,setup(r,{slots:t}){const e=Ev(jS(r)),{options:n}=un(Gv),i=nn(()=>({[QS(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[QS(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const a=t.default&&Tz(t.default(e));return r.custom?a:dI("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:i.value},a)}}}),Cz=Az;function Mz(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 Dz(r,t){for(const e in t){const n=t[e],i=r[e];if(typeof n=="string"){if(n!==i)return!1}else if(!vn(i)||i.length!==n.length||n.some((a,o)=>a.valueOf()!==i[o].valueOf()))return!1}return!0}function JS(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const QS=(r,t,e)=>r!=null?r:t!=null?t:e,Iz=I0({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=un(Ty),i=nn(()=>r.route||n.value),a=un($S,0),o=nn(()=>{let u=vo(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=nn(()=>i.value.matched[o.value]);Uc($S,nn(()=>o.value+1)),Uc(nz,s),Uc(Ty,i);const l=$c();return Yc(()=>[l.value,s.value,r.name],([u,f,c],[h,v,d])=>{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||!Vs(f,v)||!h)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=r.name,c=s.value,h=c&&c.components[f];if(!h)return tx(e.default,{Component:h,route:u});const v=c.props[f],d=v?v===!0?u.params:typeof v=="function"?v(u):v:null,g=dI(h,Kt({},d,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return tx(e.default,{Component:g,route:u})||g}}});function tx(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const Lz=Iz;function Pz(r){const t=_z(r.routes,r),e=r.parseQuery||ez,n=r.stringifyQuery||WS,i=r.history,a=yl(),o=yl(),s=yl(),l=CN(Mi);let u=Mi;hs&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Vd.bind(null,U=>""+U),c=Vd.bind(null,BB),h=Vd.bind(null,Ou);function v(U,K){let H,tt;return AI(U)?(H=t.getRecordMatcher(U),tt=K):tt=U,t.addRoute(tt,H)}function d(U){const K=t.getRecordMatcher(U);K&&t.removeRoute(K)}function p(){return t.getRoutes().map(U=>U.record)}function g(U){return!!t.getRecordMatcher(U)}function y(U,K){if(K=Kt({},K||l.value),typeof U=="string"){const k=Bd(e,U,K.path),G=t.resolve({path:k.path},K),X=i.createHref(k.fullPath);return Kt(k,G,{params:h(G.params),hash:Ou(k.hash),redirectedFrom:void 0,href:X})}let H;if(U.path!=null)H=Kt({},U,{path:Bd(e,U.path,K.path).path});else{const k=Kt({},U.params);for(const G in k)k[G]==null&&delete k[G];H=Kt({},U,{params:c(k)}),K.params=c(K.params)}const tt=t.resolve(H,K),j=U.hash||"";tt.params=f(h(tt.params));const lt=FB(n,Kt({},U,{hash:OB(j),path:tt.path})),R=i.createHref(lt);return Kt({fullPath:lt,hash:j,query:n===WS?rz(U.query):U.query||{}},tt,{redirectedFrom:void 0,href:R})}function m(U){return typeof U=="string"?Bd(e,U,l.value.path):Kt({},U)}function _(U,K){if(u!==U)return Bs(he.NAVIGATION_CANCELLED,{from:K,to:U})}function S(U){return w(U)}function x(U){return S(Kt(m(U),{replace:!0}))}function b(U,K){const H=U.matched[U.matched.length-1];if(H&&H.redirect){const{redirect:tt}=H;let j=typeof tt=="function"?tt(U,K):tt;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=m(j):{path:j},j.params={}),Kt({query:U.query,hash:U.hash,params:j.path!=null?{}:U.params},j)}}function w(U,K){const H=u=y(U),tt=l.value,j=U.state,lt=U.force,R=U.replace===!0,k=b(H,tt);if(k)return w(Kt(m(k),{state:typeof k=="object"?Kt({},j,k.state):j,force:lt,replace:R}),K||H);const G=H;G.redirectedFrom=K;let X;return!lt&&HB(n,tt,H)&&(X=Bs(he.NAVIGATION_DUPLICATED,{to:G,from:tt}),q(tt,tt,!0,!1)),(X?Promise.resolve(X):C(G,tt)).catch(W=>qn(W)?qn(W,he.NAVIGATION_GUARD_REDIRECT)?W:$(W):N(W,G,tt)).then(W=>{if(W){if(qn(W,he.NAVIGATION_GUARD_REDIRECT))return w(Kt({replace:R},m(W.to),{state:typeof W.to=="object"?Kt({},j,W.to.state):j,force:lt}),K||G)}else W=I(G,tt,!0,R,j);return D(G,tt,W),W})}function T(U,K){const H=_(U,K);return H?Promise.reject(H):Promise.resolve()}function A(U){const K=ht.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(U):U()}function C(U,K){let H;const[tt,j,lt]=iz(U,K);H=Gd(tt.reverse(),"beforeRouteLeave",U,K);for(const k of tt)k.leaveGuards.forEach(G=>{H.push(Fi(G,U,K))});const R=T.bind(null,U,K);return H.push(R),Et(H).then(()=>{H=[];for(const k of a.list())H.push(Fi(k,U,K));return H.push(R),Et(H)}).then(()=>{H=Gd(j,"beforeRouteUpdate",U,K);for(const k of j)k.updateGuards.forEach(G=>{H.push(Fi(G,U,K))});return H.push(R),Et(H)}).then(()=>{H=[];for(const k of lt)if(k.beforeEnter)if(vn(k.beforeEnter))for(const G of k.beforeEnter)H.push(Fi(G,U,K));else H.push(Fi(k.beforeEnter,U,K));return H.push(R),Et(H)}).then(()=>(U.matched.forEach(k=>k.enterCallbacks={}),H=Gd(lt,"beforeRouteEnter",U,K,A),H.push(R),Et(H))).then(()=>{H=[];for(const k of o.list())H.push(Fi(k,U,K));return H.push(R),Et(H)}).catch(k=>qn(k,he.NAVIGATION_CANCELLED)?k:Promise.reject(k))}function D(U,K,H){s.list().forEach(tt=>A(()=>tt(U,K,H)))}function I(U,K,H,tt,j){const lt=_(U,K);if(lt)return lt;const R=K===Mi,k=hs?history.state:{};H&&(tt||R?i.replace(U.fullPath,Kt({scroll:R&&k&&k.scroll},j)):i.push(U.fullPath,j)),l.value=U,q(U,K,H,R),$()}let L;function P(){L||(L=i.listen((U,K,H)=>{if(!gt.listening)return;const tt=y(U),j=b(tt,gt.currentRoute.value);if(j){w(Kt(j,{replace:!0,force:!0}),tt).catch(hu);return}u=tt;const lt=l.value;hs&&KB(HS(lt.fullPath,H.delta),zv()),C(tt,lt).catch(R=>qn(R,he.NAVIGATION_ABORTED|he.NAVIGATION_CANCELLED)?R:qn(R,he.NAVIGATION_GUARD_REDIRECT)?(w(Kt(m(R.to),{force:!0}),tt).then(k=>{qn(k,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&!H.delta&&H.type===by.pop&&i.go(-1,!1)}).catch(hu),Promise.reject()):(H.delta&&i.go(-H.delta,!1),N(R,tt,lt))).then(R=>{R=R||I(tt,lt,!1),R&&(H.delta&&!qn(R,he.NAVIGATION_CANCELLED)?i.go(-H.delta,!1):H.type===by.pop&&qn(R,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),D(tt,lt,R)}).catch(hu)}))}let E=yl(),O=yl(),V;function N(U,K,H){$(U);const tt=O.list();return tt.length?tt.forEach(j=>j(U,K,H)):console.error(U),Promise.reject(U)}function z(){return V&&l.value!==Mi?Promise.resolve():new Promise((U,K)=>{E.add([U,K])})}function $(U){return V||(V=!U,P(),E.list().forEach(([K,H])=>U?H(U):K()),E.reset()),U}function q(U,K,H,tt){const{scrollBehavior:j}=r;if(!hs||!j)return Promise.resolve();const lt=!H&&jB(HS(U.fullPath,0))||(tt||!H)&&history.state&&history.state.scroll||null;return A0().then(()=>j(U,K,lt)).then(R=>R&&qB(R)).catch(R=>N(R,U,K))}const Q=U=>i.go(U);let ct;const ht=new Set,gt={currentRoute:l,listening:!0,addRoute:v,removeRoute:d,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:p,resolve:y,options:r,push:S,replace:x,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:z,install(U){U.component("RouterLink",Cz),U.component("RouterView",Lz),U.config.globalProperties.$router=gt,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>vo(l)}),hs&&!ct&&l.value===Mi&&(ct=!0,S(i.location).catch(tt=>{}));const K={};for(const tt in Mi)Object.defineProperty(K,tt,{get:()=>l.value[tt],enumerable:!0});U.provide(Gv,gt),U.provide(V0,kD(K)),U.provide(Ty,l);const H=U.unmount;ht.add(U),U.unmount=function(){ht.delete(U),ht.size<1&&(u=Mi,L&&L(),L=null,l.value=Mi,ct=!1,V=!1),H()}}};function Et(U){return U.reduce((K,H)=>K.then(()=>A(H)),Promise.resolve())}return gt}function kit(){return un(Gv)}function Oit(r){return un(V0)}const ro="Authorization",Rz=["/","/screen2","/screen2/"];function Ez(r){return encodeURIComponent(r||"/platform")}function ex(){const r=document.cookie.split(";").map(t=>t.trim()).find(t=>t.startsWith(`${ro}=`));return r?decodeURIComponent(r.slice(ro.length+1)):""}function LI(){const r=window.location.hostname;Rz.forEach(t=>{document.cookie=`${ro}=; Max-Age=0; path=${t}`,document.cookie=`${ro}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}`,r&&(document.cookie=`${ro}=; Max-Age=0; path=${t}; domain=${r}`,document.cookie=`${ro}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}; domain=${r}`)})}function Ay(r=window.location.hash.replace(/^#/,"")||"/platform"){return`/login?redirect=${Ez(r)}`}function kz(r){LI();const t=Ay(r);window.location.hash.replace(/^#/,"")!==t&&(window.location.hash=t)}function Nit(r,t){return vl(this,null,function*(){var i;LI();const e=yield fetch("/login",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json","Content-Language":"zh_CN"},body:JSON.stringify({username:r,password:t})}),n=yield e.json().catch(()=>({}));if(!e.ok||(n==null?void 0:n.code)!==200){const a=new Error((n==null?void 0:n.msg)||"登录失败,请检查用户名或密码。");throw a.status=e.status,a.code=n==null?void 0:n.code,a}return(i=n==null?void 0:n.data)!=null&&i.token&&(document.cookie=`${ro}=${encodeURIComponent(n.data.token)}; path=/`),n})}function Vit(){return vl(this,null,function*(){yield fetch("/logout",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json","Content-Language":"zh_CN"},body:"{}"}).catch(()=>null),kz("/platform")})}function Oz(){return vl(this,null,function*(){const r=yield fetch("/getInfo",{credentials:"include",headers:{Accept:"application/json","Content-Language":"zh_CN"}}),t=yield r.json().catch(()=>({}));if(!r.ok||(t==null?void 0:t.code)!==200){const e=new Error((t==null?void 0:t.msg)||"用户未登录或授权已过期。");throw e.status=r.status||401,e.code=(t==null?void 0:t.code)||401,e}return t.data})}const rx=()=>yI(()=>import("./index-8dceb547-1783073104768.js").then(r=>r.i),["./index-8dceb547-1783073104768.js","./index-24f2e349-balabala-1783073104768.css"],import.meta.url),Nz=()=>yI(()=>import("./index-adeafd2d-1783073104768.js"),["./index-adeafd2d-1783073104768.js","./index-387cb5ab-balabala-1783073104768.css"],import.meta.url),PI=Pz({history:uz(),routes:[{path:"/",redirect:"/platform"},{path:"/login",component:Nz,meta:{public:!0}},{path:"/platform",component:rx},{path:"/forest-grass-wet",component:rx},{path:"/:pathMatch(.*)",redirect:"/"}]});let vu=null;PI.beforeEach(r=>vl(void 0,null,function*(){if(r.meta.public){if(ex())try{return yield nx(),r.query.redirect?decodeURIComponent(r.query.redirect):"/platform"}catch(t){vu=null}return!0}if(!ex())return Ay(r.fullPath);try{return yield nx(),!0}catch(t){return vu=null,Ay(r.fullPath)}}));function nx(){return vu||(vu=Oz()),vu}const Vz=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},Bz={};function zz(r,t){const e=iV("router-view");return wh(),Ah(e)}const Gz=Vz(Bz,[["render",zz]]);/*! ***************************************************************************** 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 Cy=function(r,t){return Cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Cy(r,t)};function B(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Cy(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Fz=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Hz=function(){function r(){this.browser=new Fz,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!="undefined"}return r}(),Vi=new Hz;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Vi.wxa=!0,Vi.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Vi.worker=!0:!Vi.hasGlobalWindow||"Deno"in window?(Vi.node=!0,Vi.svgSupported=!0):Wz(navigator.userAgent,Vi);function Wz(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",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!="undefined";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}const zt=Vi;var B0=12,RI="sans-serif",na=B0+"px "+RI,$z=20,Uz=100,Yz="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Zz(r){var t={};if(typeof JSON=="undefined")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",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function g5(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?sx(s,o):sx(o,s))}function zI(r){return r.nodeName.toUpperCase()==="CANVAS"}var y5=/([&<>"'])/g,m5={"&":"&","<":"<",">":">",'"':""","'":"'"};function Xe(r){return r==null?"":(r+"").replace(y5,function(t,e){return m5[e]})}var _5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Hd=[],S5=zt.browser.firefox&&+zt.browser.version.split(".")[0]<39;function Ey(r,t,e,n){return e=e||{},n?ux(r,t,e):S5&&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):ux(r,t,e),e}function ux(r,t,e){if(zt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(zI(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Ry(Hd,r,n,i)){e.zrX=Hd[0],e.zrY=Hd[1];return}}e.zrX=e.zrY=0}function U0(r){return r||window.event}function Or(r,t,e){if(t=U0(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Ey(r,o,t,e)}else{Ey(r,t,t,e);var a=x5(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&_5.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function x5(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function ky(r,t,e,n){r.addEventListener(t,e,n)}function b5(r,t,e,n){r.removeEventListener(t,e,n)}var gi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function fx(r){return r.which===2||r.which===3}var w5=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=cx(n)/cx(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=T5(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 $v(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Y0(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 li(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Hn(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 Eo(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),c=Math.cos(e);return r[0]=i*c+s*f,r[1]=-i*f+s*c,r[2]=a*c+l*f,r[3]=-a*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 Z0(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function js(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function A5(r){var t=Cr();return Y0(t,r),t}var C5=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const Ct=C5;var Hf=Math.min,Wf=Math.max,_a=new Ct,Sa=new Ct,xa=new Ct,ba=new Ct,ml=new Ct,_l=new Ct,M5=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=Hf(t.x,this.x),n=Hf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Wf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Wf(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=Cr();return Hn(a,a,[-e.x,-e.y]),Z0(a,a,[n,i]),Hn(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,h=!(ad&&(d=_,pd&&(d=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 i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}_a.x=xa.x=e.x,_a.y=ba.y=e.y,Sa.x=ba.x=e.x+e.width,Sa.y=xa.y=e.y+e.height,_a.transform(n),ba.transform(n),Sa.transform(n),xa.transform(n),t.x=Hf(_a.x,Sa.x,xa.x,ba.x),t.y=Hf(_a.y,Sa.y,xa.y,ba.y);var l=Wf(_a.x,Sa.x,xa.x,ba.x),u=Wf(_a.y,Sa.y,xa.y,ba.y);t.width=l-t.x,t.height=u-t.y},r}();const Mt=M5;var GI="silent";function D5(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:I5}}function I5(){gi(this.event)}var L5=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Zr),Sl=function(){function r(t,e){this.x=t,this.y=e}return r}(),P5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$d=new Mt(0,0,0,0),FI=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Sl(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new L5,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new c5(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(P5,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=HI(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Sl(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Sl(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=D5(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Sl(e,n);if(hx(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Mt(e-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&($d.copy(h.getBoundingRect()),h.transform&&$d.applyTransform(h.transform),$d.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function R5(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?GI:!0}return!1}function hx(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=R5(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==GI)){t.target=o;break}}}function HI(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const E5=FI;var WI=32,xl=7;function k5(r){for(var t=0;r>=WI;)t|=r&1,r>>=1;return r+t}function vx(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function O5(r,t,e){for(e--;t>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Ud(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Yd(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function N5(r,t){var e=xl,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]=xl||w>=xl);if(T)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=e;;){var T=0,A=0,C=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,A=0,--d===0){C=!0;break}}else if(r[S--]=o[_--],A++,T=0,--g===1){C=!0;break}while((T|A)=0;y--)r[b+y]=r[x+y];if(d===0){C=!0;break}}if(r[S--]=o[_--],--g===1){C=!0;break}if(A=g-Ud(r[m],o,0,g,g-1,t),A!==0){for(S-=A,_-=A,g-=A,b=S+1,x=_+1,y=0;y=xl||A>=xl);if(C)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;ys&&(l=s),dx(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var br=1,Xl=2,vs=4,px=!1;function Zd(){px||(px=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gx(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var V5=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gx}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(Zd(),f.z=0),isNaN(f.z2)&&(Zd(),f.z2=0),isNaN(f.zlevel)&&(Zd(),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(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const B5=V5;var $I;$I=zt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Oy=$I;var th={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-th.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?th.bounceIn(r*2)*.5:th.bounceOut(r*2-1)*.5+.5}};const UI=th;var $f=Math.pow,Qi=Math.sqrt,Ph=1e-8,YI=1e-4,yx=Qi(3),Uf=1/3,Rn=Ro(),Gr=Ro(),Ds=Ro();function Zi(r){return r>-Ph&&rPh||r<-Ph}function Ae(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function mx(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Rh(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Zi(f)&&Zi(c))if(Zi(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=c*c-4*f*h;if(Zi(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(p>0){var m=Qi(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-$f(-_,Uf):_=$f(_,Uf),S<0?S=-$f(-S,Uf):S=$f(S,Uf);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var x=(2*f*s-3*o*c)/(2*Qi(f*f*f)),b=Math.acos(x)/3,w=Qi(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+yx*Math.sin(b)))/(3*o),A=(-s+w*(T-yx*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),A>=0&&A<=1&&(a[v++]=A)}}return v}function XI(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Zi(o)){if(ZI(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Zi(f))i[0]=-a/(2*o);else if(f>0){var c=Qi(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function aa(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function qI(r,t,e,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,y;Rn[0]=l,Rn[1]=u;for(var m=0;m<1;m+=.05)Gr[0]=Ae(r,e,i,o,m),Gr[1]=Ae(t,n,a,s,m),g=po(Rn,Gr),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Zi(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Qi(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function KI(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Bu(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function jI(r,t,e,n,i,a,o,s,l){var u,f=.005,c=1/0;Rn[0]=o,Rn[1]=s;for(var h=0;h<1;h+=.05){Gr[0]=Le(r,e,i,h),Gr[1]=Le(t,n,a,h);var v=po(Rn,Gr);v=0&&v=1?1:Rh(0,n,a,1,l,s)&&Ae(0,i,o,1,s[0])}}}var W5=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||de,this.ondestroy=t.ondestroy||de,this.onrestart=t.onrestart||de,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=vt(t)?t:UI[t]||X0(t)},r}();const $5=W5;var JI=function(){function r(t){this.value=t}return r}(),U5=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new JI(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}(),Y5=function(){function r(t){this._list=new U5,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new JI(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const yf=Y5;var _x={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 fn(r){return r=Math.round(r),r<0?0:r>255?255:r}function Z5(r){return r=Math.round(r),r<0?0:r>360?360:r}function zu(r){return r<0?0:r>1?1:r}function Xd(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?fn(parseFloat(t)/100*255):fn(parseInt(t,10))}function go(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?zu(parseFloat(t)/100):zu(parseFloat(t))}function qd(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 Xi(r,t,e){return r+(t-r)*e}function kr(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Vy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var QI=new yf(20),Yf=null;function $o(r,t){Yf&&Vy(Yf,t),Yf=QI.put(r,Yf||t.slice())}function Mr(r,t){if(r){t=t||[];var e=QI.get(r);if(e)return Vy(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in _x)return Vy(t,_x[n]),$o(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){kr(t,0,0,0,1);return}return kr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),$o(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){kr(t,0,0,0,1);return}return kr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),$o(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?kr(t,+u[0],+u[1],+u[2],1):kr(t,0,0,0,1);f=go(u.pop());case"rgb":if(u.length>=3)return kr(t,Xd(u[0]),Xd(u[1]),Xd(u[2]),u.length===3?f:go(u[3])),$o(r,t),t;kr(t,0,0,0,1);return;case"hsla":if(u.length!==4){kr(t,0,0,0,1);return}return u[3]=go(u[3]),By(u,t),$o(r,t),t;case"hsl":if(u.length!==3){kr(t,0,0,0,1);return}return By(u,t),$o(r,t),t;default:return}}kr(t,0,0,0,1)}}function By(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=go(r[1]),i=go(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],kr(t,fn(qd(o,a,e+1/3)*255),fn(qd(o,a,e)*255),fn(qd(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function X5(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,c=((a-e)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-c:e===a?l=1/3+f-h:n===a&&(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 zy(r,t){var e=Mr(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 ui(e,e.length===4?"rgba":"rgb")}}function Kd(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=fn(Xi(o[0],s[0],l)),e[1]=fn(Xi(o[1],s[1],l)),e[2]=fn(Xi(o[2],s[2],l)),e[3]=zu(Xi(o[3],s[3],l)),e}}function q5(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Mr(t[i]),s=Mr(t[a]),l=n-i,u=ui([fn(Xi(o[0],s[0],l)),fn(Xi(o[1],s[1],l)),fn(Xi(o[2],s[2],l)),zu(Xi(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function pu(r,t,e,n){var i=Mr(r);if(r)return i=X5(i),t!=null&&(i[0]=Z5(t)),e!=null&&(i[1]=go(e)),n!=null&&(i[2]=go(n)),ui(By(i),"rgba")}function Eh(r,t){var e=Mr(r);if(e&&t!=null)return e[3]=zu(t),ui(e,"rgba")}function ui(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 kh(r,t){var e=Mr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Sx=new yf(100);function Gy(r){if(nt(r)){var t=Sx.get(r);return t||(t=zy(r,-.1),Sx.put(r,t)),t}else if(Hv(r)){var e=F({},r);return e.colorStops=Z(r.colorStops,function(n){return{offset:n.offset,color:zy(n.color,-.1)}}),e}return r}var Oh=Math.round;function Gu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Mr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var xx=1e-4;function qi(r){return r-xx}function Zf(r){return Oh(r*1e3)/1e3}function Fy(r){return Oh(r*1e4)/1e4}function K5(r){return"matrix("+Zf(r[0])+","+Zf(r[1])+","+Zf(r[2])+","+Zf(r[3])+","+Fy(r[4])+","+Fy(r[5])+")"}var j5={left:"start",right:"end",center:"middle",middle:"middle"};function J5(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function Q5(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function tG(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 tL(r){return r&&!!r.image}function eG(r){return r&&!!r.svgElement}function q0(r){return tL(r)||eG(r)}function eL(r){return r.type==="linear"}function rL(r){return r.type==="radial"}function nL(r){return r&&(r.type==="linear"||r.type==="radial")}function Uv(r){return"url(#"+r+")"}function iL(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 aL(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Kc,i=xt(r.scaleX,1),a=xt(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+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Oh(o*Kc)+"deg, "+Oh(s*Kc)+"deg)"),l.join(" ")}var rG=function(){return zt.hasGlobalWindow&&vt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Hy=Array.prototype.slice;function ti(r,t,e){return(t-r)*e+r}function jd(r,t,e,n){for(var i=t.length,a=0;an?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Tx,l=e;if(qe(e)){var u=oG(e);s=u,(u===1&&!Ft(e[0])||u===2&&!Ft(e[0][0]))&&(o=!0)}else if(Ft(e)&&!Nu(e))s=qf;else if(nt(e))if(!isNaN(+e))s=qf;else{var f=Mr(e);f&&(l=f,s=ql)}else if(Hv(e)){var c=F({},l);c.colorStops=Z(e.colorStops,function(v){return{offset:v.offset,color:Mr(v.color)}}),eL(e)?s=Wy:rL(e)&&(s=$y),l=c}a===0?this.valType=s:(s!==this.valType||s===Tx)&&(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:UI[n]||X0(n)),i.push(h),h},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Kf(i),u=Ax(i),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)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,y=g===0?1:h((e-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?bl:t[l];if((Kf(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(Kf(a))a===rh?jd(m,v[i],d[i],y):nG(m,v[i],d[i],y);else if(Ax(a)){var _=v[i],S=d[i],x=a===Wy;t[l]={type:x?"linear":"radial",x:ti(_.x,S.x,y),y:ti(_.y,S.y,y),colorStops:Z(_.colorStops,function(w,T){var A=S.colorStops[T];return{offset:ti(w.offset,A.offset,y),color:eh(jd([],w.color,A.color,y))}}),global:S.global},x?(t[l].x2=ti(_.x2,S.x2,y),t[l].y2=ti(_.y2,S.y2,y)):t[l].r=ti(_.r,S.r,y)}else if(u)jd(m,v[i],d[i],y),n||(t[l]=eh(m));else{var b=ti(v[i],d[i],y);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===qf?t[n]=t[n]+i:e===ql?(Mr(t[n],bl),Xf(bl,bl,i,1),t[n]=eh(bl)):e===rh?Xf(t[n],t[n],i,1):e===oL&&bx(t[n],t[n],i,1)},r}(),K0=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){F0("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,kt(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,gu(u),i),this._trackKeys.push(s)}l.addKeyframe(t,gu(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function ms(){return new Date().getTime()}var lG=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=ms()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Oy(n),!e._paused&&e.update())}Oy(n)},t.prototype.start=function(){this._running||(this._time=ms(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ms(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ms()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new K0(e,n.loop);return this.addAnimator(i),i},t}(Zr);const uG=lG;var fG=300,Jd=zt.domSupported,Qd=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=Z(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Cx={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Mx=!1;function Uy(r){var t=r.pointerType;return t==="pen"||t==="touch"}function cG(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 tp(r){r&&(r.zrByTouch=!0)}function hG(r,t){return Or(r.dom,new vG(r,t),!0)}function sL(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 vG=function(){function r(t,e){this.stopPropagation=de,this.stopImmediatePropagation=de,this.preventDefault=de,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),tn={mousedown:function(r){r=Or(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Or(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=Or(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Or(this.dom,r);var t=r.toElement||r.relatedTarget;sL(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Mx=!0,r=Or(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Mx||(r=Or(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Or(this.dom,r),tp(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),tn.mousemove.call(this,r),tn.mousedown.call(this,r)},touchmove:function(r){r=Or(this.dom,r),tp(r),this.handler.processGesture(r,"change"),tn.mousemove.call(this,r)},touchend:function(r){r=Or(this.dom,r),tp(r),this.handler.processGesture(r,"end"),tn.mouseup.call(this,r),+new Date-+this.__lastTouchMomentLx||r<-Lx}var Ta=[],Uo=[],rp=Cr(),np=Math.abs,_G=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 wa(this.rotation)||wa(this.x)||wa(this.y)||wa(this.scaleX-1)||wa(this.scaleY-1)||wa(this.skewX)||wa(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Ix(n),this.invTransform=null);return}n=n||Cr(),e?this.getLocalTransform(n):Ix(n),t&&(e?li(n,t,n):Y0(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Ta);var n=Ta[0]<0?-1:1,i=Ta[1]<0?-1:1,a=((Ta[0]-n)*e+n)/Ta[0]||0,o=((Ta[1]-i)*e+i)/Ta[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Cr(),js(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Cr(),li(Uo,t.invTransform,e),e=Uo);var n=this.originX,i=this.originY;(n||i)&&(rp[4]=n,rp[5]=i,li(Uo,e,rp),Uo[4]-=n,Uo[5]-=i,e=Uo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Be(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Be(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&np(t[0]-1)>1e-10&&np(t[3]-1)>1e-10?Math.sqrt(np(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){uL(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;e[4]=-d*a-h*p*o,e[5]=-p*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=h*o,u&&Eo(e,e,u),e[4]+=n+f,e[5]+=i+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}(),Wn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function uL(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Vh(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",c="top";if(n instanceof Array)l+=dn(n[0],e.width),u+=dn(n[1],e.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var ip="__zr_normal__",ap=Wn.concat(["ignore"]),SG=Fn(Wn,function(r,t){return r[t]=!0,r},{ignore:!1}),Yo={},xG=new Mt(0,0,0,0),j0=function(){function r(t){this.id=OI(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=xG;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Yo,n,f):Vh(Yo,n,f),a.x=Yo.x,a.y=Yo.y,o=Yo.align,s=Yo.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=dn(c[0],f.width),v=dn(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=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;p&&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()?qy:Xy},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Mr(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ui(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},F(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(yt(t))for(var n=t,i=kt(n),a=0;a0},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(ip,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===ip,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Dt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){F0("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,f),h&&h.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~br),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.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 i=this.currentStates.slice(),a=Dt(i,t),o=Dt(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var h=0;h0||i.force&&!o.length){var T=void 0,A=void 0,C=void 0;if(s){A={},h&&(T={});for(var S=0;S<_;S++){var y=p[S];A[y]=e[y],h?T[y]=n[y]:e[y]=n[y]}}else if(h){C={};for(var S=0;S<_;S++){var y=p[S];C[y]=gu(e[y]),wG(e,n,y)}}var x=new K0(e,!1,!1,c?$t(d,function(I){return I.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),h&&T&&x.whenWithKeys(0,T,p),C&&x.whenWithKeys(0,C,p),x.whenWithKeys(u==null?500:u,s?A:n,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}const cL=j0;var hL=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=Dt(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=Dt(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i0&&(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<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function 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)?RG(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),dL),r=(+r).toFixed(t),e?r:+r}function $r(r){return r.sort(function(t,e){return t-e}),r}function kn(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 EG(r)}function EG(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function pL(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function kG(r,t){var e=Fn(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=Z(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=Z(i,function(v){return Math.floor(v)}),s=Fn(o,function(v,d){return v+d},0),l=Z(i,function(v,d){return v-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Z(o,function(v){return v/n})}function OG(r,t){var e=Math.max(kn(r),kn(t)),n=r+t;return e>dL?n:ce(n,e)}var Ox=9007199254740991;function gL(r){var t=Math.PI*2;return(r%t+t)%t}function Fu(r){return r>-kx&&r=10&&t++,t}function yL(r,t){var e=J0(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function lp(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function 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||a&&Dt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var sF=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lF=Mo(sF),uF=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return lF(this,t,e)},r}(),Jy=new yf(50);function fF(r){if(typeof r=="string"){var t=Jy.get(r);return t&&t.image}else return r}function r_(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Jy.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!Xv(t)&&a.pending.push(o)):(t=ia.loadImage(r,Gx,Gx),t.__zrImageSrc=r,Jy.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Gx(){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,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function LL(r,t,e){var n=e.containerWidth,i=e.font,a=e.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=Dr(t,i);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?hF(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=Dr(t,i)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function hF(r,t,e,n){for(var i=0,a=0,o=r.length;ad&&u){var p=Math.floor(d/s);f=f||h.length>p,h=h.slice(0,p)}if(r&&a&&c!=null)for(var g=IL(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;ms&&fp(e,r.substring(s,u),t,o),fp(e,l[2],t,o,l[1]),s=up.lastIndex}si){var L=e.lines.length;b>0?(_.tokens=_.tokens.slice(0,b),y(_,x,S),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length0&&d+n.accumWidth>n.width&&(f=t.split(` `),u=!0),n.accumWidth=d}else{var p=PL(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,c=p.linesWidths,f=p.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 mF=Fn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function _F(r){return yF(r)?!!mF[r]:!0}function PL(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;ce:i+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Qy="__zr_style_"+Math.round(Math.random()*10),yo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},qv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};yo[Qy]=!0;var Hx=["z","z2","invisible"],SF=["invisible"],xF=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=kt(e),i=0;i1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(jf[0]=dp(i)*e+r,jf[1]=vp(i)*n+t,Jf[0]=dp(a)*e+r,Jf[1]=vp(a)*n+t,u(s,jf,Jf),f(l,jf,Jf),i=i%Ca,i<0&&(i=i+Ca),a=a%Ca,a<0&&(a=a+Ca),i>a&&!o?a+=Ca:ii&&(Qf[0]=dp(v)*e+r,Qf[1]=vp(v)*n+t,u(s,Qf,s),f(l,Qf,l))}var qt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ma=[],Da=[],Sn=[],Di=[],xn=[],bn=[],pp=Math.min,gp=Math.max,Ia=Math.cos,La=Math.sin,Kn=Math.abs,tm=Math.PI,Bi=tm*2,yp=typeof Float32Array!="undefined",wl=[];function mp(r){var t=Math.round(r/tm*1e8)/1e8;return t%2*tm}function n_(r,t){var e=mp(r[0]);e<0&&(e+=Bi);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Bi?i=e+Bi:t&&e-i>=Bi?i=e-Bi:!t&&e>i?i=e+(Bi-mp(e-i)):t&&e0&&(this._ux=Kn(n/Nh/t)||0,this._uy=Kn(n/Nh/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(qt.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=Kn(t-this._xi),i=Kn(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(qt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(qt.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(qt.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),wl[0]=i,wl[1]=a,n_(wl,o),i=wl[0],a=wl[1];var s=a-i;return this.addData(qt.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=Ia(a)*n+t,this._yi=La(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(qt.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(qt.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)&&yp&&(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(){Sn[0]=Sn[1]=xn[0]=xn[1]=Number.MAX_VALUE,Di[0]=Di[1]=bn[0]=bn[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;on||Kn(_)>i||h===e-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case qt.C:{var S=t[h++],x=t[h++],g=t[h++],y=t[h++],b=t[h++],w=t[h++];p=z5(a,o,S,x,g,y,b,w,10),a=b,o=w;break}case qt.Q:{var S=t[h++],x=t[h++],g=t[h++],y=t[h++];p=F5(a,o,S,x,g,y,10),a=g,o=y;break}case qt.A:var T=t[h++],A=t[h++],C=t[h++],D=t[h++],I=t[h++],L=t[h++],P=L+I;h+=1,d&&(s=Ia(I)*C+T,l=La(I)*D+A),p=gp(C,D)*pp(Bi,Math.abs(L)),a=Ia(P)*C+T,o=La(P)*D+A;break;case qt.R:{s=a=t[h++],l=o=t[h++];var E=t[h++],O=t[h++];p=E*2+O*2;break}case qt.Z:{var m=s-a,_=l-o;p=Math.sqrt(m*m+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,v=e<1,d,p,g=0,y=0,m,_=0,S,x;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var b=0;b0&&(t.lineTo(S,x),_=0),w){case qt.M:s=u=n[b++],l=f=n[b++],t.moveTo(u,f);break;case qt.L:{c=n[b++],h=n[b++];var A=Kn(c-u),C=Kn(h-f);if(A>i||C>a){if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+c*I,f*(1-I)+h*I);break t}g+=D}t.lineTo(c,h),u=c,f=h,_=0}else{var L=A*A+C*C;L>_&&(S=c,x=h,_=L)}break}case qt.C:{var P=n[b++],E=n[b++],O=n[b++],V=n[b++],N=n[b++],z=n[b++];if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;aa(u,P,O,N,I,Ma),aa(f,E,V,z,I,Da),t.bezierCurveTo(Ma[1],Da[1],Ma[2],Da[2],Ma[3],Da[3]);break t}g+=D}t.bezierCurveTo(P,E,O,V,N,z),u=N,f=z;break}case qt.Q:{var P=n[b++],E=n[b++],O=n[b++],V=n[b++];if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;Bu(u,P,O,I,Ma),Bu(f,E,V,I,Da),t.quadraticCurveTo(Ma[1],Da[1],Ma[2],Da[2]);break t}g+=D}t.quadraticCurveTo(P,E,O,V),u=O,f=V;break}case qt.A:var $=n[b++],q=n[b++],Q=n[b++],ct=n[b++],ht=n[b++],gt=n[b++],Et=n[b++],U=!n[b++],K=Q>ct?Q:ct,H=Kn(Q-ct)>.001,tt=ht+gt,j=!1;if(v){var D=d[y++];g+D>m&&(tt=ht+gt*(m-g)/D,j=!0),g+=D}if(H&&t.ellipse?t.ellipse($,q,Q,ct,Et,ht,tt,U):t.arc($,q,K,ht,tt,U),j)break t;T&&(s=Ia(ht)*Q+$,l=La(ht)*ct+q),u=Ia(tt)*Q+$,f=La(tt)*ct+q;break;case qt.R:s=u=n[b],l=f=n[b+1],c=n[b++],h=n[b++];var lt=n[b++],R=n[b++];if(v){var D=d[y++];if(g+D>m){var k=m-g;t.moveTo(c,h),t.lineTo(c+pp(k,lt),h),k-=lt,k>0&&t.lineTo(c+lt,h+pp(k,R)),k-=R,k>0&&t.lineTo(c+gp(lt-k,0),h+R),k-=lt,k>0&&t.lineTo(c,h+gp(R-k,0));break t}g+=D}t.rect(c,h,lt,R);break;case qt.Z:if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=qt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Hi(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||or+s&&a>e+s||at+c&&f>n+c&&f>a+c&&f>s+c||fr+c&&u>e+c&&u>i+c&&u>o+c||ut+u&&l>n+u&&l>a+u||lr+u&&s>e+u&&s>i+u||se||f+ui&&(i+=Tl);var h=Math.atan2(l,s);return h<0&&(h+=Tl),h>=n&&h<=i||h+Tl>=n&&h+Tl<=i}function ei(r,t,e,n,i,a){if(a>t&&a>n||ai?s:0}var Ii=Un.CMD,Pa=Math.PI*2,DF=1e-4;function IF(r,t){return Math.abs(r-t)t&&u>n&&u>a&&u>s||u1&&LF(),v=Ae(t,n,a,s,Vr[0]),h>1&&(d=Ae(t,n,a,s,Vr[1]))),h===2?gt&&s>n&&s>a||s=0&&u<=1){for(var f=0,c=Le(t,n,a,u),h=0;he||s<-e)return 0;var l=Math.sqrt(e*e-s*s);er[0]=-l,er[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Pa-1e-4){n=0,i=Pa;var f=a?1:-1;return o>=er[0]+r&&o<=er[1]+r?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Pa,i+=Pa);for(var h=0,v=0;v<2;v++){var d=er[v];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Pa+p),(p>=n&&p<=i||p+Pa>=n&&p+Pa<=i)&&(p>Math.PI/2&&p1&&(e||(s+=ei(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case Ii.M:f=a[d++],c=a[d++],l=f,u=c;break;case Ii.L:if(e){if(Hi(l,u,a[d],a[d+1],t,n,i))return!0}else s+=ei(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Ii.C:if(e){if(CF(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=PF(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Ii.Q:if(e){if(RL(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=RF(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Ii.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],x=a[d++],b=a[d++];d+=1;var w=!!(1-a[d++]);h=Math.cos(x)*_+y,v=Math.sin(x)*S+m,g?(f=h,c=v):s+=ei(l,u,h,v,n,i);var T=(n-y)*S/_+y;if(e){if(MF(y,m,S,x,x+b,w,t,T,i))return!0}else s+=EF(y,m,S,x,x+b,w,T,i);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case Ii.R:f=l=a[d++],c=u=a[d++];var A=a[d++],C=a[d++];if(h=f+A,v=c+C,e){if(Hi(f,c,h,c,t,n,i)||Hi(h,c,h,v,t,n,i)||Hi(h,v,f,v,t,n,i)||Hi(f,v,f,c,t,n,i))return!0}else s+=ei(h,c,h,v,n,i),s+=ei(f,v,f,c,n,i);break;case Ii.Z:if(e){if(Hi(l,u,f,c,t,n,i))return!0}else s+=ei(l,u,f,c,n,i);l=f,u=c;break}}return!e&&!IF(u,c)&&(s+=ei(l,u,f,c,n,i)||0),s!==0}function kF(r,t,e){return EL(r,0,!1,t,e)}function OF(r,t,e,n){return EL(r,t,!0,e,n)}var Bh=pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},yo),NF={style:pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},qv.style)},_p=Wn.concat(["invisible","culling","z","z2","zlevel","parent"]),VF=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<_p.length;++s)i[_p[s]]=this[_p[s]];i.__dirty|=br}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=kt(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a.5?Xy:n>.2?mG:qy}else if(e)return qy}return Xy},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=kh(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,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&vs)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),OF(s,l/u,e,n)))return!0}if(this.hasFill())return kF(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=vs,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:F(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&vs)},t.prototype.createStyle=function(e){return Wv(Bh,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=F({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=F({},i.shape),F(u,n.shape)):(u=F({},a?this.shape:i.shape),F(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=F({},this.shape);for(var f={},c=kt(u),h=0;h0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Wv(BF,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=mf(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Yr);kL.prototype.type="tspan";const Wu=kL;var zF=pt({x:0,y:0},yo),GF={style:pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},qv.style)};function FF(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var OL=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Wv(zF,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=FF(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return GF},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Mt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Yr);OL.prototype.type="image";const He=OL;function HF(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var _s=Math.round;function NL(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(_s(n*2)===_s(i*2)&&(r.x1=r.x2=io(n,s,!0)),_s(a*2)===_s(o*2)&&(r.y1=r.y2=io(a,s,!0))),r}}function VL(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=io(n,s,!0),r.y=io(i,s,!0),r.width=Math.max(io(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(io(i+o,s,!1)-r.y,o===0?0:1)),r}}function io(r,t,e){if(!t)return r;var n=_s(r*2);return(n+_s(t))%2===0?n/2:(n+(e?1:-1))/2}var WF=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),$F={},BL=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new WF},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=VL($F,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?HF(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Pt);BL.prototype.type="rect";const Vt=BL;var Zx={fill:"#000"},Xx=2,UF={style:pt({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},qv.style)},zL=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Zx,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=b[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),A-=P.width,I-=P.width,L--;for(D+=(a-(D-g)-(m-I)-A)/2;C<=L;)P=b[C],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.width,C++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,c=a+i/2;f==="top"?c=a+e.height/2:f==="bottom"&&(c=a+i-e.height/2);var h=!e.isLineHolder&&Sp(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,d=e.textPadding;d&&(o=tb(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Wu),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Qx("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),x=Jx("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=Xx,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=c,b&&(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||na,g.opacity=Bn(u.opacity,n.opacity,1),Kx(g,u),x&&(g.lineWidth=Bn(u.lineWidth,n.lineWidth,_),g.lineDash=xt(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var w=e.contentWidth,T=e.contentHeight;p.setBoundingRect(new Mt(Kl(g.x,w,g.textAlign),ds(g.y,T,g.textBaseline),w,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,c=l&&l.image,h=l&&!c,v=e.borderRadius,d=this,p,g;if(h||e.lineHeight||u&&f){p=this._getOrCreateChild(Vt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(h){var m=p.style;m.fill=l||null,m.fillOpacity=xt(e.fillOpacity,1)}else if(c){g=this._getOrCreateChild(He),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=xt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Bn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return FL(e)&&(n=[e.fontStyle,e.fontWeight,GL(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&an(n)||e.textFont||e.font},t}(Yr),YF={left:!0,right:1,center:1},ZF={top:1,bottom:1,middle:1},qx=["fontStyle","fontWeight","fontSize","fontFamily"];function GL(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?B0+"px":r+"px"}function Kx(r,t){for(var e=0;e=0,a=!1;if(r instanceof Pt){var o=HL(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Zo(s)||Zo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=F({},n),u=F({},u),u.fill=s):!Zo(u.fill)&&Zo(s)?(a=!0,n=F({},n),u=F({},u),u.fill=Gy(s)):!Zo(u.stroke)&&Zo(l)&&(a||(n=F({},n),u=F({},u)),u.stroke=Gy(l)),n.style=u}}if(n&&n.z2==null){a||(n=F({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:Qs)}return n}function t3(r,t,e){if(e&&e.z2==null){e=F({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:qF)}return e}function e3(r,t,e){var n=Dt(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:JF(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=F({},e),o=F({opacity:n?i:a.opacity*.1},o),e.style=o),e}function xp(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return QF(this,r,t,e);if(r==="blur")return e3(this,r,e);if(r==="select")return t3(this,r,e)}return e}function Do(r){r.stateProxy=xp;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=xp),e&&(e.stateProxy=xp)}function ab(r,t){!qL(r,t)&&!r.__highByOuter&&Ti(r,WL)}function ob(r,t){!qL(r,t)&&!r.__highByOuter&&Ti(r,$L)}function mi(r,t){r.__highByOuter|=1<<(t||0),Ti(r,WL)}function _i(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ti(r,$L)}function YL(r){Ti(r,o_)}function s_(r){Ti(r,UL)}function ZL(r){Ti(r,KF)}function XL(r){Ti(r,jF)}function qL(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function KL(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=i_(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){UL(u)}),s&&e.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function rm(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function _o(r,t,e){ao(r,!0),Ti(r,Do),im(r,t,e)}function s3(r){ao(r,!1)}function ue(r,t,e,n){n?s3(r):_o(r,t,e)}function im(r,t,e){var n=St(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var lb=["emphasis","blur","select"],l3={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ge(r,t,e,n){e=e||"itemStyle";for(var i=0;i1&&(o*=bp(d),s*=bp(d));var p=(i===a?-1:1)*bp((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,y=p*-s*h/o,m=(r+e)/2+ec(c)*g-tc(c)*y,_=(t+n)/2+tc(c)*g+ec(c)*y,S=hb([1,0],[(h-g)/o,(v-y)/s]),x=[(h-g)/o,(v-y)/s],b=[(-1*h-g)/o,(-1*v-y)/s],w=hb(x,b);if(om(x,b)<=-1&&(w=Al),om(x,b)>=1&&(w=0),w<0){var T=Math.round(w/Al*1e6)/1e6;w=Al*2+T%2*Al}f.addData(u,m,_,o,s,S,w,c,a)}var d3=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,p3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function g3(r){var t=new Un;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Un.CMD,l=r.match(d3);if(!l)return t;for(var u=0;uP*P+E*E&&(T=C,A=D),{cx:T,cy:A,x0:-f,y0:-c,x1:T*(i/x-1),y1:A*(i/x-1)}}function w3(r){var t;if(Y(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 T3(r,t){var e,n=jl(t.r,0),i=jl(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,h=!!t.clockwise,v=db(u-l),d=v>wp&&v%wp;if(d>Qr&&(v=d),!(n>Qr))r.moveTo(f,c);else if(v>wp-Qr)r.moveTo(f+n*qo(l),c+n*Ra(l)),r.arc(f,c,n,l,u,!h),i>Qr&&(r.moveTo(f+i*qo(u),c+i*Ra(u)),r.arc(f,c,i,u,l,h));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,T=void 0,A=void 0,C=void 0,D=void 0,I=void 0,L=void 0,P=void 0,E=n*qo(l),O=n*Ra(l),V=i*qo(u),N=i*Ra(u),z=v>Qr;if(z){var $=t.cornerRadius;$&&(e=w3($),p=e[0],g=e[1],y=e[2],m=e[3]);var q=db(n-i)/2;if(_=wn(q,y),S=wn(q,m),x=wn(q,p),b=wn(q,g),A=w=jl(_,S),C=T=jl(x,b),(w>Qr||T>Qr)&&(D=n*qo(u),I=n*Ra(u),L=i*qo(l),P=i*Ra(l),vQr){var H=wn(y,A),tt=wn(m,A),j=rc(L,P,E,O,n,H,h),lt=rc(D,I,V,N,n,tt,h);r.moveTo(f+j.cx+j.x0,c+j.cy+j.y0),A0&&r.arc(f+j.cx,c+j.cy,H,We(j.y0,j.x0),We(j.y1,j.x1),!h),r.arc(f,c,n,We(j.cy+j.y1,j.cx+j.x1),We(lt.cy+lt.y1,lt.cx+lt.x1),!h),tt>0&&r.arc(f+lt.cx,c+lt.cy,tt,We(lt.y1,lt.x1),We(lt.y0,lt.x0),!h))}else r.moveTo(f+E,c+O),r.arc(f,c,n,l,u,!h);if(!(i>Qr)||!z)r.lineTo(f+V,c+N);else if(C>Qr){var H=wn(p,C),tt=wn(g,C),j=rc(V,N,D,I,i,-tt,h),lt=rc(E,O,L,P,i,-H,h);r.lineTo(f+j.cx+j.x0,c+j.cy+j.y0),C0&&r.arc(f+j.cx,c+j.cy,tt,We(j.y0,j.x0),We(j.y1,j.x1),!h),r.arc(f,c,i,We(j.cy+j.y1,j.cx+j.x1),We(lt.cy+lt.y1,lt.cx+lt.x1),h),H>0&&r.arc(f+lt.cx,c+lt.cy,H,We(lt.y1,lt.x1),We(lt.y0,lt.x0),!h))}else r.lineTo(f+V,c+N),r.arc(f,c,i,u,l,h)}r.closePath()}}}var A3=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}(),aP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new A3},t.prototype.buildPath=function(e,n){T3(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Pt);aP.prototype.type="sector";const gr=aP;var C3=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),oP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new C3},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(Pt);oP.prototype.type="ring";const Qv=oP;function M3(r,t,e,n){var i=[],a=[],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 a=M3(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;ska[1]){if(s=!1,a)return s;var f=Math.abs(ka[0]-Ea[1]),c=Math.abs(Ea[0]-ka[1]);Math.min(f,c)>i.len()&&(f0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Ht(r,t,e,n,i,a){v_("update",r,t,e,n,i,a)}function ae(r,t,e,n,i,a){v_("enter",r,t,e,n,i,a)}function Is(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function yb(r){return!r.isGroup}function Z3(r){return r.shape!=null}function bf(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){yb(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Z3(o)&&(s.shape=F({},o.shape)),s}var a=n(r);t.traverse(function(o){if(yb(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ht(o,l,e,St(o).dataIndex)}}})}function _P(r,t){return Z(r,function(e){var n=e[0];n=Fh(n,t.x),n=Hh(n,t.x+t.width);var i=e[1];return i=Fh(i,t.y),i=Hh(i,t.y+t.height),[n,i]})}function X3(r,t){var e=Fh(r.x,t.x),n=Hh(r.x+r.width,t.x+t.width),i=Fh(r.y,t.y),a=Hh(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function wf(r,t,e){var n=F({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),pt(i,e),new He(n)):ed(r.replace("path://",""),n,e,"center")}function Jl(r,t,e,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Tp(v,d,f,c)/h;return!(g<0||g>1)}function Tp(r,t,e,n){return r*n-e*t}function q3(r){return r<=1e-6&&r>=-1e-6}function ko(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=nt(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&M(kt(l),function(f){st(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=St(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:pt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function mb(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function pa(r,t){if(r)if(Y(r))for(var e=0;e=0&&s.push(l)}),s}}function ga(r,t){return Tt(Tt({},r,!0),t,!0)}const lH={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:". "}}}},uH={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 $h="ZH",g_="EN",Ls=g_,lh={},y_={},CP=zt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ls).toUpperCase();return r.indexOf($h)>-1?$h:Ls}():Ls;function MP(r,t){r=r.toUpperCase(),y_[r]=new te(t),lh[r]=t}function fH(r){if(nt(r)){var t=lh[r.toUpperCase()]||{};return r===$h||r===g_?mt(t):Tt(mt(t),mt(lh[Ls]),!1)}else return Tt(mt(r),mt(lh[Ls]),!1)}function um(r){return y_[r]}function cH(){return y_[Ls]}MP(g_,lH);MP($h,uH);var m_=1e3,__=m_*60,bu=__*60,Wr=bu*24,wb=Wr*365,Ql={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}"},ac="{yyyy}-{MM}-{dd}",Tb={year:"{yyyy}",month:"{yyyy}-{MM}",day:ac,hour:ac+" "+Ql.hour,minute:ac+" "+Ql.minute,second:ac+" "+Ql.second,millisecond:Ql.none},Mp=["year","month","day","hour","minute","second","millisecond"],DP=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Li(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ps(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 hH(r){return r===Ps(r)}function vH(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function id(r,t,e,n){var i=$n(r),a=i[S_(e)](),o=i[Rs(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[ad(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[Zu(e)](),c=(f-1)%12+1,h=i[od(e)](),v=i[sd(e)](),d=i[ld(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof te?n:um(n||CP)||cH(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Li(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Li(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Li(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Li(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Li(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Li(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Li(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Li(d,3)).replace(/{S}/g,d+"")}function dH(r,t,e,n,i){var a=null;if(nt(e))a=e;else if(vt(e))a=e(r.value,t,{level:r.level});else{var o=F({},Ql);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Y(a)){var c=r.level==null?0:r.level>=0?r.level:a.length+r.level;c=Math.min(c,a.length-1),a=a[c]}}return id(new Date(r.value),a,i,n)}function IP(r,t){var e=$n(r),n=e[Rs(t)]()+1,i=e[ad(t)](),a=e[Zu(t)](),o=e[od(t)](),s=e[sd(t)](),l=e[ld(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Ab(r,t,e){var n=Ft(r)?$n(r):r;switch(t=t||IP(r,e),t){case"year":return n[S_(e)]();case"half-year":return n[Rs(e)]()>=6?1:0;case"quarter":return Math.floor((n[Rs(e)]()+1)/4);case"month":return n[Rs(e)]();case"day":return n[ad(e)]();case"half-day":return n[Zu(e)]()/24;case"hour":return n[Zu(e)]();case"minute":return n[od(e)]();case"second":return n[sd(e)]();case"millisecond":return n[ld(e)]()}}function S_(r){return r?"getUTCFullYear":"getFullYear"}function Rs(r){return r?"getUTCMonth":"getMonth"}function ad(r){return r?"getUTCDate":"getDate"}function Zu(r){return r?"getUTCHours":"getHours"}function od(r){return r?"getUTCMinutes":"getMinutes"}function sd(r){return r?"getUTCSeconds":"getSeconds"}function ld(r){return r?"getUTCMilliseconds":"getMilliseconds"}function pH(r){return r?"setUTCFullYear":"setFullYear"}function LP(r){return r?"setUTCMonth":"setMonth"}function PP(r){return r?"setUTCDate":"setDate"}function RP(r){return r?"setUTCHours":"setHours"}function EP(r){return r?"setUTCMinutes":"setMinutes"}function kP(r){return r?"setUTCSeconds":"setSeconds"}function OP(r){return r?"setUTCMilliseconds":"setMilliseconds"}function NP(r){if(!mL(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 VP(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 nl=$0;function fm(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&an(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?$n(r):r;if(isNaN(+l)){if(s)return"-"}else return id(l,n,e)}if(t==="ordinal")return My(r)?i(r):Ft(r)&&a(r)?r+"":"-";var u=yi(r);return a(u)?NP(u):My(r)?i(r):typeof r=="boolean"?r+"":"-"}var Cb=["a","b","c","d","e","f","g"],Dp=function(r,t){return"{"+r+(t==null?"":t)+"}"};function BP(r,t,e){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Io(r,t){return t=t||"transparent",nt(r)?r:yt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Uh(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var uh=M,zP=["left","right","top","bottom","width","height"],oo=[["width","left","right"],["height","top","bottom"]];function x_(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=a+p,v>n||l.newline?(a=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var xo=x_;bt(x_,"vertical");bt(x_,"horizontal");function mH(r,t,e){var n=t.width,i=t.height,a=et(r.left,n),o=et(r.top,i),s=et(r.right,n),l=et(r.bottom,i);return(isNaN(a)||isNaN(parseFloat(r.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),e=nl(e||0),{width:Math.max(s-a-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function be(r,t,e){e=nl(e||0);var n=t.width,i=t.height,a=et(r.left,n),o=et(r.top,i),s=et(r.right,n),l=et(r.bottom,i),u=et(r.width,n),f=et(r.height,i),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new Mt(a+e[3],o+e[0],u,f);return d.margin=e,d}function ud(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.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=be(pt({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"?(a.x=h,a.y=v):(a.x+=h,a.y+=v),a===r&&r.markRedraw(),!0}function _H(r,t){return r[oo[t][0]]!=null||r[oo[t][1]]!=null&&r[oo[t][2]]!=null}function Xu(r){var t=r.layoutMode||r.constructor.layoutMode;return yt(t)?t:t?{type:t}:null}function sa(r,t,e){var n=e&&e.ignoreSize;!Y(n)&&(n=[n,n]);var i=o(oo[0],0),a=o(oo[1],1);u(oo[0],r,i),u(oo[1],r,a);function o(f,c){var h={},v=0,d={},p=0,g=2;if(uh(f,function(_){d[_]=r[_]}),uh(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var y=0;y=0;l--)s=Tt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return _f(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(te);DL(al,te);Zv(al);oH(al);sH(al,xH);function xH(r){var t=[];return M(al.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Z(t,function(e){return On(e).main}),r!=="dataset"&&Dt(t,"dataset")<=0&&t.unshift("dataset"),t}const Bt=al;var FP="";typeof navigator!="undefined"&&(FP=navigator.platform||"");var Ko="rgba(0, 0, 0, 0.2)";const bH={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ko,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ko,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ko,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ko,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ko,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ko,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:FP.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 HP=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xr="original",Ke="arrayRows",qr="objectRows",Yn="keyedColumns",ta="typedArray",WP="unknown",zn="column",ol="row",Oe={Must:1,Might:2,Not:3},$P=Nt();function wH(r){$P(r).datasetMap=ft()}function UP(r,t,e){var n={},i=w_(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=$P(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),M(r,function(p,g){var y=yt(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});M(r,function(p,g){var y=p.name,m=d(p);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(a,0,m);else{var _=h.categoryWayDim;v(n[y],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,g,y){for(var m=0;mt)return r[n];return r[e-1]}function XP(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?e:DH(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function IH(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var oc,Cl,Db,Ib="\0_ec_inner",LH=1,qP=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new te(a),this._locale=new te(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=Rb(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Rb(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Db(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&M(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ft(),u=n&&n.replaceMergeMainTypeMap;wH(this),M(e,function(c,h){c!=null&&(Bt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?mt(c):Tt(i[h],c,!0))}),u&&u.each(function(c,h){Bt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Bt.topologicalTravel(s,Bt.getAllClassMainTypes(),f,this);function f(c){var h=CH(this,c,Zt(e[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=wL(v,h,d);YG(p,c,Bt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;M(p,function(S,x){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=c==="series",A=Bt.getClass(c,S.keyInfo.subType,!T);if(!A)return;if(c==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===A)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var C=F({componentIndex:x},S.keyInfo);b=new A(w,this,this,C),F(b,C),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),i[c]=g,a.set(c,y),o.set(c,m),c==="series"&&oc(this)}this._seriesIndices||oc(this)},t.prototype.getOption=function(){var e=mt(this.option);return M(e,function(n,i){if(Bt.hasClass(i)){for(var a=Zt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Hu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Ib],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function FH(r,t){return r.join(",")===t.join(",")}const HH=VH;var jr=M,qu=yt,Eb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lp(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Eb.length;e=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=OG(h,m),p=m;break}}}return n[0]=h,n[1]=p,n})})}var fd=function(){function r(t){this.data=t.data||(t.sourceFormat===Yn?{}:[]),this.sourceFormat=t.sourceFormat||WP,this.seriesLayoutBy=t.seriesLayoutBy||zn,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;np&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Gb=(t={},t[Ke+"_"+zn]={pure:!0,appendData:a},t[Ke+"_"+ol]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[qr]={pure:!0,appendData:a},t[Yn]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Xr]={appendData:a},t[ta]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Fs(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function $b(r){var t,e;return yt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function wu(r){return new a4(r)}var a4=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||a==="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,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return a;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},s4=function(){function r(t,e){if(!Ft(e)){var n="";Wt(n)}this._opFn=s2[t],this._rvalFloat=yi(e)}return r.prototype.evaluate=function(t){return Ft(t)?this._opFn(t,this._rvalFloat):this._opFn(yi(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=Ft(t)?t:yi(t),i=Ft(e)?e:yi(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=nt(t),l=nt(e);s&&(n=l?t:0),l&&(i=s?e:0)}return ni?-this._resultLT:0},r}(),l4=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=yi(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=yi(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function u4(r,t){return r==="eq"||r==="ne"?new l4(r==="eq",t):st(s2,r)?new s4(r,t):null}var f4=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 ea(t,e)},r}();function c4(r,t){var e=new f4,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==zn&&Wt(o);var s=[],l={},u=r.dimensionsDefine;if(u)M(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";st(l,y)&&Wt(_),l[y]=m}});else for(var f=0;f65535?_4:S4}function Jo(){return[1/0,-1/0]}function x4(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Zb(r,t,e,n,i){var a=c2[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],S=t[i[1]][0],x=t[i[1]][1],y=0;y=c&&m<=h||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y=c&&m<=h||isNaN(m))&&(l[u++]=w)}else for(var y=0;yt[C][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),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(jo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=c,h=S)}D>0&&Ds&&(p=s-f);for(var g=0;gd&&(d=m,v=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(v);cf-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=y),h[v++]=m}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(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=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return ea(e[a],this._dimensions[a])}Ep={arrayRows:t,objectRows:function(e,n,i,a){return ea(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return ea(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),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,i,a;if(sc(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=pr(s)?ta:Xr,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=xt(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=xt(c.sourceHeader,h.sourceHeader),p=xt(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;i=g?[vm(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[vm(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&qb(a)}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&qb(c),s.push(f),l.push(u._getVersionSign())}),n?o=y4(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[JH(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 M(r.blocks,function(i){var a=g2(i);a>=t&&(t=a+ +(n&&(!a||pm(i)&&!i.noHeader)))}),t}return 0}function A4(r,t,e,n){var i=t.noHeader,a=M4(g2(t)),o=[],s=t.blocks||[];or(!s||Y(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,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var y=t.valueFormatter,m=p2(p)(y?F(F({},r),{valueFormatter:y}):r,p,g>0?a.html:0,n);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(a.richText):gm(n,o.join(""),i?e:a.html);if(i)return c;var h=fm(t.header,"ordinal",r.useUTC),v=d2(n,r.renderMode).nameStyle,d=v2(n);return r.renderMode==="richText"?y2(r,h,v)+a.richText+c:gm(n,'
'+Xe(h)+"
"+c,e)}function C4(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=Y(S)?S:[S],Z(S,function(x,b){return fm(x,Y(v)?v[b]:v,u)})};if(!(a&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":fm(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,y=d2(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":c)+(a?"":y2(r,h,m))+(o?"":L4(r,d,p,g,_)):gm(n,(s?"":c)+(a?"":D4(h,!s,m))+(o?"":I4(d,p,g,_)),e)}}function Kb(r,t,e,n,i,a){if(r){var o=p2(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function M4(r){return{html:w4[r],richText:T4[r]}}function gm(r,t,e){var n='
',i="margin: "+e+"px 0 0",a=v2(r);return'
'+t+n+"
"}function D4(r,t,e){var n=t?"margin-left:2px":"";return''+Xe(r)+""}function I4(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=Y(r)?r:[r],''+Z(r,function(o){return Xe(o)}).join("  ")+""}function y2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function L4(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,a)}function m2(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Io(n)}function _2(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var kp=function(){function r(){this.richTextStyles={},this._nextStyleNameId=_L()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=yH({color:e,type:t,renderMode:n,markerId:i});return nt(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};Y(e)?M(e,function(a){return F(n,a)}):F(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function S2(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=Y(s),u=m2(t,e),f,c,h,v;if(o>1||l&&!o){var d=P4(s,t,e,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=f=Fs(i,e,a[0]),c=p.type}else v=f=l?s[0]:s;var g=Q0(t),y=g&&t.name||"",m=i.getName(e),_=n?y:m;return Ie("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[Ie("nameValue",{markerType:"item",markerColor:u,name:_,noName:!an(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function P4(r,t,e,n,i){var a=t.getData(),o=Fn(r,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(c){f(Fs(a,e,c),c)}):M(r,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Ie("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Pi=Nt();function lc(r,t){return r.getName(t)||r.getId(t)}var fh="__universalTransitionEnabled",vd=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=wu({count:E4,reset:k4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Pi(this).sourceManager=new h2(this);a.prepareSource();var o=this.getInitialData(e,i);Jb(o,this),this.dataTask.context.data=o,Pi(this).dataBeforeProcessed=o,jb(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Xu(this),a=i?il(e):{},o=this.subType;Bt.hasClass(o)&&(o+="Series"),Tt(e,n.getTheme().get(this.subType)),Tt(e,this.getDefaultOption()),Ao(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&sa(e,a,i)},t.prototype.mergeOption=function(e,n){e=Tt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=Xu(this);i&&sa(this.option,e,i);var a=Pi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);Jb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Pi(this).dataBeforeProcessed=o,jb(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!pr(e))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=T_.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[lc(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[fh])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){yt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Bt.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}(Bt);me(vd,cd);me(vd,T_);DL(vd,Bt);function jb(r){var t=r.name;Q0(r)||(r.name=R4(r)||t)}function R4(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return M(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function E4(r){return r.model.getRawData().count()}function k4(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),O4}function O4(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Jb(r,t){M(Vu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(N4,t))})}function N4(r,t){var e=ym(r);return e&&e.setOutputEnd((t||this).count()),t}function ym(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const le=vd;var I_=function(){function r(){this.group=new _t,this.uid=rl("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();e_(I_);Zv(I_);const fe=I_;function sl(){var r=Nt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var x2=Nt(),V4=sl(),L_=function(){function r(){this.group=new _t,this.uid=rl("viewChart"),this.renderTask=wu({plan:B4,reset:z4}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&tw(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&tw(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){pa(this.group,t)},r.markUpdateMethod=function(t,e){x2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Qb(r,t,e){r&&Uu(r)&&(t==="emphasis"?mi:_i)(r,e)}function tw(r,t,e){var n=Co(r,t),i=t&&t.highlightKey!=null?f3(t.highlightKey):null;n!=null?M(Zt(n),function(a){Qb(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){Qb(a,e,i)})}e_(L_);Zv(L_);function B4(r){return V4(r.model)}function z4(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&x2(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),G4[l]}var G4={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)}}};const ee=L_;var Yh="\0__throttleOriginMethod",ew="\0__throttleRate",rw="\0__throttleType";function P_(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function ll(r,t,e,n){var i=r[t];if(i){var a=i[Yh]||i,o=i[rw],s=i[ew];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=P_(a,e,n==="debounce"),i[Yh]=a,i[rw]=n,i[ew]=e}return i}}function Ku(r,t){var e=r[t];e&&e[Yh]&&(e.clear&&e.clear(),r[t]=e[Yh])}var nw=Nt(),iw={itemStyle:Mo(AP,!0),lineStyle:Mo(TP,!0)},F4={lineStyle:"stroke",itemStyle:"fill"};function b2(r,t){var e=r.visualStyleMapper||iw[t];return e||(console.warn("Unknown style type '"+t+"'."),iw.itemStyle)}function w2(r,t){var e=r.visualDrawType||F4[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var H4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=b2(r,n),o=a(i),s=i.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,d){var p=r.getDataParams(d),g=F({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},Dl=new te,W4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=b2(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Dl.option=l[n];var u=i(Dl),f=o.ensureUniqueItemVisual(s,"style");F(f,u),Dl.option.decal&&(o.setItemVisual(s,"decal",Dl.option.decal),Dl.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},$4={performRawSeries:!0,overallReset:function(r){var t=ft();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),nw(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=nw(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=w2(e,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},uc=Math.PI;function U4(r,t){t=t||{},pt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new _t,n=new Vt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Gt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Vt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new c_({shape:{startAngle:-uc/2,endAngle:-uc/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:uc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:uc*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Y4=function(){function r(t,e,n,i){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";or(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;M(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(a=!0)}else c&&c.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=ft(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||wu({plan:j4,reset:J4,count:tW}));v.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||wu({reset:Z4});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ft(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";or(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,M(n.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(h=!0,wu({reset:X4,onDirty:K4})));y.context={model:p,overallProgress:c},y.agent=o,y.__block=c,a._pipe(p,y)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return vt(t)&&(t={overallReset:t,seriesType:eW(t)}),t.uid=rl("stageHandler"),e&&(t.visualType=e),t},r}();function Z4(r){r.overallReset(r.ecModel,r.api,r.payload)}function X4(r){return r.overallProgress&&q4}function q4(){this.agent.dirty(),this.getDownstream().dirty()}function K4(){this.agent&&this.agent.dirty()}function j4(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function J4(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?Z(t,function(e,n){return T2(n)}):Q4}var Q4=T2(0);function T2(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),mm=["symbol","symbolSize","symbolRotate","symbolOffset"],lw=mm.concat(["symbolKeepAspect"]),aW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&lo(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function _m(r,t,e){for(var n=t.type==="radial"?xW(r,t,e):SW(r,t,e),i=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Ft(r)?[r]:Y(r)?r:null}function E_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&wW(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=Z(e,function(a){return a/i}),n/=i)}return[e,n]}var TW=new Un(!0);function qh(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function uw(r){return typeof r=="string"&&r!=="none"}function Kh(r){var t=r.fill;return t!=null&&t!=="none"}function fw(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 cw(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 Sm(r,t,e){var n=r_(t.image,t.__image,e);if(Xv(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Kc),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function AW(r,t,e,n){var i,a=qh(e),o=Kh(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||TW,c=t.__dirty;if(!n){var h=e.fill,v=e.stroke,d=o&&!!h.colorStops,p=a&&!!v.colorStops,g=o&&!!h.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(m=c?_m(r,h,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?_m(r,v,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?Sm(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=c||!t.__canvasStrokePattern?Sm(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(x?r.strokeStyle=x:a=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,A;r.setLineDash&&e.lineDash&&(i=E_(t),T=i[0],A=i[1]);var C=!0;(u||c&vs)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),C=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),C&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=A),n||(e.strokeFirst?(a&&cw(r,e),o&&fw(r,e)):(o&&fw(r,e),a&&cw(r,e))),T&&r.setLineDash([])}function CW(r,t,e){var n=t.__image=r_(e.image,t.__image,t,t.onload);if(!(!n||!Xv(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,c=o-u,h=s-f;r.drawImage(n,u,f,c,h,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function MW(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||na,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=E_(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(qh(e)&&r.strokeText(i,e.x,e.y),Kh(e)&&r.fillText(i,e.x,e.y)):(Kh(e)&&r.fillText(i,e.x,e.y),qh(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var hw=["shadowBlur","shadowOffsetX","shadowOffsetY"],vw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function P2(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){dr(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?yo.opacity:o}(n||t.blend!==e.blend)&&(a||(dr(r,i),a=!0),r.globalCompositeOperation=t.blend||yo.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,i){if(!this[$e]){if(this._disposed){this.id;return}var a,o,s;if(yt(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[$e]=!0,!this._model||n){var l=new HH(this._api),u=this._theme,f=this._model=new KP;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},bm);var c={seriesTransition:s,optionChanged:!0};if(i)this[ur]={silent:a,updateParams:c},this[$e]=!1,this.getZr().wakeUp();else{try{ts(this),Ri.update.call(this,null,c)}catch(h){throw this[ur]=null,this[$e]=!1,h}this._ssr||this._zr.flush(),this[ur]=null,this[$e]=!1,Il.call(this,a),Ll.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||zt.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(zt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;M(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Dw[i]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(Au,function(_,S){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(mt(e)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),h.push({dom:x,left:b.left,top:b.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=ia.createCanvas(),y=Ex(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return M(h,function(_){var S=_.left-l,x=_.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:d,height:p},style:{fill:e.connectedBackgroundColor}})),M(h,function(_){var S=new He({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 zp(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return zp(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=mu(i,e);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=mu(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?R_(s,l,n):Af(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;M(QW,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&so(s,function(d){var p=St(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=F({},p.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=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),M(Tu,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),M(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),sW(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&&AL(this.getDom(),N_,"");var n=this,i=n._api,a=n._model;M(n._componentsViews,function(o){o.dispose(a,i)}),M(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Au[n.id]},t.prototype.resize=function(e){if(!this[$e]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[ur]&&(a==null&&(a=this[ur].silent),i=!0,this[ur]=null),this[$e]=!0;try{i&&ts(this),Ri.update.call(this,{type:"resize",animation:F({duration:0},e&&e.animation)})}catch(o){throw this[$e]=!1,o}this[$e]=!1,Il.call(this,a),Ll.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(yt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!wm[e]){var i=wm[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=F({},e);return n.type=Tu[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(yt(n)||(n={silent:!!n}),!!jh[e.type]&&this._model){if(this[$e]){this._pendingActions.push(e);return}var i=n.silent;Fp.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&zt.browser.weChat&&this._throttledZrFlush(),Il.call(this,i),Ll.call(this,i)}},t.prototype.updateLabelLayout=function(){en.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ts=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Bp(c,!0),Bp(c,!1),h.plan()},Bp=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_h.get("hoverLayerThreshold")&&!zt.node&&!zt.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(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),g=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Is(y))return;if(y instanceof Pt&&c3(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}Cw=function(c){return new(function(h){B(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(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){mi(d,p),Lr(c)},v.prototype.leaveEmphasis=function(d,p){_i(d,p),Lr(c)},v.prototype.enterBlur=function(d){YL(d),Lr(c)},v.prototype.leaveBlur=function(d){s_(d),Lr(c)},v.prototype.enterSelect=function(d){ZL(d),Lr(c)},v.prototype.leaveSelect=function(d){XL(d),Lr(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(jP))(c)},Y2=function(c){function h(v,d){for(var p=0;p=0)){Iw.push(e);var a=M2.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function j2(r,t){wm[r]=t}function o$(r,t,e){var n=BW("registerMap");n&&n(r,t,e)}var s$=g4;Bo(k_,H4);Bo(dd,W4);Bo(dd,$4);Bo(k_,aW);Bo(dd,oW);Bo(G2,OW);V_(QP);K2(FW,KH);j2("default",U4);Zn({type:mo,event:mo,update:mo},de);Zn({type:ah,event:ah,update:ah},de);Zn({type:_u,event:_u,update:_u},de);Zn({type:oh,event:oh,update:oh},de);Zn({type:Su,event:Su,update:Su},de);q2("light",rW);q2("dark",nW);var Lw=[],l$={registerPreprocessor:V_,registerProcessor:K2,registerPostInit:r$,registerPostUpdate:n$,registerUpdateLifecycle:B_,registerAction:Zn,registerCoordinateSystem:i$,registerLayout:a$,registerVisual:Bo,registerTransform:s$,registerLoading:j2,registerMap:o$,registerImpl:VW,PRIORITY:KW,ComponentModel:Bt,ComponentView:fe,SeriesModel:le,ChartView:ee,registerComponentModel:function(r){Bt.registerClass(r)},registerComponentView:function(r){fe.registerClass(r)},registerSeriesModel:function(r){le.registerClass(r)},registerChartView:function(r){ee.registerClass(r)},registerSubTypeDefaulter:function(r,t){Bt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){IG(r,t)}};function Lt(r){if(Y(r)){M(r,function(t){Lt(t)});return}Dt(Lw,r)>=0||(Lw.push(r),vt(r)&&(r={install:r}),r.install(l$))}function Pl(r){return r==null?0:r.length||1}function Pw(r){return r}var u$=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Pw,this._newKeyGetter=i||Pw,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;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(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var v=0;v1)for(var s=0;s30}var Rl=yt,Ei=Z,g$=typeof Int32Array=="undefined"?Array:Int32Array,y$="e\0\0",Rw=-1,m$=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],_$=["_approximateExtent"],Ew,dc,El,kl,$p,Ol,Up,S$=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;Q2(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Xr;if(l&&!i.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),Y(a)?a=a.slice():Rl(a)&&(a=F({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Rl(e)?F(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Rl(t)?F(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?F(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;em(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Ei(this.dimensions,this._getDimInfo,this),this.hostModel)),$p(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 i=n.apply(this,arguments);return e.apply(this,[i].concat(W0(arguments)))})},r.internalField=function(){Ew=function(t){var e=t._invertedIndicesMap;M(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new g$(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[e]=l}}}(),r}();const ar=S$;function Cf(r,t){A_(r)||(r=C_(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=ft(),a=[],o=b$(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&rR(o),l=n===r.dimensionsDefine,u=l?eR(r):tR(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=ft(f),h=new f2(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function b$(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return M(t,function(a){var o;yt(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function w$(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 T$=function(){function r(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return r}();function A$(r){var t=r.get("coordinateSystem"),e=new T$(t),n=C$[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var C$={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",ge).models[0],a=r.getReferringComponents("yAxis",ge).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),es(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),es(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",ge).models[0];t.coordSysDims=["single"],e.set("single",i),es(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",ge).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),es(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),es(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),es(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function es(r){return r.get("type")==="category"}function M$(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;D$(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(M(a,function(m,_){nt(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;M(a,function(m){m.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function D$(r){return!Q2(r.schema)}function la(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function nR(r,t){return la(r,t)?r.getCalculationInfo("stackResultDimension"):t}function I$(r,t){var e=r.get("coordinateSystem"),n=Tf.get(e),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=Qh(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function L$(r,t,e){var n,i;return e&&M(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function Ai(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=C_(r)):(i=n.getSource(),a=i.sourceFormat===Xr);var o=A$(t),s=I$(t,o),l=e.useEncodeDefaulter,u=vt(l)?l:l?bt(UP,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Cf(i,f),h=L$(c.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=M$(t,{schema:c,store:v}),p=new ar(c,t);p.setCalculationInfo(d);var g=h!=null&&P$(i)?function(y,m,_,S){return S===h?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,g),p}function P$(r){if(r.sourceFormat===Xr){var t=R$(r.data||[]);return!Y(Js(t))}}function R$(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}();Zv(iR);const Ci=iR;var E$=0,k$=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++E$}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&Z(n,O$);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!nt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},r}();function O$(r){return yt(r)&&r.value!=null?r.value:r+""}const Tm=k$;function Am(r){return r.type==="interval"||r.type==="log"}function N$(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=yL(a/t,!0);e!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=aR(o),l=i.niceTickExtent=[ce(Math.ceil(r[0]/o)*o,s),ce(Math.floor(r[1]/o)*o,s)];return V$(l,r),i}function Yp(r){var t=Math.pow(10,J0(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ce(e*t)}function aR(r){return kn(r)+2}function kw(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function V$(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),kw(r,0,t),kw(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function pd(r,t){return r>=t[0]&&r<=t[1]}function gd(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function yd(r,t){return r*(t[1]-t[0])+t[0]}var oR=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Tm({})),Y(i)&&(i=new Tm({categories:Z(i,function(a){return yt(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:nt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),pd(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),gd(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(yd(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ci);Ci.registerClass(oR);const G_=oR;var Ba=ce,sR=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return pd(e,this._extent)},t.prototype.normalize=function(e){return gd(e,this._extent)},t.prototype.scale=function(e){return yd(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[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=aR(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:Ba(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function fR(r){var t=G$(r),e=[];return M(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.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 d=et(n.get("barWidth"),s),p=et(n.get("barMaxWidth"),s),g=et(n.get("barMinWidth")||(pR(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:H_(a),stackId:F_(n)})}),cR(e)}function cR(r){var t={};M(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var 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 d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=kt(a).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),M(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,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 d=0,p;M(a,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;M(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function F$(r,t,e){if(r&&t){var n=r[H_(t)];return n!=null&&e!=null?n[F_(e)]:n}}function hR(r,t){var e=uR(r,t),n=fR(e);M(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=F_(i),u=n[H_(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function vR(r){return{seriesType:r,plan:sl(),reset:function(t){if(dR(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),c=la(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=H$(i,a),d=pR(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var x=_.count,b=d&&Nn(x*3),w=d&&l&&Nn(x*3),T=d&&Nn(x),A=n.master.getRect(),C=h?A.width:A.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(c?g:o,D),E=I.get(s,D),O=v,V=void 0;c&&(V=+P-I.get(o,D));var N=void 0,z=void 0,$=void 0,q=void 0;if(h){var Q=n.dataToPoint([P,E]);if(c){var ct=n.dataToPoint([V,E]);O=ct[0]}N=O,z=Q[1]+m,$=Q[0]-O,q=y,Math.abs($)0?e:1:e))}var W$=function(r,t,e,n){for(;e>>1;r[i][1]i&&(this._approxInterval=i);var s=pc.length,l=Math.min(W$(pc,this._approxInterval,0,s),s-1);this._interval=pc[l][1],this._minLevelUnit=pc[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Ft(e)?e:+$n(e)},t.prototype.contain=function(e){return pd(this.parse(e),this._extent)},t.prototype.normalize=function(e){return gd(this.parse(e),this._extent)},t.prototype.scale=function(e){return yd(e,this._extent)},t.type="time",t}(ua),pc=[["second",m_],["minute",__],["hour",bu],["quarter-day",bu*6],["half-day",bu*12],["day",Wr*1.2],["half-week",Wr*3.5],["week",Wr*7],["month",Wr*31],["quarter",Wr*95],["half-year",wb/2],["year",wb]];function $$(r,t,e,n){var i=$n(t),a=$n(e),o=function(d){return Ab(i,d,n)===Ab(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},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 U$(r,t){return r/=Wr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Y$(r){var t=30*Wr;return r/=t,r>6?6:r>3?3:r>2?2:1}function Z$(r){return r/=bu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ow(r,t){return r/=t?__:m_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function X$(r){return yL(r,!0)}function q$(r,t,e){var n=new Date(r);switch(Ps(t)){case"year":case"month":n[LP(e)](0);case"day":n[PP(e)](1);case"hour":n[RP(e)](0);case"minute":n[EP(e)](0);case"second":n[kP(e)](0),n[OP(e)](0)}return n.getTime()}function K$(r,t,e,n){var i=1e4,a=DP,o=0;function s(C,D,I,L,P,E,O){for(var V=new Date(D),N=D,z=V[L]();N1&&E===0&&I.unshift({value:I[0].value-N})}}for(var E=0;E=n[0]&&m<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(g),c>_||r===a[v]))break}f=[]}}}for(var S=$t(Z(u,function(C){return $t(C,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(C){return C.length>0}),x=[],b=S.length-1,v=0;v0;)a*=10;var s=[ce(Q$(n[0]/a)*a),ce(J$(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Cu.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),pd(e,this._extent)},t.prototype.normalize=function(e){return e=Jr(e)/Jr(this.base),gd(e,this._extent)},t.prototype.scale=function(e){return e=yd(e,this._extent),gc(this.base,e)},t.type="log",t}(Ci),mR=W_.prototype;mR.getMinorTicks=Cu.getMinorTicks;mR.getLabel=Cu.getLabel;function yc(r,t){return j$(r,kn(t))}Ci.registerClass(W_);const tU=W_;var eU=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[nU[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=rU[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),rU={min:"_determinedMin",max:"_determinedMax"},nU={min:"_dataMin",max:"_dataMax"};function _R(r,t,e){var n=r.rawExtentInfo;return n||(n=new eU(r,t,e),r.rawExtentInfo=n,n)}function mc(r,t){return t==null?null:Nu(t)?NaN:r.parse(t)}function SR(r,t){var e=r.type,n=_R(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=uR("bar",o),l=!1;if(M(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=fR(s),f=iU(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function iU(r,t,e,n){var i=e.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=F$(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;M(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/a,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Ws(r,t){var e=t,n=SR(r,e),i=n.extent,a=e.get("splitNumber");r instanceof tU&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function md(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new G_({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new yR({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ci.getClass(t)||ua)}}function aU(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function fl(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):nt(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):vt(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n($_(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function $_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function oU(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof G_?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=fl(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;fr[1]&&(r[1]=i[1])})}var Mf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),uU=1e-8;function Vw(r,t){return Math.abs(r-t)i&&(n=o,i=l)}if(n)return cU(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Bw(s.exterior,i,a,e):M(s.points,function(l){Bw(l,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Mt(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/e,l/e])}return n}function dU(r,t){return r=vU(r),Z($t(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new zw(o[0],o.slice(1)));break;case"MultiPolygon":M(i.coordinates,function(l){l[0]&&a.push(new zw(l[0],l.slice(1)))});break;case"LineString":a.push(new Gw([i.coordinates]));break;case"MultiLineString":a.push(new Gw(i.coordinates))}var s=new wR(n[t||"name"],a,n.cp);return s.properties=n,s})}var Qu=Nt();function AR(r,t){var e=Z(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 pU(r){var t=r.getLabelModel().get("customValues");if(t){var e=fl(r),n=r.scale.getExtent(),i=AR(r,t),a=$t(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:Z(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?yU(r):_U(r)}function gU(r,t){var e=r.getTickModel().get("customValues");if(e){var n=r.scale.getExtent(),i=AR(r,e);return{ticks:$t(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?mU(r,t):{ticks:Z(r.scale.getTicks(),function(a){return a.value})}}function yU(r){var t=r.getLabelModel(),e=CR(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function CR(r,t){var e=MR(r,"labels"),n=U_(t),i=DR(e,n);if(i)return i;var a,o;return vt(n)?a=PR(r,n):(o=n==="auto"?SU(r):n,a=LR(r,o)),IR(e,n,{labels:a,labelCategoryInterval:o})}function mU(r,t){var e=MR(r,"ticks"),n=U_(t),i=DR(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),vt(n))a=PR(r,n,!0);else if(n==="auto"){var s=CR(r,r.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=LR(r,o,!0);return IR(e,n,{ticks:a,tickCategoryInterval:o})}function _U(r){var t=r.scale.getTicks(),e=fl(r);return{labels:Z(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function MR(r,t){return Qu(r)[t]||(Qu(r)[t]=[])}function DR(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,p=0,g=mf(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,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=Qu(r.model),x=r.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-_)<=1&&Math.abs(w-o)<=1&&b>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function bU(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 LR(r,t,e){var n=fl(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=xR(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);v&&d-l!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function PR(r,t,e){var n=r.scale,i=fl(r),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Fw=[0,1],wU=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return pL(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Hw(n,i.count())),Ut(t,Fw,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Hw(n,i.count()));var a=Ut(t,n,Fw,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=gU(this,e),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return TU(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return pU(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return xU(this)},r}();function Hw(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function TU(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;M(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:f[1]+1},t.push(o)}var c=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(v,d){return v=ce(v),d=ce(d),c?v>d:vi&&(i+=Nl);var v=Math.atan2(s,o);if(v<0&&(v+=Nl),v>=n&&v<=i||v+Nl>=n&&v+Nl<=i)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(i)+r,y=e*Math.sin(i)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function ev(r,t,e,n,i,a,o,s){var l=i-r,u=a-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function RR(r,t,e,n,i,a,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(i,r),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var rn=[];function DU(r,t,e){var n=RR(t.x,t.y,t.width,t.height,r.x,r.y,rn);return e.set(rn[0],rn[1]),n}function IU(r,t,e){for(var n=0,i=0,a=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]),Jt.fromArray(r[1]),ve.fromArray(r[2]),Ct.sub(Vn,on,Jt),Ct.sub(En,ve,Jt);var e=Vn.len(),n=En.len();if(!(e<.001||n<.001)){Vn.scale(1/e),En.scale(1/n);var i=Vn.dot(En),a=Math.cos(t);if(a1&&Ct.copy(rr,ve),rr.toArray(r[1])}}}}function LU(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,on.fromArray(r[0]),Jt.fromArray(r[1]),ve.fromArray(r[2]),Ct.sub(Vn,Jt,on),Ct.sub(En,ve,Jt);var n=Vn.len(),i=En.len();if(!(n<.001||i<.001)){Vn.scale(1/n),En.scale(1/i);var a=Vn.dot(t),o=Math.cos(e);if(a=l)Ct.copy(rr,ve);else{rr.scaleAndAdd(En,s/Math.tan(Math.PI/2-f));var c=ve.x!==Jt.x?(rr.x-Jt.x)/(ve.x-Jt.x):(rr.y-Jt.y)/(ve.y-Jt.y);if(isNaN(c))return;c<0?Ct.copy(rr,Jt):c>1&&Ct.copy(rr,ve)}rr.toArray(r[1])}}}}function qp(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function PU(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=$i(n[0],n[1]),a=$i(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=Jc([],n[1],n[0],o/i),l=Jc([],n[1],n[2],o/a),u=Jc([],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&&a&&x(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&b(-y,.8),m<0&&b(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=p.rect[t]-n,m=i-g.rect[t]-g.rect[e]}function S(T,A,C){if(T<0){var D=Math.min(A,-T);if(D>0){x(D*C,0,o);var I=D+T;I<0&&b(-I*C,1)}else b(-T*C,1)}}function x(T,A,C){T!==0&&(u=!0);for(var D=A;D0)for(var I=0;I0;I--){var O=C[I-1]*E;x(-O,I,o)}}}function w(T){var A=T<0?-1:1;T=Math.abs(T);for(var C=Math.ceil(T/(o-1)),D=0;D0?x(C,0,D+1):x(-C,o-D-1,o),T-=C,T<=0)return}return u}function RU(r,t,e,n){return OR(r,"x","width",t,e,n)}function NR(r,t,e,n){return OR(r,"y","height",t,e,n)}function VR(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Mt(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),Dt(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Ht(n,u,e,l)}else if(n.attr(u),!el(n).valueAnimation){var c=xt(n.style.opacity,1);n.style.opacity=0,ae(n,{style:{opacity:c}},e,l)}if(a.oldLayout=u,n.states.select){var v=a.oldLayoutSelect={};_c(v,u,Sc),_c(v,n.states.select,Sc)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};_c(d,u,Sc),_c(d,n.states.emphasis,Sc)}wP(n,l,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=OU(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Ht(i,{shape:p},e)):(i.setShape(p),i.style.strokePercent=0,ae(i,{style:{strokePercent:1}},e)),a.oldLayout=p}},r}();const VU=NU;var jp=Nt();function BU(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=jp(e).labelManager;i||(i=jp(e).labelManager=new VU),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=jp(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var Jp=Math.sin,Qp=Math.cos,BR=Math.PI,Ga=Math.PI*2,zU=180/BR,GU=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,i,a,o){this._add("C",t,e,n,i,a,o)},r.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},r.prototype.arc=function(t,e,n,i,a,o){this.ellipse(t,e,n,n,0,i,a,o)},r.prototype.ellipse=function(t,e,n,i,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),h=qi(c-Ga)||(f?u>=Ga:-u>=Ga),v=u>0?u%Ga:u%Ga+Ga,d=!1;h?d=!0:qi(c)?d=!1:d=v>=BR==!!f;var p=t+n*Qp(o),g=e+i*Jp(o);this._start&&this._add("M",p,g);var y=Math.round(a*zU);if(h){var m=1/this._p,_=(f?1:-1)*(Ga-m);this._add("A",n,i,y,1,+f,t+n*Qp(o+_),e+i*Jp(o+_)),m>.01&&this._add("A",n,i,y,0,+f,p,g)}else{var S=t+n*Qp(s),x=e+i*Jp(s);this._add("A",n,i,y,+d,+f,S,x)}},r.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),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,i,a,o,s,l,u){for(var f=[],c=this._p,h=1;h"}function qU(r){return""}function X_(r,t){t=t||{};var e=t.newline?` `:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return XU(o,s)+(o!=="style"?Xe(l):l||"")+(a?""+e+Z(a,function(u){return n(u)}).join(e)+e:"")+qU(o)}return n(r)}function KU(r,t,e){e=e||{};var n=e.newline?` `:"",i=" {"+n,a=n+"}",o=Z(kt(r),function(l){return l+i+Z(kt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+a}).join(n),s=Z(kt(t),function(l){return"@keyframes "+l+i+Z(kt(t[l]),function(u){return u+i+Z(kt(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function Dm(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Yw(r,t,e,n){return Ce("svg","root",{width:r,height:t,xmlns:GR,"xmlns:xlink":FR,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var jU=0;function WR(){return jU++}var Zw={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"},$a="transform-origin";function JU(r,t,e){var n=F({},r.shape);F(n,t),r.buildPath(e,n);var i=new zR;return i.reset(iL(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function QU(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[$a]=e+"px "+n+"px")}var t6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function $R(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function e6(r,t,e){var n=r.shape.paths,i={},a,o;if(M(n,function(l){var u=Dm(e.zrId);u.animation=!0,_d(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=kt(f),v=h.length;if(v){o=h[v-1];var d=f[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){t.d=!1;var s=$R(i,e);return a.replace(o,s)}}function Xw(r){return nt(r)?Zw[r]?"cubic-bezier("+Zw[r]+")":X0(r)?r:"":""}function _d(r,t,e,n){var i=r.animators,a=i.length,o=[];if(r instanceof h_){var s=e6(r,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var U=$R(w,e);return U+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+WR();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function r6(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};qw(n,t,e,!0)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=i.fill;if(!a){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&&(a=Gy(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),qw(n,t,e,!0)}}function qw(r,t,e,n){var i=JSON.stringify(r),a=e.cssStyleCache[i];a||(a=e.zrId+"-cls-"+WR(),e.cssStyleCache[i]=a,e.cssNodes["."+a+(n?":hover":"")]=r),t.class=t.class?t.class+" "+a:a}var tf=Math.round;function UR(r){return r&&nt(r.src)}function YR(r){return r&&vt(r.toDataURL)}function q_(r,t,e,n){UU(function(i,a){var o=i==="fill"||i==="stroke";o&&nL(a)?XR(t,r,i,n):o&&q0(a)?qR(e,r,i,n):r[i]=a,o&&n.ssr&&a==="none"&&(r["pointer-events"]="visible")},t,e,!1),u6(e,r,n)}function K_(r,t){var e=LG(t);e&&(e.each(function(n,i){n!=null&&(r[(Uw+i).toLowerCase()]=n+"")}),t.isSilent()&&(r[Uw+"silent"]="true"))}function Kw(r){return qi(r[0]-1)&&qi(r[1])&&qi(r[2])&&qi(r[3]-1)}function n6(r){return qi(r[4])&&qi(r[5])}function j_(r,t,e){if(t&&!(n6(t)&&Kw(t))){var n=e?10:1e4;r.transform=Kw(t)?"translate("+tf(t[4]*n)/n+" "+tf(t[5]*n)/n+")":K5(t)}}function jw(r,t,e){for(var n=r.points,i=[],a=0;aa?(d=e[l+1]==null?null:e[l+1].elm,JR(r,d,e,i,l)):nv(r,t,n,a))}function ps(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(J_(r,t),Im(t.text)?Dn(n)&&Dn(i)?n!==i&&d6(e,n,i):Dn(i)?(Dn(r.text)&&tg(e,""),JR(e,null,i,0,i.length-1)):Dn(n)?nv(e,n,0,n.length-1):Dn(r.text)&&tg(e,""):r.text!==t.text&&(Dn(n)&&nv(e,n,0,n.length-1),tg(e,t.text)))}function p6(r,t){if(eu(r,t))ps(r,t);else{var e=r.elm,n=KR(e);ef(t),n!==null&&(Ja(n,t.elm,jR(e)),nv(n,[r],0,0))}return t}var g6=0,y6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=iT(),this.configLayer=iT(),this.storage=e,this._opts=n=F({},n),this.root=t,this._id="zr"+g6++,this._oldVNode=Yw(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=HR("svg");J_(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}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",p6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Qw(t,Dm(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Dm(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=m6(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Ce("g","main",{},[]);this._paintList(e,a,l?l.children:o),l&&o.push(l);var u=Z(kt(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Ce("defs","defs",{},u)),t.animation){var f=KU(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Ce("style","stl",{},[],f);o.push(c)}}return Yw(n,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},X_(this.renderToVNode({animation:xt(t.cssAnimation,!0),emphasis:xt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:xt(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 i=t.length,a=[],o=0,s,l,u=0,f=0;f=0&&!(h&&l&&h[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=a[o-1];for(var y=p+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 C=v.dpr,D=0;D0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?xc:0),this._needsManuallyCompositing),f.__builtin__||F0("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),i.__dirty&br&&!i.__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,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Tt(n[t],e,!0):n[t]=e;for(var i=0;i-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}(le);const I6=D6;function $s(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Fs(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var L6=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=ye(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=P6,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){mi(this.childAt(0))},t.prototype.downplay=function(){_i(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var 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),pn(h)}if(this._updateCommon(e,n,l,i,a),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,i,a,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=De(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Vo(e.getItemVisual(n,"symbolOffset"),i);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(n,"style"),w=b.fill;if(s instanceof He){var T=s.style;s.useStyle(F({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(F({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(n,"liftZ"),C=this._z2;A!=null?C==null&&(this._z2=s.z2,s.z2+=A):C!=null&&(s.z2=C,this._z2=null);var D=o&&o.useNameLabel;Fe(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(E){return D?e.getName(E):$s(e,E)}this._sizeX=i[0]/2,this._sizeY=i[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),ue(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=St(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&oa(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();oa(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return ul(e.getItemVisual(n,"symbolSize"))},t}(_t);function P6(r,t){this.parent.drift(r,t)}const Df=L6;function rg(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 sT(r){return r!=null&&!yt(r)&&(r={isIgnore:r}),r||{}}function lT(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:De(t),cursorStyle:t.get("cursor")}}var R6=function(){function r(t){this.group=new _t,this._SymbolCtor=t||Df}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=sT(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=lT(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};a||n.removeAll(),t.diff(a).add(function(c){var h=f(c);if(rg(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=a.getItemGraphicEl(h),d=f(c);if(!rg(t,d,c,e)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):Ht(v,y,i)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=lT(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=sT(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?e=n[0]:n[1]<0&&(e=n[1]),e}function eE(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function k6(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function O6(r,t,e,n,i,a,o,s){for(var l=k6(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=tE(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=i||p<0)break;if(bo(y,m)){if(l){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](y,m),c=y,h=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var x=p+a,b=t[x*2],w=t[x*2+1];b===y&&w===m&&g=n||bo(b,w))v=y,d=m;else{C=b-u,D=w-f;var P=y-u,E=b-y,O=m-f,V=w-m,N=void 0,z=void 0;if(s==="x"){N=Math.abs(P),z=Math.abs(E);var $=C>0?1:-1;v=y-$*N*o,d=m,I=y+$*z*o,L=m}else if(s==="y"){N=Math.abs(O),z=Math.abs(V);var q=D>0?1:-1;v=y,d=m-q*N*o,I=y,L=m+q*z*o}else N=Math.sqrt(P*P+O*O),z=Math.sqrt(E*E+V*V),A=z/(z+N),v=y-C*o*(1-A),d=m-D*o*(1-A),I=y+C*o*A,L=m+D*o*A,I=ki(I,Oi(b,y)),L=ki(L,Oi(w,m)),I=Oi(I,ki(b,y)),L=Oi(L,ki(w,m)),C=I-y,D=L-m,v=y-C*N/z,d=m-D*N/z,v=ki(v,Oi(u,y)),d=ki(d,Oi(f,m)),v=Oi(v,ki(u,y)),d=Oi(d,ki(f,m)),C=y-v,D=m-d,I=y+C*z/N,L=m+D*z/N}r.bezierCurveTo(c,h,v,d,y,m),c=I,h=L}else r.lineTo(y,m)}u=y,f=m,p+=a}return g}var rE=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),N6=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new rE},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&bo(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=a[c++],d=a[c++],p=a[c++],g=a[c++],y=a[c++],m=a[c++];var x=u?Rh(s,v,p,y,e,f):Rh(l,d,g,m,e,f);if(x>0)for(var b=0;b=0){var S=u?Ae(l,d,g,m,w):Ae(s,v,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Pt),V6=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(rE),nE=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new V6},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&bo(i[s*2-2],i[s*2-1]);s--);for(;ot){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function G6(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=z6(u,i==="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 d=10,p=h[0].coord-d,g=h[v-1].coord+d,y=g-p;if(y<.001)return"transparent";M(h,function(_){_.offset=(_.coord-p)/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 xf(0,0,0,0,h,!0);return m[i]=p,m[i+"2"]=g,m}}}function F6(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&H6(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function H6(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function W6(r,t){return isNaN(r)||isNaN(t)}function $6(r){for(var t=r.length/2;t>0&&W6(r[t*2-2],r[t*2-1]);t--);return t-1}function vT(r,t){return[r[t*2],r[t*2+1]]}function U6(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function oE(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=d.getState("emphasis").style;z.lineWidth=+d.style.lineWidth+1}St(d).seriesIndex=e.seriesIndex,ue(d,O,V,N);var $=hT(e.get("smooth")),q=e.get("smoothMonotone");if(d.setShape({smooth:$,smoothMonotone:q,connectNulls:w}),p){var Q=s.getCalculationInfo("stackedOnSeries"),ct=0;p.useStyle(pt(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Q&&(ct=hT(Q.get("smooth"))),p.setShape({smooth:$,stackedOnSmooth:ct,smoothMonotone:q,connectNulls:w}),Ge(p,e,"areaStyle"),St(p).seriesIndex=e.seriesIndex,ue(p,O,V,N)}var ht=this._changePolyState;s.eachItemGraphicEl(function(gt){gt&&(gt.onHoverStateChange=ht)}),this._polyline.onHoverStateChange=ht,this._data=s,this._coordSys=a,this._stackedOnPoints=x,this._points=f,this._step=C,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){St(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=Co(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],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 Df(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ee.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Co(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ee.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;zh(this._polyline,e),n&&zh(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new N6({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new nE({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");vt(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=vt(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,x=n.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=i;a?(y=b.x,m=b.x+b.width,_=v.x):(y=b.y+b.height,m=b.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=vt(c)?c(d):f*w+h,A=p.getSymbolPath(),C=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(oE(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 Gt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=$6(l);f>=0&&(Fe(s,De(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?QR(o,v):$s(o,c)},enableTextSetter:!0},Y6(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=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,x=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=U6(c,S,w),A=T.range,C=A[1]-A[0],D=void 0;if(C>=1){if(C>1&&!v){var I=vT(c,A[0]);u.attr({x:I[0]+x,y:I[1]+b}),o&&(D=h.getRawValue(A[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+x,y:I[1]+b});var L=h.getRawValue(A[0]),P=h.getRawValue(A[1]);o&&(D=CL(i,d,L,P,T.t))}a.lastFrameIndex=A[0]}else{var E=e===1||a.lastFrameIndex>0?A[0]:0,I=vT(c,E);o&&(D=h.getRawValue(E)),u.attr({x:I[0]+x,y:I[1]+b})}if(o){var O=el(u);typeof O.setLabelText=="function"&&O.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=O6(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(d=Ni(h.stackedOnCurrent,h.current,i,o,l),v=Ni(h.current,null,i,o,l),g=Ni(h.stackedOnNext,h.next,i,o,l),p=Ni(h.next,null,i,o,l)),cT(v,p)>3e3||f&&cT(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:p}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),Ht(u,y,c),f&&(f.setShape({points:v,stackedOnPoints:d}),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 x=_[S].cmd;if(x==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,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;e10&&o.type==="cartesian2d"&&a){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){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var d=void 0;nt(a)?d=q6[a]:vt(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,K6))}}}}}function j6(r){r.registerChartView(X6),r.registerSeriesModel(I6),r.registerLayout(Pf("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,sE("line"))}var lE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)M(a.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,x=0;xg){_=(b+m)/2;break}x===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.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}(le);le.registerClass(lE);const iv=lE;var J6=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Ai(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ga(iv.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}(iv);const Q6=J6;var t8=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}(),e8=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new t8},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-fMath.PI/2&&fs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Yu(a,e,St(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ee),dT={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=ig(t.x,r.x),s=ag(t.x+t.width,i),l=ig(t.y,r.y),u=ag(t.y+t.height,a),f=si?s:o,t.y=c&&l>a?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 i=ag(t.r,r.r),a=ig(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},pT={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new Vt({shape:F({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?av:gr,f=new u({shape:n,z2:1});f.name="item";var c=uE(i);if(f.calculateTextPosition=r8(c,{isRoundCap:u===av}),a){var h=f.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Ht:ae)(f,{shape:d},a)}return f}};function o8(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 gT(r,t,e,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ht:ae)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?Ht:ae)(e,{shape:u},f,i)}function yT(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function u8(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function uE(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 _T(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,c=fo(n.getModel("itemStyle"),f,!0);F(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?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=De(n);Fe(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:$s(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,n8(r,g==="outside"?v:g,uE(o),n.get(["label","rotate"]))}bP(p,d,a.getRawValue(e),function(m){return QR(t,m)});var y=n.getModel(["emphasis"]);ue(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Ge(r,n),u8(i)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function f8(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var c8=function(){function r(){}return r}(),ST=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new c8},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function h8(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=a.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function fE(r,t,e){if(zo(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function v8(r,t,e){var n=r.type==="polar"?gr:Vt;return new n({shape:fE(t,e,r),silent:!0,z2:0})}const d8=a8;function p8(r){r.registerChartView(d8),r.registerSeriesModel(Q6),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(hR,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vR("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,sE("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var wT=Math.PI*2,Ac=Math.PI/180;function cE(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function hE(r,t){var e=cE(r,t),n=r.get("center"),i=r.get("radius");Y(i)||(i=[0,i]);var a=et(e.width,t.getWidth()),o=et(e.height,t.getHeight()),s=Math.min(a,o),l=et(i[0],s/2),u=et(i[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else Y(n)||(n=[n,n]),f=et(n[0],a)+e.x,c=et(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function g8(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=cE(n,e),s=hE(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*Ac,v=n.get("endAngle"),d=n.get("padAngle")*Ac;v=v==="auto"?h-wT:-v*Ac;var p=n.get("minAngle")*Ac,g=p+d,y=0;i.each(a,function(V){!isNaN(V)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,S=n.get("clockwise"),x=n.get("roseType"),b=n.get("stillShowZeroSum"),w=i.getDataExtent(a);w[0]=0;var T=S?1:-1,A=[h,v],C=T*d/2;n_(A,!S),h=A[0],v=A[1];var D=vE(n);D.startAngle=h,D.endAngle=v,D.clockwise=S;var I=Math.abs(v-h),L=I,P=0,E=h;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(V,N){var z;if(isNaN(V)){i.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:c,r:x?NaN:f});return}x!=="area"?z=m===0&&b?_:V*_:z=I/y,zz?(q=E+T*z/2,Q=q):(q=E+C,Q=$-C),i.setItemLayout(N,{angle:z,startAngle:q,endAngle:Q,clockwise:S,cx:l,cy:u,r0:c,r:x?Ut(V,w,[c,f]):f}),E=$}),Le?y:g,x=Math.abs(_.label.y-e);if(x>=S.maxY){var b=_.label.x-t-_.len2*i,w=n+_.len,T=Math.abs(b)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-c)/2}}}function og(r){return r.position==="center"}function _8(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*y8,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),T=w.shape,A=w.getTextContent(),C=w.getTextGuideLine(),D=t.getItemModel(b),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),E=I.get("alignTo"),O=et(I.get("edgeDistance"),u),V=I.get("bleedMargin"),N=D.getModel("labelLine"),z=N.get("length");z=et(z,u);var $=N.get("length2");if($=et($,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Q>0?"left":"right"}var G=Math.PI,X=0,W=I.get("rotate");if(Ft(W))X=W*(G/180);else if(L==="center")X=0;else if(W==="radial"||W===!0){var J=Q<0?-q+G:-q;X=J}else if(W==="tangential"&&L!=="outside"&&L!=="outer"){var ot=Math.atan2(Q,ct);ot<0&&(ot=G*2+ot);var ut=ct>0;ut&&(ot=G+ot),X=ot-G}if(a=!!X,A.x=ht,A.y=gt,A.rotation=X,A.setStyle({verticalAlign:"middle"}),K){A.setStyle({align:U});var At=A.states.select;At&&(At.x+=A.x,At.y+=A.y)}else{var it=A.getBoundingRect().clone();it.applyTransform(A.getComputedTransform());var rt=(A.style.margin||0)+2.1;it.y-=rt/2,it.height+=rt,e.push({label:A,labelLine:C,position:L,len:z,len2:$,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Ct(Q,ct),linePoints:Et,textAlign:U,labelDistance:P,labelAlignTo:E,edgeDistance:O,bleedMargin:V,rect:it,unconstrainedWidth:it.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:K})}}),!a&&r.get("avoidLabelOverlap")&&m8(e,n,i,l,u,h,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=a.r0}},t.type="pie",t}(ee);const b8=x8;function cl(r,t,e){t=Y(t)&&{coordDimensions:t}||F({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=Cf(n,t).dimensions,a=new ar(i,r);return a.initData(n,e),a}var w8=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}();const Ef=w8;var T8=Nt(),A8=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ef(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return cl(this,{coordDimensions:["value"],encodeDefaulter:bt(b_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=T8(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=kG(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ao(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(le);const C8=A8;function M8(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Ft(o)&&!isNaN(o)&&o<0)})}}}function D8(r){r.registerChartView(b8),r.registerSeriesModel(C8),L2("pie",r.registerAction),r.registerLayout(bt(g8,"pie")),r.registerProcessor(Rf("pie")),r.registerProcessor(M8("pie"))}var I8=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,n,i){return i.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}(le);const L8=I8;var pE=4,P8=function(){function r(){}return r}(),R8=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new P8},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&a[0]=0;u--){var f=u*2,c=a[f]-s/2,h=a[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 i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.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,i=n.points,a=n.size,o=a[0],s=a[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}();const k8=E8;var O8=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,i){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Pf("").reset(e,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},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 i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new k8:new If,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ee);const N8=O8;var V8=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Bt);const B8=V8;var Pm=function(r){B(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}(Bt);me(Pm,Mf);var gE={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},z8=Tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},gE),Q_=Tt({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}}},gE),G8=Tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Q_),F8=pt({logBase:10},Q_);const yE={category:z8,value:Q_,time:G8,log:F8};var H8={value:1,category:1,time:1,log:1};function Us(r,t,e,n){M(H8,function(i,a){var o=Tt(Tt({},yE[a],!0),n,!0),s=function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Xu(this),v=h?il(f):{},d=c.getTheme();Tt(f,d.get(a+"Axis")),Tt(f,this.getDefaultOption()),f.type=AT(f),h&&sa(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Tm.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."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",AT)}function AT(r){return r.type||(r.data?"category":"value")}var W8=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 Z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),$t(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}();const $8=W8;var Rm=["x","y"];function CT(r){return r.type==="interval"||r.type==="time"}var U8=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Rm,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!CT(e)||!CT(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-i[0]*f,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=js([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new Mt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Be(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return Be(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(n[0],n[1])-a+e,l=Math.max(i[0],i[1])-o+e;return new Mt(a,o,s,l)},t}($8),Y8=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(yn);const Z8=Y8;function Em(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),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,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Re(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function MT(r){return r.get("coordinateSystem")==="cartesian2d"}function DT(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,ge).models[0];t[n]=a}),t}var sg=Math.log;function mE(r,t,e){var n=ua.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=SR(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=sg(r.base);u=[sg(u[0])/h,sg(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 d=n.getInterval.call(r),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Yp(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Yp(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=ce(g-m),p<0&&u[0]>=0?(p=0,g=ce(m)):g>0&&u[1]<=0&&(g=0,p=-ce(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var X8=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Rm,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=kt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Am(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Ws(p,d),Am(p)&&(s=v))}f.length&&(s||(s=f.pop(),Ws(s.scale,s.model)),M(f,function(g){mE(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){IT(n,"y",o,a)}),M(n.y,function(o){IT(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=be(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=oU(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()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(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]),q8(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]}yt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Fu(i-Ki)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),PT={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Be(s,s,o),Be(l,l,o));var f=F({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Ee({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Gs(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)||Ft(v))&&(v=[v,v]);var d=Vo(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(h[m]!=="none"&&h[m]!=null){var _=ye(h[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,x=u?l:s;_.attr({rotation:y.rotate,x:x[0]+S*Math.cos(r.rotation),y:x[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=Q8(e,n,t,r),a=eY(e,n,t,r);if(J8(t,a,i),tY(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=kR(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));VR(o)}},axisName:function(r,t,e,n){var i=Re(r.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,ET(a)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Ki/180);var d;ET(a)?h=wo.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(h=j8(r.rotation,a,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Re(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Gt({x:c[0],y:c[1],rotation:h.rotation,silent:wo.isLabelSilent(t),style:Qt(s,{text:i,font:p,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(ko({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=wo.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,St(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function j8(r,t,e,n){var i=gL(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Fu(i-Ki/2)?(o=l?"bottom":"top",a="center"):Fu(i-Ki*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iKi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function J8(r,t,e){if(!xR(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],c=e[e.length-1],h=e[e.length-2];n===!1?(Pr(a),Pr(u)):RT(a,o)&&(n?(Pr(o),Pr(f)):(Pr(a),Pr(u))),i===!1?(Pr(s),Pr(c)):RT(l,s)&&(i?(Pr(l),Pr(h)):(Pr(s),Pr(c)))}}function Pr(r){r&&(r.ignore=!0)}function RT(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=$v([]);return Eo(i,i,-r.rotation),e.applyTransform(li([],i,r.getLocalTransform())),n.applyTransform(li([],i,t.getLocalTransform())),e.intersect(n)}}function ET(r){return r==="middle"||r==="center"}function _E(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l=0||r===t}function sY(r){var t=t1(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=km(e);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=pt({color:d.color},l));var g=Tt(mt(d),{boundaryGap:e,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(nt(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else vt(f)&&(g.name=f(g.name,g));var m=new te(g,null,this.ecModel);return me(m,Mf.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Tt({lineStyle:{color:"#bbb"}},Vl.axisLine),axisLabel:Cc(Vl.axisLabel,!1),axisTick:Cc(Vl.axisTick,!1),splitLine:Cc(Vl.splitLine,!0),splitArea:Cc(Vl.splitArea,!0),indicator:[]},t}(Bt);const wY=bY;var TY=["axisLine","axisTickLabel","axisName"],AY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group;a.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes(),a=Z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new xi(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(a,function(o){M(TY,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=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"),d=Y(h)?h:[h],p=Y(v)?v:[v],g=[],y=[];function m(E,O,V){var N=V%O.length;return E[N]=E[N]||[],N}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,x=n.cy,b=0;b<_.length;b++){if(f){var w=m(g,d,b);g[w].push(new da({shape:{cx:S,cy:x,r:_[b].coord}}))}if(c&&b<_.length-1){var w=m(y,p,b);y[w].push(new Qv({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,A=Z(i,function(E,O){var V=E.getTicksCoords();return T=T==null?V.length-1:Math.min(V.length-1,T),Z(V,function(N){return n.coordToPoint(N.coord,O)})}),C=[],b=0;b<=T;b++){for(var D=[],I=0;I3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;fg(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(a),h=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);fg(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!zT(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;fg(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Zr);function fg(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(gi(n.event),AE(r,t,e,n,i))}function AE(r,t,e,n,i){i.isAvailableBehavior=at(hh,null,e,n),r.trigger(t,i)}function hh(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}const kf=OY;function r1(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function n1(r,t,e,n){var i=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(e-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var NY={axisPointer:1,tooltip:1,brush:1};function Sd(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!NY.hasOwnProperty(n.mainType)&&i&&i.model!==e}function CE(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 cg,ov={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"},GT=kt(ov),sv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},FT=kt(sv),VY=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=CE(t);this._defsUsePending=[];var i=new _t;this._root=i;var a=[],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),xr(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;GY(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=xd(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=DE(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var v=i;i=new _t,i.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!e.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Vt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:a}},r.prototype._parseNode=function(t,e,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!a){var f=cg[s];if(f&&st(cg,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 i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});e.add(l)}}var v=HT[s];if(v&&st(HT,s)){var d=v.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var n=new Wu({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),BY(n,e);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,e.add(n),n},r.internalField=function(){cg={g:function(t,e){var n=new _t;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Vt;return Rr(e,n),xr(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 da;return Rr(e,n),xr(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 Ee;return Rr(e,n),xr(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 f_;return Rr(e,n),xr(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"),i;n&&(i=UT(n));var a=new yr({shape:{points:i||[]},silent:!0});return Rr(e,a),xr(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,e){var n=t.getAttribute("points"),i;n&&(i=UT(n));var a=new mr({shape:{points:i||[]},silent:!0});return Rr(e,a),xr(t,a,this._defsUsePending,!1,!1),a},image:function(t,e){var n=new He;return Rr(e,n),xr(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",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new _t;return Rr(e,s),xr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new _t;return Rr(e,s),xr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,e){var n=t.getAttribute("d")||"",i=eP(n);return Rr(e,i),xr(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),HT={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),a=new xf(t,e,n,i);return WT(r,a),$T(r,a),a},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),i=new dP(t,e,n);return WT(r,i),$T(r,i),i}};function WT(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function $T(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};ME(e,a,a);var o=a.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}e=e.nextSibling}}function Rr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),pt(t.__inheritedStyle,r.__inheritedStyle))}function UT(r){for(var t=xd(r),e=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=xd(o);switch(i=i||Cr(),s){case"translate":Hn(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Z0(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Eo(i,i,-parseFloat(l[0])*hg,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*hg);li(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*hg);li(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var ZT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ME(r,t,e){var n=r.getAttribute("style");if(n){ZT.lastIndex=0;for(var i;(i=ZT.exec(n))!=null;){var a=i[1],o=st(ov,a)?ov[a]:null;o&&(t[o]=i[2]);var s=st(sv,a)?sv[a]:null;s&&(e[s]=i[2])}}}function $Y(r,t,e){for(var n=0;n0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,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,i)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ft(),n=ft(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(v,d){return d&&(v=d(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function c(v){for(var d=[],p=!u&&l&&l.project,g=0;g=0)&&(h=i);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Fe(t,De(n),{labelFetcher:h,labelDataIndex:c,defaultText:e},v);var d=t.getTextContent();if(d&&(IE(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function JT(r,t,e,n,i,a){r.data?r.data.setItemGraphicEl(a,t):St(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:e,region:n&&n.option||{}}}function QT(r,t,e,n,i){r.data||ko({el:t,componentModel:i,itemName:e,itemTooltipOption:n.get("tooltip")})}function tA(r,t,e,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return ue(t,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&u3(t,i,e),o}function eA(r,t,e){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),M(r,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},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}(le);const h7=c7;function v7(r,t){var e={};return M(r,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);e[o]=e[o]||[],isNaN(i)||e[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(n,i){for(var a="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=e[a].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 x=r.getBoxLayoutParams();x.aspect=g,S=be(x,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function m7(r,t){M(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var _7=function(){function r(){this.dimensions=PE}return r.prototype.create=function(t,e){var n=[];function i(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 aA(l+s,l,F({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=oA,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 a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),M(a,function(o,s){var l=Z(o,function(f){return f.get("nameMap")}),u=new aA(s,s,F({nameMap:H0(l)},i(o[0])));u.zoomLimit=Re.apply(null,Z(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=oA,u.resize(o[0],e),M(o,function(f){f.coordinateSystem=u,m7(u,f)})}),n},r.prototype.getFilledRegions=function(t,e,n,i){for(var a=(t||[]).slice(),o=ft(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function D7(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,i=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){P7(r);var a=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+t(r,i),r.hierNode.modifier=r.hierNode.prelim-a):r.hierNode.prelim=a}else i&&(r.hierNode.prelim=i.hierNode.prelim+t(r,i));r.parentNode.hierNode.defaultAncestor=R7(r,i,r.parentNode.hierNode.defaultAncestor||n[0],t)}function I7(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function lA(r){return arguments.length?r:O7}function ru(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function L7(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function P7(r){for(var t=r.children,e=t.length,n=0,i=0;--e>=0;){var a=t[e];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function R7(r,t,e,n){if(t){for(var i=r,a=r,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=vg(s),a=dg(a),s&&a;){i=vg(i),o=dg(o),i.hierNode.ancestor=r;var h=s.hierNode.prelim+c-a.hierNode.prelim-u+n(s,a);h>0&&(k7(E7(s,r,e),r,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,f+=o.hierNode.modifier}s&&!vg(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=c-l),a&&!dg(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-f,e=r)}return e}function vg(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function dg(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function E7(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function k7(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 O7(r,t){return r.parentNode===t.parentNode?1:2}var N7=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),V7=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new N7},t.prototype.buildPath=function(e,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===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 d=1;dm.x,x||(S=S-Math.PI));var w=x?"left":"right",T=s.getModel("label"),A=T.get("rotate"),C=A*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:A==null?-S:C,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Vu(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(St(e).focus=L),z7(i,o,f,e,d,v,p,n),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var E=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===Sf||zh(e.__edge,P)}})}function z7(r,t,e,n,i,a,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"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=n.__edge=new td({shape:Vm(f,c,h,i,i)})),Ht(p,{shape:Vm(f,c,h,a,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=i.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=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,i=r.targetNode;if(nt(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=r.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function BE(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function l1(r,t){var e=BE(r);return Dt(e,t)>=0}function bd(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 K7=function(r){B(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},i=e.leaves||{},a=new te(i,this,this.ecModel),o=s1.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=a),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,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Ie("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=bd(i,this),n.collapsed=!i.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}(le);const j7=K7;function J7(r,t,e){for(var n=[r],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)e.push(i[a])}}function Q7(r,t){r.eachSeriesByType("tree",function(e){t9(e,t)})}function t9(r,t){var e=L7(r,t);r.layoutInfo=e;var n=r.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(e.height,e.width)/2,o=lA(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(i=e.width,a=e.height,o=lA());var s=r.getData().tree.root,l=s.children[0];if(l){M7(s),J7(l,D7,o),s.hierNode.modifier=-l.hierNode.prelim,zl(l,I7);var u=l,f=l,c=l;zl(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,d=0,p=0,g=0,y=0;if(n==="radial")d=i/(f.getLayout().x+h+v),p=a/(c.depth-1||1),zl(l,function(_){g=(_.getLayout().x+v)*d,y=(_.depth-1)*p;var S=ru(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=a/(f.getLayout().x+h+v),d=i/(c.depth-1||1),zl(l,function(_){y=(_.getLayout().x+v)*p,g=m==="LR"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=i/(f.getLayout().x+h+v),p=a/(c.depth-1||1),zl(l,function(_){g=(_.getLayout().x+v)*d,y=m==="TB"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:g,y},!0)}))}}}function e9(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(i.dataIndex,"style");F(s,o)})})}function r9(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);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(i){var a=i.coordinateSystem,o=a1(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function n9(r){r.registerChartView(G7),r.registerSeriesModel(j7),r.registerLayout(Q7),r.registerVisual(e9),r9(r)}var vA=["treemapZoomToNode","treemapRender","treemapMove"];function i9(r){for(var t=0;t1;)a=a.parentNode;var o=hm(r.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var a9=function(r){B(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 i={name:e.name,children:e.data};GE(i);var a=e.levels||[],o=this.designatedVisualItemStyle={},s=new te({itemStyle:o},this,n);a=e.levels=o9(a,n);var l=Z(a||[],function(c){return new te(c,s,n)},this),u=s1.createTree(i,this,f);function f(c){c.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return Ie("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=bd(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},F(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ft(),this._idIndexMapCount=0);var i=n.get(e);return i==null&&n.set(e,i=this._idIndexMapCount++),i},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(){zE(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}(le);function GE(r){var t=0;M(r.children,function(n){GE(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var e=r.value;Y(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Y(r.value)?r.value[0]=e:r.value=e}function o9(r,t){var e=Zt(t.get("color")),n=Zt(t.get(["aria","decal","decals"]));if(e){r=r||[];var i,a;M(r,function(s){var l=new te(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(a=!0)});var o=r[0]||(r[0]={});return i||(o.color=e.slice()),!a&&n&&(o.decal=n.slice()),r}}const s9=a9;var l9=8,dA=8,pg=5,u9=function(){function r(t){this.group=new _t,t.add(this.group)}return r.prototype.render=function(t,e,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(t,c,s,l,u,f,i),ud(o,c.pos,c.box)}},r.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var a=Se(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+l9*2,e.emptyItemWidth);e.totalWidth+=s+dA,e.renderList.push({node:i,text:a,width:s})}},r.prototype._renderContent=function(t,e,n,i,a,o,s){for(var l=0,u=e.emptyItemWidth,f=t.get(["breadcrumb","height"]),c=mH(e.pos,e.box),h=e.totalWidth,v=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],y=g.node,m=g.width,_=g.text;h>c.width&&(h-=m-u,m=u,_=null);var S=new yr({shape:{points:f9(l,0,m,f,p===v.length-1,p===0)},style:pt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Gt({style:Qt(a,{text:_})}),textConfig:{position:"inside"},z2:Qs*1e4,onclick:bt(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Qt(o,{text:_}),S.ensureState("emphasis").style=d,ue(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),c9(S,t,y),l+=m+dA}},r.prototype.remove=function(){this.group.removeAll()},r}();function f9(r,t,e,n,i,a){var o=[[i?r:r-pg,t],[r+e,t],[r+e,t+n],[i?r:r-pg,t+n]];return!a&&o.splice(2,0,[r+e+pg,t+n/2]),!i&&o.push([r,t+n/2]),o}function c9(r,t,e){St(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&&bd(e,t)}}const h9=u9;var v9=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:a}),!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())},i=0,a=this._storage.length;igA||Math.abs(e.dy)>gA)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(e){var n=e.originX,i=e.originY,a=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*=a,u){var h=u.min||0,v=u.max||1/0;c=Math.max(Math.min(v,c),h)}var d=c/f.zoom;f.zoom=c;var p=this.seriesModel.layoutInfo;n-=p.x,i-=p.y;var g=Cr();Hn(g,g,[-n,-i]),Z0(g,g,[d,d]),Hn(g,g,[n,i]),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(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Uh(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,i){var a=this;i||(i=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new h9(this.group))).render(e,n,i.node,function(o){a._state!=="animating"&&(l1(e.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gl(),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 i,a=this.seriesModel.getViewRoot();return a.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)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(ee);function Gl(){return{nodeGroup:[],background:[],content:[]}}function _9(r,t,e,n,i,a,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,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,x=_&&_.length,b=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),A=h.getModel(["select","itemStyle"]),C=b.get("borderRadius")||0,D=gt("nodeGroup",Bm);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),lv(D).nodeWidth=v,lv(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=gt("background",pA,u,g9);I&&$(D,I,x&&f.upperLabelHeight);var L=h.getModel("emphasis"),P=L.get("focus"),E=L.get("blurScope"),O=L.get("disabled"),V=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)Uu(D)&&ao(D,!1),I&&(ao(I,!O),c.setItemGraphicEl(o.dataIndex,I),im(I,V,E));else{var N=gt("content",pA,u,y9);N&&q(D,N),I.disableMorphing=!0,I&&Uu(I)&&ao(I,!1),ao(D,!O),c.setItemGraphicEl(o.dataIndex,D);var z=h.getShallow("cursor");z&&N.attr("cursor",z),im(D,V,E)}return D;function $(K,H,tt){var j=St(H);if(j.dataIndex=o.dataIndex,j.seriesIndex=r.seriesIndex,H.setShape({x:0,y:0,width:v,height:d,r:C}),g)Q(H);else{H.invisible=!1;var lt=o.getVisual("style"),R=lt.stroke,k=_A(b);k.fill=R;var G=Ya(w);G.fill=w.get("borderColor");var X=Ya(T);X.fill=T.get("borderColor");var W=Ya(A);if(W.fill=A.get("borderColor"),tt){var J=v-2*p;ct(H,R,lt.opacity,{x:p,y:0,width:J,height:S})}else H.removeTextContent();H.setStyle(k),H.ensureState("emphasis").style=G,H.ensureState("blur").style=X,H.ensureState("select").style=W,Do(H)}K.add(H)}function q(K,H){var tt=St(H);tt.dataIndex=o.dataIndex,tt.seriesIndex=r.seriesIndex;var j=Math.max(v-2*p,0),lt=Math.max(d-2*p,0);if(H.culling=!0,H.setShape({x:p,y:p,width:j,height:lt,r:C}),g)Q(H);else{H.invisible=!1;var R=o.getVisual("style"),k=R.fill,G=_A(b);G.fill=k,G.decal=R.decal;var X=Ya(w),W=Ya(T),J=Ya(A);ct(H,k,R.opacity,null),H.setStyle(G),H.ensureState("emphasis").style=X,H.ensureState("blur").style=W,H.ensureState("select").style=J,Do(H)}K.add(H)}function Q(K){!K.invisible&&a.push(K)}function ct(K,H,tt,j){var lt=h.getModel(j?mA:yA),R=Se(h.get("name"),null),k=lt.getShallow("show");Fe(K,De(h,j?mA:yA),{defaultText:k?R:null,inheritColor:H,defaultOpacity:tt,labelFetcher:r,labelDataIndex:o.dataIndex});var G=K.getTextContent();if(G){var X=G.style,W=$0(X.padding||0);j&&(K.setTextConfig({layoutRect:j}),G.disableLabelLayout=!0),G.beforeUpdate=function(){var ot=Math.max((j?j.width:K.shape.width)-W[1]-W[3],0),ut=Math.max((j?j.height:K.shape.height)-W[0]-W[2],0);(X.width!==ot||X.height!==ut)&&G.setStyle({width:ot,height:ut})},X.truncateMinChar=2,X.lineOverflow="truncate",ht(X,j,f);var J=G.getState("emphasis");ht(J?J.style:null,j,f)}}function ht(K,H,tt){var j=K?K.text:null;if(!H&&tt.isLeafRoot&&j!=null){var lt=r.get("drillDownIcon",!0);K.text=lt?lt+" "+j:j}}function gt(K,H,tt,j){var lt=m!=null&&e[K][m],R=i[K];return lt?(e[K][m]=null,Et(R,lt)):g||(lt=new H,lt instanceof Yr&&(lt.z2=S9(tt,j)),U(R,lt)),t[K][y]=lt}function Et(K,H){var tt=K[y]={};H instanceof Bm?(tt.oldX=H.x,tt.oldY=H.y):tt.oldShape=F({},H.shape)}function U(K,H){var tt=K[y]={},j=o.parentNode,lt=H instanceof _t;if(j&&(!n||n.direction==="drillDown")){var R=0,k=0,G=i.background[j.getRawIndex()];!n&&G&&G.oldShape&&(R=G.oldShape.width,k=G.oldShape.height),lt?(tt.oldX=0,tt.oldY=k):tt.oldShape={x:R,y:k,width:0,height:0}}tt.fadein=!lt}}function S9(r,t){return r*p9+t}const x9=m9;var af=M,b9=yt,uv=-1,u1=function(){function r(t){var e=t.mappingMethod,n=t.type,i=this.option=mt(t);this.type=n,this.mappingMethod=e,this._normalizeData=A9[e];var a=r.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[e],e==="piecewise"?(gg(i),w9(i)):e==="category"?i.categories?T9(i):gg(i,!0):(or(e!=="linear"||i.dataExtent),gg(i))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return at(this._normalizeData,this)},r.listVisualTypes=function(){return kt(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){yt(t)?M(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var i,a=Y(t)?[]:yt(t)?{}:(i=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(n,o,s);i?a=l:a[s]=l}),a},r.retrieveVisuals=function(t){var e={},n;return t&&af(r.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(e[a]=t[a],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(b9(t)){var e=[];af(t,function(n,i){e.push(i)}),t=e}else return[];return t.sort(function(n,i){return i==="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 i,a=1/0,o=0,s=e.length;o=0;a--)n[a]==null&&(delete e[t[a]],t.pop())}function gg(r,t){var e=r.visual,n=[];yt(e)?af(e,function(a){n.push(a)}):e!=null&&n.push(e);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),FE(r,n)}function Dc(r){return{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("color",r(e("color"),i))},_normalizedToVisual:zm([0,1])}}function SA(r){var t=this.option.visual;return t[Math.round(Ut(r,[0,1],[0,t.length-1],!0))]||{}}function Fl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function nu(r){var t=this.option.visual;return t[this.option.loop&&r!==uv?r%t.length:r]}function Za(){return this.option.visual[0]}function zm(r){return{linear:function(t){return Ut(t,r,this.option.visual,!0)},category:nu,piecewise:function(t,e){var n=Gm.call(this,e);return n==null&&(n=Ut(t,r,this.option.visual,!0)),n},fixed:Za}}function Gm(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=u1.findPieceIndex(r,e),i=e[n];if(i&&i.visual)return i.visual[this.type]}}function FE(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Z(t,function(e){var n=Mr(e);return n||[0,0,0,1]})),t}var A9={linear:function(r){return Ut(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=u1.findPieceIndex(r,t,!0);if(e!=null)return Ut(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?uv:t},fixed:de};function Ic(r,t,e){return r?t<=e:t=e.length||p===e[p.depth]){var y=P9(i,l,p,g,d,n);WE(p,y,e,n)}})}}}function D9(r,t,e){var n=F({},t),i=e.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=r.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function xA(r){var t=yg(r,"color");if(t){var e=yg(r,"colorAlpha"),n=yg(r,"colorSaturation");return n&&(t=pu(t,null,null,n)),e&&(t=Eh(t,e)),t}}function I9(r,t){return t!=null?pu(t,null,null,r):null}function yg(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function L9(r,t,e,n,i,a){if(!(!a||!a.length)){var o=mg(t,"color")||i.color!=null&&i.color!=="none"&&(mg(t,"colorAlpha")||mg(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 ze(c);return HE(h).drColorMappingBy=f,h}}}function mg(r,t){var e=r.get(t);return Y(e)&&e.length?{name:t,range:e}:null}function P9(r,t,e,n,i,a){var o=F({},t);if(i){var s=i.type,l=s==="color"&&HE(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var of=Math.max,fv=Math.min,bA=Re,f1=M,$E=["itemStyle","borderWidth"],R9=["itemStyle","gapWidth"],E9=["upperLabel","show"],k9=["upperLabel","height"];const O9={seriesType:"treemap",reset:function(r,t,e,n){var i=e.getWidth(),a=e.getHeight(),o=r.option,s=be(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=et(bA(s.width,l[0]),i),f=et(bA(s.height,l[1]),a),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=nf(n,h,r),d=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,p=r.getViewRoot(),g=BE(p);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?F9(r,v,p,u,f):d?[d.width,d.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(S),UE(p,_,!1,0),S=p.getLayout(),f1(g,function(b,w){var T=(g[w+1]||p).getValue();b.setLayout(F({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var x=r.getData().tree.root;x.setLayout(H9(s,d,v),!0),r.setLayoutInfo(s),YE(x,new Mt(-s.x,-s.y,i,a),g,p,0)}};function UE(r,t,e,n){var i,a;if(!r.isRemoved()){var o=r.getLayout();i=o.width,a=o.height;var s=r.getModel(),l=s.get($E),u=s.get(R9)/2,f=ZE(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),i=of(i-2*h,0),a=of(a-h-v,0);var d=i*a,p=N9(r,s,d,t,e,n);if(p.length){var g={x:h,y:v,width:i,height:a},y=fv(i,a),m=1/0,_=[];_.area=0;for(var S=0,x=p.length;S=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/e*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function G9(r,t,e){for(var n=0,i=1/0,a=0,o=void 0,s=r.length;an&&(n=o));var l=r.area*r.area,u=t*t*e;return l?of(u*n/l,l/(u*i)):1/0}function wA(r,t,e,n,i){var a=t===e.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=e[s[a]],f=t?r.area/t:0;(i||f>e[l[o]])&&(f=e[l[o]]);for(var c=0,h=r.length;cOx&&(u=Ox),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(x[0]=-x[0],x[1]=-x[1]);var w=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0].8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*y+f[0],a.y=-h[1]*m+f[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*w+f[0],a.y=f[1]+A,d=S[0]<0?"right":"left",a.originX=-y*w,a.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+A,d="center",a.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*w+c[0],a.y=c[1]+A,d=S[0]>=0?"right":"left",a.originX=y*w,a.originY=-A;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}},t}(_t);const d1=sZ;var lZ=function(){function r(t){this.group=new _t,this._LineCtor=t||d1}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=IA(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.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=IA(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!uZ(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function IA(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:De(t)}}function LA(r){return isNaN(r[0])||isNaN(r[1])}function wg(r){return r&&!LA(r[0])&&!LA(r[1])}const p1=lZ;var Tg=[],Ag=[],Cg=[],is=Le,Mg=po,PA=Math.abs;function RA(r,t,e){for(var n=r[0],i=r[1],a=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){Tg[0]=is(n[0],i[0],a[0],f),Tg[1]=is(n[1],i[1],a[1],f);var c=PA(Mg(Tg,t)-l);c=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Dg(r,t){var e=[],n=Bu,i=[[],[],[]],a=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[si(u[0]),si(u[1])],u[2]&&u.__original.push(si(u[2])));var h=u.__original;if(u[2]!=null){if(tr(i[0],h[0]),tr(i[1],h[2]),tr(i[2],h[1]),f&&f!=="none"){var v=au(s.node1),d=RA(i,h[0],v*t);n(i[0][0],i[1][0],i[2][0],d,e),i[0][0]=e[3],i[1][0]=e[4],n(i[0][1],i[1][1],i[2][1],d,e),i[0][1]=e[3],i[1][1]=e[4]}if(c&&c!=="none"){var v=au(s.node2),d=RA(i,h[1],v*t);n(i[0][0],i[1][0],i[2][0],d,e),i[1][0]=e[1],i[2][0]=e[2],n(i[0][1],i[1][1],i[2][1],d,e),i[1][1]=e[1],i[2][1]=e[2]}tr(u[0],i[0]),tr(u[1],i[2]),tr(u[2],i[1])}else{if(tr(a[0],h[0]),tr(a[1],h[1]),no(o,a[1],a[0]),Ks(o,o),f&&f!=="none"){var v=au(s.node1);Dy(a[0],a[0],o,v*t)}if(c&&c!=="none"){var v=au(s.node2);Dy(a[1],a[1],o,-v*t)}tr(u[0],a[0]),tr(u[1],a[1])}})}function EA(r){return r.type==="view"}var fZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){var i=new If,a=new p1,o=this.group;this._controller=new kf(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(e,n,i){var a=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(EA(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Ht(u,f,e)}Dg(e.getGraph(),iu(e));var c=e.getData();s.updateData(c);var h=e.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,n,i),clearTimeout(this._layoutTimeout);var v=e.forceLayout,d=e.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var p=e.get("layout");c.graph.eachNode(function(_){var S=_.dataIndex,x=_.getGraphicEl(),b=_.getModel();if(x){x.off("drag").off("dragend");var w=b.get("draggable");w&&x.on("drag",function(A){switch(p){case"force":v.warmUp(),!a._layouting&&a._startForceLayoutIteration(v,d),v.setFixed(S),c.setItemLayout(S,[x.x,x.y]);break;case"circular":c.setItemLayout(S,[x.x,x.y]),_.setLayout({fixed:!0},!0),v1(e,"symbolSize",_,[A.offsetX,A.offsetY]),a.updateLayout(e);break;case"none":default:c.setItemLayout(S,[x.x,x.y]),h1(e.getGraph(),e),a.updateLayout(e);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),x.setDraggable(w,!!b.get("cursor"));var T=b.get(["emphasis","focus"]);T==="adjacency"&&(St(x).focus=_.getAdjacentDataIndices())}}),c.graph.eachEdge(function(_){var S=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);S&&x==="adjacency"&&(St(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(_){jE(_,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 i=this;(function a(){e.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(e,n,i){var a=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)&&!Sd(u,i,e)}),!EA(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){r1(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){n1(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),Dg(e.getGraph(),iu(e)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),i=iu(e);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(e){Dg(e.getGraph(),iu(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(ee);const cZ=fZ;function as(r){return"_EC_"+r}var hZ=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[as(t)]){var i=new Xa(t,e);return i.hostGraph=this,this.nodes.push(i),n[as(t)]=i,i}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[as(t)]},r.prototype.addEdge=function(t,e,n){var i=this._nodesMap,a=this._edgesMap;if(Ft(t)&&(t=this.nodes[t]),Ft(e)&&(e=this.nodes[e]),t instanceof Xa||(t=i[as(t)]),e instanceof Xa||(e=i[as(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new QE(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),a[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 Xa&&(t=t.id),e instanceof Xa&&(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,i=n.length,a=0;a=0&&t.call(e,n[a],a)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(e,n[a],a)},r.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof Xa||(e=this._nodesMap[as(e)]),!!e){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=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(Xa,tk("hostGraph","data"));me(QE,tk("hostGraph","edgeData"));const vZ=hZ;function ek(r,t,e,n,i){for(var a=new vZ(n),o=0;o "+h)),u++)}var v=e.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=Ai(r,e);else{var p=Tf.get(v),g=p?p.dimensions||[]:[];Dt(g,"value")<0&&g.concat(["value"]);var y=Cf(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new ar(y,e),d.initData(r)}var m=new ar(["value"],e);return m.initData(l,s),i&&i(d,m),NE({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var dZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Ef(i,i),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),Ao(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var i=e.edges||e.links||[],a=e.data||e.nodes||[],o=this;if(a&&i){q9(this);var s=ek(a,i,this,!0,l);return M(s.edges,function(u){K9(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=te.prototype.getModel;function h(d,p){var g=c.call(this,d,p);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},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,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(e,i),s=a.graph.getEdgeByIndex(e),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Ie("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=Z(this.option.categories||[],function(i){return i.value!=null?i:F({value:0},i)}),n=new ar(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},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}(le);const pZ=dZ;var gZ={type:"graphRoam",event:"graphRoam",update:"none"};function yZ(r){r.registerChartView(cZ),r.registerSeriesModel(pZ),r.registerProcessor($9),r.registerVisual(U9),r.registerVisual(Y9),r.registerLayout(j9),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Q9),r.registerLayout(eZ),r.registerCoordinateSystem("graphView",{dimensions:Of.dimensions,create:nZ}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},de),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},de),r.registerAction(gZ,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=a1(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var mZ=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),_Z=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new mZ},t.prototype.buildPath=function(e,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),f=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(n.x+i(l)*s,n.y+a(l)*s),e.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),e.lineTo(n.x-i(l)*s,n.y-a(l)*s),e.lineTo(u,f)},t}(Pt);const SZ=_Z;function xZ(r,t){var e=r.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=et(e[0],t.getWidth()),s=et(e[1],t.getHeight()),l=et(r.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Pc(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var bZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeAll();var a=e.get(["axisLine","lineStyle","color"]),o=xZ(e,i);this._renderMain(e,n,i,a,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,i,a,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),h=c.get("roundCap"),v=h?av:gr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];n_(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;d&&x=A&&(C===0?0:a[C-1][0])Math.PI/2&&(ht+=Math.PI)):ct==="tangential"?ht=-T-Math.PI/2:Ft(ct)&&(ht=ct*Math.PI/180),ht===0?c.add(new Gt({style:Qt(_,{text:z,x:q,y:Q,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:$}),silent:!0})):c.add(new Gt({style:Qt(_,{text:z,x:q,y:Q,verticalAlign:"middle",align:"center"},{inheritColor:$}),silent:!0,originX:q,originY:Q,rotation:ht}))}if(m.get("show")&&O!==S){var V=m.get("distance");V=V?V+f:f;for(var gt=0;gt<=x;gt++){P=Math.cos(T),E=Math.sin(T);var Et=new Ee({shape:{x1:P*(d-V)+h,y1:E*(d-V)+v,x2:P*(d-w-V)+h,y2:E*(d-w-V)+v},silent:!0,style:I});I.stroke==="auto"&&Et.setStyle({stroke:a((O+gt/x)/S)}),c.add(Et),T+=C}T-=C}else T+=A}},t.prototype._renderPointer=function(e,n,i,a,o,s,l,u,f){var c=this.group,h=this._data,v=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),x=+e.get("max"),b=[S,x],w=[s,l];function T(C,D){var I=m.getItemModel(C),L=I.getModel("pointer"),P=et(L.get("width"),o.r),E=et(L.get("length"),o.r),O=e.get(["pointer","icon"]),V=L.get("offsetCenter"),N=et(V[0],o.r),z=et(V[1],o.r),$=L.get("keepAspect"),q;return O?q=ye(O,N-P/2,z-E,P,E,null,$):q=new SZ({shape:{angle:-Math.PI/2,width:P,r:E,x:N,y:z}}),q.rotation=-(D+Math.PI/2),q.x=o.cx,q.y=o.cy,q}function A(C,D){var I=g.get("roundCap"),L=I?av:gr,P=g.get("overlap"),E=P?g.get("width"):f/m.count(),O=P?o.r-E:o.r-(C+1)*E,V=P?o.r:o.r-C*E,N=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:V}});return P&&(N.z2=Ut(m.get(_,C),[S,x],[100,0],!0)),N}(y||p)&&(m.diff(h).add(function(C){var D=m.get(_,C);if(p){var I=T(C,s);ae(I,{rotation:-((isNaN(+D)?w[0]:Ut(D,b,w,!0))+Math.PI/2)},e),c.add(I),m.setItemGraphicEl(C,I)}if(y){var L=A(C,s),P=g.get("clip");ae(L,{shape:{endAngle:Ut(D,b,w,P)}},e),c.add(L),em(e.seriesIndex,m.dataType,C,L),d[C]=L}}).update(function(C,D){var I=m.get(_,C);if(p){var L=h.getItemGraphicEl(D),P=L?L.rotation:s,E=T(C,P);E.rotation=P,Ht(E,{rotation:-((isNaN(+I)?w[0]:Ut(I,b,w,!0))+Math.PI/2)},e),c.add(E),m.setItemGraphicEl(C,E)}if(y){var O=v[D],V=O?O.shape.endAngle:s,N=A(C,V),z=g.get("clip");Ht(N,{shape:{endAngle:Ut(I,b,w,z)}},e),c.add(N),em(e.seriesIndex,m.dataType,C,N),d[C]=N}}).execute(),m.each(function(C){var D=m.getItemModel(C),I=D.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),E=I.get("disabled");if(p){var O=m.getItemGraphicEl(C),V=m.getItemVisual(C,"style"),N=V.fill;if(O instanceof He){var z=O.style;O.useStyle(F({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},V))}else O.useStyle(V),O.type!=="pointer"&&O.setColor(N);O.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",a(Ut(m.get(_,C),b,[0,1],!0))),O.z2EmphasisLift=0,Ge(O,D),ue(O,L,P,E)}if(y){var $=d[C];$.useStyle(m.getItemVisual(C,"style")),$.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),$.z2EmphasisLift=0,Ge($,D),ue($,L,P,E)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,n){var i=e.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),f=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=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,n,i,a,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),c=+e.get("max"),h=new _t,v=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new Gt({silent:!0}),d[y]=new Gt({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new _t,x=a(Ut(_,[f,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),T=o.cx+et(w[0],o.r),A=o.cy+et(w[1],o.r),C=v[y];C.attr({z2:g?0:2,style:Qt(b,{x:T,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(C)}var D=m.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+et(I[0],o.r),P=o.cy+et(I[1],o.r),E=et(D.get("width"),o.r),O=et(D.get("height"),o.r),V=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,C=d[y],N=D.get("formatter");C.attr({z2:g?0:2,style:Qt(D,{x:L,y:P,text:Pc(_,N),width:isNaN(E)?null:E,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:V})}),bP(C,{normal:D},_,function($){return Pc($,N)}),p&&wP(C,y,l,e,{getFormattedLabel:function($,q,Q,ct,ht,gt){return Pc(gt?gt.interpolatedValue:_,N)}}),S.add(C)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=d},t.type="gauge",t}(ee);const wZ=bZ;var TZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return cl(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}(le);const AZ=TZ;function CZ(r){r.registerChartView(wZ),r.registerSeriesModel(AZ)}var MZ=["itemStyle","opacity"],DZ=function(r){B(t,r);function t(e,n){var i=r.call(this)||this,a=i,o=new mr,s=new Gt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return t.prototype.updateData=function(e,n,i){var a=this,o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(MZ);f=f==null?1:f,i||pn(a),a.useStyle(e.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,ae(a,{style:{opacity:f}},o,n)):Ht(a,{style:{opacity:f},shape:{points:l.points}},o,n),Ge(a,s),this._updateLabel(e,n),ue(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=e.hostModel,l=e.getItemModel(n),u=e.getItemLayout(n),f=u.label,c=e.getItemVisual(n,"style"),h=c.fill;Fe(o,De(l),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:e.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:h,outsideFill:h});var v=f.linePoints;a.setShape({points:v}),i.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}),Y_(i,Z_(l),{stroke:h})},t}(yr),IZ=function(r){B(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,i){var a=e.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new DZ(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,l),s.add(f),a.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Yu(u,e,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(ee);const LZ=IZ;var PZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ef(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return cl(this,{coordDimensions:["value"],encodeDefaulter:bt(b_,this)})},t.prototype._defaultLabelLine=function(e){Ao(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),i=r.prototype.getDataParams.call(this,e),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},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}(le);const RZ=PZ;function EZ(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function kZ(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(l){return l}),i=[],a=t==="ascending",o=0,s=r.count();oQZ)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Lg(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 Lg(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const rX=tX;var nX=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Tt(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var i=e.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){M(["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=[],i=$t(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);M(i,function(a){e.push("dim"+a.get("dim")),n.push(a.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}(Bt);const iX=nX;var aX=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(yn);const oX=aX;function Fo(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=os(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=os(s,[0,o]),i=a=os(s,[i,a]),n=0}t[0]=os(t[0],e),t[1]=os(t[1],e);var l=Pg(t,n);t[n]+=r;var u=i||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=os(t[n],f);var c;return c=Pg(t,n),i!=null&&(c.sign!==l.sign||c.spana&&(t[1-n]=t[n]+c.sign*a),t}function Pg(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 os(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Rg=M,nk=Math.min,ik=Math.max,NA=Math.floor,sX=Math.ceil,VA=ce,lX=Math.PI,uX=function(){function r(t,e,n){this.type="parallel",this._axesMap=ft(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var i=t.dimensions,a=t.parallelAxisIndex;Rg(i,function(o,s){var l=a[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new oX(o,md(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,i=e.layoutBase,a=e.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+e.axisLength&&s>=i&&s<=i+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 i=n.getData();Rg(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Ws(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=be(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"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=e[i[o]],l=[0,s],u=this.dimensions.length,f=Rc(t.get("axisExpandWidth"),l),c=Rc(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=Rc(v[1]-v[0],l),v[1]=v[0]+d;else{d=Rc(f*(c-1),l);var p=t.get("axisExpandCenter")||NA(u/2);v=[f*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[NA(VA(v[0]/f,1))+1,sX(VA(v[1]/f,1))-1],m=g/f*v[0];return{layout:a,pixelDimIndex:o,layoutBase:e[n[o]],layoutLength:s,axisBase:e[n[1-o]],axisLength:e[i[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,i=this._makeLayoutInfo(),a=i.layout;e.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Rg(n,function(o,s){var l=(i.axisExpandable?cX:fX)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:lX/2,vertical:0},c=[u[a].x+t.x,u[a].y+t.y],h=f[a],v=Cr();Eo(v,v,h),Hn(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,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;fa*(1-c[0])?(u="jump",l=s-a*(1-c[2])):(l=s-a*c[1])>=0&&(l=s-a*(1-c[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?Fo(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[ik(0,d-v/2)],i[1]=nk(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},r}();function Rc(r,t){return nk(ik(r,t[0]),t[1])}function fX(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function cX(r,t){var e=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,f;return r=0;i--)$r(n[i])},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 i=n[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var a=0,o=n.length;amX}function ck(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function hk(r,t,e,n){var i=new _t;return i.add(new Vt({name:"main",style:_1(e),silent:!0,draggable:!0,cursor:"move",drift:bt(FA,r,t,i,["n","s","w","e"]),ondragend:bt(Po,t,{isEnd:!0})})),M(n,function(a){i.add(new Vt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:bt(FA,r,t,i,a),ondragend:bt(Po,t,{isEnd:!0})}))}),i}function vk(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=Ys(i,_X),o=e[0][0],s=e[1][0],l=o-i/2,u=s-i/2,f=e[0][1],c=e[1][1],h=f-a+i/2,v=c-a+i/2,d=f-o,p=c-s,g=d+i,y=p+i;Jn(r,t,"main",o,s,d,p),n.transformable&&(Jn(r,t,"w",l,u,a,y),Jn(r,t,"e",h,u,a,y),Jn(r,t,"n",l,u,g,a),Jn(r,t,"s",l,v,g,a),Jn(r,t,"nw",l,u,a,a),Jn(r,t,"ne",h,u,a,a),Jn(r,t,"sw",l,v,a,a),Jn(r,t,"se",h,v,a,a))}function Um(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(_1(e)),i.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Ym(r,a[0]):CX(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?xX[s]+"-resize":null})})}function Jn(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(DX(S1(r,t,[[n,i],[n+a,i+o]])))}function _1(r){return pt({strokeNoScale:!0},r.brushStyle)}function dk(r,t,e,n){var i=[lf(r,e),lf(t,n)],a=[Ys(r,e),Ys(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function AX(r){return So(r.group)}function Ym(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=rd(e[t],AX(r));return n[i]}function CX(r,t){var e=[Ym(r,t[0]),Ym(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function FA(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=pk(t,i,a);M(n,function(u){var f=SX[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(dk(s[0][0],s[1][0],s[0][1],s[1][1])),g1(t,e),Po(t,{isEnd:!1})}function MX(r,t,e,n){var i=t.__brushOption.range,a=pk(r,e,n);M(i,function(o){o[0]+=a[0],o[1]+=a[1]}),g1(r,t),Po(r,{isEnd:!1})}function pk(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function S1(r,t,e){var n=fk(r,t);return n&&n!==Lo?n.clipPath(e,r._transform):mt(e)}function DX(r){var t=lf(r[0][0],r[1][0]),e=lf(r[0][1],r[1][1]),n=Ys(r[0][0],r[1][0]),i=Ys(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function IX(r,t,e){if(!(!r._brushType||PX(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=m1(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var Td={lineX:$A(0),lineY:$A(1),rect:{createCover:function(r,t){function e(n){return n}return hk({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=ck(r);return dk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){vk(r,t,e,n)},updateCommon:Um,contain:Xm},polygon:{createCover:function(r,t){var e=new _t;return e.add(new mr({name:"main",style:_1(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new yr({name:"main",draggable:!0,drift:bt(MX,r,t),ondragend:bt(Po,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:S1(r,t,e)})},updateCommon:Um,contain:Xm}};function $A(r){return{createCover:function(t,e){return hk({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=ck(t),n=lf(e[0][r],e[1][r]),i=Ys(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=fk(t,e);if(o!==Lo&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),vk(t,e,l,i)},updateCommon:Um,contain:Xm}}const x1=wX;function yk(r){return r=b1(r),function(t){return _P(t,r)}}function mk(r,t){return r=b1(r),function(e){var n=t!=null?t:e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function _k(r,t,e){var n=b1(r);return function(i,a){return n.contain(a[0],a[1])&&!Sd(i,t,e)}}function b1(r){return Mt.create(r)}var RX=["axisLine","axisTickLabel","axisName"],EX=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new x1(n.getZr())).on("brush",at(this._onBrush,this))},t.prototype.render=function(e,n,i,a){if(!kX(e,n,a)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var s=NX(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,c=e.axis.dim,h=l.getAxisLayout(c),v=F({strokeContainThreshold:f},h),d=new xi(e,v);M(RX,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,e,s,f,i),bf(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,i,a,o,s){var l=i.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:yk(c),isTargetByCursor:_k(c,s,a),getLinearBrushOtherExtent:mk(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(OX(i))},t.prototype._onBrush=function(e){var n=e.areas,i=this.axisModel,a=i.axis,o=Z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(fe);function kX(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function OX(r){var t=r.axis;return Z(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function NX(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const VX=EX;var BX={type:"axisAreaSelect",event:"axisAreaSelected"};function zX(r){r.registerAction(BX,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 GX={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Sk(r){r.registerComponentView(rX),r.registerComponentModel(iX),r.registerCoordinateSystem("parallel",pX),r.registerPreprocessor(KZ),r.registerComponentModel(BA),r.registerComponentView(VX),Us(r,"parallel",BA,GX),zX(r)}function FX(r){Lt(Sk),r.registerChartView(HZ),r.registerSeriesModel(YZ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,qZ)}var HX=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}(),WX=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new HX},t.prototype.buildPath=function(e,n){var i=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+i,n.y2),e.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(e.lineTo(n.x2,n.y2+i),e.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),e.closePath()},t.prototype.highlight=function(){mi(this)},t.prototype.downplay=function(){_i(this)},t}(Pt),$X=function(r){B(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,i){var a=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(d){var p=new WX,g=St(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),x=d.node1.getModel(),b=x.get("localX"),w=x.get("localY"),T=d.node2.getLayout(),A=d.node2.getModel(),C=A.get("localX"),D=A.get("localY"),I=d.getLayout(),L,P,E,O,V,N,z,$;p.shape.extent=Math.max(1,I.dy),p.shape.orient=v,v==="vertical"?(L=(b!=null?b*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,E=(C!=null?C*u:T.x)+I.ty,O=D!=null?D*f:T.y,V=L,N=P*(1-_)+O*_,z=E,$=P*_+O*(1-_)):(L=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,E=C!=null?C*u:T.x,O=(D!=null?D*f:T.y)+I.ty,V=L*(1-_)+E*_,N=P,z=L*_+E*(1-_),$=O),p.setShape({x1:L,y1:P,x2:E,y2:O,cpx1:V,cpy1:N,cpx2:z,cpy2:$}),p.useStyle(m.getItemStyle()),UA(p.style,v,d);var q=""+y.get("value"),Q=De(y,"edgeLabel");Fe(p,Q,{labelFetcher:{getFormattedLabel:function(gt,Et,U,K,H,tt){return e.getFormattedLabel(gt,Et,"edge",K,Bn(H,Q.normal&&Q.normal.get("formatter"),q),tt)}},labelDataIndex:d.dataIndex,defaultText:q}),p.setTextConfig({position:"inside"});var ct=y.getModel("emphasis");Ge(p,y,"lineStyle",function(gt){var Et=gt.getItemStyle();return UA(Et,v,d),Et}),s.add(p),h.setItemGraphicEl(d.dataIndex,p);var ht=ct.get("focus");ue(p,ht==="adjacency"?d.getAdjacentDataIndices():ht==="trajectory"?d.getTrajectoryDataIndices():ht,ct.get("blurScope"),ct.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,x=new Vt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});Fe(x,De(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),x.disableLabelAnimation=!0,x.setStyle("fill",d.getVisual("color")),x.setStyle("decal",d.getVisual("style").decal),Ge(x,g),s.add(x),c.setItemGraphicEl(d.dataIndex,x),St(x).dataType="node";var b=_.get("focus");ue(x,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(d,p){var g=c.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){a._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){a._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(UX(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(ee);function UA(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"),i=e.node2.getVisual("color");nt(n)&&nt(i)&&(r.fill=new xf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function UX(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}const YX=$X;var ZX=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){var i=e.edges||e.links||[],a=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new te(o[l],this,n));var u=ek(a,i,this,!0,f);return u.data;function f(c,h){c.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(v.parentModel=_)}return v})}},t.prototype.setNodePosition=function(e,n){var i=this.option.data||this.option.nodes,a=i[e];a.localX=n[0],a.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,i){function a(v){return isNaN(v)||v==null}if(i==="edge"){var o=this.getDataParams(e,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Ie("nameValue",{name:u,value:l,noValue:a(l)})}else{var f=this.getGraph().getNodeByIndex(e),c=f.getLayout().value,h=this.getDataParams(e,i).data.name;return Ie("nameValue",{name:h!=null?h+"":null,value:c,noValue:a(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var i=r.prototype.getDataParams.call(this,e,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(e),o=a.getLayout().value;i.value=o}return i},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}(le);const XX=ZX;function qX(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),a=KX(e,t);e.layoutInfo=a;var o=a.width,s=a.height,l=e.getGraph(),u=l.nodes,f=l.edges;JX(u);var c=$t(u,function(p){return p.getLayout().value===0}),h=c.length!==0?0:e.get("layoutIterations"),v=e.get("orient"),d=e.get("nodeAlign");jX(u,f,n,i,o,s,h,v,d)})}function KX(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function jX(r,t,e,n,i,a,o,s,l){QX(r,t,e,i,a,s,l),nq(r,t,a,i,n,o,s),hq(r,s)}function JX(r){M(r,function(t){var e=ra(t.outEdges,cv),n=ra(t.inEdges,cv),i=t.getValue()||0,a=Math.max(e,n,i);t.setLayout({value:a},!0)})}function QX(r,t,e,n,i,a,o){for(var s=[],l=[],u=[],f=[],c=0,h=0;h=0;y&&g.depth>v&&(v=g.depth),p.setLayout({depth:y?g.depth:c},!0),a==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;mc-1?v:c-1;o&&o!=="left"&&tq(r,o,a,w);var T=a==="vertical"?(i-e)/w:(n-e)/w;rq(r,T,a)}function xk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function tq(r,t,e,n){if(t==="right"){for(var i=[],a=r,o=0;a.length;){for(var s=0;s0;a--)l*=.99,oq(s,l,o),Eg(s,i,e,n,o),cq(s,l,o),Eg(s,i,e,n,o)}function iq(r,t){var e=[],n=t==="vertical"?"y":"x",i=jy(r,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),M(i.keys,function(a){e.push(i.buckets.get(a))}),e}function aq(r,t,e,n,i,a){var o=1/0;M(r,function(s){var l=s.length,u=0;M(s,function(c){u+=c.getLayout().value});var f=a==="vertical"?(n-(l-1)*i)/u:(e-(l-1)*i)/u;f0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[a]+l.getLayout()[h]+t;var d=i==="vertical"?n:e;if(u=f-t-d,u>0){s=l.getLayout()[a]-u,i==="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()[a]+l.getLayout()[h]+t-f,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[a]}})}function oq(r,t,e){M(r.slice().reverse(),function(n){M(n,function(i){if(i.outEdges.length){var a=ra(i.outEdges,sq,e)/ra(i.outEdges,cv);if(isNaN(a)){var o=i.outEdges.length;a=o?ra(i.outEdges,lq,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(a-fa(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-fa(i,e))*t;i.setLayout({y:l},!0)}}})})}function sq(r,t){return fa(r.node2,t)*r.getValue()}function lq(r,t){return fa(r.node2,t)}function uq(r,t){return fa(r.node1,t)*r.getValue()}function fq(r,t){return fa(r.node1,t)}function fa(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function cv(r){return r.getValue()}function ra(r,t,e){for(var n=0,i=r.length,a=-1;++ao&&(o=l)}),M(n,function(s){var l=new ze({type:"color",mappingMethod:"linear",dataExtent:[a,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}))})}i.length&&M(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function dq(r){r.registerChartView(YX),r.registerSeriesModel(XX),r.registerLayout(qX),r.registerVisual(vq),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 bk=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var n,i=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("y")):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=[i,a],d=v[f].get("type"),p=v[1-f].get("type"),g=t.data;if(g&&l){var y=[];M(g,function(S,x){var b;Y(S)?(b=S.slice(),S.unshift(x)):Y(S.value)?(b=F({},S),b.value=b.value.slice(),S.value.unshift(x)):b=S,y.push(b)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:Qh(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Qh(p),dimsDef:m.slice()}];return cl(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:bt(UP,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),wk=function(r){B(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}(le);me(wk,bk,!0);const pq=wk;var gq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var f=a.getItemLayout(u),c=YA(f,a,u,l,!0);a.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!a.hasValue(u)){o.remove(c);return}var h=a.getItemLayout(u);c?(pn(c),Tk(h,c,a,u)):c=YA(h,a,u,l),o.add(c),a.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=a},t.prototype.remove=function(e){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(ee),yq=function(){function r(){}return r}(),mq=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new yq},t.prototype.buildPath=function(e,n){var i=n.points,a=0;for(e.moveTo(i[a][0],i[a][1]),a++;a<4;a++)e.lineTo(i[a][0],i[a][1]);for(e.closePath();ap){var S=[y,_];n.push(S)}}}return{boxData:e,outliers:n}}var Cq={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Ke){var n="";Wt(n)}var i=Aq(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Mq(r){r.registerSeriesModel(pq),r.registerChartView(Sq),r.registerLayout(xq),r.registerTransform(Cq)}var Dq=["itemStyle","borderColor"],Iq=["itemStyle","borderColor0"],Lq=["itemStyle","borderColorDoji"],Pq=["itemStyle","color"],Rq=["itemStyle","color0"];function w1(r,t){return t.get(r>0?Pq:Rq)}function T1(r,t){return t.get(r===0?Lq:r>0?Dq:Iq)}var Eq={seriesType:"candlestick",plan:sl(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(n,i){for(var a;(a=n.next())!=null;){var o=i.getItemModel(a),s=i.getItemLayout(a).sign,l=o.getItemStyle();l.fill=w1(s,o),l.stroke=T1(s,o)||l.fill;var u=i.ensureUniqueItemVisual(a,"style");F(u,l)}}}}}};const kq=Eq;var Oq=["color","borderColor"],Nq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){pa(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(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&ZA(u,c))return;var h=kg(c,f,!0);ae(h,{shape:{points:c.ends}},e,f),Og(h,n,f,o),a.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=i.getItemGraphicEl(c);if(!n.hasValue(f)){a.remove(h);return}var v=n.getItemLayout(f);if(s&&ZA(u,v)){a.remove(h);return}h?(Ht(h,{shape:{points:v.ends}},e,f),pn(h)):h=kg(v),Og(h,n,f,o),a.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=i.getItemGraphicEl(f);c&&a.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),XA(e,this.group);var n=e.get("clip",!0)?Lf(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),l=kg(s);Og(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){XA(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}(ee),Vq=function(){function r(){}return r}(),Bq=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Vq},t.prototype.buildPath=function(e,n){var i=n.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t}(Pt);function kg(r,t,e){var n=r.ends;return new Bq({shape:{points:e?zq(n,r):n},z2:100})}function ZA(r,t){for(var e=!0,n=0;nx?D[a]:C[a],ends:P,brushRect:z(b,w,_)})}function V(q,Q){var ct=[];return ct[i]=Q,ct[a]=q,isNaN(Q)||isNaN(q)?[NaN,NaN]:t.dataToPoint(ct)}function N(q,Q,ct){var ht=Q.slice(),gt=Q.slice();ht[i]=sh(ht[i]+n/2,1,!1),gt[i]=sh(gt[i]-n/2,1,!0),ct?q.push(ht,gt):q.push(gt,ht)}function z(q,Q,ct){var ht=V(q,ct),gt=V(Q,ct);return ht[i]-=n/2,gt[i]-=n/2,{x:ht[0],y:ht[1],width:n,height:gt[1]-ht[1]}}function $(q){return q[i]=sh(q[i],1),q}}function d(p,g){for(var y=Nn(p.count*4),m=0,_,S=[],x=[],b,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var A=w.get(s,b),C=w.get(u,b),D=w.get(f,b),I=w.get(c,b),L=w.get(h,b);if(isNaN(A)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=qA(w,b,C,D,f,T),S[i]=A,S[a]=I,_=t.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[a]=L,_=t.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function qA(r,t,e,n,i,a){var o;return e>n?o=-1:e0?r.get(i,t-1)<=n?1:-1:1,o}function Uq(r,t){var e=r.getBaseAxis(),n,i=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=et(xt(r.get("barMaxWidth"),i),i),o=et(xt(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?et(s,i):Math.max(Math.min(i/2,a),o)}const Yq=$q;function Zq(r){r.registerChartView(Fq),r.registerSeriesModel(Hq),r.registerPreprocessor(Wq),r.registerVisual(kq),r.registerLayout(Yq)}function KA(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 Xq=function(r){B(t,r);function t(e,n){var i=r.call(this)||this,a=new Df(e,n),o=new _t;return i.add(a),i.add(o),i.updateData(e,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,i=e.color,a=e.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;vt(c)?h=c(i):h=c,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,n,i,a,o){if(n>0){e.__t=0;var s=this,l=e.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(e)});a||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return $i(e.__p1,e.__cp1)+$i(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,i){this.childAt(0).updateData(e,n,i),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,i=e.__p2,a=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Le,f=Ny;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var c=e.__t<1?f(n[0],a[0],i[0],o):f(i[0],a[0],n[0],1-o),h=e.__t<1?f(n[1],a[1],i[1],o):f(i[1],a[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&&!(a[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-a[l])/(a[l+1]-a[l]),c=i[l],h=i[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],d=e.__t<1?h[1]-c[1]:c[1]-h[1];e.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,e.ignore=!1}},t}(Ck);const iK=nK;var aK=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),oK=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new aK},t.prototype.buildPath=function(e,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){e.moveTo(i[o++],i[o++]);for(var l=1;l0){var v=(u+c)/2-(f-h)*a,d=(f+h)/2-(c-u)*a;e.quadraticCurveTo(v,d,c,h)}else e.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var c=a[u++],h=a[u++],v=1;v0){var g=(c+d)/2-(h-p)*o,y=(h+p)/2-(d-c)*o;if(RL(c,h,g,y,d,p,s,e,n))return l}else if(Hi(c,h,d,p,s,e,n))return l;l++}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.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,i=n.segs,a=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}();const lK=sK;var uK={seriesType:"lines",plan:sl(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(e){for(var u=0,f=i.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var c=e.get("clip",!0)&&Lf(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateLineDraw(a,e);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){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,i){var a=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Dk.reset(e,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new lK:new p1(o?a?iK:Mk:a?Ck:d1),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),i=n.painter.getType()==="svg";!i&&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}(ee);const cK=fK;var hK=typeof Uint32Array=="undefined"?Array:Uint32Array,vK=typeof Float64Array=="undefined"?Array:Float64Array;function jA(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Z(t,function(e){var n=[e[0].coord,e[1].coord],i={coords:n};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),H0([i,e[0],e[1]])}))}var dK=function(r){B(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||[],jA(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(jA(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=Vu(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Vu(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),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},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 i=this._flatCoordsOffset[e*2],a=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==null?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get("progressiveThreshold"):e},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}(le);const pK=dK;function Ec(r){return r instanceof Array||(r=[r,r]),r}var gK={seriesType:"lines",reset:function(r){var t=Ec(r.get("symbol")),e=Ec(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 i(a,o){var s=a.getItemModel(o),l=Ec(s.getShallow("symbol",!0)),u=Ec(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const yK=gK;function mK(r){r.registerChartView(cK),r.registerSeriesModel(pK),r.registerLayout(Dk),r.registerVisual(yK)}var _K=256,SK=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ia.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=t.length;c.width=e,c.height=n;for(var d=0;d0){var I=o(_)?l:u;_>0&&(_=_*C+T),x[b++]=I[D],x[b++]=I[D+1],x[b++]=I[D+2],x[b++]=I[D+3]*_*256}else b+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ia.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},r}();const xK=SK;function bK(r,t,e){var n=r[1]-r[0];t=Z(t,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function JA(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var TK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):JA(o)&&this._renderOnGeo(o,e,a,i)},t.prototype.incrementalPrepareRender=function(e,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,i,a){var o=n.coordinateSystem;o&&(JA(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){pa(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,i,a,o){var s=e.coordinateSystem,l=zo(s,"cartesian2d"),u,f,c,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,f=d.getBandWidth()+.5,c=v.scale.getExtent(),h=d.scale.getExtent()}for(var p=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"]),x=De(e),b=e.getModel("emphasis"),w=b.get("focus"),T=b.get("blurScope"),A=b.get("disabled"),C=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],D=i;Dc[1]||Eh[1])continue;var O=s.dataToPoint([P,E]);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(C[1],D)))continue;I=new Vt({z2:1,shape:s.dataToRect([g.get(C[0],D)]).contentShape,style:L})}if(g.hasItemOption){var V=g.getItemModel(D),N=V.getModel("emphasis");y=N.getModel("itemStyle").getItemStyle(),m=V.getModel(["blur","itemStyle"]).getItemStyle(),_=V.getModel(["select","itemStyle"]).getItemStyle(),S=V.get(["itemStyle","borderRadius"]),w=N.get("focus"),T=N.get("blurScope"),A=N.get("disabled"),x=De(V)}I.shape.r=S;var z=e.getRawValue(D),$="-";z&&z[2]!=null&&($=z[2]+""),Fe(I,x,{labelFetcher:e,labelDataIndex:D,defaultOpacity:L.opacity,defaultText:$}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=_,ue(I,w,T,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(D,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new xK;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),d=Math.min(f.width+f.x,a.getWidth()),p=Math.min(f.height+f.y,a.getHeight()),g=d-h,y=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,A){var C=e.dataToPoint([w,T]);return C[0]-=h,C[1]-=v,C.push(A),C}),S=i.getExtent(),x=i.type==="visualMap.continuous"?wK(S,i.option.range):bK(S,i.getPieceList(),i.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new He({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(ee);const AK=TK;var CK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Tf.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}(le);const MK=CK;function DK(r){r.registerChartView(AK),r.registerSeriesModel(MK)}var IK=["itemStyle","borderWidth"],QA=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Bg=new da,LK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:QA[+f],categoryDim:QA[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=eC(o,d),g=tC(o,d,p,h),y=rC(o,h,g);o.setItemGraphicEl(d,y),a.add(y),iC(y,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){a.remove(g);return}var y=eC(o,d),m=tC(o,d,y,h),_=kk(o,m);g&&_!==g.__pictorialShapeStr&&(a.remove(g),o.setItemGraphicEl(d,null),g=null),g?VK(g,h,m):g=rC(o,h,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,a.add(g),iC(g,h,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&nC(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=e.get("clip",!0)?Lf(e.coordinateSystem,!1,e):null;return v?a.setClipPath(v):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var i=this.group,a=this._data;e.get("animation")?a&&a.eachItemGraphicEl(function(o){nC(a,St(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t}(ee);function tC(r,t,e,n){var i=r.getItemLayout(t),a=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:i,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};PK(e,a,i,n,h),RK(r,t,i,a,o,h.boundingLength,h.pxSign,f,n,h),EK(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=Vo(e.get("symbolOffset"),v);return kK(e,v,i,a,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function PK(r,t,e,n,i){var a=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[a.wh]<=0),f;if(Y(o)){var c=[zg(s,o[0])-l,zg(s,o[1])-l];c[1]=0?1:-1:f>0?1:-1}function zg(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function RK(r,t,e,n,i,a,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(e[c.wh]),v=r.getItemVisual(t,"symbolSize"),d;Y(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[c.index]=et(d[c.index],h),d[f.index]=et(d[f.index],n?h:Math.abs(a)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function EK(r,t,e,n,i){var a=r.get(IK)||0;a&&(Bg.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Bg.updateTransform(),a/=Bg.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function kK(r,t,e,n,i,a,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,d=c.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var y=Math.abs(l),m=Re(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]),x=Math.max(p+S*2,0),b=_?0:S*2,w=mL(n),T=w?n:aC((y+b)/x),A=y-T*p;S=A/2/(_?T:Math.max(T-1,1)),x=p+S*2,b=_?0:S*2,!w&&n!=="fixed"&&(T=u?aC((Math.abs(u)+b)/x):0),g=T*x-b,c.repeatTimes=T,c.symbolMargin=S}var C=d*(g/2),D=c.pathPosition=[];D[h.index]=e[h.wh]/2,D[v.index]=o==="start"?C:o==="end"?l-C:l/2,a&&(D[0]+=a[0],D[1]+=a[1]);var I=c.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=c.barRectShape=F({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(D[v.index]+C)),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 Ik(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 Lk(r,t,e,n){var i=r.__pictorialBundle,a=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=a[t.valueDim.index]+o+e.symbolMargin*2;for(A1(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-p),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 Pk(r,t,e,n){var i=r.__pictorialBundle,a=r.__pictorialMainPath;a?Es(a,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(a=r.__pictorialMainPath=Ik(e),i.add(a),Es(a,{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 Rk(r,t,e){var n=F({},t.barRectShape),i=r.__pictorialBarRect;i?Es(i,null,{shape:n},t,e):(i=r.__pictorialBarRect=new Vt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function Ek(r,t,e,n){if(e.symbolClip){var i=r.__pictorialClipPath,a=F({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(i)Ht(i,{shape:a},s,l);else{a[o.wh]=0,i=new Vt({shape:a}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=e.clipShape[o.wh],Oo[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function eC(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=OK,e.isAnimationEnabled=NK,e}function OK(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function NK(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function rC(r,t,e,n){var i=new _t,a=new _t;return i.add(a),i.__pictorialBundle=a,a.x=e.bundlePosition[0],a.y=e.bundlePosition[1],e.symbolRepeat?Lk(i,t,e):Pk(i,t,e),Rk(i,e,n),Ek(i,t,e,n),i.__pictorialShapeStr=kk(r,e),i.__pictorialSymbolMeta=e,i}function VK(r,t,e){var n=e.animationModel,i=e.dataIndex,a=r.__pictorialBundle;Ht(a,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,i),e.symbolRepeat?Lk(r,t,e,!0):Pk(r,t,e,!0),Rk(r,e,!0),Ek(r,t,e,!0)}function nC(r,t,e,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];A1(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),M(a,function(o){oa(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function kk(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function A1(r,t,e){M(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Es(r,t,e,n,i,a){t&&r.attr(t),n.symbolClip&&!i?e&&r.attr(e):e&&Oo[i?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,a)}function iC(r,t,e){var n=e.dataIndex,i=e.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),f=a.get("focus"),c=a.get("blurScope"),h=a.get("scale");A1(r,function(p){if(p instanceof He){var g=p.style;p.useStyle(F({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,h&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Fe(d,De(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:$s(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),ue(r,f,c,a.get("disabled"))}function aC(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const BK=LK;var zK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=ga(iv.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}(iv);const GK=zK;function FK(r){r.registerChartView(BK),r.registerSeriesModel(GK),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(hR,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vR("pictorialBar"))}var HK=function(r){B(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,i){var a=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=a.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 Si(this._layersSeries||[],l,h,h),d=[];v.add(at(p,this,"add")).update(at(p,this,"update")).remove(at(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,w=l[y].indices,T=0;Ta&&(a=s),n.push(s)}for(var u=0;ua&&(a=c)}return{y0:i,max:a}}function qK(r){r.registerChartView($K),r.registerSeriesModel(YK),r.registerLayout(ZK),r.registerProcessor(Rf("themeRiver"))}var KK=2,jK=4,JK=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this)||this;o.z2=KK,o.textConfig={inside:!0},St(o).seriesIndex=n.seriesIndex;var s=new Gt({z2:jK,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,n,i,a),o}return t.prototype.updateData=function(e,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;St(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=F({},f);c.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=Hs(v,o));var d=fo(l.getModel("itemStyle"),c,!0);F(c,d),M(sr,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=fo(S,c);x&&(_.shape=x)}),e?(s.setShape(c),s.shape.r=f.r0,ae(s,{shape:{r:f.r}},i,n.dataIndex)):(Ht(s,{shape:c},i),pn(s)),s.useStyle(h),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),y=g==="relative"?Vu(n.getAncestorsIndices(),n.getDescendantIndices()):g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;ue(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,i=this.node.getModel(),a=i.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,d=a.get("minAngle")/180*Math.PI,p=a.get("show")&&!(d!=null&&Math.abs(s)P&&!Fu(O-P)&&O0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,n,i):(o.virtualPiece=new sC(m,e,n,i),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 i=!1,a=e.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&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";Uh(u,f)}}i=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:qm,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(ee);const rj=ej;var nj=function(r){B(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 i={name:e.name,children:e.data};Ok(i);var a=this._levelModels=Z(e.levels||[],function(l){return new te(l,this,n)},this),o=s1.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),h=a[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),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=bd(i,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(){zE(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}(le);function Ok(r){var t=0;M(r.children,function(n){Ok(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var e=r.value;Y(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Y(r.value)?r.value[0]=e:r.value=e}const ij=nj;var uC=Math.PI/180;function aj(r,t,e){t.eachSeriesByType(r,function(n){var i=n.get("center"),a=n.get("radius");Y(a)||(a=[0,a]),Y(i)||(i=[i,i]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=et(i[0],o),f=et(i[1],s),c=et(a[0],l/2),h=et(a[1],l/2),v=-n.get("startAngle")*uC,d=n.get("minAngle")*uC,p=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&Nk(g,m);var _=0;M(g.children,function(O){!isNaN(O.getValue())&&_++});var S=g.getValue(),x=Math.PI/(S||_)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(h-c)/(w||1),A=n.get("clockwise"),C=n.get("stillShowZeroSum"),D=A?1:-1,I=function(O,V){if(O){var N=V;if(O!==p){var z=O.getValue(),$=S===0&&C?x:z*x;$1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&nt(s)&&(s=zy(s,(n.depth-1)/(a-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");F(u,l)})})}function lj(r){r.registerChartView(rj),r.registerSeriesModel(ij),r.registerLayout(bt(aj,"sunburst")),r.registerProcessor(bt(Rf,"sunburst")),r.registerVisual(sj),tj(r)}var fC={color:"fill",borderColor:"stroke"},uj={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},fi=Nt(),fj=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return Ai(null,this)},t.prototype.getDataParams=function(e,n,i){var a=r.prototype.getDataParams.call(this,e,n);return i&&(a.info=fi(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(le);const cj=fj;function hj(r,t){return t=t||[0,0],Z(["x","y"],function(e,n){var i=this.getAxis(e),a=t[n],o=r[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function vj(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:at(hj,r)}}}function dj(r,t){return t=t||[0,0],Z([0,1],function(e){var n=t[e],i=r[e]/2,a=[],o=[];return a[e]=n-i,o[e]=n+i,a[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(a)[e]-this.dataToPoint(o)[e])},this)}function pj(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:at(dj,r)}}}function gj(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,i=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-i)-e.dataToCoord(n+i))}function yj(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:at(gj,r)}}}function mj(r,t){return t=t||[0,0],Z(["Radius","Angle"],function(e,n){var i="get"+e+"Axis",a=this[i](),o=t[n],s=r[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function _j(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(i){var a=t.dataToRadius(i[0]),o=e.dataToAngle(i[1]),s=r.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:at(mj,r)}}}function Sj(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,i){return r.dataToPoint(n,i)}}}}function Vk(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function Bk(r,t,e){var n=r,i,a,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),a={type:"text",style:o,silent:!0},i={};var s=st(n,"textPosition");e?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),st(n,"textPosition")&&(i.position=n.textPosition),st(n,"textOffset")&&(i.offset=n.textOffset),st(n,"textRotation")&&(i.rotation=n.textRotation),st(n,"textDistance")&&(i.distance=n.textDistance)}return cC(o,r),M(o.rich,function(l){cC(l,l)}),{textConfig:i,textContent:a}}function cC(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 hC(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 i=n.textPosition.indexOf("inside")>=0,a=r.fill||"#000";vC(n,t);var o=n.textFill==null;return i?o&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=a),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,M(t.rich,function(s){vC(s,s)}),n}function vC(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 zk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},dC=kt(zk);Fn(Wn,function(r,t){return r[t]=1,r},{});Wn.join(", ");var hv=["","style","shape","extra"],Zs=Nt();function C1(r,t,e,n,i){var a=r+"Animation",o=tl(r,n,i)||{},s=Zs(t).userDuring;return o.duration>0&&(o.during=s?at(Aj,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,e[a]),o}function vh(r,t,e,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=Zs(r),u=t.style;l.userDuring=t.during;var f={},c={};if(Mj(r,t,c),gC("shape",t,c),gC("extra",t,c),!a&&s&&(Cj(r,t,f),pC("shape",r,t,f),pC("extra",r,t,f),Dj(r,t,u,f)),c.style=u,xj(r,c,o),wj(r,t),s)if(a){var h={};M(hv,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(h[d]=h[d]||{}),F(d?h[d]:h,p.enterFrom))});var v=C1("enter",r,t,e,i);v.duration>0&&r.animateFrom(h,v)}else bj(r,t,i||0,e,f);Gk(r,t),u?r.dirty():r.markRedraw()}function Gk(r,t){for(var e=Zs(r).leaveToProps,n=0;n0&&r.animateFrom(i,a)}}function wj(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof Yr&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Pt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var An={},Tj={setTransform:function(r,t){return An.el[r]=t,this},getTransform:function(r){return An.el[r]},setShape:function(r,t){var e=An.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=An.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=An.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=An.el.style;if(t)return t[r]},setExtra:function(r,t){var e=An.el.extra||(An.el.extra={});return e[r]=t,this},getExtra:function(r){var t=An.el.extra;if(t)return t[r]}};function Aj(){var r=this,t=r.el;if(t){var e=Zs(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}An.el=t,n(Tj)}}function pC(r,t,e,n){var i=e[r];if(i){var a=t[r],o;if(a){var s=e.transition,l=i.transition;if(l)if(!o&&(o=n[r]={}),To(l))F(o,a);else for(var u=Zt(l),f=0;f=0){!o&&(o=n[r]={});for(var v=kt(a),f=0;f=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!a&&(a=n.style={});for(var d=kt(e),u=0;u=0?t.getStore().get(V,E):void 0}var N=t.get(O.name,E),z=O&&O.ordinalMeta;return z?z.categories[N]:N}function b(P,E){E==null&&(E=u);var O=t.getItemVisual(E,"style"),V=O&&O.fill,N=O&&O.opacity,z=m(E,ji).getItemStyle();V!=null&&(z.fill=V),N!=null&&(z.opacity=N);var $={inheritColor:nt(V)?V:"#000"},q=_(E,ji),Q=Qt(q,null,$,!1,!0);Q.text=q.getShallow("show")?xt(r.getFormattedLabel(E,ji),$s(t,E)):null;var ct=Wh(q,$,!1);return A(P,z),z=hC(z,Q,ct),P&&T(z,P),z.legacy=!0,z}function w(P,E){E==null&&(E=u);var O=m(E,ci).getItemStyle(),V=_(E,ci),N=Qt(V,null,null,!0,!0);N.text=V.getShallow("show")?Bn(r.getFormattedLabel(E,ci),r.getFormattedLabel(E,ji),$s(t,E)):null;var z=Wh(V,null,!0);return A(P,O),O=hC(O,N,z),P&&T(O,P),O.legacy=!0,O}function T(P,E){for(var O in E)st(E,O)&&(P[O]=E[O])}function A(P,E){P&&(P.textFill&&(E.textFill=P.textFill),P.textPosition&&(E.textPosition=P.textPosition))}function C(P,E){if(E==null&&(E=u),st(fC,P)){var O=t.getItemVisual(E,"style");return O?O[fC[P]]:null}if(st(uj,P))return t.getItemVisual(E,P)}function D(P){if(a.type==="cartesian2d"){var E=a.getBaseAxis();return z$(pt({axis:E},P))}}function I(){return e.getCurrentSeriesIndices()}function L(P){return p_(P,e)}}function zj(r){var t={};return M(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Wg(r,t,e,n,i,a,o){if(!n){a.remove(t);return}var s=P1(r,t,e,n,i,a);return s&&o.setItemGraphicEl(e,s),s&&ue(s,n.focus,n.blurScope,n.emphasisDisabled),s}function P1(r,t,e,n,i,a){var o=-1,s=t;t&&$k(t,n,i)&&(o=Dt(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=I1(n),s&&kj(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Er.normal.cfg=Er.normal.conOpt=Er.emphasis.cfg=Er.emphasis.conOpt=Er.blur.cfg=Er.blur.conOpt=Er.select.cfg=Er.select.conOpt=null,Er.isLegacy=!1,Fj(u,e,n,i,l,Er),Gj(u,e,n,i,l),L1(r,u,e,n,Er,i,l),st(n,"info")&&(fi(u).info=n.info);for(var f=0;f=0?a.replaceAt(u,o):a.add(u),u}function $k(r,t,e){var n=fi(r),i=t.type,a=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&Yj(a)&&Uk(a)!==n.customPathData||i==="image"&&st(o,"image")&&o.image!==n.customImagePath}function Gj(r,t,e,n,i){var a=e.clipPath;if(a===!1)r&&r.getClipPath()&&r.removeClipPath();else if(a){var o=r.getClipPath();o&&$k(o,a,n)&&(o=null),o||(o=I1(a),r.setClipPath(o)),L1(null,o,t,a,null,n,i)}}function Fj(r,t,e,n,i,a){if(!r.isGroup){mC(e,null,a),mC(e,ci,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=I1(o),r.setTextContent(f)),L1(null,f,t,o,null,n,i);for(var c=o&&o.style,h=0;h=f;v--){var d=t.childAt(v);Wj(t,d,i)}}}function Wj(r,t,e){t&&Ad(t,fi(r).option,e)}function $j(r){new Si(r.oldChildren,r.newChildren,_C,_C,r).add(SC).update(SC).remove(Uj).execute()}function _C(r,t){var e=r&&r.name;return e!=null?e:Rj+t}function SC(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,i=t!=null?e.oldChildren[t]:null;P1(e.api,i,e.dataIndex,n,e.seriesModel,e.group)}function Uj(r){var t=this.context,e=t.oldChildren[r];e&&Ad(e,fi(e).option,t.seriesModel)}function Uk(r){return r&&(r.pathData||r.d)}function Yj(r){return r&&(st(r,"pathData")||st(r,"d"))}function Zj(r){r.registerChartView(Nj),r.registerSeriesModel(cj)}var Qa=Nt(),xC=mt,$g=at,Xj=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new _t,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var h=bt(bC,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}TC(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=t1(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=Qa(t).pointerEl=new Oo[a.type](xC(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=Qa(t).labelEl=new Gt(xC(e.label));t.add(a),wC(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=Qa(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=Qa(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),wC(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=wf(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){gi(u.event)},onmousedown:$g(this._onHandleDragMove,this,0,0),drift:$g(this._onHandleDragMove,this),ondragend:$g(this._onHandleDragEnd,this)}),n.add(i)),TC(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Y(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ll(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){bC(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Ug(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Ug(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Ug(i)),Qa(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Ku(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 bC(r,t,e,n){Yk(Qa(e).lastProp,n)||(Qa(e).lastProp=n,t?Ht(e,n,r):(e.stopAnimation(),e.attr(n)))}function Yk(r,t){if(yt(r)&&yt(t)){var e=!0;return M(t,function(n,i){e=e&&Yk(r[i],n)}),!!e}else return r===t}function wC(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Ug(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function TC(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const E1=Xj;function k1(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 Zk(r,t,e,n,i){var a=e.get("value"),o=Xk(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=nl(s.get("padding")||0),u=s.getFont(),f=mf(o,u),c=i.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),qj(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:Qt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function qj(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Xk(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:$_(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),nt(o)?a=o.replace("{value}",a):vt(o)&&(a=o(s))}return a}function O1(r,t,e){var n=Cr();return Eo(n,n,e.rotation),Hn(n,n,e.position),cn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function qk(r,t,e,n,i,a){var o=xi.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),Zk(t,n,i,a,{position:O1(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function N1(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function Kk(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function AC(r,t,e,n,i,a){return{cx:r,cy:t,r0:e,r:n,startAngle:i,endAngle:a,clockwise:!0}}var Kj=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=CC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=k1(a),v=jj[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Em(l.model,i);qk(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=Em(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=O1(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=CC(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 d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(E1);function CC(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var jj={line:function(r,t,e){var n=N1([t,e[0]],[t,e[1]],MC(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:Kk([t-n/2,e[0]],[n,i],MC(r))}}};function MC(r){return r.dim==="x"?0:1}const Jj=Kj;var Qj=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Bt);const tJ=Qj;var oi=Nt(),eJ=M;function jk(r,t,e){if(!zt.node){var n=t.getZr();oi(n).records||(oi(n).records={}),rJ(n,t);var i=oi(n).records[r]||(oi(n).records[r]={});i.handler=e}}function rJ(r,t){if(oi(r).initialized)return;oi(r).initialized=!0,e("click",bt(DC,"click")),e("mousemove",bt(DC,"mousemove")),e("globalout",iJ);function e(n,i){r.on(n,function(a){var o=aJ(t);eJ(oi(r).records,function(s){s&&i(s,a,o.dispatchAction)}),nJ(o.pendings,t)})}}function nJ(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function iJ(r,t,e){r.handler("leave",null,e)}function DC(r,t,e,n){t.handler(r,e,n)}function aJ(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Jm(r,t){if(!zt.node){var e=t.getZr(),n=(oi(e).records||{})[r];n&&(oi(e).records[r]=null)}}var oJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";jk("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){Jm("axisPointer",n)},t.prototype.dispose=function(e,n){Jm("axisPointer",n)},t.type="axisPointer",t}(fe);const sJ=oJ;function Jk(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Co(a,r);if(o==null||o<0||Y(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(a.getValues(Z(l.dimensions,function(y){return a.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 IC=Nt();function lJ(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||at(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){dh(i)&&(i=Jk({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=dh(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||dh(i),h={},v={},d={list:[],map:{}},p={showPointer:bt(fJ,v),showTooltip:bt(cJ,d)};M(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);M(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=pJ(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=b.pointToData(i)),T!=null&&LC(S,T,p,!1,h)}})});var g={};return M(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&M(_.axesInfo,function(S,x){var b=v[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,PC(S),PC(y)))),g[y.key]=w}})}),M(g,function(y,m){LC(f[m],y,p,!0,h)}),hJ(v,f,h),vJ(d,i,r,o),dJ(f,o,e),h}}function LC(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=uJ(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&F(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function uJ(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return M(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 d=r-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,i=c,a.length=0),M(h,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function fJ(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function cJ(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=rf(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function hJ(r,t,e){var n=e.axesInfo=[];M(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function vJ(r,t,e,n){if(dh(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function dJ(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=IC(n)[i]||{},o=IC(n)[i]={};M(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&M(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];M(a,function(u,f){!o[f]&&l.push(u)}),M(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function pJ(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 PC(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 dh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Nf(r){Go.registerAxisPointerClass("CartesianAxisPointer",Jj),r.registerComponentModel(tJ),r.registerComponentView(sJ),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=rY(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},lJ)}function gJ(r){Lt(TE),Lt(Nf)}var yJ=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var v=k1(a),d=_J[h](s,l,c,f);d.style=v,e.graphicKey=d.type,e.pointer=d}var p=a.get(["label","margin"]),g=mJ(n,i,a,l,p);Zk(e,i,a,o,g)},t}(E1);function mJ(r,t,e,n,i){var a=t.axis,o=a.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(a.dim==="radius"){var h=Cr();Eo(h,h,s),Hn(h,h,[n.cx,n.cy]),u=cn([o,-i],h);var v=t.getModel("axisLabel").get("rotate")||0,d=xi.innerTextLayout(s,v*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+i,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var _J={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:N1(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 i=Math.max(1,r.getBandWidth()),a=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:AC(t.cx,t.cy,n[0],n[1],(-e-i/2)*a,(-e+i/2)*a)}:{type:"Sector",shape:AC(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}};const SJ=yJ;var xJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,i=this.ecModel;return i.eachComponent(e,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Bt);const bJ=xJ;var V1=function(r){B(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}(Bt);me(V1,Mf);var wJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(V1),TJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(V1),B1=function(r){B(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}(yn);B1.prototype.dataToRadius=yn.prototype.dataToCoord;B1.prototype.radiusToData=yn.prototype.coordToData;const AJ=B1;var CJ=Nt(),z1=function(r){B(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(),i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=mf(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)),d=CJ(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(yn);z1.prototype.dataToAngle=yn.prototype.dataToCoord;z1.prototype.angleToData=yn.prototype.coordToData;const MJ=z1;var Qk=["radius","angle"],DJ=function(){function r(t){this.dimensions=Qk,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new AJ,this._angleAxis=new MJ,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,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),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,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.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,i=Math.cos(n)*e+this.cx,a=-Math.sin(n)*e+this.cy;return[i,a]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,c=u*u+f*f,h=this.r,v=this.r0;return h!==v&&c-o<=h*h&&c+o>=v*v}}},r.prototype.convertToPixel=function(t,e,n){var i=RC(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=RC(e);return i===this?this.pointToData(n):null},r}();function RC(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const IJ=DJ;function LJ(r,t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight();r.cx=et(n[0],i),r.cy=et(n[1],a);var o=r.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Y(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 PJ(r,t){var e=this,n=e.getAngleAxis(),i=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();M(tv(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),M(tv(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Ws(n.scale,n.model),Ws(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function RJ(r){return r.mainType==="angleAxis"}function EC(r,t){var e;if(r.type=t.get("type"),r.scale=md(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),RJ(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,i)}t.axis=r,r.model=t}var EJ={dimensions:Qk,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,i){var a=new IJ(i+"");a.update=PJ;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");EC(o,l),EC(s,u),LJ(a,n,t),e.push(a),n.coordinateSystem=a,a.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",ge).models[0];n.coordinateSystem=i.coordinateSystem}}),e}};const kJ=EJ;var OJ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function kc(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),i=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function Oc(r){var t=r.getRadiusAxis();return t.inverse?0:1}function kC(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 NJ=function(r){B(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 i=e.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Z(i.getViewLabels(),function(f){f=mt(f);var c=i.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=i.dataToCoord(h),f});kC(u),kC(s),M(OJ,function(f){e.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&VJ[f](this.group,e,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Go),VJ={axisLine:function(r,t,e,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Oc(e),c=f?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[c]===0?h=new Oo[v]({shape:{cx:e.cx,cy:e.cy,r:a[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new Qv({shape:{cx:e.cx,cy:e.cy,r:a[f],r0:a[c]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,t,e,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Oc(e)],u=Z(n,function(f){return new Ee({shape:kc(e,[l,l+s],f.coord)})});r.add(Hr(u,{style:pt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Oc(e)],f=[],c=0;cy?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var x=s[d];yt(x)&&x.textStyle&&(v=new te(x.textStyle,l,l.ecModel))}var b=new Gt({silent:xi.isLabelSilent(t),style:Qt(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),f){var w=xi.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,St(b).eventData=w}},this)},splitLine:function(r,t,e,n,i,a){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",E=A;x&&(n[f][L]||(n[f][L]={p:A,n:A}),E=n[f][L][P]);var O=void 0,V=void 0,N=void 0,z=void 0;if(d.dim==="radius"){var $=d.dataToCoord(I)-A,q=l.dataToCoord(L);Math.abs($)=z})}}})}function YJ(r){var t={};M(r,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=eO(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;t[l]=c;var v=tO(n);h[v]||c.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=et(n.get("barWidth"),f),p=et(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(c.remainedWidth,d),h[v].width=d,c.remainedWidth-=d),p&&(h[v].maxWidth=p),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var e={};return M(t,function(n,i){e[i]={};var a=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),M(a,function(p,g){var y=p.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(),i=[],a=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},r.prototype.convertToPixel=function(t,e,n){var i=OC(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=OC(e);return i===this?this.pointToData(n):null},r}();function OC(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function aQ(r,t){var e=[];return r.eachComponent("singleAxis",function(n,i){var a=new iQ(n,r,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,e.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",ge).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),e}var oQ={create:aQ,dimensions:nO};const sQ=oQ;var NC=["x","y"],lQ=["width","height"],uQ=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=Zg(l,1-pv(s)),f=l.dataToPoint(n)[0],c=a.get("type");if(c&&c!=="none"){var h=k1(a),v=fQ[c](s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Qm(i);qk(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=Qm(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=O1(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.coordinateSystem,l=pv(o),u=Zg(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=Zg(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}(E1),fQ={line:function(r,t,e){var n=N1([t,e[0]],[t,e[1]],pv(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),i=e[1]-e[0];return{type:"Rect",shape:Kk([t-n/2,e[0]],[n,i],pv(r))}}};function pv(r){return r.isHorizontal()?0:1}function Zg(r,t){var e=r.getRect();return[e[NC[t]],e[NC[t]]+e[lQ[t]]]}const cQ=uQ;var hQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(fe);function vQ(r){Lt(Nf),Go.registerAxisPointerClass("SingleAxisPointer",cQ),r.registerComponentView(hQ),r.registerComponentView(eQ),r.registerComponentModel(Yg),Us(r,"single",Yg,Yg.defaultOption),r.registerCoordinateSystem("single",sQ)}var dQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,i){var a=il(e);r.prototype.init.apply(this,arguments),VC(e,a)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),VC(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}(Bt);function VC(r,t){var e=r.cellSize,n;Y(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return _H(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});sa(r,t,{type:"box",ignoreSize:i})}const pQ=dQ;var gQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group;a.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(e,s,a),this._renderLines(e,s,l,a),this._renderYearText(e,s,l,a),this._renderMonthText(e,u,l,a),this._renderWeekText(e,u,s,l,a)},t.prototype._renderDayRect=function(e,n,i){for(var a=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var f=a.dataToRect([u],!1).tl,c=new Vt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});i.add(c)}},t.prototype._renderLines=function(e,n,i,a){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++){d(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)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,i),l,a)},t.prototype._getEdgesPoints=function(e,n,i){var a=[e[0].slice(),e[e.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(e,n,i){var a=new mr({z2:20,shape:{points:e},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(e,n,i){for(var a=e.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),f=a.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,n){return nt(e)&&e?gH(e,n):vt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(a==="left"||a==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,n,i,a){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="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=i==="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]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Gt({z2:30,style:Qt(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,v[l],i,l,s)),a.add(m)}},t.prototype._monthTextPositionControl=function(e,n,i,a,o){var s="left",l="top",u=e[0],f=e[1];return i==="horizontal"?(f=f+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,n,i,a){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=um(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g=i.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 i=Math.floor(e[1].time/Xg)-Math.floor(e[0].time/Xg)+1,a=new Date(e[0].time),o=a.getDate(),s=e[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-e[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-e[1].time)*u>0;)i-=u,a.setDate(l-u);var f=Math.floor((i+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:i,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ei.lweek)return null;var a=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(i){var a=new r(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function BC(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}const _Q=mQ;function SQ(r){r.registerComponentModel(pQ),r.registerComponentView(yQ),r.registerCoordinateSystem("calendar",_Q)}function xQ(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 zC(r,t){var e;return M(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function bQ(r,t,e){var n=F({},e),i=r[t],a=e.$action||"merge";a==="merge"?i?(Tt(i,n,!0),sa(i,n,{ignoreSize:!0}),GP(e,i),Nc(e,i),Nc(e,i,"shape"),Nc(e,i,"style"),Nc(e,i,"extra"),e.clipPath=i.clipPath):r[t]=n:a==="replace"?r[t]=n:a==="remove"&&i&&(r[t]=null)}var iO=["transition","enterFrom","leaveTo"],wQ=iO.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Nc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?iO:wQ,i=0;i=0;f--){var c=i[f],h=Se(c.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,y=Br(d),m=d===a?{width:s,height:l}:{width:y.width,height:y.height},_={},S=ud(v,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!Br(v).isNew&&S){for(var x=c.transition,b={},w=0;w=0)?b[T]=A:v[T]=A}Ht(v,b,e,0)}else v.attr(_)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(i){ph(i,Br(i).option,n,e._lastGraphicModel)}),this._elMap=ft()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(fe);function t0(r){var t=st(GC,r)?GC[r]:d_(r),e=new t({});return Br(e).type=r,e}function FC(r,t,e,n){var i=t0(e);return t.add(i),n.set(r,i),Br(i).id=r,Br(i).isNew=!0,i}function ph(r,t,e,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(a){ph(a,t,e,n)}),Ad(r,t,n),e.removeKey(Br(r).id))}function HC(r,t,e,n){r.isGroup||M([["cursor",Yr.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(i){var a=i[0];st(t,a)?r[a]=xt(t[a],i[1]):r[a]==null&&(r[a]=i[1])}),M(kt(t),function(i){if(i.indexOf("on")===0){var a=t[i];r[i]=vt(a)?a:null}}),st(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function MQ(r){return r=F({},r),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(zP),function(t){delete r[t]}),r}function DQ(r,t,e){var n=St(r).eventData;!r.silent&&!r.ignore&&!n&&(n=St(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function IQ(r){r.registerComponentModel(AQ),r.registerComponentView(CQ),r.registerPreprocessor(function(t){var e=t.graphic;Y(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var WC=["x","y","radius","angle","single"],LQ=["cartesian2d","polar","singleAxis"];function PQ(r){var t=r.get("coordinateSystem");return Dt(LQ,t)>=0}function Ji(r){return r+"Axis"}function RQ(r,t){var e=ft(),n=[],i=ft();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}function aO(r){var t=r.ecModel,e={infoList:[],infoMap:ft()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(Ji(n),i);if(a){var o=a.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(a)}}}),e}var qg=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}(),EQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=$C(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=$C(e);Tt(this.option,e,!0),Tt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ft(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return M(WC,function(i){var a=this.getReferringComponents(Ji(i),KG);if(a.specified){n=!0;var o=new qg;M(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.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 qg;if(h.add(c.componentIndex),e.set(f,h),a=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",ge).models[0];v&&M(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",ge).models[0]&&h.add(d.componentIndex)})}}}a&&M(WC,function(u){if(a){var f=i.findComponents({mainType:Ji(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new qg;c.add(f[0].componentIndex),e.set(u,c),a=!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,i=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(Ji(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){M(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(Ji(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;M(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},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 i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else gs(f,function(v){if(a==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});gs(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;gs(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Ut(n[0]+o,n,[0,100],!0):a!=null&&(o=Ut(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=pL(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function GQ(r,t,e){var n=[1/0,-1/0];gs(e,function(o){lU(n,o.getData(),t)});var i=r.getAxisModel(),a=_R(i.axis.scale,i,n).calculate();return[a.min,a.max]}const FQ=zQ;var HQ={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(Ji(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new FQ(i,a,s,r),e.push(o.__dzAxisProxy))});var n=ft();return M(e,function(i){M(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const WQ=HQ;function $Q(r){r.registerAction("dataZoom",function(t,e){var n=RQ(e,t);M(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var YC=!1;function F1(r){YC||(YC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,WQ),$Q(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function UQ(r){r.registerComponentModel(OQ),r.registerComponentView(BQ),F1(r)}var Fr=function(){function r(){}return r}(),oO={};function ys(r,t){oO[r]=t}function sO(r){return oO[r]}var YQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;M(this.option.feature,function(n,i){var a=sO(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),Tt(n,a.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}(Bt);const ZQ=YQ;function XQ(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=be(n,a,i);xo(t.get("orient"),r,t.get("itemGap"),o.width,o.height),ud(r,n,a,i)}function lO(r,t){var e=nl(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 qQ=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){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=[];M(u,function(d,p){c.push(p)}),new Si(this._featureNames||[],c).add(h).update(h).remove(bt(h,null)).execute(),this._featureNames=c;function h(d,p){var g=c[d],y=c[p],m=u[g],_=new te(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(KQ(g))S={onclick:_.option.onclick,featureName:g};else{var x=sO(g);if(!x)return;S=new x}f[g]=S}else if(S=f[y],!S)return;S.uid=rl("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var b=S instanceof Fr;if(!g&&y){b&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,i);return}v(_,S,g),_.setIconStatus=function(w,T){var A=this.option,C=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=T,C[w]&&(T==="emphasis"?mi:_i)(C[w])},S instanceof Fr&&S.render&&S.render(_,n,i,a)}function v(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof Fr&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},x,b;nt(_)?(x={},x[g]=_):x=_,nt(S)?(b={},b[g]=S):b=S;var w=d.iconPaths={};M(x,function(T,A){var C=wf(T,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(y.getItemStyle());var D=C.ensureState("emphasis");D.style=m.getItemStyle();var I=new Gt({style:{text:b[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:p_({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});C.setTextContent(I),ko({el:C,componentModel:e,itemName:A,formatterParamsExtra:{title:b[A]}}),C.__title=b[A],C.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")}),C.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?mi:_i)(C),o.add(C),C.on("click",at(p.onclick,p,n,i,A)),w[A]=C})}XQ(o,e,i),o.add(lO(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!vt(_)&&p){var S=_.style||(_.style={}),x=mf(p,Gt.makeFont(S)),b=d.x+o.x,w=d.y+o.y+s,T=!1;w+x.height>i.getHeight()&&(y.position="top",T=!0);var A=T?-5-x.height:s+10;b+x.width/2>i.getWidth()?(y.position=["100%",A],S.align="right"):b-x.width/2<0&&(y.position=[0,A],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){M(this._features,function(o){o instanceof Fr&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){M(this._features,function(i){i instanceof Fr&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){M(this._features,function(i){i instanceof Fr&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(fe);function KQ(r){return r.indexOf("my")===0}const jQ=qQ;var JQ=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=zt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+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,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=i.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=a}},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}(Fr);const QQ=JQ;var ZC="__ec_magicType_stack__",ttt=[["line","bar"],["stack"]],ett=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return M(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},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,i){var a=this.model,o=a.get(["seriesIndex",i]);if(XC[i]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=XC[i](h,v,c,a);d&&(pt(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=p.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 x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};M(ttt,function(c){Dt(c,i)>=0&&M(c,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=Tt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Fr),XC={line:function(r,t,e,n){if(r==="bar")return Tt({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 Tt({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 i=e.get("stack")===ZC;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Tt({id:t,stack:i?"":ZC},n.get(["option","stack"])||{},!0)}};Zn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const rtt=ett;var Cd=new Array(60).join("-"),Xs=" ";function ntt(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function itt(r){var t=[];return M(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(Z(e.series,function(v){return v.name})),l=[i.model.getCategories()];M(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Xs)],f=0;f=0)return!0}var e0=new RegExp("["+Xs+"]+","g");function ltt(r){for(var t=r.split(/\n+/g),e=gv(t.shift()).split(e0),n=[],i=Z(e,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();e[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),e.push(t)}function ptt(r){var t=H1(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return uO(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function gtt(r){fO(r).snapshots=null}function ytt(r){return H1(r).length}function H1(r){var t=fO(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var mtt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){gtt(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}(Fr);Zn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const _tt=mtt;var Stt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],xtt=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=qC(e,t);M(btt,function(o,s){(!n||!n.include||Dt(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Kg[n.brushType](0,a,i);n.__rangeOffset={offset:QC[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){M(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&M(a.coordSyses,function(o){var s=Kg[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){M(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Kg[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?QC[n.brushType](a.values,o.offset,wtt(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return Z(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:yk(i),isTargetByCursor:_k(i,t,n.coordSysModel),getLinearBrushOtherExtent:mk(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&Dt(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=qC(e,t),a=0;ar[1]&&r.reverse(),r}function qC(r,t){return mu(r,t,{includeMainTypes:Stt})}var btt={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=ft(),o={},s={};!e&&!n&&!i||(M(e,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),M(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),M(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];M(u.getCartesians(),function(c,h){(Dt(e,c.getAxis("x").model)>=0||Dt(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:jC.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){M(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:jC.geo})})}},KC=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],jC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(So(r)),t}},Kg={lineX:bt(JC,0),lineY:bt(JC,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[r0([i[0],a[0]]),r0([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Z(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function JC(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=r0(Z([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var QC={lineX:bt(tM,0),lineY:bt(tM,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 Z(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function tM(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function wtt(r,t){var e=eM(r),n=eM(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function eM(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const W1=xtt;var n0=M,Ttt=UG("toolbox-dataZoom_"),Att=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new x1(i.getZr()),this._brushController.on("brush",at(this._onBrush,this)).mount()),Dtt(e,n,this,a,i),Mtt(e,n)},t.prototype.onclick=function(e,n,i){Ctt[i].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 i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new W1($1(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,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)}}),dtt(a,i),this._dispatchZoomAction(i);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,a),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Fo(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];n0(e,function(i,a){n.push(mt(i))}),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}(Fr),Ctt={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(ptt(this.ecModel))}};function $1(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 Mtt(r,t){r.setIconStatus("back",ytt(t)>1?"emphasis":"normal")}function Dtt(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new W1($1(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}AH("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=$1(n),o=mu(r,a);n0(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),n0(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:Ttt+u+c};h[f]=c,i.push(h)}return i});const Itt=Att;function Ltt(r){r.registerComponentModel(ZQ),r.registerComponentView(jQ),ys("saveAsImage",QQ),ys("magicType",rtt),ys("dataView",vtt),ys("dataZoom",Itt),ys("restore",_tt),Lt(UQ)}var Ptt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Bt);const Rtt=Ptt;function cO(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function hO(r){if(zt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function ztt(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=zt.transformSupported?","+U1+n:",left"+n+",top"+n),Ott+":"+i}function rM(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!zt.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=zt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+U1+":"+o+";":[["top",0],["left",0],[vO,o]]}function Gtt(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var i=xt(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),M(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function Ftt(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=_2(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(ztt(i,e)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,p=VP(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Gtt(f)),c!=null&&n.push("padding:"+nl(c).join("px ")+"px"),n.join(";")+";"}function nM(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&d5(r,o,e,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Htt=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,zt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=e.appendTo,o=a&&(nt(a)?document.querySelector(a):zs(a)?a:vt(a)&&a(t.getDom()));nM(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Or(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=ktt(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=Ntt+Ftt(t,!this._firstShow,this._longHide)+rM(a[0],a[1],!0)+("border-color:"+Io(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(nt(a)&&n.get("trigger")==="item"&&!cO(n)&&(s=Btt(n,i,a)),nt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||zt.node||!i.getDom())){var o=oM(a,i);this._ticket="";var s=a.dataByCoordSys,l=jtt(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=Ytt;f.x=a.x,f.y=a.y,f.update(),St(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var c=Jk(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(oM(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Hl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=St(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;so(i,function(f){if(St(f).dataIndex!=null)return l=f,!0;if(St(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=at(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Hl([n.tooltipOption],a),l=this._renderMode,u=[],f=Ie("section",{blocks:[],noHeader:!0}),c=[],h=new kp;M(e,function(m){M(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=Xk(x,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Ie("section",{header:b,noHeader:!an(b),sortBlocks:!0,blocks:[]});f.blocks.push(w),M(_.seriesDataIndices,function(T){var A=i.getSeriesByIndex(T.seriesIndex),C=T.dataIndexInside,D=A.getDataParams(C);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=$_(S.axis,{value:x}),D.axisValueLabel=b,D.marker=h.makeTooltipMarker("item",Io(D.color),l);var I=$b(A.formatTooltip(C,!0,null)),L=I.frag;if(L){var P=Hl([A],a).get("valueFormatter");w.blocks.push(P?F({valueFormatter:P},L):L)}I.text&&c.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=Kb(f,h,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);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,i){var a=this._ecModel,o=St(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=Hl([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new kp;y.marker=m.makeTooltipMarker("item",Io(y.color),v);var _=$b(u.formatTooltip(f,!1,c)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?Kb(x?F({valueFormatter:x},b):b,m,v,S,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=this._renderMode==="html",o=St(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(nt(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=mt(l),l.content=Xe(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,d=Hl(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",y=new kp;this._showOrMove(d,function(){var m=mt(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(nt(h)){var g=e.ecModel.get("useUTC"),y=Y(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=id(y.axisValue,v,g)),v=BP(v,i,!0)}else if(vt(h)){var _=at(function(S,x){S===this._ticket&&(c.setContent(x,f,e,p,l),this._updatePosition(e,l,o,s,c,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||Y(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Y(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),vt(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),Y(n))i=et(n[0],u),a=et(n[1],f);else if(yt(n)){var p=n;p.width=c[0],p.height=c[1];var g=be(p,{width:u,height:f});i=g.x,a=g.y,h=null,v=null}else if(nt(n)&&l){var y=Ktt(n,d,c,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=Xtt(i,a,o,u,f,h?null:20,v?null:20);i=y[0],a=y[1]}if(h&&(i-=sM(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=sM(v)?c[1]/2:v==="bottom"?c[1]:0),cO(e)){var y=qtt(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&M(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&M(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&M(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&M(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){zt.node||!n.getDom()||(Ku(this,"_updatePosition"),this._tooltipContent.dispose(),Jm("itemTooltip",n))},t.type="tooltip",t}(fe);function Hl(r,t,e){var n=t.ecModel,i;e?(i=new te(e,n,n),i=new te(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof te&&(o=o.get("tooltip",!0)),nt(o)&&(o={formatter:o}),o&&(i=new te(o,i,n)))}return i}function oM(r,t){return r.dispatchAction||at(t.dispatchAction,t)}function Xtt(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function qtt(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function Ktt(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function sM(r){return r==="center"||r==="middle"}function jtt(r,t,e){var n=t_(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=_f(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=St(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const Jtt=Ztt;function Qtt(r){Lt(Nf),r.registerComponentModel(Rtt),r.registerComponentView(Jtt),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},de),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},de)}var tet=["rect","polygon","keep","clear"];function eet(r,t){var e=Zt(r?r.brush:[]);if(e.length){var n=[];M(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=r&&r.toolbox;Y(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),ret(s),t&&!s.length&&s.push.apply(s,tet)}}function ret(r){var t={};M(r,function(e){t[e]=1}),r.length=0,M(t,function(e,n){r.push(n)})}var lM=M;function uM(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function i0(r,t,e){var n={};return lM(t,function(a){var o=n[a]=i();lM(r[a],function(s,l){if(ze.isValidType(l)){var u={type:l,visual:s};e&&e(u,a),o[l]=new ze(u),l==="opacity"&&(u=mt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ze(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function pO(r,t,e){var n;M(e,function(i){t.hasOwnProperty(i)&&uM(t[i])&&(n=!0)}),n&&M(e,function(i){t.hasOwnProperty(i)&&uM(t[i])?r[i]=mt(t[i]):delete r[i]})}function net(r,t,e,n,i,a){var o={};M(r,function(c){var h=ze.prepareVisualTypes(t[c]);o[c]=h});var s;function l(c){return R_(e,s,c)}function u(c,h){I2(e,s,c,h)}a==null?e.each(f):e.each([a],f);function f(c,h){s=a==null?c:h;var v=e.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=n.call(i,c),p=t[d],g=o[d],y=0,m=g.length;yt[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&dM(t)}};function dM(r){return new Mt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var het=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new x1(n.getZr())).on("brush",at(this._onBrush,this)).mount()},t.prototype.render=function(e,n,i,a){this.model=e,this._updateController(e,n,i,a)},t.prototype.updateTransform=function(e,n,i,a){gO(n),this._updateController(e,n,i,a)},t.prototype.updateVisual=function(e,n,i,a){this.updateTransform(e,n,i,a)},t.prototype.updateView=function(e,n,i,a){this._updateController(e,n,i,a)},t.prototype._updateController=function(e,n,i,a){(!a||a.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:mt(i),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:mt(i),$from:n})},t.type="brush",t}(fe);const vet=het;var det="#ddd",pet=function(r){B(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 i=this.option;!n&&pO(i,e,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:det},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Z(e,function(n){return pM(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=pM(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}(Bt);function pM(r,t){return Tt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new te(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const get=pet;var yet=["rect","polygon","lineX","lineY","keep","clear"],met=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,M(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,i){this.render(e,n,i)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),i={};return M(e.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(e,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var n={show:!0,type:yet.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}(Fr);const _et=met;function xet(r){r.registerComponentView(vet),r.registerComponentModel(get),r.registerPreprocessor(eet),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,oet),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"},de),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},de),ys("brush",_et)}var bet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Bt),wet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=xt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Gt({style:Qt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new Gt({style:Qt(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Uh(d,"_"+e.get("target"))}),p&&v.on("click",function(){Uh(p,"_"+e.get("subtarget"))}),St(f).eventData=St(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),h&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=be(m,{width:i.getWidth(),height:i.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"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var x=_.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var w=new Vt({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(fe);function Tet(r){r.registerComponentModel(bet),r.registerComponentView(wet)}var Aet=function(r){B(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,i){this.mergeDefaultAndTheme(e,i),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||[],i=e.axisType,a=this._names=[],o;i==="category"?(o=[],M(n,function(u,f){var c=Se(Js(u),""),h;yt(u)?(h=mt(u),h.value=f):h=f,o.push(h),a.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new ar([{name:"value",type:s}],this);l.initData(o,a)},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}(Bt);const gM=Aet;var yO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=ga(gM.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}(gM);me(yO,cd.prototype);const Cet=yO;var Met=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(fe);const Det=Met;var Iet=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this,e,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(yn);const Let=Iet;var Jg=Math.PI,yM=Nt(),Pet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,i){if(this.model=e,this.api=i,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return Ie("nameValue",{noName:!0,value:f})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,e)},this),this._renderAxisLabel(a,s,l,e),this._position(a,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 i=e.get(["label","position"]),a=e.get("orient"),o=Eet(e,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Jg/2},c=a==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Jg/180;var m,_,S,x=h.get("position",!0),b=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),A=0,C=c;x==="left"||x==="bottom"?(b&&(m=[0,0],A+=g),w&&(_=[A,0],A+=g),T&&(S=[C-d,0],C-=g)):(b&&(m=[C-d,0],C-=g),w&&(_=[0,0],A+=g),T&&(S=[C-d,0],C-=g));var D=[A,C];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:c,orient:a,rotation:f[a],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},t.prototype._position=function(e,n){var i=this._mainGroup,a=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Cr(),l=o.x,u=o.y+o.height;Hn(s,s,[-l,-u]),Eo(s,s,-Jg/2),Hn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(i.getBoundingRect()),h=m(a.getBoundingRect()),v=[i.x,i.y],d=[a.x,a.y];d[0]=v[0]=f[0][0];var p=e.labelPosOpt;if(p==null||nt(p)){var g=p==="+"?0:1;_(v,c,f,1,g),_(d,h,f,1,1-g)}else{var g=p>=0?0:1;_(v,c,f,1,g),d[1]=v[1]+p}i.setPosition(v),a.setPosition(d),i.rotation=a.rotation=e.rotation,y(i),y(a);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,x,b,w,T){S[w]+=b[w][T]-x[w][T]}},t.prototype._createAxis=function(e,n){var i=n.getData(),a=n.get("axisType"),o=Ret(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Let("value",o,e.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new _t;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Ee({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:F({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Ee({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:pt({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(e,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],M(l,function(u){var f=i.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),v=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:at(o._changeTimeline,o,u.value)},g=mM(c,h,n,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),_o(g);var y=St(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],M(u,function(f){var c=f.tickValue,h=l.getItemModel(c),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),g=i.dataToCoord(f.tickValue),y=new Gt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:at(o._changeTimeline,o,c),silent:!1,style:Qt(v,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Qt(d),y.ensureState("progress").style=Qt(p),n.add(y),_o(y),yM(y).dataIndex=c,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,n,i,a){var o=e.controlSize,s=e.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),f=a.getPlayState(),c=a.get("inverse",!0);h(e.nextBtnPosition,"next",at(this._changeTimeline,this,c?"-":"+")),h(e.prevBtnPosition,"prev",at(this._changeTimeline,this,c?"+":"-")),h(e.playPosition,f?"stop":"play",at(this._handlePlayClick,this,!f),!0);function h(v,d,p,g){if(v){var y=dn(xt(a.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=ket(a,d+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),_o(_)}}},t.prototype._renderCurrentPointer=function(e,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=at(u._handlePointerDrag,u),c.ondragend=at(u._handlePointerDragend,u),_M(c,u._progressLine,s,i,a,!0)},onUpdate:function(c){_M(c,u._progressLine,s,i,a)}};this._currentPointer=mM(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,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var i=this._toAxisCoord(e)[0],a=this._axis,o=$r(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(h)),[o,c]}var Qg={min:bt(zc,"min"),max:bt(zc,"max"),average:bt(zc,"average"),median:bt(zc,"median")};function ff(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,i=n&&n.dimensions;if(!Het(t)&&!Y(t.coord)&&Y(i)){var a=_O(t,e,n,r);if(t=mt(t),t.type&&Qg[t.type]&&a.baseAxis&&a.valueAxis){var o=Dt(i,a.baseAxis.dim),s=Dt(i,a.valueAxis.dim),l=Qg[t.type](e,a.baseDataDim,a.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||!Y(i))t.coord=[];else for(var u=t.coord,f=0;f<2;f++)Qg[u[f]]&&(u[f]=Z1(e,e.mapDimension(i[f]),u[f]));return t}}function _O(r,t,e,n){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(Wet(n,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function Wet(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function cf(r,t){return r&&r.containData&&t.coord&&!o0(t)?r.containData(t.coord):!0}function $et(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!o0(t)&&!o0(e)?r.containZone(t.coord,e.coord):!0}function SO(r,t){return r?function(e,n,i,a){var o=a<2?e.coord&&e.coord[a]:e.value;return ea(o,t[a])}:function(e,n,i,a){return ea(e.value,t[a])}}function Z1(r,t,e){if(e==="average"){var n=0,i=0;return r.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var ty=Nt(),Uet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ft()},t.prototype.render=function(e,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){ty(s).keep=!1}),n.eachSeries(function(s){var l=ha.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!ty(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(e){ty(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var i=this;M(e,function(a){var o=ha.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?YL(l):s_(l))})}})},t.type="marker",t}(fe);const X1=Uet;function xM(r,t,e){var n=t.coordinateSystem;r.each(function(i){var a=r.getItemModel(i),o,s=et(a.get("x"),e.getWidth()),l=et(a.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,i));else if(n){var u=r.get(n.dimensions[0],i),f=r.get(n.dimensions[1],i);o=n.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var Yet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=ha.getMarkerModelFromSeries(a,"markPoint");o&&(xM(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new If),c=Zet(o,e,n);n.setData(c),xM(n.getData(),e,a),c.each(function(h){var v=c.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(vt(d)||vt(p)||vt(g)||vt(y)){var _=n.getRawValue(h),S=n.getDataParams(h);vt(d)&&(d=d(_,S)),vt(p)&&(p=p(_,S)),vt(g)&&(g=g(_,S)),vt(y)&&(y=y(_,S))}var x=v.getModel("itemStyle").getItemStyle(),b=Af(l,"color");x.fill||(x.fill=b),c.setItemVisual(h,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){St(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(X1);function Zet(r,t,e){var n;r?n=Z(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return F(F({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new ar(n,e),a=Z(e.get("data"),bt(ff,t));r&&(a=$t(a,bt(cf,r)));var o=SO(!!r,n);return i.initData(a,null,o),i}const Xet=Yet;function qet(r){r.registerComponentModel(Fet),r.registerComponentView(Xet),r.registerPreprocessor(function(t){Y1(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Ket=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},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}(ha);const jet=Ket;var Gc=Nt(),Jet=function(r,t,e,n){var i=r.getData(),a;if(Y(n))a=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=Re(n.yAxis,n.xAxis);else{var u=_O(n,i,t,r);s=u.valueAxis;var f=nR(i,u.valueDataDim);l=Z1(i,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=mt(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=e.get("precision");p>=0&&Ft(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[c]=d.coord[c]=l,a=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[ff(r,a[0]),ff(r,a[1]),F({},a[2])];return g[2].type=g[2].type||null,Tt(g[2],g[0]),Tt(g[2],g[1]),g};function yv(r){return!isNaN(r)&&!isFinite(r)}function bM(r,t,e,n){var i=1-r,a=n.dimensions[r];return yv(t[i])&&yv(e[i])&&t[r]===e[r]&&n.getAxis(a).containData(t[r])}function Qet(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(bM(1,e,n,r)||bM(0,e,n,r)))return!0}return cf(r,t[0])&&cf(r,t[1])}function ey(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=et(o.get("x"),i.getWidth()),u=et(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=a.dimensions,c=r.get(f[0],t),h=r.get(f[1],t);s=a.dataToPoint([c,h])}if(zo(a,"cartesian2d")){var v=a.getAxis("x"),d=a.getAxis("y"),f=a.dimensions;yv(r.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[e?0:1]):yv(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var trt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=ha.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Gc(o).from,u=Gc(o).to;l.each(function(f){ey(l,f,!0,a,i),ey(u,f,!1,a,i)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new p1);this.group.add(f.group);var c=ert(o,e,n),h=c.from,v=c.to,d=c.line;Gc(n).from=h,Gc(n).to=v,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");Y(p)||(p=[p,p]),Y(g)||(g=[g,g]),Y(y)||(y=[y,y]),Y(m)||(m=[m,m]),c.from.each(function(S){_(h,S,!0),_(v,S,!1)}),d.each(function(S){var x=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),x.stroke==null&&(x.stroke=h.getItemVisual(S,"style").fill),d.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:x})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){St(S).dataModel=n,S.traverse(function(x){St(x).dataModel=n})});function _(S,x,b){var w=S.getItemModel(x);ey(S,x,b,e,a);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Af(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:xt(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:xt(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:xt(w.get("symbolSize"),g[b?0:1]),symbol:xt(w.get("symbol",!0),p[b?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(X1);function ert(r,t,e){var n;r?n=Z(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return F(F({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new ar(n,e),a=new ar(n,e),o=new ar([],e),s=Z(e.get("data"),bt(Jet,t,r,e));r&&(s=$t(s,bt(Qet,r)));var l=SO(!!r,n);return i.initData(Z(s,function(u){return u[0]}),null,l),a.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const rrt=trt;function nrt(r){r.registerComponentModel(jet),r.registerComponentView(rrt),r.registerPreprocessor(function(t){Y1(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var irt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},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}(ha);const art=irt;var Fc=Nt(),ort=function(r,t,e,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=ff(r,i),s=ff(r,a),l=o.coord,u=s.coord;l[0]=Re(l[0],-1/0),l[1]=Re(l[1],-1/0),u[0]=Re(u[0],1/0),u[1]=Re(u[1],1/0);var f=H0([{},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 mv(r){return!isNaN(r)&&!isFinite(r)}function wM(r,t,e,n){var i=1-r;return mv(t[i])&&mv(e[i])}function srt(r,t){var e=t.coord[0],n=t.coord[1],i={coord:e,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return zo(r,"cartesian2d")?e&&n&&(wM(1,e,n)||wM(0,e,n))?!0:$et(r,i,a):cf(r,i)||cf(r,a)}function TM(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=et(o.get(e[0]),i.getWidth()),u=et(o.get(e[1]),i.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=a.clampData(f),v=a.clampData(c),d=[];e[0]==="x0"?d[0]=h[0]>v[0]?c[0]:f[0]:d[0]=h[0]>v[0]?f[0]:c[0],e[1]==="y0"?d[1]=h[1]>v[1]?c[1]:f[1]:d[1]=h[1]>v[1]?f[1]:c[1],s=n.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),y=[p,g];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(zo(a,"cartesian2d")){var m=a.getAxis("x"),_=a.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);mv(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):mv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var AM=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],lrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=ha.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(AM,function(c){return TM(s,l,c,a,i)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new _t});this.group.add(f.group),this.markKeep(f);var c=urt(o,e,n);n.setData(c),c.each(function(h){var v=Z(AM,function(T){return TM(c,h,T,e,a)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",h)),d.parse(c.get("x1",h))],_=[p.parse(c.get("y0",h)),p.parse(c.get("y1",h))];$r(m),$r(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),x=!S;c.setItemLayout(h,{points:v,allClipped:x});var b=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=Af(l,"color");b.fill||(b.fill=w,nt(b.fill)&&(b.fill=Eh(b.fill,.4))),b.stroke||(b.stroke=w),c.setItemVisual(h,"style",b)}),c.diff(Fc(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var d=new yr({shape:{points:v.points}});c.setItemGraphicEl(h,d),f.group.add(d)}}).update(function(h,v){var d=Fc(f).data.getItemGraphicEl(v),p=c.getItemLayout(h);p.allClipped?d&&f.group.remove(d):(d?Ht(d,{shape:{points:p.points}},n,h):d=new yr({shape:{points:p.points}}),c.setItemGraphicEl(h,d),f.group.add(d))}).remove(function(h){var v=Fc(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),c.eachItemGraphicEl(function(h,v){var d=c.getItemModel(v),p=c.getItemVisual(v,"style");h.useStyle(c.getItemVisual(v,"style")),Fe(h,De(d),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:nt(p.fill)?Eh(p.fill,1):"#000"}),Ge(h,d),ue(h,null,null,d.get(["emphasis","disabled"])),St(h).dataModel=n}),Fc(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(X1);function urt(r,t,e){var n,i,a=["x0","y0","x1","y1"];if(r){var o=Z(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return F(F({},c),{name:u,ordinalMeta:null})});i=Z(a,function(u,f){return{name:u,type:o[f%2].type}}),n=new ar(i,e)}else i=[{name:"value",type:"float"}],n=new ar(i,e);var s=Z(e.get("data"),bt(ort,t,r,e));r&&(s=$t(s,bt(srt,r)));var l=r?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return ea(v,i[h])}:function(u,f,c,h){return ea(u.value,i[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}const frt=lrt;function crt(r){r.registerComponentModel(art),r.registerComponentView(frt),r.registerPreprocessor(function(t){Y1(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var hrt=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"])}},vrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),Y(n)&&M(n,function(a,o){nt(a)&&(a={type:a}),n[o]=Tt(a,hrt(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i=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}(Bt);const s0=vrt;var ss=bt,l0=M,Hc=_t,drt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Hc),this.group.add(this._selectorGroup=new Hc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,l,s,u);var f=e.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=e.get("padding"),v=be(f,c,h),d=this.layoutInner(e,o,v,a,l,u),p=be(pt({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=lO(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),f=ft(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),l0(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new Hc;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),x=m.getVisual("style"),b=this._createItem(y,p,d,v,n,e,_,x,S,c,a);b.on("click",ss(CM,p,null,a,h)).on("mouseover",ss(u0,y.name,null,a,h)).on("mouseout",ss(f0,y.name,null,a,h)),i.ssr&&b.eachChild(function(w){var T=St(w);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(w){if(!f.get(p)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(p))return;var A=T.indexOfName(p),C=T.getItemVisual(A,"style"),D=T.getItemVisual(A,"legendIcon"),I=Mr(C.fill);I&&I[3]===0&&(I[3]=.2,C=F(F({},C),{fill:ui(I,"rgba")}));var L=this._createItem(w,p,d,v,n,e,{},C,D,c,a);L.on("click",ss(CM,null,p,a,h)).on("mouseover",ss(u0,null,p,a,h)).on("mouseout",ss(f0,null,p,a,h)),i.ssr&&L.eachChild(function(P){var E=St(P);E.seriesIndex=w.seriesIndex,E.dataIndex=d,E.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();l0(e,function(u){var f=u.type,c=new Gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Fe(c,{normal:h,emphasis:v},{defaultText:u.title}),_o(c)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=prt(f,a,l,u,v,g,h),x=new Hc,b=a.getModel("textStyle");if(vt(e.getLegendIcon)&&(!_||_==="inherit"))x.add(e.getLegendIcon({itemWidth:d,itemHeight:p,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;x.add(grt({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,A=s,C=o.get("formatter"),D=n;nt(C)&&C?D=C.replace("{name}",n!=null?n:""):vt(C)&&(D=C(n));var I=g?b.getTextColor():a.get("inactiveColor");x.add(new Gt({style:Qt(b,{text:D,x:T,y:p/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new Vt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&ko({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(E){E.silent=!0}),L.silent=!c,this.getContentGroup().add(x),_o(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xo(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){xo("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=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]+d+h[g],_[y]=Math.max(f[y],h[y]),_[m]=Math.min(0,h[m]+v[1-p]),_}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}(fe);function prt(r,t,e,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),l0(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:Hs(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var 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),!a){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?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 grt(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 CM(r,t,e,n){f0(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),u0(r,t,e,n)}function xO(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;ni[o],g=[-v.x,-v.y];n||(g[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=xt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var x={x:0,y:0};if(x[o]=p?i[o]:v[o],x[s]=Math.max(v[s],d[s]),x[l]=Math.min(0,d[l]+m[1-a]),c.__rectSize=i[o],p){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=x[s],c.setClipPath(new Vt({shape:b})),c.__rectSize=b[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]},p?e:null),this._updatePageInfoView(e,w),x},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",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),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=ry[o],l=ny[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(bO);const brt=xrt;function wrt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Trt(r){Lt(wO),r.registerComponentModel(Srt),r.registerComponentView(brt),wrt(r)}function Art(r){Lt(wO),Lt(Trt)}var Crt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=ga(uf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(uf);const Mrt=Crt;var q1=Nt();function Drt(r,t,e){q1(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function Irt(r,t){for(var e=q1(r).coordSysRecordMap,n=e.keys(),i=0;in[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function krt(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=q1(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=ft());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=aO(a);M(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,Lrt(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=ft());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){TO(i,a);return}var f=Ert(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),ll(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Ort=function(r){B(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,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Drt(i,e,{pan:at(iy.pan,this),zoom:at(iy.zoom,this),scrollMove:at(iy.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Irt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(G1),iy={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=ay[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*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Fo(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:LM(function(r,t,e,n,i,a){var o=ay[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:LM(function(r,t,e,n,i,a){var o=ay[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function LM(r){return function(t,e,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,i);if(Fo(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var ay={grid:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,n,i){var a=e.axis,o={},s=i.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=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,n,i){var a=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const Nrt=Ort;function AO(r){F1(r),r.registerComponentModel(Mrt),r.registerComponentView(Nrt),krt(r)}var Vrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ga(uf.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(uf);const Brt=Vrt;var Ul=Vt,PM=7,zrt=1,oy=30,Grt=7,Yl="horizontal",RM="vertical",Frt=5,Hrt=["line","bar","candlestick","scatter"],Wrt={easing:"cubicOut",duration:100,delay:0},$rt=function(r){B(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=at(this._onBrush,this),this._onBrushEnd=at(this._onBrushEnd,this)},t.prototype.render=function(e,n,i,a){if(r.prototype.render.apply(this,arguments),ll(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}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Ku(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new _t;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,i=e.get("brushSelect"),a=i?Grt:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Yl?{right:s.width-o.x-o.width,top:s.height-oy-PM-a,width:o.width,height:oy}:{right:PM,top:o.y,width:oy,height:o.height},u=il(e.option);M(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var f=be(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===RM&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Yl&&!o?{scaleY:l?1:-1,scaleX:1}:i===Yl&&o?{scaleY:l?1:-1,scaleX:-1}:i===RM&&!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,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new Ul({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Ul({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:at(this._onClickPanel,this)}),s=this.api.getZr();a?(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)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,i=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var v=[0,n[1]],d=[0,n[0]],p=[[n[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(A,C){if(_>0&&C%_){m+=y;return}var D=A==null||isNaN(A)||A==="",I=D?0:Ut(A,c,v,!0);D&&!S&&C?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,I]),g.push([m,I]),m+=y,S=D}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function b(A){var C=x.getModel(A?"selectedDataBackground":"dataBackground"),D=new _t,I=new yr({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new mr({shape:{points:f},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(I),D.add(L),D}for(var w=0;w<3;w++){var T=b(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 i,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!i&&!(n!==!0&&Dt(Hrt,u.get("type"))<0)){var f=a.getComponent(Ji(o),s).axis,c=Urt(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c),i={thisAxis:f,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,i=n.handles=[null,null],a=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 Ul({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Ul({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:zrt,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!Xh[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=ye(S,-1,0,2,2,null,!0);x.attr({cursor:EM(this._orient),draggable:!0,drift:at(this._onDragMove,this,_),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=et(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),_o(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(i[_]=x);var A=l.getModel("textStyle"),C=l.get("handleLabel")||{},D=C.show||!1;e.add(a[_]=new Gt({silent:!0,invisible:!D,style:Qt(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var v=h;if(c){var d=et(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Vt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=ye(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new Vt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:EM(this._orient),drift:at(this._onDragMove,this,"all"),ondragstart:at(this._showDataInfo,this,!0),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ut(e[0],[0,100],n,!0),Ut(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Fo(n,a,o,i.get("zoomLock")?"all":e,s.minSpan!=null?Ut(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ut(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=$r([Ut(a[0],o,l,!0),Ut(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,i=this._handleEnds,a=$r(i.slice()),o=this._size;M([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[v]+(v?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[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,a[0],a[1],o[0]],f=0;fn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,i=e.offsetY;this._brushStart=new Ct(n,i),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 i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=$r([Ut(i.x,o,s,!0),Ut(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(gi(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Ul({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.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?Wrt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=aO(this.dataZoomModel).infoList;if(!e&&n.length){var i=n[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(G1);function Urt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function EM(r){return r==="vertical"?"ns-resize":"ew-resize"}const Yrt=$rt;function CO(r){r.registerComponentModel(Brt),r.registerComponentView(Yrt),F1(r)}function Zrt(r){Lt(AO),Lt(CO)}var Xrt={get:function(r,t,e){var n=mt((qrt[r]||{})[t]);return e&&Y(n)?n[n.length-1]:n}},qrt={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]}};const MO=Xrt;var kM=ze.mapVisual,Krt=ze.eachVisual,jrt=Y,OM=M,Jrt=$r,Qrt=Ut,tnt=function(r){B(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,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,n){var i=this.option;!n&&pO(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=at(e,this),this.controllerVisuals=i0(this.option.controller,n,e),this.targetVisuals=i0(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(i,a){n.push(a)}):n=Zt(e),n},t.prototype.eachTargetSeries=function(e,n){M(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&e.call(n,a)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(i){i===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Y(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]?i[0]+" "+f[1]:e[1]===s[1]?i[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=Jrt([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 i=e.dimensions,a=i.length-1;a>=0;a--){var o=i[a],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,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Tt(a,i),Tt(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(c){jrt(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 d=c[h],p=c[v];d&&!p&&(p=c[v]={},OM(d,function(g,y){if(ze.isValidType(y)){var m=MO.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";OM(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&mt(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&mt(v)||(s?m[0]:[m[0],m[0]])),_.symbol=kM(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;Krt(S,function(b){b>x&&(x=b)}),_.symbolSize=kM(S,function(b){return Qrt(b,[0,x],[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}(Bt);const _v=tnt;var NM=[20,140],ent=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.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]=NM[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=NM[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):Y(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),M(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=$r((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=i[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(e){var n=VM(this,"outOfRange",this.getExtent()),i=VM(this,"inRange",this.option.range.slice()),a=[];function o(v,d){a.push({value:v,color:e(v,d)})}for(var s=0,l=0,u=i.length,f=n.length;le[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(e,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,i=this.visualMapModel.get("inverse");return new _t(n==="horizontal"&&!i?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent(),f=this._applyTransform("left",i.mainGroup);int([0,1],function(c){var h=o[c];h.setStyle("fill",n.handlesColor[c]),h.y=e[c];var v=Cn(e[c],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=cn(i.handleLabelPoints[c],So(h,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,i,a){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),d=this.getControllerVisual(e,"symbolSize"),p=Cn(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=cn(f.indicatorLabelPoint,So(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:p,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,A),_.animateTo(T,A)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var D=0;Do[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||FM(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var d=XG(h,v);this._dispatchHighDown("downplay",gh(d[0],i)),this._dispatchHighDown("highlight",gh(d[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(so(e.target,function(l){var u=St(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.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 i=0;i=0&&(a.dimension=o,n.push(a))}}),r.getData().setVisual("visualMeta",n)}}];function vnt(r,t,e,n){for(var i=t.targetVisuals[n],a=ze.prepareVisualTypes(i),o={color:Af(r.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(fnt,cnt),M(hnt,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(dnt))}function PO(r){r.registerComponentModel(rnt),r.registerComponentView(unt),LO(r)}var pnt=function(r){B(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 i=this._mode=this._determineMode();this._pieceList=[],gnt[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=mt(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=mt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},i=ze.listVisualTypes(),a=this.isCategory();M(e.pieces,function(s){M(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),M(n,function(s,l){var u=!1;M(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&M(this.stateList,function(f){(e[f]||(e[f]={}))[l]=MO.get(l,f==="inRange"?"active":"inactive",a)})},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 i=this.option,a=this._pieceList,o=(n?i:e).selected||{};if(i.selected=o,M(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),i.selectedMode==="single"){var s=!1;M(a,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=mt(e)},t.prototype.getValueState=function(e){var n=ze.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=ze.findPieceIndex(l,i);f===e&&o.push(u)},this),n.push({seriesId:a.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 i=e.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(f,c){var h=a.getRepresentValue({interval:f});c||(c=a.getValueState(h));var v=e(h,c);f[0]===-1/0?i[0]=v:f[1]===1/0?i[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 M(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:i}},t.type="visualMap.piecewise",t.defaultOption=ga(_v.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}(_v),gnt={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(e)!==a&&e<5;)e++;t.precision=e,a=+a.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,i)},this)}};function UM(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const ynt=pnt;var mnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),c=f.endsText,h=Re(n.get("showLabel",!0),!c),v=!n.get("selectedMode");c&&this._renderEndsText(e,c[0],u,h,l),M(f.viewPieceList,function(d){var p=d.piece,g=new _t;g.onclick=at(this._onItemClick,this,p),this._enableHoverLink(g,d.indexInModelPieceList);var y=n.getRepresentValue(p);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],v),h){var m=this.visualMapModel.getValueState(y);g.add(new Gt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1},silent:v}))}e.add(g)},this),c&&this._renderEndsText(e,c[1],u,h,l),xo(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var i=this;e.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:gh(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return IO(e,this.api,e.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(e,n,i,a,o){if(n){var s=new _t,l=this.visualMapModel.textStyleModel;s.add(new Gt({style:Qt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=Z(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=e.get("text"),a=e.get("orient"),o=e.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(e,n,i,a){var o=ye(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));o.silent=a,e.add(o)},t.prototype._onItemClick=function(e){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=mt(i.selected),s=n.getSelectedMapKey(e);a==="single"||a===!0?(o[s]=!0,M(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}(DO);const _nt=mnt;function RO(r){r.registerComponentModel(ynt),r.registerComponentView(_nt),LO(r)}function Snt(r){Lt(PO),Lt(RO)}var xnt={label:{enabled:!0},decal:{show:!1}},YM=Nt(),bnt={};function wnt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=mt(xnt);Tt(n.label,r.getLocaleModel().get("aria"),!1),Tt(e.option,n,!1),i(),a();function i(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=ft();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),YM(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=hm(h.ecModel,h.name,bnt,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=h.getRawData(),p={},g=YM(h).scope;v.each(function(x){var b=v.getRawIndex(x);p[b]=x});var y=d.count();d.each(function(x){var b=p[x],w=d.getName(x)||x+"",T=hm(h.ecModel,w,g,y),A=v.getItemVisual(b,"decal");v.setItemVisual(b,"decal",S(A,T))})}function S(x,b){var w=x?F(F({},b),x):b;return w.dirty=!0,w}})}}function a(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=pt(c.option,f),!!c.get("enabled")){if(u.setAttribute("role","img"),c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),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,A){if(A1?c.get(["series","multiple",I]):c.get(["series","single",I]),C=o(C,{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"]);C+=o(P,{displayCnt:v})}else C+=c.get(["data","allData"]);for(var E=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),V=c.get(["data","excludeDimensionId"]),N=[],z=0;z":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Cnt=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):n5(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):Ft(e)?this._condVal.test(t+""):!1},r}(),Mnt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Dnt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(i),i=[L,P]}function f(L,P,E,O){xs(L,E)&&xs(P,O)||i.push(L,P,E,O,E,O)}function c(L,P,E,O,V,N){var z=Math.abs(P-L),$=Math.tan(z/4)*4/3,q=PT:D2&&n.push(i),n}function h0(r,t,e,n,i,a,o,s,l,u){if(xs(r,e)&&xs(t,n)&&xs(i,o)&&xs(a,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-r,v=s-t,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=e-r,g=n-t,y=i-o,m=a-s,_=p*p+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var A=[],C=[];aa(r,e,i,o,.5,A),aa(t,n,a,s,.5,C),h0(A[0],C[0],A[1],C[1],A[2],C[2],A[3],C[3],l,u),h0(A[4],C[4],A[5],C[5],A[6],C[6],A[7],C[7],l,u)}function Hnt(r,t){var e=c0(r),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),c=kO([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;vi,o=kO([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",f=a?"y":"x",c=r[s]/o.length,h=0;h1?null:new Ct(p*l+r,p*u+t)}function Unt(r,t,e){var n=new Ct;Ct.sub(n,e,t),n.normalize();var i=new Ct;Ct.sub(i,r,t);var a=i.dot(n);return a}function us(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Ynt(r,t,e){for(var n=r.length,i=[],a=0;ao?(u.x=f.x=s+a/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+a),Ynt(t,u,f)}function Sv(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);Sv(r,a[0],i,n),Sv(r,a[1],e-i,n)}return n}function Znt(r,t){for(var e=[],n=0;n0)for(var x=n/e,b=-n/2;b<=n/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),A=0,_=0;_0;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 wv(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=Z(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),i=Math.max(c,i),[f,c]}),o=Z(a,function(s,l){return{cp:s,z:rit(s[0],s[1],t,e,n,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function VO(r){return Knt(r.path,r.count)}function v0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function nit(r,t,e){var n=[];function i(x){for(var b=0;b=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var a=l.length,u=Math.ceil(a/2);e[i].many=l.slice(u,a),e[s].many=l.slice(0,u),s++}return e}var ait={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;eD(r)&&(u=r,f=t),eD(t)&&(u=t,f=r);function c(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,A=m?w:b[0];if(xv(T))c({many:[T],one:A},!0,_,S,!0);else{var C=s?pt({delay:s(_,S)},l):l;j1(T,A,C),a(T,A,T,A,C)}}else for(var D=pt({dividePath:ait[e],individualDelay:s&&function(V,N,z,$){return s(V+_,S)}},l),I=m?nit(b,w,D):iit(w,b,D),L=I.fromIndividuals,P=I.toIndividuals,E=L.length,O=0;Ot.length,v=u?rD(f,u):rD(h?t:r,[h?r:t]),d=0,p=0;pBO))for(var a=n.getIndices(),o=0;o0&&b.group.traverse(function(T){T instanceof Pt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function sD(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function lD(r){return Y(r)?r.sort().join(","):r}function Wi(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function hit(r,t){var e=ft(),n=ft(),i=ft();return M(r.oldSeries,function(a,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=sD(a),f=lD(u);n.set(f,{dataGroupId:s,data:l}),Y(u)&&M(u,function(c){i.set(c,{key:f,dataGroupId:s,data:l})})}),M(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=sD(a),u=lD(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Wi(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Wi(s),data:s}]});else if(Y(l)){var c=[];M(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Wi(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Wi(s)}]})}else{var h=i.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Wi(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Wi(s)})}}}}),e}function uD(r,t){for(var e=0;e=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Wi(t.oldData[s]),groupIdDim:o.dimension})}),M(Zt(r.to),function(o){var s=uD(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Wi(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&zO(i,a,n)}function dit(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){M(Zt(n.seriesTransition),function(i){M(Zt(i.to),function(a){for(var o=n.updatedSeries,s=0;s{d0(r)}))}function d0(r,t=new WeakSet){if(!(!r||typeof r!="object")&&!t.has(r)){if(t.add(r),Array.isArray(r)){r.forEach(e=>d0(e,t));return}r.tooltip&&typeof r.tooltip=="object"&&(r.tooltip=git(r.tooltip)),Object.keys(r).forEach(e=>{const n=r[e];!n||typeof n!="object"||d0(n,t)})}}function git(r){var t,e;return iS(nS({},r),{appendToBody:(t=r.appendToBody)!=null?t:!0,confine:(e=r.confine)!=null?e:!1,extraCssText:yit(r.extraCssText)})}function yit(r=""){const t=String(r||"").trim();return t?/z-index\s*:/i.test(t)?t:`${t.replace(/;$/,"")};${fD}`:fD}pit();let mit=SB(Gz);mit.use(PI).mount("#app");export{Mit as A,y0 as B,kz as C,Tit as D,Ah as E,zr as F,NV as G,BN as H,xit as I,Lit as J,Eit as K,Rit as L,xf as M,Pit as N,wit as O,yI as P,Iit as Q,Vit as R,Oit as S,kit as T,Nit as U,Vz as _,cI as a,Pe as b,Cit as c,$c as d,nn as e,QN as f,Dit as g,I0 as h,un as i,FV as j,bit as k,KN as l,dI as m,m0 as n,wh as o,Uc as p,Sit as q,Ait as r,CN as s,nN as t,vo as u,Bit as v,Yc as w,A0 as x,ke as y,P_ as z};