var tN=Object.defineProperty,eN=Object.defineProperties;var rN=Object.getOwnPropertyDescriptors;var vS=Object.getOwnPropertySymbols;var nN=Object.prototype.hasOwnProperty,iN=Object.prototype.propertyIsEnumerable;var dS=(r,t,e)=>t in r?tN(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,pS=(r,t)=>{for(var e in t||(t={}))nN.call(t,e)&&dS(r,e,t[e]);if(vS)for(var e of vS(t))iN.call(t,e)&&dS(r,e,t[e]);return r},gS=(r,t)=>eN(r,rN(t));var _l=(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.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function T0(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const ae={},Ms=[],ln=()=>{},MD=()=>!1,Pv=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Rv=r=>r.startsWith("onUpdate:"),Me=Object.assign,A0=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},aN=Object.prototype.hasOwnProperty,jt=(r,t)=>aN.call(r,t),It=Array.isArray,Ds=r=>Sf(r)==="[object Map]",tl=r=>Sf(r)==="[object Set]",yS=r=>Sf(r)==="[object Date]",Ot=r=>typeof r=="function",he=r=>typeof r=="string",Ir=r=>typeof r=="symbol",re=r=>r!==null&&typeof r=="object",DD=r=>(re(r)||Ot(r))&&Ot(r.then)&&Ot(r.catch),ID=Object.prototype.toString,Sf=r=>ID.call(r),oN=r=>Sf(r).slice(8,-1),LD=r=>Sf(r)==="[object Object]",Ev=r=>he(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,du=T0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),kv=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},sN=/-\w/g,or=kv(r=>r.replace(sN,t=>t.slice(1).toUpperCase())),lN=/\B([A-Z])/g,ma=kv(r=>r.replace(lN,"-$1").toLowerCase()),Ov=kv(r=>r.charAt(0).toUpperCase()+r.slice(1)),Ed=kv(r=>r?`on${Ov(r)}`:""),En=(r,t)=>!Object.is(r,t),Jc=(r,...t)=>{for(let e=0;e{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},Nv=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let mS;const Vv=()=>mS||(mS=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function C0(r){if(It(r)){const t={};for(let e=0;e{if(e){const n=e.split(fN);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function M0(r){let t="";if(he(r))t=r;else if(It(r))for(let e=0;eoa(e,t))}const ED=r=>!!(r&&r.__v_isRef===!0),gN=r=>he(r)?r:r==null?"":It(r)||re(r)&&(r.toString===ID||!Ot(r.toString))?ED(r)?gN(r.value):JSON.stringify(r,kD,2):String(r),kD=(r,t)=>ED(t)?kD(r,t.value):Ds(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],a)=>(e[kd(n,a)+" =>"]=i,e),{})}:tl(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>kd(e))}:Ir(t)?kd(t):re(t)&&!It(t)&&!LD(t)?String(t):t,kd=(r,t="")=>{var e;return Ir(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/** * @vue/reactivity v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Oe;class yN{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Oe&&(Oe.active?(this.parent=Oe,this.index=(Oe.scopes||(Oe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!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){if(Oe===this)Oe=this.prevScope;else{let t=Oe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.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(gu){let t=gu;for(gu=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let r;for(;pu;){let t=pu;for(pu=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 BD(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zD(r){let t,e=r.depsTail,n=e;for(;n;){const i=n.prevDep;n.version===-1?(n===e&&(e=i),P0(n),_N(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}r.deps=t,r.depsTail=e}function my(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(GD(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function GD(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===Bu)||(r.globalVersion=Bu,!r.isSSR&&r.flags&128&&(!r.deps&&!r._dirty||!my(r))))return;r.flags|=2;const t=r.dep,e=se,n=un;se=r,un=!0;try{BD(r);const i=r.fn(r._value);(t.version===0||En(i,r._value))&&(r.flags|=128,r._value=i,t.version++)}catch(i){throw t.version++,i}finally{se=e,un=n,zD(r),r.flags&=-3}}function P0(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)P0(a,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function _N(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let un=!0;const FD=[];function Hn(){FD.push(un),un=!1}function Wn(){const r=FD.pop();un=r===void 0?!0:r}function _S(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=se;se=void 0;try{t()}finally{se=e}}}let Bu=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 R0{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||!un||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,HD(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++,Bu++,this.notify(t)}notify(t){I0();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{L0()}}}function HD(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)HD(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const Ah=new WeakMap,yo=Symbol(""),_y=Symbol(""),zu=Symbol("");function Xe(r,t,e){if(un&&se){let n=Ah.get(r);n||Ah.set(r,n=new Map);let i=n.get(e);i||(n.set(e,i=new R0),i.map=n,i.key=e),i.track()}}function oi(r,t,e,n,i,a){const o=Ah.get(r);if(!o){Bu++;return}const s=l=>{l&&l.trigger()};if(I0(),t==="clear")o.forEach(s);else{const l=It(r),u=l&&Ev(e);if(l&&e==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===zu||!Ir(h)&&h>=f)&&s(c)})}else switch((e!==void 0||o.has(void 0))&&s(o.get(e)),u&&s(o.get(zu)),t){case"add":l?u&&s(o.get("length")):(s(o.get(yo)),Ds(r)&&s(o.get(_y)));break;case"delete":l||(s(o.get(yo)),Ds(r)&&s(o.get(_y)));break;case"set":Ds(r)&&s(o.get(yo));break}}L0()}function xN(r,t){const e=Ah.get(r);return e&&e.get(t)}function Zo(r){const t=Xt(r);return t===r?t:(Xe(t,"iterate",zu),Ar(r)?t:t.map(vn))}function Bv(r){return Xe(r=Xt(r),"iterate",zu),r}function Pn(r,t){return gi(r)?Bs(mo(r)?vn(t):t):vn(t)}const bN={__proto__:null,[Symbol.iterator](){return Nd(this,Symbol.iterator,r=>Pn(this,r))},concat(...r){return Zo(this).concat(...r.map(t=>It(t)?Zo(t):t))},entries(){return Nd(this,"entries",r=>(r[1]=Pn(this,r[1]),r))},every(r,t){return jn(this,"every",r,t,void 0,arguments)},filter(r,t){return jn(this,"filter",r,t,e=>e.map(n=>Pn(this,n)),arguments)},find(r,t){return jn(this,"find",r,t,e=>Pn(this,e),arguments)},findIndex(r,t){return jn(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return jn(this,"findLast",r,t,e=>Pn(this,e),arguments)},findLastIndex(r,t){return jn(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return jn(this,"forEach",r,t,void 0,arguments)},includes(...r){return Vd(this,"includes",r)},indexOf(...r){return Vd(this,"indexOf",r)},join(r){return Zo(this).join(r)},lastIndexOf(...r){return Vd(this,"lastIndexOf",r)},map(r,t){return jn(this,"map",r,t,void 0,arguments)},pop(){return Sl(this,"pop")},push(...r){return Sl(this,"push",r)},reduce(r,...t){return SS(this,"reduce",r,t)},reduceRight(r,...t){return SS(this,"reduceRight",r,t)},shift(){return Sl(this,"shift")},some(r,t){return jn(this,"some",r,t,void 0,arguments)},splice(...r){return Sl(this,"splice",r)},toReversed(){return Zo(this).toReversed()},toSorted(r){return Zo(this).toSorted(r)},toSpliced(...r){return Zo(this).toSpliced(...r)},unshift(...r){return Sl(this,"unshift",r)},values(){return Nd(this,"values",r=>Pn(this,r))}};function Nd(r,t,e){const n=Bv(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 wN=Array.prototype;function jn(r,t,e,n,i,a){const o=Bv(r),s=o!==r&&!Ar(r),l=o[t];if(l!==wN[t]){const c=l.apply(r,a);return s?vn(c):c}let u=e;o!==r&&(s?u=function(c,h){return e.call(this,Pn(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 SS(r,t,e,n){const i=Bv(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=Pn(r,u)),e.call(this,u,Pn(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?Pn(r,l):l}function Vd(r,t,e){const n=Xt(r);Xe(n,"iterate",zu);const i=n[t](...e);return(i===-1||i===!1)&&Gv(e[0])?(e[0]=Xt(e[0]),n[t](...e)):i}function Sl(r,t,e=[]){Hn(),I0();const n=Xt(r)[t].apply(r,e);return L0(),Wn(),n}const TN=T0("__proto__,__v_isRef,__isVue"),WD=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Ir));function AN(r){Ir(r)||(r=String(r));const t=Xt(this);return Xe(t,"has",r),t.hasOwnProperty(r)}class $D{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?ON:XD:a?ZD:YD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=It(t);if(!i){let l;if(o&&(l=bN[e]))return l;if(e==="hasOwnProperty")return AN}const s=Reflect.get(t,e,ke(t)?t:n);if((Ir(e)?WD.has(e):TN(e))||(i||Xe(t,"get",e),a))return s;if(ke(s)){const l=o&&Ev(e)?s:s.value;return i&&re(l)?xy(l):l}return re(s)?i?xy(s):zv(s):s}}class UD extends $D{constructor(t=!1){super(!1,t)}set(t,e,n,i){let a=t[e];const o=It(t)&&Ev(e);if(!this._isShallow){const u=gi(a);if(!Ar(n)&&!gi(n)&&(a=Xt(a),n=Xt(n)),!o&&ke(a)&&!ke(n))return u||(a.value=n),!0}const s=o?Number(e)r,$f=r=>Reflect.getPrototypeOf(r);function LN(r,t,e){return function(...n){const i=this.__v_raw,a=Xt(i),o=Ds(a),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=i[r](...n),f=e?Sy:t?Bs:vn;return!t&&Xe(a,"iterate",l?_y:yo),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 Uf(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function PN(r,t){const e={get(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);r||(En(i,s)&&Xe(o,"get",i),Xe(o,"get",s));const{has:l}=$f(o),u=t?Sy:r?Bs:vn;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&&Xe(Xt(i),"iterate",yo),i.size},has(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);return r||(En(i,s)&&Xe(o,"has",i),Xe(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?Sy:r?Bs:vn;return!r&&Xe(l,"iterate",yo),s.forEach((f,c)=>i.call(a,u(f),u(c),o))}};return Me(e,r?{add:Uf("add"),set:Uf("set"),delete:Uf("delete"),clear:Uf("clear")}:{add(i){const a=Xt(this),o=$f(a),s=Xt(i),l=!t&&!Ar(i)&&!gi(i)?s:i;return o.has.call(a,l)||En(i,l)&&o.has.call(a,i)||En(s,l)&&o.has.call(a,s)||(a.add(l),oi(a,"add",l,l)),this},set(i,a){!t&&!Ar(a)&&!gi(a)&&(a=Xt(a));const o=Xt(this),{has:s,get:l}=$f(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?En(a,f)&&oi(o,"set",i,a):oi(o,"add",i,a),this},delete(i){const a=Xt(this),{has:o,get:s}=$f(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&&oi(a,"delete",i,void 0),u},clear(){const i=Xt(this),a=i.size!==0,o=i.clear();return a&&oi(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=LN(i,r,t)}),e}function E0(r,t){const e=PN(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 RN={get:E0(!1,!1)},EN={get:E0(!1,!0)},kN={get:E0(!0,!1)};const YD=new WeakMap,ZD=new WeakMap,XD=new WeakMap,ON=new WeakMap;function NN(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zv(r){return gi(r)?r:k0(r,!1,MN,RN,YD)}function qD(r){return k0(r,!1,IN,EN,ZD)}function xy(r){return k0(r,!0,DN,kN,XD)}function k0(r,t,e,n,i){if(!re(r)||r.__v_raw&&!(t&&r.__v_isReactive)||r.__v_skip||!Object.isExtensible(r))return r;const a=i.get(r);if(a)return a;const o=NN(oN(r));if(o===0)return r;const s=new Proxy(r,o===2?n:e);return i.set(r,s),s}function mo(r){return gi(r)?mo(r.__v_raw):!!(r&&r.__v_isReactive)}function gi(r){return!!(r&&r.__v_isReadonly)}function Ar(r){return!!(r&&r.__v_isShallow)}function Gv(r){return r?!!r.__v_raw:!1}function Xt(r){const t=r&&r.__v_raw;return t?Xt(t):r}function VN(r){return!jt(r,"__v_skip")&&Object.isExtensible(r)&&PD(r,"__v_skip",!0),r}const vn=r=>re(r)?zv(r):r,Bs=r=>re(r)?xy(r):r;function ke(r){return r?r.__v_isRef===!0:!1}function Qc(r){return KD(r,!1)}function BN(r){return KD(r,!0)}function KD(r,t){return ke(r)?r:new zN(r,t)}class zN{constructor(t,e){this.dep=new R0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Xt(t),this._value=e?t:vn(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)||gi(t);t=n?t:Xt(t),En(t,e)&&(this._rawValue=t,this._value=n?t:vn(t),this.dep.trigger())}}function _o(r){return ke(r)?r.value:r}const GN={get:(r,t,e)=>t==="__v_raw"?r:_o(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 jD(r){return mo(r)?r:new Proxy(r,GN)}function Fit(r){const t=It(r)?new Array(r.length):{};for(const e in r)t[e]=HN(r,e);return t}class FN{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)||!Ev(this._key))do i=!Gv(a)||Ar(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=_o(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 xN(this._raw,this._key)}}function HN(r,t,e){return new FN(r,t,e)}class WN{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new R0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bu-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 VD(this,!0),!0}get value(){const t=this.dep.track();return GD(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function $N(r,t,e=!1){let n,i;return Ot(r)?n=r:(n=r.get,i=r.set),new WN(n,i,e)}const Yf={},Ch=new WeakMap;let Xa;function UN(r,t=!1,e=Xa){if(e){let n=Ch.get(e);n||Ch.set(e,n=[]),n.push(r)}}function YN(r,t,e=ae){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=e,u=S=>i?S:Ar(S)||i===!1||i===0?si(S,1):si(S);let f,c,h,v,d=!1,p=!1;if(ke(r)?(c=()=>r.value,d=Ar(r)):mo(r)?(c=()=>u(r),d=!0):It(r)?(p=!0,d=r.some(S=>mo(S)||Ar(S)),c=()=>r.map(S=>{if(ke(S))return S.value;if(mo(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){Hn();try{h()}finally{Wn()}}const S=Xa;Xa=f;try{return l?l(r,3,[v]):r(v)}finally{Xa=S}}:c=ln,t&&i){const S=c,x=i===!0?1/0:i;c=()=>si(S(),x)}const g=mN(),y=()=>{f.stop(),g&&g.active&&A0(g.effects,f)};if(a&&t){const S=t;t=(...x)=>{const b=S(...x);return y(),b}}let m=p?new Array(r.length).fill(Yf):Yf;const _=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(t){const x=f.run();if(S||i||d||(p?x.some((b,w)=>En(b,m[w])):En(x,m))){h&&h();const b=Xa;Xa=f;try{const w=[x,m===Yf?void 0:p&&m[0]===Yf?[]:m,v];m=x,l?l(t,3,w):t(...w)}finally{Xa=b}}}else f.run()};return s&&s(_),f=new OD(c),f.scheduler=o?()=>o(_,!1):_,v=S=>UN(S,!1,f),h=f.onStop=()=>{const S=Ch.get(f);if(S){if(l)l(S,4);else for(const x of S)x();Ch.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 si(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))si(r.value,t,e);else if(It(r))for(let n=0;n{si(n,t,e)});else if(LD(r)){for(const n in r)si(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&si(r[n],t,e)}return r}/** * @vue/runtime-core v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function xf(r,t,e,n){try{return n?r(...n):r()}catch(i){bf(i,t,e)}}function dn(r,t,e,n){if(Ot(r)){const i=xf(r,t,e,n);return i&&DD(i)&&i.catch(a=>{bf(a,t,e)}),i}if(It(r)){const i=[];for(let a=0;a>>1,i=ar[n],a=Gu(i);a=Gu(e)?ar.push(r):ar.splice(XN(t),0,r),r.flags|=1,QD()}}function QD(){Mh||(Mh=JD.then(eI))}function qN(r){It(r)?Is.push(...r):Wi&&r.id===-1?Wi.splice(gs+1,0,r):r.flags&1||(Is.push(r),r.flags|=1),QD()}function xS(r,t,e=In+1){for(;eGu(e)-Gu(n));if(Is.length=0,Wi){Wi.push(...t);return}for(Wi=t,gs=0;gsr.id==null?r.flags&2?-1:1/0:r.id;function eI(r){const t=ln;try{for(In=0;In{n._d&&Rh(-1);const a=Dh(t);let o;try{o=r(...i)}finally{Dh(a),n._d&&Rh(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Hit(r,t){if(Be===null)return r;const e=$v(Be),n=r.dirs||(r.dirs=[]);for(let i=0;i1)return e&&Ot(t)?t.call(n&&n.proxy):t}}const jN=Symbol.for("v-scx"),JN=()=>fn(jN);function Wit(r,t){return V0(r,null,t)}function eh(r,t,e){return V0(r,t,e)}function V0(r,t,e=ae){const{immediate:n,deep:i,flush:a,once:o}=e,s=Me({},e),l=t&&n||!t&&a!=="post";let u;if(Gs){if(a==="sync"){const v=JN();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=ln,v.resume=ln,v.pause=ln,v}}const f=Ve;s.call=(v,d,p)=>dn(v,f,d,p);let c=!1;a==="post"?s.scheduler=v=>{tr(v,f&&f.suspense)}:a!=="sync"&&(c=!0,s.scheduler=(v,d)=>{d?v():N0(v)}),s.augmentJob=v=>{t&&(v.flags|=4),c&&(v.flags|=2,f&&(v.id=f.uid,v.i=f))};const h=YN(r,t,s);return Gs&&(u?u.push(h):l&&h()),h}function QN(r,t,e){const n=this.proxy,i=he(r)?r.includes(".")?nI(n,r):()=>n[r]:r.bind(n,n);let a;Ot(t)?a=t:(a=t.handler,e=t);const o=wf(this),s=V0(i,a.bind(n),e);return o(),s}function nI(r,t){const e=t.split(".");return()=>{let n=r;for(let i=0;ir.__isTeleport,eo=r=>r&&(r.disabled||r.disabled===""),eV=r=>r&&(r.defer||r.defer===""),bS=r=>typeof SVGElement!="undefined"&&r instanceof SVGElement,wS=r=>typeof MathMLElement=="function"&&r instanceof MathMLElement,by=(r,t)=>{const e=r&&r.to;return he(e)?t?t(e):null:e},rV={name:"Teleport",__isTeleport:!0,process(r,t,e,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:h,o:{insert:v,querySelector:d,createText:p,createComment:g,parentNode:y}}=u,m=eo(t.props);let{dynamicChildren:_}=t;const S=(w,T,A)=>{w.shapeFlag&16&&f(w.children,T,A,i,a,o,s,l)},x=(w=t)=>{const T=eo(w.props),A=w.target=by(w.props,d),C=wy(A,w,p,v);A&&(o!=="svg"&&bS(A)?o="svg":o!=="mathml"&&wS(A)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(A),T||(S(w,A,C),Ql(w,!1)))},b=w=>{const T=()=>{if(zi.get(w)===T){if(zi.delete(w),eo(w.props)){const A=y(w.el)||e;S(w,A,w.anchor),Ql(w,!0)}x(w)}};zi.set(w,T),tr(T,a)};if(r==null){const w=t.el=p(""),T=t.anchor=p("");if(v(w,e,n),v(T,e,n),eV(t.props)||a&&a.pendingBranch){b(t);return}m&&(S(t,e,T),Ql(t,!0)),x()}else{t.el=r.el;const w=t.anchor=r.anchor,T=zi.get(r);if(T){T.flags|=8,zi.delete(r),b(t);return}t.targetStart=r.targetStart;const A=t.target=r.target,C=t.targetAnchor=r.targetAnchor,D=eo(r.props),I=D?e:A,L=D?w:C;if(o==="svg"||bS(A)?o="svg":(o==="mathml"||wS(A))&&(o="mathml"),_?(h(r.dynamicChildren,_,I,i,a,o,s),Y0(r,t,!0)):l||c(r,t,I,L,i,a,o,s,!1),m)D?t.props&&r.props&&t.props.to!==r.props.to&&(t.props.to=r.props.to):Zf(t,e,w,u,1);else if((t.props&&t.props.to)!==(r.props&&r.props.to)){const P=by(t.props,d);P&&(t.target=P,Zf(t,P,null,u,0))}else D&&Zf(t,A,C,u,1);Ql(t,m)}},remove(r,t,e,{um:n,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:f,target:c,props:h}=r,v=eo(h),d=a||!v,p=zi.get(r);if(p&&(p.flags|=8,zi.delete(r)),c&&(i(u),i(f)),a&&i(l),!p&&(v||c)&&o&16)for(let g=0;gMe({name:r.name},t,{setup:r}))():r}function G0(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function TS(r,t){let e;return!!((e=Object.getOwnPropertyDescriptor(r,t))&&!e.configurable)}const Ih=new WeakMap;function yu(r,t,e,n,i=!1){if(It(r)){r.forEach((p,g)=>yu(p,t&&(It(t)?t[g]:t),e,n,i));return}if(Ls(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&yu(r,t,e,n.component.subTree);return}const a=n.shapeFlag&4?$v(n.component):n.el,o=i?null:a,{i:s,r:l}=r,u=t&&t.r,f=s.refs===ae?s.refs={}:s.refs,c=s.setupState,h=Xt(c),v=c===ae?MD:p=>TS(f,p)?!1:jt(h,p),d=(p,g)=>!(g&&TS(f,g));if(u!=null&&u!==l){if(AS(t),he(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)){Hn();try{xf(l,s,12,[o,f])}finally{Wn()}}else{const p=he(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)&&A0(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(),Ih.delete(r)};m.id=-1,Ih.set(r,m),tr(m,e)}else AS(r),y()}}}function AS(r){const t=Ih.get(r);t&&(t.flags|=8,Ih.delete(r))}const CS=r=>r.nodeType===8;Vv().requestIdleCallback;Vv().cancelIdleCallback;function iV(r,t){if(CS(r)&&r.data==="["){let e=1,n=r.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(CS(n))if(n.data==="]"){if(--e===0)break}else n.data==="["&&e++;n=n.nextSibling}}else t(r)}const Ls=r=>!!r.type.__asyncLoader;function Uit(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 z0({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=>iV(d,x));S&&(p.bum||(p.bum=[])).push(S)}:m;f?_():v().then(()=>!p.isUnmounted&&_())},get __asyncResolved(){return f},setup(){const d=Ve;if(G0(d),f)return()=>Xf(f,d);const p=x=>{u=null,bf(x,d,13,!n)};if(s&&d.suspense||Gs)return v().then(x=>()=>Xf(x,d)).catch(x=>(p(x),()=>n?Pe(n,{error:x}):null));const g=Qc(!1),y=Qc(),m=Qc(!!i);let _,S;return H0(()=>{_!=null&&clearTimeout(_),S!=null&&clearTimeout(S)}),i&&(S=setTimeout(()=>{d.isUnmounted||(m.value=!1)},i)),o!=null&&(_=setTimeout(()=>{if(!d.isUnmounted&&!g.value&&!y.value){const x=new Error(`Async component timed out after ${o}ms.`);p(x),y.value=x}},o)),v().then(()=>{d.isUnmounted||(g.value=!0,d.parent&&F0(d.parent.vnode)&&d.parent.update())}).catch(x=>{if(d.isUnmounted){u=null;return}p(x),y.value=x}),()=>{if(g.value&&f)return Xf(f,d);if(y.value&&n)return Pe(n,{error:y.value});if(e&&!m.value)return Xf(e,d)}}})}function Xf(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 F0=r=>r.type.__isKeepAlive;function aV(r,t){aI(r,"a",t)}function oV(r,t){aI(r,"da",t)}function aI(r,t,e=Ve){const n=r.__wdc||(r.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(Fv(t,n,e),e){let i=e.parent;for(;i&&i.parent;)F0(i.parent.vnode)&&sV(n,t,e,i),i=i.parent}}function sV(r,t,e,n){const i=Fv(t,r,n,!0);H0(()=>{A0(n[t],i)},e)}function Fv(r,t,e=Ve,n=!1){if(e){const i=e[r]||(e[r]=[]),a=t.__weh||(t.__weh=(...o)=>{Hn();const s=wf(e),l=dn(t,e,r,o);return s(),Wn(),l});return n?i.unshift(a):i.push(a),a}}const Ai=r=>(t,e=Ve)=>{(!Gs||r==="sp")&&Fv(r,(...n)=>t(...n),e)},lV=Ai("bm"),uV=Ai("m"),fV=Ai("bu"),cV=Ai("u"),hV=Ai("bum"),H0=Ai("um"),vV=Ai("sp"),dV=Ai("rtg"),pV=Ai("rtc");function gV(r,t=Ve){Fv("ec",r,t)}const oI="components";function yV(r,t){return _V(oI,r,!0,t)||r}const mV=Symbol.for("v-ndc");function _V(r,t,e=!0,n=!1){const i=Be||Ve;if(i){const a=i.type;if(r===oI){const s=aB(a,!1);if(s&&(s===t||s===or(t)||s===Ov(or(t))))return a}const o=MS(i[r]||a[r],t)||MS(i.appContext[r],t);return!o&&n?a:o}}function MS(r,t){return r&&(r[t]||r[or(t)]||r[Ov(or(t))])}function Yit(r,t,e,n){let i;const a=e&&e[n],o=It(r);if(o||he(r)){const s=o&&mo(r);let l=!1,u=!1;s&&(l=!Ar(r),u=gi(r),r=Bv(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),Ph(),Eh(zr,null,[Pe("slot",e,n&&n())],u?-2:64)}let a=r[t];a&&a._c&&(a._d=!1),Ph();const o=a&&sI(a(e)),s=e.key||o&&o.key,l=Eh(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 sI(r){return r.some(t=>Hu(t)?!(t.type===yi||t.type===zr&&!sI(t.children)):!0)?r:null}const Ty=r=>r?CI(r)?$v(r):Ty(r.parent):null,mu=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=>Ty(r.parent),$root:r=>Ty(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>W0(r),$forceUpdate:r=>r.f||(r.f=()=>{N0(r.update)}),$nextTick:r=>r.n||(r.n=O0.bind(r.proxy)),$watch:r=>QN.bind(r)}),zd=(r,t)=>r!==ae&&!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(zd(n,t))return o[t]=1,n[t];if(i!==ae&&jt(i,t))return o[t]=2,i[t];if(jt(a,t))return o[t]=3,a[t];if(e!==ae&&jt(e,t))return o[t]=4,e[t];Ay&&(o[t]=0)}}const u=mu[t];let f,c;if(u)return t==="$attrs"&&Xe(r.attrs,"get",""),u(r);if((f=s.__cssModules)&&(f=f[t]))return f;if(e!==ae&&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 zd(i,t)?(i[t]=e,!0):n!==ae&&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!==ae&&s[0]!=="$"&&jt(r,s)||zd(t,s)||jt(a,s)||jt(n,s)||jt(mu,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 Ay=!0;function xV(r){const t=W0(r),e=r.proxy,n=r.ctx;Ay=!1,t.beforeCreate&&IS(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&&bV(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=zv(V))}if(Ay=!0,a)for(const V in a){const N=a[V],G=Ot(N)?N.bind(e,e):Ot(N.get)?N.get.bind(e,e):ln,$=!Ot(N)&&Ot(N.set)?N.set.bind(e):ln,q=an({get:G,set:$});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>q.value,set:Q=>q.value=Q})}if(s)for(const V in s)lI(s[V],n,e,V);if(l){const V=Ot(l)?l.call(e):l;Reflect.ownKeys(V).forEach(N=>{th(N,V[N])})}f&&IS(f,r,"c");function O(V,N){It(N)?N.forEach(G=>V(G.bind(e))):N&&V(N.bind(e))}if(O(lV,c),O(uV,h),O(fV,v),O(cV,d),O(aV,p),O(oV,g),O(gV,T),O(pV,b),O(dV,w),O(hV,m),O(H0,S),O(vV,A),It(C))if(C.length){const V=r.exposed||(r.exposed={});C.forEach(N=>{Object.defineProperty(V,N,{get:()=>e[N],set:G=>e[N]=G,enumerable:!0})})}else r.exposed||(r.exposed={});x&&r.render===ln&&(r.render=x),D!=null&&(r.inheritAttrs=D),I&&(r.components=I),L&&(r.directives=L),A&&G0(r)}function bV(r,t,e=ln){It(r)&&(r=Cy(r));for(const n in r){const i=r[n];let a;re(i)?"default"in i?a=fn(i.from||n,i.default,!0):a=fn(i.from||n):a=fn(i),ke(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function IS(r,t,e){dn(It(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function lI(r,t,e,n){let i=n.includes(".")?nI(e,n):()=>e[n];if(he(r)){const a=t[r];Ot(a)&&eh(i,a)}else if(Ot(r))eh(i,r.bind(e));else if(re(r))if(It(r))r.forEach(a=>lI(a,t,e,n));else{const a=Ot(r.handler)?r.handler.bind(e):t[r.handler];Ot(a)&&eh(i,a,r)}}function W0(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=>Lh(l,u,o,!0)),Lh(l,t,o)),re(t)&&a.set(t,l),l}function Lh(r,t,e,n=!1){const{mixins:i,extends:a}=t;a&&Lh(r,a,e,!0),i&&i.forEach(o=>Lh(r,o,e,!0));for(const o in t)if(!(n&&o==="expose")){const s=wV[o]||e&&e[o];r[o]=s?s(r[o],t[o]):t[o]}return r}const wV={data:LS,props:PS,emits:PS,methods:tu,computed:tu,beforeCreate:Qe,created:Qe,beforeMount:Qe,mounted:Qe,beforeUpdate:Qe,updated:Qe,beforeDestroy:Qe,beforeUnmount:Qe,destroyed:Qe,unmounted:Qe,activated:Qe,deactivated:Qe,errorCaptured:Qe,serverPrefetch:Qe,components:tu,directives:tu,watch:AV,provide:LS,inject:TV};function LS(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 TV(r,t){return tu(Cy(r),Cy(t))}function Cy(r){if(It(r)){const t={};for(let e=0;et==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${or(t)}Modifiers`]||r[`${ma(t)}Modifiers`];function IV(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||ae;let i=e;const a=t.startsWith("update:"),o=a&&DV(n,t.slice(7));o&&(o.trim&&(i=e.map(f=>he(f)?f.trim():f)),o.number&&(i=e.map(Nv)));let s,l=n[s=Ed(t)]||n[s=Ed(or(t))];!l&&a&&(l=n[s=Ed(ma(t))]),l&&dn(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,dn(u,r,6,i)}}const LV=new WeakMap;function fI(r,t,e=!1){const n=e?LV: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=fI(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 Hv(r,t){return!r||!Pv(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),jt(r,t[0].toLowerCase()+t.slice(1))||jt(r,ma(t))||jt(r,t))}function Gd(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=Dh(r);let y,m;try{if(e.shapeFlag&4){const S=i||n,x=S;y=Rn(u.call(x,S,f,c,v,h,d)),m=s}else{const S=t;y=Rn(S.length>1?S(c,{attrs:s,slots:o,emit:l}):S(c,null)),m=t.props?s:PV(s)}}catch(S){_u.length=0,bf(S,r,1),y=Pe(yi)}let _=y;if(m&&p!==!1){const S=Object.keys(m),{shapeFlag:x}=_;S.length&&x&7&&(a&&S.some(Rv)&&(m=RV(m,a)),_=zs(_,m,!1,!0))}return e.dirs&&(_=zs(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&B0(_,e.transition),y=_,Dh(g),y}const PV=r=>{let t;for(const e in r)(e==="class"||e==="style"||Pv(e))&&((t||(t={}))[e]=r[e]);return t},RV=(r,t)=>{const e={};for(const n in r)(!Rv(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function EV(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?RS(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;cObject.create(hI),dI=r=>Object.getPrototypeOf(r)===hI;function OV(r,t,e,n=!1){const i={},a=vI();r.propsDefaults=Object.create(null),pI(r,t,i,a);for(const o in r.propsOptions[0])o in i||(i[o]=void 0);e?r.props=n?i:qD(i):r.type.props?r.props=i:r.props=a,r.attrs=a}function NV(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]=gI(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,Ms),Ms;if(It(a))for(let f=0;fr==="_"||r==="_ctx"||r==="$stable",U0=r=>It(r)?r.map(Rn):[Rn(r)],BV=(r,t,e)=>{if(t._n)return t;const n=KN((...i)=>U0(t(...i)),e);return n._c=!1,n},yI=(r,t,e)=>{const n=r._ctx;for(const i in r){if($0(i))continue;const a=r[i];if(Ot(a))t[i]=BV(i,a,n);else if(a!=null){const o=U0(a);t[i]=()=>o}}},mI=(r,t)=>{const e=U0(t);r.slots.default=()=>e},_I=(r,t,e)=>{for(const n in t)(e||!$0(n))&&(r[n]=t[n])},zV=(r,t,e)=>{const n=r.slots=vI();if(r.vnode.shapeFlag&32){const i=t._;i?(_I(n,t,e),e&&PD(n,"_",i,!0)):yI(t,n)}else t&&mI(r,t)},GV=(r,t,e)=>{const{vnode:n,slots:i}=r;let a=!0,o=ae;if(n.shapeFlag&32){const s=t._;s?e&&s===1?a=!1:_I(i,t,e):(a=!t.$stable,yI(t,i)),o=t}else t&&(mI(r,t),o={default:1});if(a)for(const s in i)!$0(s)&&o[s]==null&&delete i[s]},tr=UV;function FV(r){return HV(r)}function HV(r,t){const e=Vv();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=ln,insertStaticContent:d}=r,p=(R,k,z,X=null,W=null,J=null,ot=void 0,st=null,it=!!k.dynamicChildren)=>{if(R===k)return;R&&!xl(R,k)&&(X=U(R),Q(R,W,J,!0),R=null),k.patchFlag===-2&&(it=!1,k.dynamicChildren=null);const{type:et,ref:At,shapeFlag:dt}=k;switch(et){case Wv:g(R,k,z,X);break;case yi:y(R,k,z,X);break;case rh:R==null&&m(k,z,X,ot);break;case zr:I(R,k,z,X,W,J,ot,st,it);break;default:dt&1?x(R,k,z,X,W,J,ot,st,it):dt&6?L(R,k,z,X,W,J,ot,st,it):(dt&64||dt&128)&&et.process(R,k,z,X,W,J,ot,st,it,tt)}At!=null&&W?yu(At,R&&R.ref,J,k||R,!k):At==null&&R&&R.ref!=null&&yu(R.ref,null,J,R,!0)},g=(R,k,z,X)=>{if(R==null)n(k.el=s(k.children),z,X);else{const W=k.el=R.el;k.children!==R.children&&u(W,k.children)}},y=(R,k,z,X)=>{R==null?n(k.el=l(k.children||""),z,X):k.el=R.el},m=(R,k,z,X)=>{[R.el,R.anchor]=d(R.children,k,z,X,R.el,R.anchor)},_=({el:R,anchor:k},z,X)=>{let W;for(;R&&R!==k;)W=h(R),n(R,z,X),R=W;n(k,z,X)},S=({el:R,anchor:k})=>{let z;for(;R&&R!==k;)z=h(R),i(R),R=z;i(k)},x=(R,k,z,X,W,J,ot,st,it)=>{if(k.type==="svg"?ot="svg":k.type==="math"&&(ot="mathml"),R==null)b(k,z,X,W,J,ot,st,it);else{const et=R.el&&R.el._isVueCE?R.el:null;try{et&&et._beginPatch(),A(R,k,W,J,ot,st,it)}finally{et&&et._endPatch()}}},b=(R,k,z,X,W,J,ot,st)=>{let it,et;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,Fd(R,J),ot,st),Rt&&ba(R,null,X,"created"),w(it,R,R.scopeId,ot,X),At){for(const ie in At)ie!=="value"&&!du(ie)&&a(it,ie,null,At[ie],J,X);"value"in At&&a(it,"value",null,At.value,J),(et=At.onVnodeBeforeMount)&&xn(et,X,R)}Rt&&ba(R,null,X,"beforeMount");const Yt=WV(W,wt);Yt&&wt.beforeEnter(it),n(it,k,z),((et=At&&At.onVnodeMounted)||Yt||Rt)&&tr(()=>{try{et&&xn(et,X,R),Yt&&wt.enter(it),Rt&&ba(R,null,X,"mounted")}finally{}},W)},w=(R,k,z,X,W)=>{if(z&&v(R,z),X)for(let J=0;J{for(let et=it;et{const st=k.el=R.el;let{patchFlag:it,dynamicChildren:et,dirs:At}=k;it|=R.patchFlag&16;const dt=R.props||ae,wt=k.props||ae;let Rt;if(z&&wa(z,!1),(Rt=wt.onVnodeBeforeUpdate)&&xn(Rt,z,k,R),At&&ba(k,R,z,"beforeUpdate"),z&&wa(z,!0),et&&(!R.dynamicChildren||R.dynamicChildren.length!==et.length)&&(it=0,ot=!1,et=null),(dt.innerHTML&&wt.innerHTML==null||dt.textContent&&wt.textContent==null)&&f(st,""),et?C(R.dynamicChildren,et,st,z,X,Fd(k,W),J):ot||N(R,k,st,null,z,X,Fd(k,W),J,!1),it>0){if(it&16)D(st,dt,wt,z,W);else if(it&2&&dt.class!==wt.class&&a(st,"class",null,wt.class,W),it&4&&a(st,"style",dt.style,wt.style,W),it&8){const Yt=k.dynamicProps;for(let ie=0;ie{Rt&&xn(Rt,z,k,R),At&&ba(k,R,z,"updated")},X)},C=(R,k,z,X,W,J,ot)=>{for(let st=0;st{if(k!==z){if(k!==ae)for(const J in k)!du(J)&&!(J in z)&&a(R,J,k[J],null,W,X);for(const J in z){if(du(J))continue;const ot=z[J],st=k[J];ot!==st&&J!=="value"&&a(R,J,st,ot,W,X)}"value"in z&&a(R,"value",k.value,z.value,W)}},I=(R,k,z,X,W,J,ot,st,it)=>{const et=k.el=R?R.el:s(""),At=k.anchor=R?R.anchor:s("");let{patchFlag:dt,dynamicChildren:wt,slotScopeIds:Rt}=k;Rt&&(st=st?st.concat(Rt):Rt),R==null?(n(et,z,X),n(At,z,X),T(k.children||[],z,At,W,J,ot,st,it)):dt>0&&dt&64&&wt&&R.dynamicChildren&&R.dynamicChildren.length===wt.length?(C(R.dynamicChildren,wt,z,W,J,ot,st),(k.key!=null||W&&k===W.subTree)&&Y0(R,k,!0)):N(R,k,z,At,W,J,ot,st,it)},L=(R,k,z,X,W,J,ot,st,it)=>{k.slotScopeIds=st,R==null?k.shapeFlag&512?W.ctx.activate(k,z,X,ot,it):P(k,z,X,W,J,ot,it):E(R,k,it)},P=(R,k,z,X,W,J,ot)=>{const st=R.component=QV(R,X,W);if(F0(R)&&(st.ctx.renderer=tt),eB(st,!1,ot),st.asyncDep){if(W&&W.registerDep(st,O,ot),!R.el){const it=st.subTree=Pe(yi);y(null,it,k,z),R.placeholder=it.el}}else O(st,R,k,z,W,J,ot)},E=(R,k,z)=>{const X=k.component=R.component;if(EV(R,k,z))if(X.asyncDep&&!X.asyncResolved){V(X,k,z);return}else X.next=k,X.update();else k.el=R.el,X.vnode=k},O=(R,k,z,X,W,J,ot)=>{const st=()=>{if(R.isMounted){let{next:dt,bu:wt,u:Rt,parent:Yt,vnode:ie}=R;{const _r=SI(R);if(_r){dt&&(dt.el=ie.el,V(R,dt,ot)),_r.asyncDep.then(()=>{tr(()=>{R.isUnmounted||et()},W)});return}}let ne=dt,Se;wa(R,!1),dt?(dt.el=ie.el,V(R,dt,ot)):dt=ie,wt&&Jc(wt),(Se=dt.props&&dt.props.onVnodeBeforeUpdate)&&xn(Se,Yt,dt,ie),wa(R,!0);const we=Gd(R),jr=R.subTree;R.subTree=we,p(jr,we,c(jr.el),U(jr),R,W,J),dt.el=we.el,ne===null&&kV(R,we.el),Rt&&tr(Rt,W),(Se=dt.props&&dt.props.onVnodeUpdated)&&tr(()=>xn(Se,Yt,dt,ie),W)}else{let dt;const{el:wt,props:Rt}=k,{bm:Yt,m:ie,parent:ne,root:Se,type:we}=R,jr=Ls(k);if(wa(R,!1),Yt&&Jc(Yt),!jr&&(dt=Rt&&Rt.onVnodeBeforeMount)&&xn(dt,ne,k),wa(R,!0),wt&&ut){const _r=()=>{R.subTree=Gd(R),ut(wt,R.subTree,R,W,null)};jr&&we.__asyncHydrate?we.__asyncHydrate(wt,R,_r):_r()}else{Se.ce&&Se.ce._hasShadowRoot()&&Se.ce._injectChildStyle(we,R.parent?R.parent.type:void 0);const _r=R.subTree=Gd(R);p(null,_r,z,X,R,W,J),k.el=_r.el}if(ie&&tr(ie,W),!jr&&(dt=Rt&&Rt.onVnodeMounted)){const _r=k;tr(()=>xn(dt,ne,_r),W)}(k.shapeFlag&256||ne&&Ls(ne.vnode)&&ne.vnode.shapeFlag&256)&&R.a&&tr(R.a,W),R.isMounted=!0,k=z=X=null}};R.scope.on();const it=R.effect=new OD(st);R.scope.off();const et=R.update=it.run.bind(it),At=R.job=it.runIfDirty.bind(it);At.i=R,At.id=R.uid,it.scheduler=()=>N0(At),wa(R,!0),et()},V=(R,k,z)=>{k.component=R;const X=R.vnode.props;R.vnode=k,R.next=null,NV(R,k.props,X,z),GV(R,k.children,z),Hn(),xS(R),Wn()},N=(R,k,z,X,W,J,ot,st,it=!1)=>{const et=R&&R.children,At=R?R.shapeFlag:0,dt=k.children,{patchFlag:wt,shapeFlag:Rt}=k;if(wt>0){if(wt&128){$(et,dt,z,X,W,J,ot,st,it);return}else if(wt&256){G(et,dt,z,X,W,J,ot,st,it);return}}Rt&8?(At&16&&Et(et,W,J),dt!==et&&f(z,dt)):At&16?Rt&16?$(et,dt,z,X,W,J,ot,st,it):Et(et,W,J,!0):(At&8&&f(z,""),Rt&16&&T(dt,z,X,W,J,ot,st,it))},G=(R,k,z,X,W,J,ot,st,it)=>{R=R||Ms,k=k||Ms;const et=R.length,At=k.length,dt=Math.min(et,At);let wt;for(wt=0;wtAt?Et(R,W,J,!0,!1,dt):T(k,z,X,W,J,ot,st,it,dt)},$=(R,k,z,X,W,J,ot,st,it)=>{let et=0;const At=k.length;let dt=R.length-1,wt=At-1;for(;et<=dt&&et<=wt;){const Rt=R[et],Yt=k[et]=it?ai(k[et]):Rn(k[et]);if(xl(Rt,Yt))p(Rt,Yt,z,null,W,J,ot,st,it);else break;et++}for(;et<=dt&&et<=wt;){const Rt=R[dt],Yt=k[wt]=it?ai(k[wt]):Rn(k[wt]);if(xl(Rt,Yt))p(Rt,Yt,z,null,W,J,ot,st,it);else break;dt--,wt--}if(et>dt){if(et<=wt){const Rt=wt+1,Yt=Rtwt)for(;et<=dt;)Q(R[et],W,J,!0),et++;else{const Rt=et,Yt=et,ie=new Map;for(et=Yt;et<=wt;et++){const Sr=k[et]=it?ai(k[et]):Rn(k[et]);Sr.key!=null&&ie.set(Sr.key,et)}let ne,Se=0;const we=wt-Yt+1;let jr=!1,_r=0;const ml=new Array(we);for(et=0;et=we){Q(Sr,W,J,!0);continue}let Sn;if(Sr.key!=null)Sn=ie.get(Sr.key);else for(ne=Yt;ne<=wt;ne++)if(ml[ne-Yt]===0&&xl(Sr,k[ne])){Sn=ne;break}Sn===void 0?Q(Sr,W,J,!0):(ml[Sn-Yt]=et+1,Sn>=_r?_r=Sn:jr=!0,p(Sr,k[Sn],z,null,W,J,ot,st,it),Se++)}const fS=jr?$V(ml):Ms;for(ne=fS.length-1,et=we-1;et>=0;et--){const Sr=Yt+et,Sn=k[Sr],cS=k[Sr+1],hS=Sr+1{const{el:J,type:ot,transition:st,children:it,shapeFlag:et}=R;if(et&6){q(R.component.subTree,k,z,X);return}if(et&128){R.suspense.move(k,z,X);return}if(et&64){ot.move(R,k,z,tt);return}if(ot===zr){n(J,k,z);for(let dt=0;dtst.enter(J),W));else{const{leave:dt,delayLeave:wt,afterLeave:Rt}=st,Yt=()=>{R.ctx.isUnmounted?i(J):n(J,k,z)},ie=()=>{const ne=J._isLeaving||!!J[Bd];J._isLeaving&&J[Bd](!0),st.persisted&&!ne?Yt():dt(J,()=>{Yt(),Rt&&Rt()})};wt?wt(J,Yt,ie):ie()}else n(J,k,z)},Q=(R,k,z,X=!1,W=!1)=>{const{type:J,props:ot,ref:st,children:it,dynamicChildren:et,shapeFlag:At,patchFlag:dt,dirs:wt,cacheIndex:Rt,memo:Yt}=R;if(dt===-2&&(W=!1),st!=null&&(Hn(),yu(st,null,z,R,!0),Wn()),Rt!=null&&(k.renderCache[Rt]=void 0),At&256){k.ctx.deactivate(R);return}const ie=At&1&&wt,ne=!Ls(R);let Se;if(ne&&(Se=ot&&ot.onVnodeBeforeUnmount)&&xn(Se,k,R),At&6)gt(R.component,z,X);else{if(At&128){R.suspense.unmount(z,X);return}ie&&ba(R,null,k,"beforeUnmount"),At&64?R.type.remove(R,k,z,tt,X):et&&!et.hasOnce&&(J!==zr||dt>0&&dt&64)?Et(et,k,z,!1,!0):(J===zr&&dt&384||!W&&At&16)&&Et(it,k,z),X&&ct(R)}const we=Yt!=null&&Rt==null;(ne&&(Se=ot&&ot.onVnodeUnmounted)||ie||we)&&tr(()=>{Se&&xn(Se,k,R),ie&&ba(R,null,k,"unmounted"),we&&(R.el=null)},z)},ct=R=>{const{type:k,el:z,anchor:X,transition:W}=R;if(k===zr){ht(z,X);return}if(k===rh){S(R);return}const J=()=>{i(z),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(R.shapeFlag&1&&W&&!W.persisted){const{leave:ot,delayLeave:st}=W,it=()=>ot(z,J);st?st(R.el,J,it):it()}else J()},ht=(R,k)=>{let z;for(;R!==k;)z=h(R),i(R),R=z;i(k)},gt=(R,k,z)=>{const{bum:X,scope:W,job:J,subTree:ot,um:st,m:it,a:et}=R;kS(it),kS(et),X&&Jc(X),W.stop(),J&&(J.flags|=8,Q(ot,R,k,z)),st&&tr(st,k),tr(()=>{R.isUnmounted=!0},k)},Et=(R,k,z,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),z=k&&k[iI];return z?h(z):k};let K=!1;const H=(R,k,z)=>{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,z),k._vnode=R,K||(K=!0,xS(X),tI(),K=!1)},tt={p,um:Q,m:q,r:ct,mt:P,mc:T,pc:N,pbc:C,n:U,o:r};let j,ut;return t&&([j,ut]=t(tt)),{render:H,hydrate:j,createApp:MV(H,j)}}function Fd({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 wa({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function WV(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function Y0(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 SI(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:SI(t)}function kS(r){if(r)for(let t=0;tr.__isSuspense;function UV(r,t){t&&t.pendingBranch?It(r)?t.effects.push(...r):t.effects.push(r):qN(r)}const zr=Symbol.for("v-fgt"),Wv=Symbol.for("v-txt"),yi=Symbol.for("v-cmt"),rh=Symbol.for("v-stc"),_u=[];let wr=null;function Ph(r=!1){_u.push(wr=r?null:[])}function YV(){_u.pop(),wr=_u[_u.length-1]||null}let Fu=1;function Rh(r,t=!1){Fu+=r,r<0&&wr&&t&&(wr.hasOnce=!0)}function wI(r){return r.dynamicChildren=Fu>0?wr||Ms:null,YV(),Fu>0&&wr&&wr.push(r),r}function Xit(r,t,e,n,i,a){return wI(AI(r,t,e,n,i,a,!0))}function Eh(r,t,e,n,i){return wI(Pe(r,t,e,n,i,!0))}function Hu(r){return r?r.__v_isVNode===!0:!1}function xl(r,t){return r.type===t.type&&r.key===t.key}const TI=({key:r})=>r!=null?r:null,nh=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?he(r)||ke(r)||Ot(r)?{i:Be,r,k:t,f:!!e}:r:null);function AI(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&&TI(t),ref:t&&nh(t),scopeId:rI,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:Be};return s?(kh(l,e),a&128&&r.normalize(l)):e&&(l.shapeFlag|=he(e)?8:16),Fu>0&&!o&&wr&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&wr.push(l),l}const Pe=ZV;function ZV(r,t=null,e=null,n=0,i=null,a=!1){if((!r||r===mV)&&(r=yi),Hu(r)){const s=zs(r,t,!0);return e&&kh(s,e),Fu>0&&!a&&wr&&(s.shapeFlag&6?wr[wr.indexOf(r)]=s:wr.push(s)),s.patchFlag=-2,s}if(oB(r)&&(r=r.__vccOpts),t){t=XV(t);let{class:s,style:l}=t;s&&!he(s)&&(t.class=M0(s)),re(l)&&(Gv(l)&&!It(l)&&(l=Me({},l)),t.style=C0(l))}const o=he(r)?1:bI(r)?128:tV(r)?64:re(r)?4:Ot(r)?2:0;return AI(r,t,e,n,i,o,a,!0)}function XV(r){return r?Gv(r)||dI(r)?Me({},r):r:null}function zs(r,t,e=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=r,u=t?KV(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&TI(u),ref:t&&t.ref?e&&a?It(a)?a.concat(nh(t)):[a,nh(t)]:nh(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&&zs(r.ssContent),ssFallback:r.ssFallback&&zs(r.ssFallback),placeholder:r.placeholder,el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return l&&n&&B0(f,l.clone(f)),f}function qV(r=" ",t=0){return Pe(Wv,null,r,t)}function qit(r,t){const e=Pe(rh,null,r);return e.staticCount=t,e}function Kit(r="",t=!1){return t?(Ph(),Eh(yi,null,r)):Pe(yi,null,r)}function Rn(r){return r==null||typeof r=="boolean"?Pe(yi):It(r)?Pe(zr,null,r.slice()):Hu(r)?ai(r):Pe(Wv,null,String(r))}function ai(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:zs(r)}function kh(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),kh(r,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!dI(t)?t._ctx=Be:i===3&&Be&&(Be.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else if(Ot(t)){if(n&65){kh(r,{default:t});return}t={default:t,_ctx:Be},e=32}else t=String(t),n&64?(e=16,t=[qV(t)]):e=8;r.children=t,r.shapeFlag|=e}function KV(...r){const t={};for(let e=0;eVe||Be;let Oh,Dy;{const r=Vv(),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)}};Oh=t("__VUE_INSTANCE_SETTERS__",e=>Ve=e),Dy=t("__VUE_SSR_SETTERS__",e=>Gs=e)}const wf=r=>{const t=Ve;return Oh(r),r.scope.on(),()=>{r.scope.off(),Oh(t)}},OS=()=>{Ve&&Ve.scope.off(),Oh(null)};function CI(r){return r.vnode.shapeFlag&4}let Gs=!1;function eB(r,t=!1,e=!1){t&&Dy(t);const{props:n,children:i}=r.vnode,a=CI(r);OV(r,n,a,t),zV(r,i,e||t);const o=a?rB(r,t):void 0;return t&&Dy(!1),o}function rB(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,SV);const{setup:n}=e;if(n){Hn();const i=r.setupContext=n.length>1?iB(r):null,a=wf(r),o=xf(n,r,0,[r.props,i]),s=DD(o);if(Wn(),a(),(s||r.sp)&&!Ls(r)&&G0(r),s){if(o.then(OS,OS),t)return o.then(l=>{NS(r,l,t)}).catch(l=>{bf(l,r,0)});r.asyncDep=o}else NS(r,o,t)}else MI(r,t)}function NS(r,t,e){Ot(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:re(t)&&(r.setupState=jD(t)),MI(r,e)}let VS;function MI(r,t,e){const n=r.type;if(!r.render){if(!t&&VS&&!n.render){const i=n.template||W0(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=VS(i,u)}}r.render=n.render||ln}{const i=wf(r);Hn();try{xV(r)}finally{Wn(),i()}}}const nB={get(r,t){return Xe(r,"get",""),r[t]}};function iB(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,nB),slots:r.slots,emit:r.emit,expose:t}}function $v(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(jD(VN(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in mu)return mu[e](r)},has(t,e){return e in t||e in mu}})):r.proxy}function aB(r,t=!0){return Ot(r)?r.displayName||r.name:r.name||t&&r.__name}function oB(r){return Ot(r)&&"__vccOpts"in r}const an=(r,t)=>$N(r,t,Gs);function DI(r,t,e){try{Rh(-1);const n=arguments.length;return n===2?re(t)&&!It(t)?Hu(t)?Pe(r,null,[t]):Pe(r,t):Pe(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&Hu(e)&&(e=[e]),Pe(r,t,e))}finally{Rh(1)}}const sB="3.5.39";/** * @vue/runtime-dom v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Iy;const BS=typeof window!="undefined"&&window.trustedTypes;if(BS)try{Iy=BS.createPolicy("vue",{createHTML:r=>r})}catch(r){}const II=Iy?r=>Iy.createHTML(r):r=>r,lB="http://www.w3.org/2000/svg",uB="http://www.w3.org/1998/Math/MathML",ri=typeof document!="undefined"?document:null,zS=ri&&ri.createElement("template"),fB={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"?ri.createElementNS(lB,r):t==="mathml"?ri.createElementNS(uB,r):e?ri.createElement(r,{is:e}):ri.createElement(r);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>ri.createTextNode(r),createComment:r=>ri.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>ri.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{zS.innerHTML=II(n==="svg"?`${r}`:n==="mathml"?`${r}`:r);const s=zS.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]}},cB=Symbol("_vtc");function hB(r,t,e){const n=r[cB];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const Nh=Symbol("_vod"),LI=Symbol("_vsh"),jit={name:"show",beforeMount(r,{value:t},{transition:e}){r[Nh]=r.style.display==="none"?"":r.style.display,e&&t?e.beforeEnter(r):bl(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),bl(r,!0),n.enter(r)):n.leave(r,()=>{bl(r,!1)}):bl(r,t))},beforeUnmount(r,{value:t}){bl(r,t)}};function bl(r,t){r.style.display=t?r[Nh]:"none",r[LI]=!t}const vB=Symbol(""),dB=/(?:^|;)\s*display\s*:/;function pB(r,t,e){const n=r.style,i=he(e);let a=!1;if(e&&!i){if(t)if(he(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();e[s]==null&&eu(n,s,"")}else for(const o in t)e[o]==null&&eu(n,o,"");for(const o in e){o==="display"&&(a=!0);const s=e[o];s!=null?yB(r,o,!he(t)&&t?t[o]:void 0,s)||eu(n,o,s):eu(n,o,"")}}else if(i){if(t!==e){const o=n[vB];o&&(e+=";"+o),n.cssText=e,a=dB.test(e)}}else t&&r.removeAttribute("style");Nh in r&&(r[Nh]=a?n.display:"",r[LI]&&(n.display="none"))}const GS=/\s*!important$/;function eu(r,t,e){if(It(e))e.forEach(n=>eu(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=gB(r,t);GS.test(e)?r.setProperty(ma(n),e.replace(GS,""),"important"):r[n]=e}}const FS=["Webkit","Moz","ms"],Hd={};function gB(r,t){const e=Hd[t];if(e)return e;let n=or(t);if(n!=="filter"&&n in r)return Hd[t]=n;n=Ov(n);for(let i=0;iWd||(wB.then(()=>Wd=0),Wd=Date.now());function AB(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;const i=e.value;if(It(i)){const a=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{a.call(n),n._stopped=!0};const o=i.slice(),s=[n];for(let l=0;lr.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"?hB(r,n,o):t==="style"?pB(r,e,n):Pv(t)?Rv(t)||_B(r,t,e,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):MB(r,t,n,o))?($S(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&WS(r,t,n,o,a,t!=="value")):r._isVueCE&&(DB(r,t)||r._def.__asyncLoader&&(/[A-Z]/.test(t)||!he(n)))?$S(r,or(t),n,a,t):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),WS(r,t,n,o))};function MB(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&YS(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 YS(t)&&he(e)?!1:t in r}function DB(r,t){const e=r._def.props;if(!e)return!1;const n=or(t);return Array.isArray(e)?e.some(i=>or(i)===n):Object.keys(e).some(i=>or(i)===n)}const sa=r=>{const t=r.props["onUpdate:modelValue"]||!1;return It(t)?e=>Jc(t,e):t};function IB(r){r.target.composing=!0}function ZS(r){const t=r.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ur=Symbol("_assign");function XS(r,t,e){return t&&(r=r.trim()),e&&(r=Nv(r)),r}const qS={created(r,{modifiers:{lazy:t,trim:e,number:n}},i){r[Ur]=sa(i);const a=n||i.props&&i.props.type==="number";li(r,t?"change":"input",o=>{o.target.composing||r[Ur](XS(r.value,e,a))}),(e||a)&&li(r,"change",()=>{r.value=XS(r.value,e,a)}),t||(li(r,"compositionstart",IB),li(r,"compositionend",ZS),li(r,"change",ZS))},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[Ur]=sa(o),r.composing)return;const s=(a||r.type==="number")&&!/^0\d/.test(r.value)?Nv(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)}},LB={deep:!0,created(r,t,e){r[Ur]=sa(e),li(r,"change",()=>{const n=r._modelValue,i=Fs(r),a=r.checked,o=r[Ur];if(It(n)){const s=D0(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(tl(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(PI(r,a))})},mounted:KS,beforeUpdate(r,t,e){r[Ur]=sa(e),KS(r,t,e)}};function KS(r,{value:t,oldValue:e},n){r._modelValue=t;let i;if(It(t))i=D0(t,n.props.value)>-1;else if(tl(t))i=t.has(n.props.value);else{if(t===e)return;i=oa(t,PI(r,!0))}r.checked!==i&&(r.checked=i)}const PB={created(r,{value:t},e){r.checked=oa(t,e.props.value),r[Ur]=sa(e),li(r,"change",()=>{r[Ur](Fs(r))})},beforeUpdate(r,{value:t,oldValue:e},n){r[Ur]=sa(n),t!==e&&(r.checked=oa(t,n.props.value))}},RB={deep:!0,created(r,{value:t,modifiers:{number:e}},n){const i=tl(t);li(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>e?Nv(Fs(o)):Fs(o));r[Ur](r.multiple?i?new Set(a):a:a[0]),r._assigning=!0,O0(()=>{r._assigning=!1})}),r[Ur]=sa(n)},mounted(r,{value:t}){jS(r,t)},beforeUpdate(r,t,e){r[Ur]=sa(e)},updated(r,{value:t}){r._assigning||jS(r,t)}};function jS(r,t){const e=r.multiple,n=It(t);if(!(e&&!n&&!tl(t))){for(let i=0,a=r.options.length;iString(u)===String(s)):o.selected=D0(t,s)>-1}else o.selected=t.has(s);else if(oa(Fs(o),t)){r.selectedIndex!==i&&(r.selectedIndex=i);return}}!e&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Fs(r){return"_value"in r?r._value:r.value}function PI(r,t){const e=t?"_trueValue":"_falseValue";return e in r?r[e]:t}const Jit={created(r,t,e){qf(r,t,e,null,"created")},mounted(r,t,e){qf(r,t,e,null,"mounted")},beforeUpdate(r,t,e,n){qf(r,t,e,n,"beforeUpdate")},updated(r,t,e,n){qf(r,t,e,n,"updated")}};function EB(r,t){switch(r){case"SELECT":return RB;case"TEXTAREA":return qS;default:switch(t){case"checkbox":return LB;case"radio":return PB;default:return qS}}}function qf(r,t,e,n,i){const o=EB(r.tagName,e.props&&e.props.type)[i];o&&o(r,t,e,n)}const kB=["ctrl","shift","alt","meta"],OB={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)=>kB.some(e=>r[`${e}Key`]&&!t.includes(e))},Qit=(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=ma(i.key);if(t.some(o=>o===a||NB[o]===a))return r(i)})},VB=Me({patchProp:CB},fB);let JS;function BB(){return JS||(JS=FV(VB))}const zB=(...r)=>{const t=BB().createApp(...r),{mount:e}=t;return t.mount=n=>{const i=FB(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,GB(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function GB(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function FB(r){return he(r)?document.querySelector(r):r}const HB="modulepreload",WB=function(r,t){return new URL(r,t).href},QS={},Z0=function(t,e,n){if(!e||e.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(e.map(a=>{if(a=WB(a,n),a in QS)return;QS[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":HB,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 ys=typeof document!="undefined";function RI(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function $B(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&RI(r.default)}const Kt=Object.assign;function $d(r,t){const e={};for(const n in t){const i=t[n];e[n]=pn(i)?i.map(r):r(i)}return e}const Su=()=>{},pn=Array.isArray;function tx(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}const EI=/#/g,UB=/&/g,YB=/\//g,ZB=/=/g,XB=/\?/g,kI=/\+/g,qB=/%5B/g,KB=/%5D/g,OI=/%5E/g,jB=/%60/g,NI=/%7B/g,JB=/%7C/g,VI=/%7D/g,QB=/%20/g;function X0(r){return r==null?"":encodeURI(""+r).replace(JB,"|").replace(qB,"[").replace(KB,"]")}function tz(r){return X0(r).replace(NI,"{").replace(VI,"}").replace(OI,"^")}function Ly(r){return X0(r).replace(kI,"%2B").replace(QB,"+").replace(EI,"%23").replace(UB,"%26").replace(jB,"`").replace(NI,"{").replace(VI,"}").replace(OI,"^")}function ez(r){return Ly(r).replace(ZB,"%3D")}function rz(r){return X0(r).replace(EI,"%23").replace(XB,"%3F")}function nz(r){return rz(r).replace(YB,"%2F")}function Wu(r){if(r==null)return null;try{return decodeURIComponent(""+r)}catch(t){}return""+r}const iz=/\/$/,az=r=>r.replace(iz,"");function Ud(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=uz(n!=null?n:t,e),{fullPath:n+a+o,path:n,query:i,hash:Wu(o)}}function oz(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function ex(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function sz(r,t,e){const n=t.matched.length-1,i=e.matched.length-1;return n>-1&&n===i&&Hs(t.matched[n],e.matched[i])&&BI(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Hs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function BI(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(var e in r)if(!lz(r[e],t[e]))return!1;return!0}function lz(r,t){return pn(r)?rx(r,t):pn(t)?rx(t,r):(r==null?void 0:r.valueOf())===(t==null?void 0:t.valueOf())}function rx(r,t){return pn(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function uz(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 Ii={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Py=function(r){return r.pop="pop",r.push="push",r}({}),Yd=function(r){return r.back="back",r.forward="forward",r.unknown="",r}({});function fz(r){if(!r)if(ys){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),az(r)}const cz=/^[^#]+#/;function hz(r,t){return r.replace(cz,"#")+t}function vz(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 Uv=()=>({left:window.scrollX,top:window.scrollY});function dz(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=vz(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 nx(r,t){return(history.state?history.state.position-t:-1)+r}const Ry=new Map;function pz(r,t){Ry.set(r,t)}function gz(r){const t=Ry.get(r);return Ry.delete(r),t}function yz(r){return typeof r=="string"||r&&typeof r=="object"}function zI(r){return typeof r=="string"||typeof r=="symbol"}let ve=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 GI=Symbol("");ve.MATCHER_NOT_FOUND+"",ve.NAVIGATION_GUARD_REDIRECT+"",ve.NAVIGATION_ABORTED+"",ve.NAVIGATION_CANCELLED+"",ve.NAVIGATION_DUPLICATED+"";function Ws(r,t){return Kt(new Error,{type:r,[GI]:!0},t)}function Jn(r,t){return r instanceof Error&&GI in r&&(t==null||!!(r.type&t))}const mz=["params","query","hash"];function _z(r){if(typeof r=="string")return r;if(r.path!=null)return r.path;const t={};for(const e of mz)e in r&&(t[e]=r[e]);return JSON.stringify(t,null,2)}function Sz(r){const t={};if(r===""||r==="?")return t;const e=(r[0]==="?"?r.slice(1):r).split("&");for(let n=0;ni&&Ly(i)):[n&&Ly(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function xz(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=pn(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const bz=Symbol(""),ax=Symbol(""),Yv=Symbol(""),q0=Symbol(""),Ey=Symbol("");function wl(){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 $i(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(Ws(ve.NAVIGATION_ABORTED,{from:e,to:t})):h instanceof Error?l(h):yz(h)?l(Ws(ve.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 Zd(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(RI(l)){const u=(l.__vccOpts||l)[t];u&&a.push($i(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=$B(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const h=(c.__vccOpts||c)[t];return h&&$i(h,e,n,o,s,i)()}))}}return a}function wz(r,t){const e=[],n=[],i=[],a=Math.max(t.matched.length,r.matched.length);for(let o=0;oHs(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Hs(u,l))||i.push(l))}return[e,n,i]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Tz=()=>location.protocol+"//"+location.host;function FI(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),ex(s,"")}return ex(e,r)+n+i}function Az(r,t,e,n){let i=[],a=[],o=null;const s=({state:h})=>{const v=FI(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:Py.pop,direction:g?g>0?Yd.forward:Yd.back:Yd.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:Uv()}),"")}}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 ox(r,t,e,n=!1,i=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:i?Uv():null}}function Cz(r){const{history:t,location:e}=window,n={value:FI(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:Tz()+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,ox(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:Uv()});a(f.current,f,!0),a(l,Kt({},ox(n.value,l,null),{position:f.position+1},u),!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function Mz(r){r=fz(r);const t=Cz(r),e=Az(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:hz.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 Dz(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),Mz(r)}let oo=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 Iz={type:oo.Static,value:""},Lz=/[a-zA-Z0-9_]/;function Pz(r){if(!r)return[[]];if(r==="/")return[[Iz]];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:oo.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:oo.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]===er.Static+er.Segment?1:-1:0}function HI(r,t){let e=0;const n=r.score,i=t.score;for(;e0&&t[t.length-1]<0}const Nz={strict:!1,end:!0,sensitive:!1};function Vz(r,t,e){const n=kz(Pz(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 Bz(r,t){const e=[],n=new Map;t=tx(Nz,t);function i(c){return n.get(c)}function a(c,h,v){const d=!v,p=fx(c);p.aliasOf=v&&v.record;const g=tx(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(fx(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=Vz(S,h,g),v?v.alias.push(m):(_=_||m,_!==m&&_.alias.push(m),d&&c.name&&!cx(m)&&o(c.name)),WI(m)&&l(m),p.children){const b=p.children;for(let w=0;w{o(_)}:Su}function o(c){if(zI(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=Fz(c,e);e.splice(h,0,c),c.record.name&&!cx(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 Ws(ve.MATCHER_NOT_FOUND,{location:c});g=v.record.name,d=Kt(ux(h.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&ux(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 Ws(ve.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:Gz(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 ux(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function fx(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:zz(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 zz(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 cx(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function Gz(r){return r.reduce((t,e)=>Kt(t,e.meta),{})}function Fz(r,t){let e=0,n=t.length;for(;e!==n;){const a=e+n>>1;HI(r,t[a])<0?n=a:e=a+1}const i=Hz(r);return i&&(n=t.lastIndexOf(i,n-1)),n}function Hz(r){let t=r;for(;t=t.parent;)if(WI(t)&&HI(r,t)===0)return t}function WI({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function hx(r){const t=fn(Yv),e=fn(q0),n=an(()=>{const l=_o(r.to);return t.resolve(l)}),i=an(()=>{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(Hs.bind(null,f));if(h>-1)return h;const v=vx(l[u-2]);return u>1&&vx(f)===v&&c[c.length-1].path!==v?c.findIndex(Hs.bind(null,l[u-2])):h}),a=an(()=>i.value>-1&&Zz(e.params,n.value.params)),o=an(()=>i.value>-1&&i.value===e.matched.length-1&&BI(e.params,n.value.params));function s(l={}){if(Yz(l)){const u=t[_o(r.replace)?"replace":"push"](_o(r.to)).catch(Su);return r.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:an(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function Wz(r){return r.length===1?r[0]:r}const $z=z0({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:hx,setup(r,{slots:t}){const e=zv(hx(r)),{options:n}=fn(Yv),i=an(()=>({[dx(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[dx(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const a=t.default&&Wz(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)}}}),Uz=$z;function Yz(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 Zz(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(!pn(i)||i.length!==n.length||n.some((a,o)=>a.valueOf()!==i[o].valueOf()))return!1}return!0}function vx(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const dx=(r,t,e)=>r!=null?r:t!=null?t:e,Xz=z0({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=fn(Ey),i=an(()=>r.route||n.value),a=fn(ax,0),o=an(()=>{let u=_o(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=an(()=>i.value.matched[o.value]);th(ax,an(()=>o.value+1)),th(bz,s),th(Ey,i);const l=Qc();return eh(()=>[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||!Hs(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 px(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 px(e.default,{Component:g,route:u})||g}}});function px(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const qz=Xz;function Kz(r){const t=Bz(r.routes,r),e=r.parseQuery||Sz,n=r.stringifyQuery||ix,i=r.history,a=wl(),o=wl(),s=wl(),l=BN(Ii);let u=Ii;ys&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=$d.bind(null,U=>""+U),c=$d.bind(null,nz),h=$d.bind(null,Wu);function v(U,K){let H,tt;return zI(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=Ud(e,U,K.path),z=t.resolve({path:k.path},K),X=i.createHref(k.fullPath);return Kt(k,z,{params:h(z.params),hash:Wu(k.hash),redirectedFrom:void 0,href:X})}let H;if(U.path!=null)H=Kt({},U,{path:Ud(e,U.path,K.path).path});else{const k=Kt({},U.params);for(const z in k)k[z]==null&&delete k[z];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 ut=oz(n,Kt({},U,{hash:tz(j),path:tt.path})),R=i.createHref(ut);return Kt({fullPath:ut,hash:j,query:n===ix?xz(U.query):U.query||{}},tt,{redirectedFrom:void 0,href:R})}function m(U){return typeof U=="string"?Ud(e,U,l.value.path):Kt({},U)}function _(U,K){if(u!==U)return Ws(ve.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,ut=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:ut,replace:R}),K||H);const z=H;z.redirectedFrom=K;let X;return!ut&&sz(n,tt,H)&&(X=Ws(ve.NAVIGATION_DUPLICATED,{to:z,from:tt}),q(tt,tt,!0,!1)),(X?Promise.resolve(X):C(z,tt)).catch(W=>Jn(W)?Jn(W,ve.NAVIGATION_GUARD_REDIRECT)?W:$(W):N(W,z,tt)).then(W=>{if(W){if(Jn(W,ve.NAVIGATION_GUARD_REDIRECT))return w(Kt({replace:R},m(W.to),{state:typeof W.to=="object"?Kt({},j,W.to.state):j,force:ut}),K||z)}else W=I(z,tt,!0,R,j);return D(z,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,ut]=wz(U,K);H=Zd(tt.reverse(),"beforeRouteLeave",U,K);for(const k of tt)k.leaveGuards.forEach(z=>{H.push($i(z,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($i(k,U,K));return H.push(R),Et(H)}).then(()=>{H=Zd(j,"beforeRouteUpdate",U,K);for(const k of j)k.updateGuards.forEach(z=>{H.push($i(z,U,K))});return H.push(R),Et(H)}).then(()=>{H=[];for(const k of ut)if(k.beforeEnter)if(pn(k.beforeEnter))for(const z of k.beforeEnter)H.push($i(z,U,K));else H.push($i(k.beforeEnter,U,K));return H.push(R),Et(H)}).then(()=>(U.matched.forEach(k=>k.enterCallbacks={}),H=Zd(ut,"beforeRouteEnter",U,K,A),H.push(R),Et(H))).then(()=>{H=[];for(const k of o.list())H.push($i(k,U,K));return H.push(R),Et(H)}).catch(k=>Jn(k,ve.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 ut=_(U,K);if(ut)return ut;const R=K===Ii,k=ys?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(Su);return}u=tt;const ut=l.value;ys&&pz(nx(ut.fullPath,H.delta),Uv()),C(tt,ut).catch(R=>Jn(R,ve.NAVIGATION_ABORTED|ve.NAVIGATION_CANCELLED)?R:Jn(R,ve.NAVIGATION_GUARD_REDIRECT)?(w(Kt(m(R.to),{force:!0}),tt).then(k=>{Jn(k,ve.NAVIGATION_ABORTED|ve.NAVIGATION_DUPLICATED)&&!H.delta&&H.type===Py.pop&&i.go(-1,!1)}).catch(Su),Promise.reject()):(H.delta&&i.go(-H.delta,!1),N(R,tt,ut))).then(R=>{R=R||I(tt,ut,!1),R&&(H.delta&&!Jn(R,ve.NAVIGATION_CANCELLED)?i.go(-H.delta,!1):H.type===Py.pop&&Jn(R,ve.NAVIGATION_ABORTED|ve.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),D(tt,ut,R)}).catch(Su)}))}let E=wl(),O=wl(),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 G(){return V&&l.value!==Ii?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(!ys||!j)return Promise.resolve();const ut=!H&&gz(nx(U.fullPath,0))||(tt||!H)&&history.state&&history.state.scroll||null;return O0().then(()=>j(U,K,ut)).then(R=>R&&dz(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:G,install(U){U.component("RouterLink",Uz),U.component("RouterView",qz),U.config.globalProperties.$router=gt,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>_o(l)}),ys&&!ct&&l.value===Ii&&(ct=!0,S(i.location).catch(tt=>{}));const K={};for(const tt in Ii)Object.defineProperty(K,tt,{get:()=>l.value[tt],enumerable:!0});U.provide(Yv,gt),U.provide(q0,qD(K)),U.provide(Ey,l);const H=U.unmount;ht.add(U),U.unmount=function(){ht.delete(U),ht.size<1&&(u=Ii,L&&L(),L=null,l.value=Ii,ct=!1,V=!1),H()}}};function Et(U){return U.reduce((K,H)=>K.then(()=>A(H)),Promise.resolve())}return gt}function eat(){return fn(Yv)}function rat(r){return fn(q0)}const so="Authorization",jz=["/","/screen2","/screen2/"];function Jz(){const r=window.location.hostname;if(!r||/^\d{1,3}(\.\d{1,3}){3}$/.test(r))return r?[r]:[];const t=r.split(".").filter(Boolean),e=new Set([r,`.${r}`]);if(t.length>2){const n=t.slice(-2).join(".");e.add(n),e.add(`.${n}`)}return Array.from(e)}function Qz(r){return encodeURIComponent(r||"/platform")}function gx(){const r=document.cookie.split(";").map(t=>t.trim()).find(t=>t.startsWith(`${so}=`));return r?decodeURIComponent(r.slice(so.length+1)):""}function $I(){const r=Jz();jz.forEach(t=>{document.cookie=`${so}=; Max-Age=0; path=${t}`,document.cookie=`${so}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}`,r.forEach(e=>{document.cookie=`${so}=; Max-Age=0; path=${t}; domain=${e}`,document.cookie=`${so}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}; domain=${e}`})})}function ky(r=window.location.hash.replace(/^#/,"")||"/platform"){return`/login?redirect=${Qz(r)}`}function t5(r){$I();const t=ky(r);window.location.hash.replace(/^#/,"")!==t&&(window.location.hash=t)}function nat(r,t){return _l(this,null,function*(){var i;$I();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=`${so}=${encodeURIComponent(n.data.token)}; path=/`),n})}function iat(){return _l(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),t5("/platform")})}function e5(){return _l(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 yx=()=>Z0(()=>import("./index-e33f4373-1785726778446.js").then(r=>r.i),["./index-e33f4373-1785726778446.js","./index-e9f36657-1785726778446.js","./index-d7210760-balabala-1785726778446.css"],import.meta.url),r5=()=>Z0(()=>import("./index-343df101-1785726778446.js"),["./index-343df101-1785726778446.js","./index-c9a77e56-balabala-1785726778446.css"],import.meta.url),n5=()=>Z0(()=>import("./index-cfeb180f-1785726778446.js"),["./index-cfeb180f-1785726778446.js","./index.esm.min-4f309085-1785726778446.js","./index-7b46d381-1785726778446.js","./index-148a2898-balabala-1785726778446.css","./screen2Standard-f38b9a2d-1785726778446.js","./index-e9f36657-1785726778446.js","./screen2Standard-cdb21878-balabala-1785726778446.css","./chartTheme-330b271e-1785726778446.js","./index-8d752fbe-balabala-1785726778446.css"],import.meta.url),UI=Kz({history:Dz(),routes:[{path:"/",redirect:"/platform"},{path:"/login",component:r5,meta:{public:!0}},{path:"/platform",component:yx},{path:"/forest-grass-wet",component:yx},{path:"/chart-style-guide",component:n5},{path:"/:pathMatch(.*)",redirect:"/"}]});let xu=null;UI.beforeEach(r=>_l(void 0,null,function*(){if(r.meta.public){if(gx())try{return yield mx(),r.query.redirect?decodeURIComponent(r.query.redirect):"/platform"}catch(t){xu=null}return!0}if(!gx())return ky(r.fullPath);try{return yield mx(),!0}catch(t){return xu=null,ky(r.fullPath)}}));function mx(){return xu||(xu=e5()),xu}const i5=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},a5={};function o5(r,t){const e=yV("router-view");return Ph(),Eh(e)}const s5=i5(a5,[["render",o5]]);/*! ***************************************************************************** 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 Oy=function(r,t){return Oy=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])},Oy(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");Oy(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var l5=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),u5=function(){function r(){this.browser=new l5,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}(),Gi=new u5;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Gi.wxa=!0,Gi.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Gi.worker=!0:!Gi.hasGlobalWindow||"Deno"in window?(Gi.node=!0,Gi.svgSupported=!0):f5(navigator.userAgent,Gi);function f5(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=Gi;var K0=12,YI="sans-serif",la=K0+"px "+YI,c5=20,h5=100,v5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function d5(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 V5(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?bx(s,o):bx(o,s))}function QI(r){return r.nodeName.toUpperCase()==="CANVAS"}var B5=/([&<>"'])/g,z5={"&":"&","<":"<",">":">",'"':""","'":"'"};function qe(r){return r==null?"":(r+"").replace(B5,function(t,e){return z5[e]})}var G5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qd=[],F5=zt.browser.firefox&&+zt.browser.version.split(".")[0]<39;function Hy(r,t,e,n){return e=e||{},n?Ax(r,t,e):F5&&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):Ax(r,t,e),e}function Ax(r,t,e){if(zt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(QI(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Fy(qd,r,n,i)){e.zrX=qd[0],e.zrY=qd[1];return}}e.zrX=e.zrY=0}function n_(r){return r||window.event}function Or(r,t,e){if(t=n_(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&&Hy(r,o,t,e)}else{Hy(r,t,t,e);var a=H5(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&G5.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function H5(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 Wy(r,t,e,n){r.addEventListener(t,e,n)}function W5(r,t,e,n){r.removeEventListener(t,e,n)}var mi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Cx(r){return r.which===2||r.which===3}var $5=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=Mx(n)/Mx(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=U5(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 Kv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function i_(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 hi(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 Un(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 Bo(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 a_(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 nl(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 Y5(r){var t=Cr();return i_(t,r),t}var Z5=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=Z5;var jf=Math.min,Jf=Math.max,Ta=new Ct,Aa=new Ct,Ca=new Ct,Ma=new Ct,Tl=new Ct,Al=new Ct,X5=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=jf(t.x,this.x),n=jf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Jf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Jf(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 Un(a,a,[-e.x,-e.y]),a_(a,a,[n,i]),Un(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}Ta.x=Ca.x=e.x,Ta.y=Ma.y=e.y,Aa.x=Ma.x=e.x+e.width,Aa.y=Ca.y=e.y+e.height,Ta.transform(n),Ma.transform(n),Aa.transform(n),Ca.transform(n),t.x=jf(Ta.x,Aa.x,Ca.x,Ma.x),t.y=jf(Ta.y,Aa.y,Ca.y,Ma.y);var l=Jf(Ta.x,Aa.x,Ca.x,Ma.x),u=Jf(Ta.y,Aa.y,Ca.y,Ma.y);t.width=l-t.x,t.height=u-t.y},r}();const Mt=X5;var tL="silent";function q5(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:K5}}function K5(){mi(this.event)}var j5=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}(Xr),Cl=function(){function r(t,e){this.x=t,this.y=e}return r}(),J5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],jd=new Mt(0,0,0,0),eL=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Cl(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new j5,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new R5(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(J5,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=rL(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 Cl(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 Cl(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=q5(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 Cl(e,n);if(Dx(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)&&(jd.copy(h.getBoundingRect()),h.transform&&jd.applyTransform(h.transform),jd.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 Q5(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?tL:!0}return!1}function Dx(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=Q5(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==tL)){t.target=o;break}}}function rL(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const tG=eL;var nL=32,Ml=7;function eG(r){for(var t=0;r>=nL;)t|=r&1,r>>=1;return r+t}function Ix(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 rG(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 Jd(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 Qd(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 nG(r,t){var e=Ml,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]=Ml||w>=Ml);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-Jd(r[m],o,0,g,g-1,t),A!==0){for(S-=A,_-=A,g-=A,b=S+1,x=_+1,y=0;y=Ml||A>=Ml);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),Lx(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,ru=2,ms=4,Px=!1;function tp(){Px||(Px=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Rx(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var iG=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Rx}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(tp(),f.z=0),isNaN(f.z2)&&(tp(),f.z2=0),isNaN(f.zlevel)&&(tp(),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 aG=iG;var iL;iL=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 $y=iL;var lh={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-lh.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?lh.bounceIn(r*2)*.5:lh.bounceOut(r*2-1)*.5+.5}};const aL=lh;var Qf=Math.pow,ra=Math.sqrt,Bh=1e-8,oL=1e-4,Ex=ra(3),tc=1/3,kn=Vo(),Gr=Vo(),Rs=Vo();function Ki(r){return r>-Bh&&rBh||r<-Bh}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 kx(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function zh(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(Ki(f)&&Ki(c))if(Ki(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(Ki(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=ra(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-Qf(-_,tc):_=Qf(_,tc),S<0?S=-Qf(-S,tc):S=Qf(S,tc);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var x=(2*f*s-3*o*c)/(2*ra(f*f*f)),b=Math.acos(x)/3,w=ra(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+Ex*Math.sin(b)))/(3*o),A=(-s+w*(T-Ex*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 lL(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(Ki(o)){if(sL(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Ki(f))i[0]=-a/(2*o);else if(f>0){var c=ra(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 fa(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 uL(r,t,e,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,y;kn[0]=l,kn[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=So(kn,Gr),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Ki(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=ra(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 fL(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Yu(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 cL(r,t,e,n,i,a,o,s,l){var u,f=.005,c=1/0;kn[0]=o,kn[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=So(kn,Gr);v=0&&v=1?1:zh(0,n,a,1,l,s)&&Ae(0,i,o,1,s[0])}}}var fG=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||pe,this.ondestroy=t.ondestroy||pe,this.onrestart=t.onrestart||pe,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,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:aL[t]||o_(t)},r}();const cG=fG;var hL=function(){function r(t){this.value=t}return r}(),hG=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new hL(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}(),vG=function(){function r(t){this._list=new hG,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 hL(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 Tf=vG;var Ox={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 cn(r){return r=Math.round(r),r<0?0:r>255?255:r}function dG(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 ep(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?cn(parseFloat(t)/100*255):cn(parseInt(t,10))}function xo(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Zu(parseFloat(t)/100):Zu(parseFloat(t))}function rp(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 ji(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 Yy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var vL=new Tf(20),ec=null;function qo(r,t){ec&&Yy(ec,t),ec=vL.put(r,ec||t.slice())}function Mr(r,t){if(r){t=t||[];var e=vL.get(r);if(e)return Yy(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Ox)return Yy(t,Ox[n]),qo(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),qo(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),qo(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=xo(u.pop());case"rgb":if(u.length>=3)return kr(t,ep(u[0]),ep(u[1]),ep(u[2]),u.length===3?f:xo(u[3])),qo(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]=xo(u[3]),Zy(u,t),qo(r,t),t;case"hsl":if(u.length!==3){kr(t,0,0,0,1);return}return Zy(u,t),qo(r,t),t;default:return}}kr(t,0,0,0,1)}}function Zy(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=xo(r[1]),i=xo(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],kr(t,cn(rp(o,a,e+1/3)*255),cn(rp(o,a,e)*255),cn(rp(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function pG(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 Xy(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 vi(e,e.length===4?"rgba":"rgb")}}function np(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]=cn(ji(o[0],s[0],l)),e[1]=cn(ji(o[1],s[1],l)),e[2]=cn(ji(o[2],s[2],l)),e[3]=Zu(ji(o[3],s[3],l)),e}}function gG(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=vi([cn(ji(o[0],s[0],l)),cn(ji(o[1],s[1],l)),cn(ji(o[2],s[2],l)),Zu(ji(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function wu(r,t,e,n){var i=Mr(r);if(r)return i=pG(i),t!=null&&(i[0]=dG(t)),e!=null&&(i[1]=xo(e)),n!=null&&(i[2]=xo(n)),vi(Zy(i),"rgba")}function Gh(r,t){var e=Mr(r);if(e&&t!=null)return e[3]=Zu(t),vi(e,"rgba")}function vi(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 Fh(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 Nx=new Tf(100);function qy(r){if(nt(r)){var t=Nx.get(r);return t||(t=Xy(r,-.1),Nx.put(r,t)),t}else if(Xv(r)){var e=F({},r);return e.colorStops=Z(r.colorStops,function(n){return{offset:n.offset,color:Xy(n.color,-.1)}}),e}return r}var Hh=Math.round;function Xu(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 Vx=1e-4;function Ji(r){return r-Vx}function rc(r){return Hh(r*1e3)/1e3}function Ky(r){return Hh(r*1e4)/1e4}function yG(r){return"matrix("+rc(r[0])+","+rc(r[1])+","+rc(r[2])+","+rc(r[3])+","+Ky(r[4])+","+Ky(r[5])+")"}var mG={left:"start",right:"end",center:"middle",middle:"middle"};function _G(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function SG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function xG(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 dL(r){return r&&!!r.image}function bG(r){return r&&!!r.svgElement}function s_(r){return dL(r)||bG(r)}function pL(r){return r.type==="linear"}function gL(r){return r.type==="radial"}function yL(r){return r&&(r.type==="linear"||r.type==="radial")}function jv(r){return"url(#"+r+")"}function mL(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 _L(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*ih,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("+Hh(o*ih)+"deg, "+Hh(s*ih)+"deg)"),l.join(" ")}var wG=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}}(),jy=Array.prototype.slice;function ni(r,t,e){return(t-r)*e+r}function ip(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=zx,l=e;if(Ke(e)){var u=MG(e);s=u,(u===1&&!Ft(e[0])||u===2&&!Ft(e[0][0]))&&(o=!0)}else if(Ft(e)&&!$u(e))s=ic;else if(nt(e))if(!isNaN(+e))s=ic;else{var f=Mr(e);f&&(l=f,s=nu)}else if(Xv(e)){var c=F({},l);c.colorStops=Z(e.colorStops,function(v){return{offset:v.offset,color:Mr(v.color)}}),pL(e)?s=Jy:gL(e)&&(s=Qy),l=c}a===0?this.valType=s:(s!==this.valType||s===zx)&&(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:aL[n]||o_(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=ac(i),u=Gx(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?Dl:t[l];if((ac(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(ac(a))a===fh?ip(m,v[i],d[i],y):TG(m,v[i],d[i],y);else if(Gx(a)){var _=v[i],S=d[i],x=a===Jy;t[l]={type:x?"linear":"radial",x:ni(_.x,S.x,y),y:ni(_.y,S.y,y),colorStops:Z(_.colorStops,function(w,T){var A=S.colorStops[T];return{offset:ni(w.offset,A.offset,y),color:uh(ip([],w.color,A.color,y))}}),global:S.global},x?(t[l].x2=ni(_.x2,S.x2,y),t[l].y2=ni(_.y2,S.y2,y)):t[l].r=ni(_.r,S.r,y)}else if(u)ip(m,v[i],d[i],y),n||(t[l]=uh(m));else{var b=ni(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===ic?t[n]=t[n]+i:e===nu?(Mr(t[n],Dl),nc(Dl,Dl,i,1),t[n]=uh(Dl)):e===fh?nc(t[n],t[n],i,1):e===SL&&Bx(t[n],t[n],i,1)},r}(),l_=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){Q0("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,Tu(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Tu(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 ws(){return new Date().getTime()}var IG=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=ws()-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&&($y(n),!e._paused&&e.update())}$y(n)},t.prototype.start=function(){this._running||(this._time=ws(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ws(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ws()-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 l_(e,n.loop);return this.addAnimator(i),i},t}(Xr);const LG=IG;var PG=300,ap=zt.domSupported,op=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Fx={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Hx=!1;function tm(r){var t=r.pointerType;return t==="pen"||t==="touch"}function RG(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 sp(r){r&&(r.zrByTouch=!0)}function EG(r,t){return Or(r.dom,new kG(r,t),!0)}function xL(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 kG=function(){function r(t,e){this.stopPropagation=pe,this.stopImmediatePropagation=pe,this.preventDefault=pe,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),en={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;xL(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Hx=!0,r=Or(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Hx||(r=Or(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Or(this.dom,r),sp(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),en.mousemove.call(this,r),en.mousedown.call(this,r)},touchmove:function(r){r=Or(this.dom,r),sp(r),this.handler.processGesture(r,"change"),en.mousemove.call(this,r)},touchend:function(r){r=Or(this.dom,r),sp(r),this.handler.processGesture(r,"end"),en.mouseup.call(this,r),+new Date-+this.__lastTouchMomentUx||r<-Ux}var Ia=[],Ko=[],up=Cr(),fp=Math.abs,GG=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 Da(this.rotation)||Da(this.x)||Da(this.y)||Da(this.scaleX-1)||Da(this.scaleY-1)||Da(this.skewX)||Da(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&($x(n),this.invTransform=null);return}n=n||Cr(),e?this.getLocalTransform(n):$x(n),t&&(e?hi(n,t,n):i_(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Ia);var n=Ia[0]<0?-1:1,i=Ia[1]<0?-1:1,a=((Ia[0]-n)*e+n)/Ia[0]||0,o=((Ia[1]-i)*e+i)/Ia[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Cr(),nl(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(),hi(Ko,t.invTransform,e),e=Ko);var n=this.originX,i=this.originY;(n||i)&&(up[4]=n,up[5]=i,hi(Ko,e,up),Ko[4]-=n,Ko[5]-=i,e=Ko),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&&ze(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ze(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&fp(t[0]-1)>1e-10&&fp(t[3]-1)>1e-10?Math.sqrt(fp(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){wL(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&&Bo(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}(),Yn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function wL(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function $h(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+=gn(n[0],e.width),u+=gn(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 cp="__zr_normal__",hp=Yn.concat(["ignore"]),FG=$n(Yn,function(r,t){return r[t]=!0,r},{ignore:!1}),jo={},HG=new Mt(0,0,0,0),u_=function(){function r(t){this.id=qI(),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=HG;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(jo,n,f):$h(jo,n,f),a.x=jo.x,a.y=jo.y,o=jo.align,s=jo.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=gn(c[0],f.width),v=gn(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()?im:nm},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,vi(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(cp,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===cp,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){Q0("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]=Tu(e[y]),$G(e,n,y)}}var x=new l_(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 AL=u_;var CL=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 rt(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)?QG(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 Nn(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 tF(r)}function tF(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 IL(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 eF(r,t){var e=$n(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=$n(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 rF(r,t){var e=Math.max(Nn(r),Nn(t)),n=r+t;return e>DL?n:ce(n,e)}var Kx=9007199254740991;function LL(r){var t=Math.PI*2;return(r%t+t)%t}function qu(r){return r>-qx&&r=10&&t++,t}function PL(r,t){var e=f_(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 pp(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 jx(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 DF=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],IF=Ro(DF),LF=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return IF(this,t,e)},r}(),sm=new Tf(50);function PF(r){if(typeof r=="string"){var t=sm.get(r);return t&&t.image}else return r}function d_(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=sm.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!td(t)&&a.pending.push(o)):(t=ua.loadImage(r,eb,eb),t.__zrImageSrc=r,sm.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function eb(){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 $L(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?EF(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 EF(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=WL(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;ms&&yp(e,r.substring(s,u),t,o),yp(e,l[2],t,o,l[1]),s=gp.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=UL(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 zF=$n(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function GF(r){return BF(r)?!!zF[r]:!0}function UL(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 lm="__zr_style_"+Math.round(Math.random()*10),bo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ed={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bo[lm]=!0;var nb=["z","z2","invisible"],FF=["invisible"],HF=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(oc[0]=xp(i)*e+r,oc[1]=Sp(i)*n+t,sc[0]=xp(a)*e+r,sc[1]=Sp(a)*n+t,u(s,oc,sc),f(l,oc,sc),i=i%Pa,i<0&&(i=i+Pa),a=a%Pa,a<0&&(a=a+Pa),i>a&&!o?a+=Pa:ii&&(lc[0]=xp(v)*e+r,lc[1]=Sp(v)*n+t,u(s,lc,s),f(l,lc,l))}var qt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ra=[],Ea=[],bn=[],Li=[],wn=[],Tn=[],bp=Math.min,wp=Math.max,ka=Math.cos,Oa=Math.sin,Qn=Math.abs,um=Math.PI,Fi=um*2,Tp=typeof Float32Array!="undefined",Il=[];function Ap(r){var t=Math.round(r/um*1e8)/1e8;return t%2*um}function p_(r,t){var e=Ap(r[0]);e<0&&(e+=Fi);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Fi?i=e+Fi:t&&e-i>=Fi?i=e-Fi:!t&&e>i?i=e+(Fi-Ap(e-i)):t&&e0&&(this._ux=Qn(n/Wh/t)||0,this._uy=Qn(n/Wh/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=Qn(t-this._xi),i=Qn(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(),Il[0]=i,Il[1]=a,p_(Il,o),i=Il[0],a=Il[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=ka(a)*n+t,this._yi=Oa(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)&&Tp&&(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(){bn[0]=bn[1]=wn[0]=wn[1]=Number.MAX_VALUE,Li[0]=Li[1]=Tn[0]=Tn[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;on||Qn(_)>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=oG(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=lG(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=ka(I)*C+T,l=Oa(I)*D+A),p=wp(C,D)*bp(Fi,Math.abs(L)),a=ka(P)*C+T,o=Oa(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=Qn(c-u),C=Qn(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++],G=n[b++];if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;fa(u,P,O,N,I,Ra),fa(f,E,V,G,I,Ea),t.bezierCurveTo(Ra[1],Ea[1],Ra[2],Ea[2],Ra[3],Ea[3]);break t}g+=D}t.bezierCurveTo(P,E,O,V,N,G),u=N,f=G;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;Yu(u,P,O,I,Ra),Yu(f,E,V,I,Ea),t.quadraticCurveTo(Ra[1],Ea[1],Ra[2],Ea[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=Qn(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=ka(ht)*Q+$,l=Oa(ht)*ct+q),u=ka(tt)*Q+$,f=Oa(tt)*ct+q;break;case qt.R:s=u=n[b],l=f=n[b+1],c=n[b++],h=n[b++];var ut=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+bp(k,ut),h),k-=ut,k>0&&t.lineTo(c+ut,h+bp(k,R)),k-=R,k>0&&t.lineTo(c+wp(ut-k,0),h+R),k-=ut,k>0&&t.lineTo(c,h+wp(R-k,0));break t}g+=D}t.rect(c,h,ut,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 Ui(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+=Ll);var h=Math.atan2(l,s);return h<0&&(h+=Ll),h>=n&&h<=i||h+Ll>=n&&h+Ll<=i}function ii(r,t,e,n,i,a){if(a>t&&a>n||ai?s:0}var Pi=Xn.CMD,Na=Math.PI*2,qF=1e-4;function KF(r,t){return Math.abs(r-t)t&&u>n&&u>a&&u>s||u1&&jF(),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);nr[0]=-l,nr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Na-1e-4){n=0,i=Na;var f=a?1:-1;return o>=nr[0]+r&&o<=nr[1]+r?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Na,i+=Na);for(var h=0,v=0;v<2;v++){var d=nr[v];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Na+p),(p>=n&&p<=i||p+Na>=n&&p+Na<=i)&&(p>Math.PI/2&&p1&&(e||(s+=ii(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case Pi.M:f=a[d++],c=a[d++],l=f,u=c;break;case Pi.L:if(e){if(Ui(l,u,a[d],a[d+1],t,n,i))return!0}else s+=ii(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pi.C:if(e){if(ZF(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=JF(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 Pi.Q:if(e){if(YL(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=QF(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pi.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+=ii(l,u,h,v,n,i);var T=(n-y)*S/_+y;if(e){if(XF(y,m,S,x,x+b,w,t,T,i))return!0}else s+=t3(y,m,S,x,x+b,w,T,i);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case Pi.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(Ui(f,c,h,c,t,n,i)||Ui(h,c,h,v,t,n,i)||Ui(h,v,f,v,t,n,i)||Ui(f,v,f,c,t,n,i))return!0}else s+=ii(h,c,h,v,n,i),s+=ii(f,v,f,c,n,i);break;case Pi.Z:if(e){if(Ui(l,u,f,c,t,n,i))return!0}else s+=ii(l,u,f,c,n,i);l=f,u=c;break}}return!e&&!KF(u,c)&&(s+=ii(l,u,f,c,n,i)||0),s!==0}function e3(r,t,e){return ZL(r,0,!1,t,e)}function r3(r,t,e,n){return ZL(r,t,!0,e,n)}var Uh=pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bo),n3={style:pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ed.style)},Cp=Yn.concat(["invisible","culling","z","z2","zlevel","parent"]),i3=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.5?nm:n>.2?zG:im}else if(e)return im}return nm},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Fh(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&ms)&&(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)),r3(s,l/u,e,n)))return!0}if(this.hasFill())return e3(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ms,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&ms)},t.prototype.createStyle=function(e){return qv(Uh,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 qv(a3,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=Af(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}(Zr);XL.prototype.type="tspan";const ju=XL;var o3=pt({x:0,y:0},bo),s3={style:pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ed.style)};function l3(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var qL=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return qv(o3,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=l3(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 s3},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}(Zr);qL.prototype.type="image";const We=qL;function u3(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 Ts=Math.round;function KL(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&&(Ts(n*2)===Ts(i*2)&&(r.x1=r.x2=uo(n,s,!0)),Ts(a*2)===Ts(o*2)&&(r.y1=r.y2=uo(a,s,!0))),r}}function jL(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=uo(n,s,!0),r.y=uo(i,s,!0),r.width=Math.max(uo(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(uo(i+o,s,!1)-r.y,o===0?0:1)),r}}function uo(r,t,e){if(!t)return r;var n=Ts(r*2);return(n+Ts(t))%2===0?n/2:(n+(e?1:-1))/2}var f3=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),c3={},JL=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new f3},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=jL(c3,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?u3(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Pt);JL.prototype.type="rect";const Vt=JL;var lb={fill:"#000"},ub=2,h3={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},ed.style)},QL=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=lb,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&&Mp(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=pb(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(ju),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=db("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),x=vb("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=ub,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||la,g.opacity=Gn(u.opacity,n.opacity,1),cb(g,u),x&&(g.lineWidth=Gn(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(iu(g.x,w,g.textAlign),_s(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(We),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=Gn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return eP(e)&&(n=[e.fontStyle,e.fontWeight,tP(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&on(n)||e.textFont||e.font},t}(Zr),v3={left:!0,right:1,center:1},d3={top:1,bottom:1,middle:1},fb=["fontStyle","fontWeight","fontSize","fontFamily"];function tP(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?K0+"px":r+"px"}function cb(r,t){for(var e=0;e=0,a=!1;if(r instanceof Pt){var o=rP(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Jo(s)||Jo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=F({},n),u=F({},u),u.fill=s):!Jo(u.fill)&&Jo(s)?(a=!0,n=F({},n),u=F({},u),u.fill=qy(s)):!Jo(u.stroke)&&Jo(l)&&(a||(n=F({},n),u=F({},u)),u.stroke=qy(l)),n.style=u}}if(n&&n.z2==null){a||(n=F({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:al)}return n}function x3(r,t,e){if(e&&e.z2==null){e=F({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:g3)}return e}function b3(r,t,e){var n=Dt(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:_3(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 Dp(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return S3(this,r,t,e);if(r==="blur")return b3(this,r,e);if(r==="select")return x3(this,r,e)}return e}function Eo(r){r.stateProxy=Dp;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Dp),e&&(e.stateProxy=Dp)}function Sb(r,t){!uP(r,t)&&!r.__highByOuter&&Ci(r,nP)}function xb(r,t){!uP(r,t)&&!r.__highByOuter&&Ci(r,iP)}function Si(r,t){r.__highByOuter|=1<<(t||0),Ci(r,nP)}function xi(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ci(r,iP)}function oP(r){Ci(r,m_)}function __(r){Ci(r,aP)}function sP(r){Ci(r,y3)}function lP(r){Ci(r,m3)}function uP(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function fP(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=g_(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){aP(u)}),s&&e.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function cm(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 To(r,t,e){fo(r,!0),Ci(r,Eo),vm(r,t,e)}function D3(r){fo(r,!1)}function ue(r,t,e,n){n?D3(r):To(r,t,e)}function vm(r,t,e){var n=St(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var wb=["emphasis","blur","select"],I3={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Fe(r,t,e,n){e=e||"itemStyle";for(var i=0;i1&&(o*=Ip(d),s*=Ip(d));var p=(i===a?-1:1)*Ip((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+fc(c)*g-uc(c)*y,_=(t+n)/2+uc(c)*g+fc(c)*y,S=Mb([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=Mb(x,b);if(pm(x,b)<=-1&&(w=Pl),pm(x,b)>=1&&(w=0),w<0){var T=Math.round(w/Pl*1e6)/1e6;w=Pl*2+T%2*Pl}f.addData(u,m,_,o,s,S,w,c,a)}var O3=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,N3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function V3(r){var t=new Xn;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Xn.CMD,l=r.match(O3);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 $3(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 U3(r,t){var e,n=au(t.r,0),i=au(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=Ib(u-l),d=v>Lp&&v%Lp;if(d>tn&&(v=d),!(n>tn))r.moveTo(f,c);else if(v>Lp-tn)r.moveTo(f+n*ts(l),c+n*Va(l)),r.arc(f,c,n,l,u,!h),i>tn&&(r.moveTo(f+i*ts(u),c+i*Va(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*ts(l),O=n*Va(l),V=i*ts(u),N=i*Va(u),G=v>tn;if(G){var $=t.cornerRadius;$&&(e=$3($),p=e[0],g=e[1],y=e[2],m=e[3]);var q=Ib(n-i)/2;if(_=An(q,y),S=An(q,m),x=An(q,p),b=An(q,g),A=w=au(_,S),C=T=au(x,b),(w>tn||T>tn)&&(D=n*ts(u),I=n*Va(u),L=i*ts(l),P=i*Va(l),vtn){var H=An(y,A),tt=An(m,A),j=cc(L,P,E,O,n,H,h),ut=cc(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,$e(j.y0,j.x0),$e(j.y1,j.x1),!h),r.arc(f,c,n,$e(j.cy+j.y1,j.cx+j.x1),$e(ut.cy+ut.y1,ut.cx+ut.x1),!h),tt>0&&r.arc(f+ut.cx,c+ut.cy,tt,$e(ut.y1,ut.x1),$e(ut.y0,ut.x0),!h))}else r.moveTo(f+E,c+O),r.arc(f,c,n,l,u,!h);if(!(i>tn)||!G)r.lineTo(f+V,c+N);else if(C>tn){var H=An(p,C),tt=An(g,C),j=cc(V,N,D,I,i,-tt,h),ut=cc(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,$e(j.y0,j.x0),$e(j.y1,j.x1),!h),r.arc(f,c,i,$e(j.cy+j.y1,j.cx+j.x1),$e(ut.cy+ut.y1,ut.cx+ut.x1),h),H>0&&r.arc(f+ut.cx,c+ut.cy,H,$e(ut.y1,ut.x1),$e(ut.y0,ut.x0),!h))}else r.lineTo(f+V,c+N),r.arc(f,c,i,u,l,h)}r.closePath()}}}var Y3=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}(),_P=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Y3},t.prototype.buildPath=function(e,n){U3(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Pt);_P.prototype.type="sector";const gr=_P;var Z3=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),SP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Z3},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);SP.prototype.type="ring";const ad=SP;function X3(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=X3(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;sza[1]){if(s=!1,a)return s;var f=Math.abs(za[0]-Ba[1]),c=Math.abs(Ba[0]-za[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){A_("update",r,t,e,n,i,a)}function oe(r,t,e,n,i,a){A_("enter",r,t,e,n,i,a)}function Es(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 Rb(r){return!r.isGroup}function dH(r){return r.shape!=null}function If(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Rb(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return dH(o)&&(s.shape=F({},o.shape)),s}var a=n(r);t.traverse(function(o){if(Rb(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 EP(r,t){return Z(r,function(e){var n=e[0];n=Xh(n,t.x),n=qh(n,t.x+t.width);var i=e[1];return i=Xh(i,t.y),i=qh(i,t.y+t.height),[n,i]})}function pH(r,t){var e=Xh(r.x,t.x),n=qh(r.x+r.width,t.x+t.width),i=Xh(r.y,t.y),a=qh(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 Lf(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 We(n)):sd(r.replace("path://",""),n,e,"center")}function ou(r,t,e,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Pp(v,d,f,c)/h;return!(g<0||g>1)}function Pp(r,t,e,n){return r*n-e*t}function gH(r){return r<=1e-6&&r>=-1e-6}function zo(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){lt(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 Eb(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Sa(r,t){if(r)if(Y(r))for(var e=0;e=0&&s.push(l)}),s}}function xa(r,t){return Tt(Tt({},r,!0),t,!0)}const IH={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:". "}}}},LH={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 jh="ZH",D_="EN",ks=D_,gh={},I_={},GP=zt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ks).toUpperCase();return r.indexOf(jh)>-1?jh:ks}():ks;function FP(r,t){r=r.toUpperCase(),I_[r]=new te(t),gh[r]=t}function PH(r){if(nt(r)){var t=gh[r.toUpperCase()]||{};return r===jh||r===D_?mt(t):Tt(mt(t),mt(gh[ks]),!1)}else return Tt(mt(r),mt(gh[ks]),!1)}function mm(r){return I_[r]}function RH(){return I_[ks]}FP(D_,IH);FP(jh,LH);var L_=1e3,P_=L_*60,Lu=P_*60,Wr=Lu*24,Bb=Wr*365,su={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}"},dc="{yyyy}-{MM}-{dd}",zb={year:"{yyyy}",month:"{yyyy}-{MM}",day:dc,hour:dc+" "+su.hour,minute:dc+" "+su.minute,second:dc+" "+su.second,millisecond:su.none},kp=["year","month","day","hour","minute","second","millisecond"],HP=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ri(r,t){return r+="","0000".substr(0,t-r.length)+r}function Os(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 EH(r){return r===Os(r)}function kH(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function fd(r,t,e,n){var i=Zn(r),a=i[R_(e)](),o=i[Ns(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[cd(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[ef(e)](),c=(f-1)%12+1,h=i[hd(e)](),v=i[vd(e)](),d=i[dd(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof te?n:mm(n||GP)||RH(),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,Ri(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Ri(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ri(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ri(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ri(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ri(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ri(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ri(d,3)).replace(/{S}/g,d+"")}function OH(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({},su);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 fd(new Date(r.value),a,i,n)}function WP(r,t){var e=Zn(r),n=e[Ns(t)]()+1,i=e[cd(t)](),a=e[ef(t)](),o=e[hd(t)](),s=e[vd(t)](),l=e[dd(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 Gb(r,t,e){var n=Ft(r)?Zn(r):r;switch(t=t||WP(r,e),t){case"year":return n[R_(e)]();case"half-year":return n[Ns(e)]()>=6?1:0;case"quarter":return Math.floor((n[Ns(e)]()+1)/4);case"month":return n[Ns(e)]();case"day":return n[cd(e)]();case"half-day":return n[ef(e)]()/24;case"hour":return n[ef(e)]();case"minute":return n[hd(e)]();case"second":return n[vd(e)]();case"millisecond":return n[dd(e)]()}}function R_(r){return r?"getUTCFullYear":"getFullYear"}function Ns(r){return r?"getUTCMonth":"getMonth"}function cd(r){return r?"getUTCDate":"getDate"}function ef(r){return r?"getUTCHours":"getHours"}function hd(r){return r?"getUTCMinutes":"getMinutes"}function vd(r){return r?"getUTCSeconds":"getSeconds"}function dd(r){return r?"getUTCMilliseconds":"getMilliseconds"}function NH(r){return r?"setUTCFullYear":"setFullYear"}function $P(r){return r?"setUTCMonth":"setMonth"}function UP(r){return r?"setUTCDate":"setDate"}function YP(r){return r?"setUTCHours":"setHours"}function ZP(r){return r?"setUTCMinutes":"setMinutes"}function XP(r){return r?"setUTCSeconds":"setSeconds"}function qP(r){return r?"setUTCMilliseconds":"setMilliseconds"}function KP(r){if(!RL(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 jP(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 ul=r_;function _m(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&on(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?Zn(r):r;if(isNaN(+l)){if(s)return"-"}else return fd(l,n,e)}if(t==="ordinal")return Ny(r)?i(r):Ft(r)&&a(r)?r+"":"-";var u=_i(r);return a(u)?KP(u):Ny(r)?i(r):typeof r=="boolean"?r+"":"-"}var Fb=["a","b","c","d","e","f","g"],Op=function(r,t){return"{"+r+(t==null?"":t)+"}"};function JP(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 ko(r,t){return t=t||"transparent",nt(r)?r:yt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Jh(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var yh=M,QP=["left","right","top","bottom","width","height"],co=[["width","left","right"],["height","top","bottom"]];function E_(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 Co=E_;bt(E_,"vertical");bt(E_,"horizontal");function zH(r,t,e){var n=t.width,i=t.height,a=rt(r.left,n),o=rt(r.top,i),s=rt(r.right,n),l=rt(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=ul(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=ul(e||0);var n=t.width,i=t.height,a=rt(r.left,n),o=rt(r.top,i),s=rt(r.right,n),l=rt(r.bottom,i),u=rt(r.width,n),f=rt(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 pd(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 GH(r,t){return r[co[t][0]]!=null||r[co[t][1]]!=null&&r[co[t][2]]!=null}function rf(r){var t=r.layoutMode||r.constructor.layoutMode;return yt(t)?t:t?{type:t}:null}function ha(r,t,e){var n=e&&e.ignoreSize;!Y(n)&&(n=[n,n]);var i=o(co[0],0),a=o(co[1],1);u(co[0],r,i),u(co[1],r,a);function o(f,c){var h={},v=0,d={},p=0,g=2;if(yh(f,function(_){d[_]=r[_]}),yh(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 Cf(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);HL(cl,te);Qv(cl);MH(cl);DH(cl,HH);function HH(r){var t=[];return M(cl.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Z(t,function(e){return Vn(e).main}),r!=="dataset"&&Dt(t,"dataset")<=0&&t.unshift("dataset"),t}const Bt=cl;var e2="";typeof navigator!="undefined"&&(e2=navigator.platform||"");var es="rgba(0, 0, 0, 0.2)";const WH={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:es,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:es,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:es,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:es,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:es,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:es,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:e2.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 r2=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),qr="original",je="arrayRows",Kr="objectRows",qn="keyedColumns",na="typedArray",n2="unknown",Fn="column",hl="row",Ne={Must:1,Might:2,Not:3},i2=Nt();function $H(r){i2(r).datasetMap=ft()}function a2(r,t,e){var n={},i=O_(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=i2(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 l2(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:qH(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 KH(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var pc,Rl,Wb,$b="\0_ec_inner",jH=1,u2=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=Zb(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Zb(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"?Wb(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;$H(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=ZH(this,c,Zt(e[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=VL(v,h,d);vF(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"&&pc(this)}this._seriesIndices||pc(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]&&!Ku(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[$b],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 l4(r,t){return r.join(",")===t.join(",")}const u4=i4;var Jr=M,nf=yt,Xb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Vp(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Xb.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=rF(h,m),p=m;break}}}return n[0]=h,n[1]=p,n})})}var gd=function(){function r(t){this.data=t.data||(t.sourceFormat===qn?{}:[]),this.sourceFormat=t.sourceFormat||n2,this.seriesLayoutBy=t.seriesLayoutBy||Fn,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};ew=(t={},t[je+"_"+Fn]={pure:!0,appendData:a},t[je+"_"+hl]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Kr]={pure:!0,appendData:a},t[qn]={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[qr]={appendData:a},t[na]={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 Ys(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function aw(r){var t,e;return yt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Pu(r){return new C4(r)}var C4=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}},D4=function(){function r(t,e){if(!Ft(e)){var n="";Wt(n)}this._opFn=x2[t],this._rvalFloat=_i(e)}return r.prototype.evaluate=function(t){return Ft(t)?this._opFn(t,this._rvalFloat):this._opFn(_i(t),this._rvalFloat)},r}(),b2=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:_i(t),i=Ft(e)?e:_i(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}(),I4=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=_i(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=_i(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function L4(r,t){return r==="eq"||r==="ne"?new I4(r==="eq",t):lt(x2,r)?new D4(r,t):null}var P4=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 ia(t,e)},r}();function R4(r,t){var e=new P4,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Fn&&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 _="";lt(l,y)&&Wt(_),l[y]=m}});else for(var f=0;f65535?G4:F4}function ns(){return[1/0,-1/0]}function H4(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function lw(r,t,e,n,i){var a=A2[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(rs(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 ia(e[a],this._dimensions[a])}Gp={arrayRows:t,objectRows:function(e,n,i,a){return ia(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return ia(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}(),C2=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(gc(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)?na:qr,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?[bm(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=[bm(_,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&&fw(a)}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&fw(c),s.push(f),l.push(u._getVersionSign())}),n?o=B4(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[_4(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=L2(i);a>=t&&(t=a+ +(n&&(!a||Tm(i)&&!i.noHeader)))}),t}return 0}function Y4(r,t,e,n){var i=t.noHeader,a=X4(L2(t)),o=[],s=t.blocks||[];lr(!s||Y(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(lt(u,l)){var f=new b2(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=I2(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):Am(n,o.join(""),i?e:a.html);if(i)return c;var h=_m(t.header,"ordinal",r.useUTC),v=D2(n,r.renderMode).nameStyle,d=M2(n);return r.renderMode==="richText"?P2(r,h,v)+a.richText+c:Am(n,'
'+qe(h)+"
"+c,e)}function Z4(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 _m(x,Y(v)?v[b]:v,u)})};if(!(a&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":_m(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?"":P2(r,h,m))+(o?"":j4(r,d,p,g,_)):Am(n,(s?"":c)+(a?"":q4(h,!s,m))+(o?"":K4(d,p,g,_)),e)}}function cw(r,t,e,n,i,a){if(r){var o=I2(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function X4(r){return{html:$4[r],richText:U4[r]}}function Am(r,t,e){var n='
',i="margin: "+e+"px 0 0",a=M2(r);return'
'+t+n+"
"}function q4(r,t,e){var n=t?"margin-left:2px":"";return''+qe(r)+""}function K4(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 qe(o)}).join("  ")+""}function P2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function j4(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 R2(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return ko(n)}function E2(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Fp=function(){function r(){this.richTextStyles={},this._nextStyleNameId=EL()}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=BH({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 k2(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=R2(t,e),f,c,h,v;if(o>1||l&&!o){var d=J4(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=Ys(i,e,a[0]),c=p.type}else v=f=l?s[0]:s;var g=c_(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:!on(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function J4(r,t,e,n,i){var a=t.getData(),o=$n(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(Ys(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 Ei=Nt();function yc(r,t){return r.getName(t)||r.getId(t)}var mh="__universalTransitionEnabled",_d=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=Pu({count:tW,reset:eW}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Ei(this).sourceManager=new C2(this);a.prepareSource();var o=this.getInitialData(e,i);vw(o,this),this.dataTask.context.data=o,Ei(this).dataBeforeProcessed=o,hw(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=rf(this),a=i?fl(e):{},o=this.subType;Bt.hasClass(o)&&(o+="Series"),Tt(e,n.getTheme().get(this.subType)),Tt(e,this.getDefaultOption()),Lo(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&ha(e,a,i)},t.prototype.mergeOption=function(e,n){e=Tt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=rf(this);i&&ha(this.option,e,i);var a=Ei(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);vw(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ei(this).dataBeforeProcessed=o,hw(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=N_.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[yc(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[mh])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);_e(_d,yd);_e(_d,N_);HL(_d,Bt);function hw(r){var t=r.name;c_(r)||(r.name=Q4(r)||t)}function Q4(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 tW(r){return r.model.getRawData().count()}function eW(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),rW}function rW(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function vw(r,t){M(Uu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(nW,t))})}function nW(r,t){var e=Cm(r);return e&&e.setOutputEnd((t||this).count()),t}function Cm(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=_d;var F_=function(){function r(){this.group=new _t,this.uid=ll("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}();v_(F_);Qv(F_);const fe=F_;function vl(){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 O2=Nt(),iW=vl(),H_=function(){function r(){this.group=new _t,this.uid=ll("viewChart"),this.renderTask=Pu({plan:aW,reset:oW}),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&&pw(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&pw(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){Sa(this.group,t)},r.markUpdateMethod=function(t,e){O2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function dw(r,t,e){r&&Qu(r)&&(t==="emphasis"?Si:xi)(r,e)}function pw(r,t,e){var n=Po(r,t),i=t&&t.highlightKey!=null?P3(t.highlightKey):null;n!=null?M(Zt(n),function(a){dw(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){dw(a,e,i)})}v_(H_);Qv(H_);function aW(r){return iW(r.model)}function oW(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&O2(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),sW[l]}var sW={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=H_;var Qh="\0__throttleOriginMethod",gw="\0__throttleRate",yw="\0__throttleType";function W_(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 dl(r,t,e,n){var i=r[t];if(i){var a=i[Qh]||i,o=i[yw],s=i[gw];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=W_(a,e,n==="debounce"),i[Qh]=a,i[yw]=n,i[gw]=e}return i}}function af(r,t){var e=r[t];e&&e[Qh]&&(e.clear&&e.clear(),r[t]=e[Qh])}var mw=Nt(),_w={itemStyle:Ro(zP,!0),lineStyle:Ro(BP,!0)},lW={lineStyle:"stroke",itemStyle:"fill"};function N2(r,t){var e=r.visualStyleMapper||_w[t];return e||(console.warn("Unknown style type '"+t+"'."),_w.itemStyle)}function V2(r,t){var e=r.visualDrawType||lW[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var uW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=N2(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=V2(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)}}}},kl=new te,fW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=N2(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){kl.option=l[n];var u=i(kl),f=o.ensureUniqueItemVisual(s,"style");F(f,u),kl.option.decal&&(o.setItemVisual(s,"decal",kl.option.decal),kl.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cW={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)),mw(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=mw(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=V2(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)}})}})}},mc=Math.PI;function hW(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 w_({shape:{startAngle:-mc/2,endAngle:-mc/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:mc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:mc*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 vW=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="";lr(!(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)||Pu({plan:mW,reset:_W,count:xW}));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||Pu({reset:dW});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="";lr(!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,Pu({reset:pW,onDirty:yW})));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:bW(t)}),t.uid=ll("stageHandler"),e&&(t.visualType=e),t},r}();function dW(r){r.overallReset(r.ecModel,r.api,r.payload)}function pW(r){return r.overallProgress&&gW}function gW(){this.agent.dirty(),this.getDownstream().dirty()}function yW(){this.agent&&this.agent.dirty()}function mW(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function _W(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 B2(n)}):SW}var SW=B2(0);function B2(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"],ww=Mm.concat(["symbolKeepAspect"]),CW={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&&vo(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Dm(r,t,e){for(var n=t.type==="radial"?HW(r,t,e):FW(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 U_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&$W(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 UW=new Xn(!0);function rv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Tw(r){return typeof r=="string"&&r!=="none"}function nv(r){var t=r.fill;return t!=null&&t!=="none"}function Aw(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 Im(r,t,e){var n=d_(t.image,t.__image,e);if(td(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)*ih),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function YW(r,t,e,n){var i,a=rv(e),o=nv(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||UW,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?Dm(r,h,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?Dm(r,v,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?Im(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=c||!t.__canvasStrokePattern?Im(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=U_(t),T=i[0],A=i[1]);var C=!0;(u||c&ms)&&(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&&Aw(r,e)):(o&&Aw(r,e),a&&Cw(r,e))),T&&r.setLineDash([])}function ZW(r,t,e){var n=t.__image=d_(e.image,t.__image,t,t.onload);if(!(!n||!td(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 XW(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||la,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=U_(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(rv(e)&&r.strokeText(i,e.x,e.y),nv(e)&&r.fillText(i,e.x,e.y)):(nv(e)&&r.fillText(i,e.x,e.y),rv(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var Mw=["shadowBlur","shadowOffsetX","shadowOffsetY"],Dw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function U2(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)?bo.opacity:o}(n||t.blend!==e.blend)&&(a||(dr(r,i),a=!0),r.globalCompositeOperation=t.blend||bo.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[Ue]){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[Ue]=!0,!this._model||n){var l=new u4(this._api),u=this._theme,f=this._model=new f2;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Pm);var c={seriesTransition:s,optionChanged:!0};if(i)this[cr]={silent:a,updateParams:c},this[Ue]=!1,this.getZr().wakeUp();else{try{as(this),ki.update.call(this,null,c)}catch(h){throw this[cr]=null,this[Ue]=!1,h}this._ssr||this._zr.flush(),this[cr]=null,this[Ue]=!1,Ol.call(this,a),Nl.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(Ww[i]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(Eu,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=ua.createCanvas(),y=Xx(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 We({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 Yp(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Yp(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=Cu(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=Cu(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?$_(s,l,n):Rf(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(S$,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&ho(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(Ru,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)}),DW(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&&zL(this.getDom(),X_,"");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 Eu[n.id]},t.prototype.resize=function(e){if(!this[Ue]){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[cr]&&(a==null&&(a=this[cr].silent),i=!0,this[cr]=null),this[Ue]=!0;try{i&&as(this),ki.update.call(this,{type:"resize",animation:F({duration:0},e&&e.animation)})}catch(o){throw this[Ue]=!1,o}this[Ue]=!1,Ol.call(this,a),Nl.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(),!!Rm[e]){var i=Rm[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=Ru[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(yt(n)||(n={silent:!!n}),!!iv[e.type]&&this._model){if(this[Ue]){this._pendingActions.push(e);return}var i=n.silent;Xp.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&zt.browser.weChat&&this._throttledZrFlush(),Ol.call(this,i),Nl.call(this,i)}},t.prototype.updateLabelLayout=function(){rn.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(){as=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Up(c,!0),Up(c,!1),h.plan()},Up=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(Es(y))return;if(y instanceof Pt&&R3(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)}})}Fw=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){Si(d,p),Lr(c)},v.prototype.leaveEmphasis=function(d,p){xi(d,p),Lr(c)},v.prototype.enterBlur=function(d){oP(d),Lr(c)},v.prototype.leaveBlur=function(d){__(d),Lr(c)},v.prototype.enterSelect=function(d){sP(d),Lr(c)},v.prototype.leaveSelect=function(d){lP(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}(c2))(c)},oR=function(c){function h(v,d){for(var p=0;p=0)){$w.push(e);var a=F2.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function cR(r,t){Rm[r]=t}function M$(r,t,e){var n=a$("registerMap");n&&n(r,t,e)}var D$=V4;Wo(Y_,uW);Wo(Sd,fW);Wo(Sd,cW);Wo(Y_,CW);Wo(Sd,MW);Wo(tR,r$);q_(v2);fR(l$,y4);cR("default",hW);Kn({type:wo,event:wo,update:wo},pe);Kn({type:vh,event:vh,update:vh},pe);Kn({type:Mu,event:Mu,update:Mu},pe);Kn({type:dh,event:dh,update:dh},pe);Kn({type:Du,event:Du,update:Du},pe);uR("light",wW);uR("dark",TW);var Uw=[],I$={registerPreprocessor:q_,registerProcessor:fR,registerPostInit:w$,registerPostUpdate:T$,registerUpdateLifecycle:K_,registerAction:Kn,registerCoordinateSystem:A$,registerLayout:C$,registerVisual:Wo,registerTransform:D$,registerLoading:cR,registerMap:M$,registerImpl:i$,PRIORITY:y$,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){KG(r,t)}};function Lt(r){if(Y(r)){M(r,function(t){Lt(t)});return}Dt(Uw,r)>=0||(Uw.push(r),vt(r)&&(r={install:r}),r.install(I$))}function Vl(r){return r==null?0:r.length||1}function Yw(r){return r}var L$=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Yw,this._newKeyGetter=i||Yw,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 Bl=yt,Oi=Z,V$=typeof Int32Array=="undefined"?Array:Int32Array,B$="e\0\0",Zw=-1,z$=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],G$=["_approximateExtent"],Xw,wc,zl,Gl,jp,Fl,Jp,F$=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;vR(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===qr;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():Bl(a)&&(a=F({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Bl(e)?F(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Bl(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;fm(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:Oi(this.dimensions,this._getDimInfo,this),this.hostModel)),jp(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(e_(arguments)))})},r.internalField=function(){Xw=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 V$(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[e]=l}}}(),r}();const sr=F$;function Ef(r,t){V_(r)||(r=B_(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=ft(),a=[],o=W$(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&gR(o),l=n===r.dimensionsDefine,u=l?pR(r):dR(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=ft(f),h=new T2(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function W$(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 $$(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 U$=function(){function r(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return r}();function Y$(r){var t=r.get("coordinateSystem"),e=new U$(t),n=Z$[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var Z$={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",ye).models[0],a=r.getReferringComponents("yAxis",ye).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),os(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),os(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",ye).models[0];t.coordSysDims=["single"],e.set("single",i),os(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",ye).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),os(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),os(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),os(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function os(r){return r.get("type")==="category"}function X$(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;q$(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 q$(r){return!vR(r.schema)}function va(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function yR(r,t){return va(r,t)?r.getCalculationInfo("stackResultDimension"):t}function K$(r,t){var e=r.get("coordinateSystem"),n=Pf.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=ov(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function j$(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 Mi(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=B_(r)):(i=n.getSource(),a=i.sourceFormat===qr);var o=Y$(t),s=K$(t,o),l=e.useEncodeDefaulter,u=vt(l)?l:l?bt(a2,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Ef(i,f),h=j$(c.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=X$(t,{schema:c,store:v}),p=new sr(c,t);p.setCalculationInfo(d);var g=h!=null&&J$(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 J$(r){if(r.sourceFormat===qr){var t=Q$(r.data||[]);return!Y(il(t))}}function Q$(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}();Qv(mR);const Di=mR;var tU=0,eU=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++tU}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&Z(n,rU);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 rU(r){return yt(r)&&r.value!=null?r.value:r+""}const Em=eU;function km(r){return r.type==="interval"||r.type==="log"}function nU(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=PL(a/t,!0);e!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=_R(o),l=i.niceTickExtent=[ce(Math.ceil(r[0]/o)*o,s),ce(Math.floor(r[1]/o)*o,s)];return iU(l,r),i}function Qp(r){var t=Math.pow(10,f_(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ce(e*t)}function _R(r){return Nn(r)+2}function qw(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function iU(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),qw(r,0,t),qw(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function xd(r,t){return r>=t[0]&&r<=t[1]}function bd(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function wd(r,t){return r*(t[1]-t[0])+t[0]}var SR=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 Em({})),Y(i)&&(i=new Em({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),xd(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),bd(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(wd(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}(Di);Di.registerClass(SR);const J_=SR;var Wa=ce,xR=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 xd(e,this._extent)},t.prototype.normalize=function(e){return bd(e,this._extent)},t.prototype.scale=function(e){return wd(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=_R(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:Wa(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 TR(r){var t=sU(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=rt(n.get("barWidth"),s),p=rt(n.get("barMaxWidth"),s),g=rt(n.get("barMinWidth")||(IR(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:t1(a),stackId:Q_(n)})}),AR(e)}function AR(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=rt(s,o),f=rt(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 lU(r,t,e){if(r&&t){var n=r[t1(t)];return n!=null&&e!=null?n[Q_(e)]:n}}function CR(r,t){var e=wR(r,t),n=TR(e);M(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Q_(i),u=n[t1(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function MR(r){return{seriesType:r,plan:vl(),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=va(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=uU(i,a),d=IR(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&&Bn(x*3),w=d&&l&&Bn(x*3),T=d&&Bn(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,G=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,G=Q[1]+m,$=Q[0]-O,q=y,Math.abs($)0?e:1:e))}var fU=function(r,t,e,n){for(;e>>1;r[i][1]i&&(this._approxInterval=i);var s=Tc.length,l=Math.min(fU(Tc,this._approxInterval,0,s),s-1);this._interval=Tc[l][1],this._minLevelUnit=Tc[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Ft(e)?e:+Zn(e)},t.prototype.contain=function(e){return xd(this.parse(e),this._extent)},t.prototype.normalize=function(e){return bd(this.parse(e),this._extent)},t.prototype.scale=function(e){return wd(e,this._extent)},t.type="time",t}(da),Tc=[["second",L_],["minute",P_],["hour",Lu],["quarter-day",Lu*6],["half-day",Lu*12],["day",Wr*1.2],["half-week",Wr*3.5],["week",Wr*7],["month",Wr*31],["quarter",Wr*95],["half-year",Bb/2],["year",Bb]];function cU(r,t,e,n){var i=Zn(t),a=Zn(e),o=function(d){return Gb(i,d,n)===Gb(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 hU(r,t){return r/=Wr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function vU(r){var t=30*Wr;return r/=t,r>6?6:r>3?3:r>2?2:1}function dU(r){return r/=Lu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Kw(r,t){return r/=t?P_:L_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function pU(r){return PL(r,!0)}function gU(r,t,e){var n=new Date(r);switch(Os(t)){case"year":case"month":n[$P(e)](0);case"day":n[UP(e)](1);case"hour":n[YP(e)](0);case"minute":n[ZP(e)](0);case"second":n[XP(e)](0),n[qP(e)](0)}return n.getTime()}function yU(r,t,e,n){var i=1e4,a=HP,o=0;function s(C,D,I,L,P,E,O){for(var V=new Date(D),N=D,G=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(SU(n[0]/a)*a),ce(_U(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){ku.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Qr(e)/Qr(this.base),xd(e,this._extent)},t.prototype.normalize=function(e){return e=Qr(e)/Qr(this.base),bd(e,this._extent)},t.prototype.scale=function(e){return e=wd(e,this._extent),Ac(this.base,e)},t.type="log",t}(Di),RR=e1.prototype;RR.getMinorTicks=ku.getMinorTicks;RR.getLabel=ku.getLabel;function Cc(r,t){return mU(r,Nn(t))}Di.registerClass(e1);const xU=e1;var bU=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[TU[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=wU[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),wU={min:"_determinedMin",max:"_determinedMax"},TU={min:"_dataMin",max:"_dataMax"};function ER(r,t,e){var n=r.rawExtentInfo;return n||(n=new bU(r,t,e),r.rawExtentInfo=n,n)}function Mc(r,t){return t==null?null:$u(t)?NaN:r.parse(t)}function kR(r,t){var e=r.type,n=ER(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=wR("bar",o),l=!1;if(M(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=TR(s),f=AU(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function AU(r,t,e,n){var i=e.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=lU(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 Xs(r,t){var e=t,n=kR(r,e),i=n.extent,a=e.get("splitNumber");r instanceof xU&&(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 Td(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new J_({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new PR({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Di.getClass(t)||da)}}function CU(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function gl(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(r1(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function r1(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function MU(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof J_?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=gl(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;fr[1]&&(r[1]=i[1])})}var kf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),LU=1e-8;function Jw(r,t){return Math.abs(r-t)i&&(n=o,i=l)}if(n)return RU(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"?Qw(s.exterior,i,a,e):M(s.points,function(l){Qw(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 OU(r,t){return r=kU(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 tT(o[0],o.slice(1)));break;case"MultiPolygon":M(i.coordinates,function(l){l[0]&&a.push(new tT(l[0],l.slice(1)))});break;case"LineString":a.push(new eT([i.coordinates]));break;case"MultiLineString":a.push(new eT(i.coordinates))}var s=new VR(n[t||"name"],a,n.cp);return s.properties=n,s})}var lf=Nt();function zR(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 NU(r){var t=r.getLabelModel().get("customValues");if(t){var e=gl(r),n=r.scale.getExtent(),i=zR(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"?BU(r):GU(r)}function VU(r,t){var e=r.getTickModel().get("customValues");if(e){var n=r.scale.getExtent(),i=zR(r,e);return{ticks:$t(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?zU(r,t):{ticks:Z(r.scale.getTicks(),function(a){return a.value})}}function BU(r){var t=r.getLabelModel(),e=GR(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function GR(r,t){var e=FR(r,"labels"),n=n1(t),i=HR(e,n);if(i)return i;var a,o;return vt(n)?a=UR(r,n):(o=n==="auto"?FU(r):n,a=$R(r,o)),WR(e,n,{labels:a,labelCategoryInterval:o})}function zU(r,t){var e=FR(r,"ticks"),n=n1(t),i=HR(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),vt(n))a=UR(r,n,!0);else if(n==="auto"){var s=GR(r,r.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=$R(r,o,!0);return WR(e,n,{ticks:a,tickCategoryInterval:o})}function GU(r){var t=r.scale.getTicks(),e=gl(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 FR(r,t){return lf(r)[t]||(lf(r)[t]=[])}function HR(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=Af(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=lf(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 WU(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 $R(r,t,e){var n=gl(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=OR(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 UR(r,t,e){var n=r.scale,i=gl(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 rT=[0,1],$U=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 IL(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(),nT(n,i.count())),Ut(t,rT,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),nT(n,i.count()));var a=Ut(t,n,rT,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=VU(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 UU(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 NU(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 HU(this)},r}();function nT(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function UU(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+=Hl);var v=Math.atan2(s,o);if(v<0&&(v+=Hl),v>=n&&v<=i||v+Hl>=n&&v+Hl<=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 lv(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 YR(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 nn=[];function qU(r,t,e){var n=YR(t.x,t.y,t.width,t.height,r.x,r.y,nn);return e.set(nn[0],nn[1]),n}function KU(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,sn.fromArray(r[0]),Jt.fromArray(r[1]),de.fromArray(r[2]),Ct.sub(zn,sn,Jt),Ct.sub(On,de,Jt);var e=zn.len(),n=On.len();if(!(e<.001||n<.001)){zn.scale(1/e),On.scale(1/n);var i=zn.dot(On),a=Math.cos(t);if(a1&&Ct.copy(ir,de),ir.toArray(r[1])}}}}function jU(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,sn.fromArray(r[0]),Jt.fromArray(r[1]),de.fromArray(r[2]),Ct.sub(zn,Jt,sn),Ct.sub(On,de,Jt);var n=zn.len(),i=On.len();if(!(n<.001||i<.001)){zn.scale(1/n),On.scale(1/i);var a=zn.dot(t),o=Math.cos(e);if(a=l)Ct.copy(ir,de);else{ir.scaleAndAdd(On,s/Math.tan(Math.PI/2-f));var c=de.x!==Jt.x?(ir.x-Jt.x)/(de.x-Jt.x):(ir.y-Jt.y)/(de.y-Jt.y);if(isNaN(c))return;c<0?Ct.copy(ir,Jt):c>1&&Ct.copy(ir,de)}ir.toArray(r[1])}}}}function rg(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 JU(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=Zi(n[0],n[1]),a=Zi(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=oh([],n[1],n[0],o/i),l=oh([],n[1],n[2],o/a),u=oh([],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 QU(r,t,e,n){return qR(r,"x","width",t,e,n)}function KR(r,t,e,n){return qR(r,"y","height",t,e,n)}function jR(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),!sl(n).valueAnimation){var c=xt(n.style.opacity,1);n.style.opacity=0,oe(n,{style:{opacity:c}},e,l)}if(a.oldLayout=u,n.states.select){var v=a.oldLayoutSelect={};Dc(v,u,Ic),Dc(v,n.states.select,Ic)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Dc(d,u,Ic),Dc(d,n.states.emphasis,Ic)}VP(n,l,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=r6(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,oe(i,{style:{strokePercent:1}},e)),a.oldLayout=p}},r}();const i6=n6;var ig=Nt();function a6(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=ig(e).labelManager;i||(i=ig(e).labelManager=new i6),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=ig(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var ag=Math.sin,og=Math.cos,JR=Math.PI,Ua=Math.PI*2,o6=180/JR,s6=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=Ji(c-Ua)||(f?u>=Ua:-u>=Ua),v=u>0?u%Ua:u%Ua+Ua,d=!1;h?d=!0:Ji(c)?d=!1:d=v>=JR==!!f;var p=t+n*og(o),g=e+i*ag(o);this._start&&this._add("M",p,g);var y=Math.round(a*o6);if(h){var m=1/this._p,_=(f?1:-1)*(Ua-m);this._add("A",n,i,y,1,+f,t+n*og(o+_),e+i*ag(o+_)),m>.01&&this._add("A",n,i,y,0,+f,p,g)}else{var S=t+n*og(s),x=e+i*ag(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 g6(r){return""}function o1(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 p6(o,s)+(o!=="style"?qe(l):l||"")+(a?""+e+Z(a,function(u){return n(u)}).join(e)+e:"")+g6(o)}return n(r)}function y6(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 Vm(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function sT(r,t,e,n){return Ce("svg","root",{width:r,height:t,xmlns:tE,"xmlns:xlink":eE,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var m6=0;function nE(){return m6++}var lT={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},qa="transform-origin";function _6(r,t,e){var n=F({},r.shape);F(n,t),r.buildPath(e,n);var i=new QR;return i.reset(mL(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function S6(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[qa]=e+"px "+n+"px")}var x6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function iE(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function b6(r,t,e){var n=r.shape.paths,i={},a,o;if(M(n,function(l){var u=Vm(e.zrId);u.animation=!0,Ad(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=iE(i,e);return a.replace(o,s)}}function uT(r){return nt(r)?lT[r]?"cubic-bezier("+lT[r]+")":o_(r)?r:"":""}function Ad(r,t,e,n){var i=r.animators,a=i.length,o=[];if(r instanceof T_){var s=b6(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=iE(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-"+nE();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function w6(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};fT(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=qy(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),fT(n,t,e,!0)}}function fT(r,t,e,n){var i=JSON.stringify(r),a=e.cssStyleCache[i];a||(a=e.zrId+"-cls-"+nE(),e.cssStyleCache[i]=a,e.cssNodes["."+a+(n?":hover":"")]=r),t.class=t.class?t.class+" "+a:a}var uf=Math.round;function aE(r){return r&&nt(r.src)}function oE(r){return r&&vt(r.toDataURL)}function s1(r,t,e,n){h6(function(i,a){var o=i==="fill"||i==="stroke";o&&yL(a)?lE(t,r,i,n):o&&s_(a)?uE(e,r,i,n):r[i]=a,o&&n.ssr&&a==="none"&&(r["pointer-events"]="visible")},t,e,!1),L6(e,r,n)}function l1(r,t){var e=jG(t);e&&(e.each(function(n,i){n!=null&&(r[(oT+i).toLowerCase()]=n+"")}),t.isSilent()&&(r[oT+"silent"]="true"))}function cT(r){return Ji(r[0]-1)&&Ji(r[1])&&Ji(r[2])&&Ji(r[3]-1)}function T6(r){return Ji(r[4])&&Ji(r[5])}function u1(r,t,e){if(t&&!(T6(t)&&cT(t))){var n=e?10:1e4;r.transform=cT(t)?"translate("+uf(t[4]*n)/n+" "+uf(t[5]*n)/n+")":yG(t)}}function hT(r,t,e){for(var n=r.points,i=[],a=0;aa?(d=e[l+1]==null?null:e[l+1].elm,hE(r,d,e,i,l)):fv(r,t,n,a))}function Ss(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(f1(r,t),Bm(t.text)?Ln(n)&&Ln(i)?n!==i&&O6(e,n,i):Ln(i)?(Ln(r.text)&&sg(e,""),hE(e,null,i,0,i.length-1)):Ln(n)?fv(e,n,0,n.length-1):Ln(r.text)&&sg(e,""):r.text!==t.text&&(Ln(n)&&fv(e,n,0,n.length-1),sg(e,t.text)))}function N6(r,t){if(uu(r,t))Ss(r,t);else{var e=r.elm,n=fE(e);ff(t),n!==null&&(no(n,t.elm,cE(e)),fv(n,[r],0,0))}return t}var V6=0,B6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=_T(),this.configLayer=_T(),this.storage=e,this._opts=n=F({},n),this.root=t,this._id="zr"+V6++,this._oldVNode=sT(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=rE("svg");f1(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",N6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return dT(t,Vm(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Vm(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=z6(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=y6(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Ce("style","stl",{},[],f);o.push(c)}}return sT(n,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},o1(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?Lc:0),this._needsManuallyCompositing),f.__builtin__||Q0("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 K6=q6;function qs(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Ys(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 j6=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=me(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=J6,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(){Si(this.childAt(0))},t.prototype.downplay=function(){xi(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),yn(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,oe(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=Ho(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 We){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;He(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(E){return D?e.getName(E):qs(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&&ca(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ca(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return pl(e.getItemVisual(n,"symbolSize"))},t}(_t);function J6(r,t){this.parent.drift(r,t)}const Of=j6;function ug(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 bT(r){return r!=null&&!yt(r)&&(r={isIgnore:r}),r||{}}function wT(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 Q6=function(){function r(t){this.group=new _t,this._SymbolCtor=t||Of}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=bT(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=wT(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(ug(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(!ug(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=wT(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=bT(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 pE(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 e8(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 r8(r,t,e,n,i,a,o,s){for(var l=e8(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=dE(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=i||p<0)break;if(Mo(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||Mo(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,G=void 0;if(s==="x"){N=Math.abs(P),G=Math.abs(E);var $=C>0?1:-1;v=y-$*N*o,d=m,I=y+$*G*o,L=m}else if(s==="y"){N=Math.abs(O),G=Math.abs(V);var q=D>0?1:-1;v=y,d=m-q*N*o,I=y,L=m+q*G*o}else N=Math.sqrt(P*P+O*O),G=Math.sqrt(E*E+V*V),A=G/(G+N),v=y-C*o*(1-A),d=m-D*o*(1-A),I=y+C*o*A,L=m+D*o*A,I=Ni(I,Vi(b,y)),L=Ni(L,Vi(w,m)),I=Vi(I,Ni(b,y)),L=Vi(L,Ni(w,m)),C=I-y,D=L-m,v=y-C*N/G,d=m-D*N/G,v=Ni(v,Vi(u,y)),d=Ni(d,Vi(f,m)),v=Vi(v,Ni(u,y)),d=Vi(d,Ni(f,m)),C=y-v,D=m-d,I=y+C*G/N,L=m+D*G/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 gE=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),n8=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 gE},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Mo(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?zh(s,v,p,y,e,f):zh(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),i8=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(gE),yE=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 i8},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&&Mo(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 s8(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=o8(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 Df(0,0,0,0,h,!0);return m[i]=p,m[i+"2"]=g,m}}}function l8(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&u8(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 u8(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 f8(r,t){return isNaN(r)||isNaN(t)}function c8(r){for(var t=r.length/2;t>0&&f8(r[t*2-2],r[t*2-1]);t--);return t-1}function DT(r,t){return[r[t*2],r[t*2+1]]}function h8(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 SE(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=d.getState("emphasis").style;G.lineWidth=+d.style.lineWidth+1}St(d).seriesIndex=e.seriesIndex,ue(d,O,V,N);var $=MT(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=MT(Q.get("smooth"))),p.setShape({smooth:$,stackedOnSmooth:ct,smoothMonotone:q,connectNulls:w}),Fe(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=Po(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 Of(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=Po(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;Yh(this._polyline,e),n&&Yh(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new n8({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 yE({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(SE(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=c8(l);f>=0&&(He(s,De(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?vE(o,v):qs(o,c)},enableTextSetter:!0},v8(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=h8(c,S,w),A=T.range,C=A[1]-A[0],D=void 0;if(C>=1){if(C>1&&!v){var I=DT(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=GL(i,d,L,P,T.t))}a.lastFrameIndex=A[0]}else{var E=e===1||a.lastFrameIndex>0?A[0]:0,I=DT(c,E);o&&(D=h.getRawValue(E)),u.attr({x:I[0]+x,y:I[1]+b})}if(o){var O=sl(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=r8(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=Bi(h.stackedOnCurrent,h.current,i,o,l),v=Bi(h.current,null,i,o,l),g=Bi(h.stackedOnNext,h.next,i,o,l),p=Bi(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=g8[a]:vt(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,y8))}}}}}function m8(r){r.registerChartView(p8),r.registerSeriesModel(K6),r.registerLayout(Bf("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,xE("line"))}var bE=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 Mi(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(bE);const cv=bE;var _8=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 Mi(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=xa(cv.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}(cv);const S8=_8;var x8=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}(),b8=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 x8},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){tf(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),IT={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=cg(t.x,r.x),s=hg(t.x+t.width,i),l=cg(t.y,r.y),u=hg(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=hg(t.r,r.r),a=cg(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}},LT={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?hv:gr,f=new u({shape:n,z2:1});f.name="item";var c=wE(i);if(f.calculateTextPosition=w8(c,{isRoundCap:u===hv}),a){var h=f.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Ht:oe)(f,{shape:d},a)}return f}};function M8(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 PT(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:oe)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?Ht:oe)(e,{shape:u},f,i)}function RT(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 L8(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function wE(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 kT(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=go(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);He(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:qs(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,T8(r,g==="outside"?v:g,wE(o),n.get(["label","rotate"]))}NP(p,d,a.getRawValue(e),function(m){return vE(t,m)});var y=n.getModel(["emphasis"]);ue(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Fe(r,n),L8(i)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function P8(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 R8=function(){function r(){}return r}(),OT=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 R8},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 E8(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 TE(r,t,e){if($o(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 k8(r,t,e){var n=r.type==="polar"?gr:Vt;return new n({shape:TE(t,e,r),silent:!0,z2:0})}const O8=C8;function N8(r){r.registerChartView(O8),r.registerSeriesModel(S8),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(CR,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,MR("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,xE("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 BT=Math.PI*2,kc=Math.PI/180;function AE(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function CE(r,t){var e=AE(r,t),n=r.get("center"),i=r.get("radius");Y(i)||(i=[0,i]);var a=rt(e.width,t.getWidth()),o=rt(e.height,t.getHeight()),s=Math.min(a,o),l=rt(i[0],s/2),u=rt(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=rt(n[0],a)+e.x,c=rt(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function V8(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=AE(n,e),s=CE(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*kc,v=n.get("endAngle"),d=n.get("padAngle")*kc;v=v==="auto"?h-BT:-v*kc;var p=n.get("minAngle")*kc,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;p_(A,!S),h=A[0],v=A[1];var D=ME(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 G;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"?G=m===0&&b?_:V*_:G=I/y,GG?(q=E+T*G/2,Q=q):(q=E+C,Q=$-C),i.setItemLayout(N,{angle:G,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 vg(r){return r.position==="center"}function G8(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*B8,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=rt(I.get("edgeDistance"),u),V=I.get("bleedMargin"),N=D.getModel("labelLine"),G=N.get("length");G=rt(G,u);var $=N.get("length2");if($=rt($,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Q>0?"left":"right"}var z=Math.PI,X=0,W=I.get("rotate");if(Ft(W))X=W*(z/180);else if(L==="center")X=0;else if(W==="radial"||W===!0){var J=Q<0?-q+z:-q;X=J}else if(W==="tangential"&&L!=="outside"&&L!=="outer"){var ot=Math.atan2(Q,ct);ot<0&&(ot=z*2+ot);var st=ct>0;st&&(ot=z+ot),X=ot-z}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 et=(A.style.margin||0)+2.1;it.y-=et/2,it.height+=et,e.push({label:A,labelLine:C,position:L,len:G,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")&&z8(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 W8=H8;function yl(r,t,e){t=Y(t)&&{coordDimensions:t}||F({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=Ef(n,t).dimensions,a=new sr(i,r);return a.initData(n,e),a}var $8=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 Gf=$8;var U8=Nt(),Y8=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 Gf(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 yl(this,{coordDimensions:["value"],encodeDefaulter:bt(k_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=U8(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=eF(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){Lo(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 Z8=Y8;function X8(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 q8(r){r.registerChartView(W8),r.registerSeriesModel(Z8),$2("pie",r.registerAction),r.registerLayout(bt(V8,"pie")),r.registerProcessor(zf("pie")),r.registerProcessor(X8("pie"))}var K8=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 Mi(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 j8=K8;var IE=4,J8=function(){function r(){}return r}(),Q8=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 J8},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 eY=tY;var rY=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=Bf("").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 eY:new Nf,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 nY=rY;var iY=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 aY=iY;var Gm=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ye).models[0]},t.type="cartesian2dAxis",t}(Bt);_e(Gm,kf);var LE={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)"]}}},oY=Tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},LE),c1=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}}},LE),sY=Tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},c1),lY=pt({logBase:10},c1);const PE={category:oY,value:c1,time:sY,log:lY};var uY={value:1,category:1,time:1,log:1};function Ks(r,t,e,n){M(uY,function(i,a){var o=Tt(Tt({},PE[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=rf(this),v=h?fl(f):{},d=c.getTheme();Tt(f,d.get(a+"Axis")),Tt(f,this.getDefaultOption()),f.type=GT(f),h&&ha(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Em.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",GT)}function GT(r){return r.type||(r.data?"category":"value")}var fY=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 cY=fY;var Fm=["x","y"];function FT(r){return r.type==="interval"||r.type==="time"}var hY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Fm,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!FT(e)||!FT(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=nl([],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 ze(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 ze(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}(cY),vY=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}(_n);const dY=vY;function Hm(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 HT(r){return r.get("coordinateSystem")==="cartesian2d"}function WT(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,ye).models[0];t[n]=a}),t}var dg=Math.log;function RE(r,t,e){var n=da.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=kR(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=dg(r.base);u=[dg(u[0])/h,dg(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=Qp(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Qp(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 pY=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Fm,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function 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;km(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Xs(p,d),km(p)&&(s=v))}f.length&&(s||(s=f.pop(),Xs(s.scale,s.model)),M(f,function(g){RE(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){$T(n,"y",o,a)}),M(n.y,function(o){$T(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=MU(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]),gY(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"):qu(i-Qi)?(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}(),YT={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&&(ze(s,s,o),ze(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});Us(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=Ho(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 _=me(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=SY(e,n,t,r),a=bY(e,n,t,r);if(_Y(t,a,i),xY(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=XR(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));jR(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,XT(a)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Qi/180);var d;XT(a)?h=Do.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(h=mY(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:Do.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(zo({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=Do.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,St(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function mY(r,t,e,n){var i=LL(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return qu(i-Qi/2)?(o=l?"bottom":"top",a="center"):qu(i-Qi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iQi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function _Y(r,t,e){if(!OR(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)):ZT(a,o)&&(n?(Pr(o),Pr(f)):(Pr(a),Pr(u))),i===!1?(Pr(s),Pr(c)):ZT(l,s)&&(i?(Pr(l),Pr(h)):(Pr(s),Pr(c)))}}function Pr(r){r&&(r.ignore=!0)}function ZT(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=Kv([]);return Bo(i,i,-r.rotation),e.applyTransform(hi([],i,r.getLocalTransform())),n.applyTransform(hi([],i,t.getLocalTransform())),e.intersect(n)}}function XT(r){return r==="middle"||r==="center"}function EE(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l=0||r===t}function DY(r){var t=h1(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=Wm(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 _e(m,kf.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"}},Wl.axisLine),axisLabel:Oc(Wl.axisLabel,!1),axisTick:Oc(Wl.axisTick,!1),splitLine:Oc(Wl.splitLine,!0),splitArea:Oc(Wl.splitArea,!0),indicator:[]},t}(Bt);const $Y=WY;var UY=["axisLine","axisTickLabel","axisName"],YY=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 wi(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(UY,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 _a({shape:{cx:S,cy:x,r:_[b].coord}}))}if(c&&b<_.length-1){var w=m(y,p,b);y[w].push(new ad({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;yg(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);yg(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!tA(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;yg(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Xr);function yg(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(mi(n.event),zE(r,t,e,n,i))}function zE(r,t,e,n,i){i.isAvailableBehavior=at(Sh,null,e,n),r.trigger(t,i)}function Sh(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}const Ff=r7;function d1(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function p1(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 n7={axisPointer:1,tooltip:1,brush:1};function Cd(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!n7.hasOwnProperty(n.mainType)&&i&&i.model!==e}function GE(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 mg,vv={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"},eA=kt(vv),dv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},rA=kt(dv),i7=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=GE(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;s7(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=Md(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=HE(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=mg[s];if(f&<(mg,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=nA[s];if(v&<(nA,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 ju({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),a7(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(){mg={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 _a;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 b_;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=oA(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=oA(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 We;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=pP(n);return Rr(e,i),xr(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),nA={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 Df(t,e,n,i);return iA(r,a),aA(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 iA(r,i),aA(r,i),i}};function iA(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function aA(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={};FE(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 oA(r){for(var t=Md(r),e=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Md(o);switch(i=i||Cr(),s){case"translate":Un(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":a_(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Bo(i,i,-parseFloat(l[0])*_g,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*_g);hi(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*_g);hi(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 lA=/([^\s:;]+)\s*:\s*([^:;]+)/g;function FE(r,t,e){var n=r.getAttribute("style");if(n){lA.lastIndex=0;for(var i;(i=lA.exec(n))!=null;){var a=i[1],o=lt(vv,a)?vv[a]:null;o&&(t[o]=i[2]);var s=lt(dv,a)?dv[a]:null;s&&(e[s]=i[2])}}}function c7(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;He(t,De(n),{labelFetcher:h,labelDataIndex:c,defaultText:e},v);var d=t.getTextContent();if(d&&(WE(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 vA(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 dA(r,t,e,n,i){r.data||zo({el:t,componentModel:i,itemName:e,itemTooltipOption:n.get("tooltip")})}function pA(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&&L3(t,i,e),o}function gA(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 E7=R7;function k7(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 z7(r,t){M(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var G7=function(){function r(){this.dimensions=UE}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 SA(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=xA,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 SA(s,s,F({nameMap:t_(l)},i(o[0])));u.zoomLimit=Re.apply(null,Z(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=xA,u.resize(o[0],e),M(o,function(f){f.coordinateSystem=u,z7(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 q7(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){J7(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=Q7(r,i,r.parentNode.hierNode.defaultAncestor||n[0],t)}function K7(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function wA(r){return arguments.length?r:r9}function fu(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function j7(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function J7(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 Q7(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=Sg(s),a=xg(a),s&&a;){i=Sg(i),o=xg(o),i.hierNode.ancestor=r;var h=s.hierNode.prelim+c-a.hierNode.prelim-u+n(s,a);h>0&&(e9(t9(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&&!Sg(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=c-l),a&&!xg(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-f,e=r)}return e}function Sg(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function xg(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function t9(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function e9(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 r9(r,t){return r.parentNode===t.parentNode?1:2}var n9=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),i9=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 n9},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=rt(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"?Uu(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(St(e).focus=L),o9(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===Mf||Yh(e.__edge,P)}})}function o9(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 od({shape:Ym(f,c,h,i,i)})),Ht(p,{shape:Ym(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 JE(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function S1(r,t){var e=JE(r);return Dt(e,t)>=0}function Dd(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 y9=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=_1.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=Dd(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 m9=y9;function _9(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 S9(r,t){r.eachSeriesByType("tree",function(e){x9(e,t)})}function x9(r,t){var e=j7(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=wA(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(i=e.width,a=e.height,o=wA());var s=r.getData().tree.root,l=s.children[0];if(l){X7(s),_9(l,q7,o),s.hierNode.modifier=-l.hierNode.prelim,Ul(l,K7);var u=l,f=l,c=l;Ul(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),Ul(l,function(_){g=(_.getLayout().x+v)*d,y=(_.depth-1)*p;var S=fu(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),Ul(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),Ul(l,function(_){g=(_.getLayout().x+v)*d,y=m==="TB"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:g,y},!0)}))}}}function b9(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 w9(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=y1(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function T9(r){r.registerChartView(s9),r.registerSeriesModel(m9),r.registerLayout(S9),r.registerVisual(b9),w9(r)}var DA=["treemapZoomToNode","treemapRender","treemapMove"];function A9(r){for(var t=0;t1;)a=a.parentNode;var o=xm(r.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var C9=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};tk(i);var a=e.levels||[],o=this.designatedVisualItemStyle={},s=new te({itemStyle:o},this,n);a=e.levels=M9(a,n);var l=Z(a||[],function(c){return new te(c,s,n)},this),u=_1.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=Dd(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(){QE(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 tk(r){var t=0;M(r.children,function(n){tk(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 M9(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 D9=C9;var I9=8,IA=8,bg=5,L9=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),pd(o,c.pos,c.box)}},r.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var a=xe(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+I9*2,e.emptyItemWidth);e.totalWidth+=s+IA,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=zH(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:P9(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:al*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),R9(S,t,y),l+=m+IA}},r.prototype.remove=function(){this.group.removeAll()},r}();function P9(r,t,e,n,i,a){var o=[[i?r:r-bg,t],[r+e,t],[r+e,t+n],[i?r:r-bg,t+n]];return!a&&o.splice(2,0,[r+e+bg,t+n/2]),!i&&o.push([r,t+n/2]),o}function R9(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&&Dd(e,t)}}const E9=L9;var k9=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;iPA||Math.abs(e.dy)>PA)){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();Un(g,g,[-n,-i]),a_(g,g,[d,d]),Un(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&&Jh(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 E9(this.group))).render(e,n,i.node,function(o){a._state!=="animating"&&(S1(e.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Yl(),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 Yl(){return{nodeGroup:[],background:[],content:[]}}function G9(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",Zm);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),pv(D).nodeWidth=v,pv(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=gt("background",LA,u,V9);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)Qu(D)&&fo(D,!1),I&&(fo(I,!O),c.setItemGraphicEl(o.dataIndex,I),vm(I,V,E));else{var N=gt("content",LA,u,B9);N&&q(D,N),I.disableMorphing=!0,I&&Qu(I)&&fo(I,!1),fo(D,!O),c.setItemGraphicEl(o.dataIndex,D);var G=h.getShallow("cursor");G&&N.attr("cursor",G),vm(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 ut=o.getVisual("style"),R=ut.stroke,k=kA(b);k.fill=R;var z=ja(w);z.fill=w.get("borderColor");var X=ja(T);X.fill=T.get("borderColor");var W=ja(A);if(W.fill=A.get("borderColor"),tt){var J=v-2*p;ct(H,R,ut.opacity,{x:p,y:0,width:J,height:S})}else H.removeTextContent();H.setStyle(k),H.ensureState("emphasis").style=z,H.ensureState("blur").style=X,H.ensureState("select").style=W,Eo(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),ut=Math.max(d-2*p,0);if(H.culling=!0,H.setShape({x:p,y:p,width:j,height:ut,r:C}),g)Q(H);else{H.invisible=!1;var R=o.getVisual("style"),k=R.fill,z=kA(b);z.fill=k,z.decal=R.decal;var X=ja(w),W=ja(T),J=ja(A);ct(H,k,R.opacity,null),H.setStyle(z),H.ensureState("emphasis").style=X,H.ensureState("blur").style=W,H.ensureState("select").style=J,Eo(H)}K.add(H)}function Q(K){!K.invisible&&a.push(K)}function ct(K,H,tt,j){var ut=h.getModel(j?EA:RA),R=xe(h.get("name"),null),k=ut.getShallow("show");He(K,De(h,j?EA:RA),{defaultText:k?R:null,inheritColor:H,defaultOpacity:tt,labelFetcher:r,labelDataIndex:o.dataIndex});var z=K.getTextContent();if(z){var X=z.style,W=r_(X.padding||0);j&&(K.setTextConfig({layoutRect:j}),z.disableLabelLayout=!0),z.beforeUpdate=function(){var ot=Math.max((j?j.width:K.shape.width)-W[1]-W[3],0),st=Math.max((j?j.height:K.shape.height)-W[0]-W[2],0);(X.width!==ot||X.height!==st)&&z.setStyle({width:ot,height:st})},X.truncateMinChar=2,X.lineOverflow="truncate",ht(X,j,f);var J=z.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 ut=r.get("drillDownIcon",!0);K.text=ut?ut+" "+j:j}}function gt(K,H,tt,j){var ut=m!=null&&e[K][m],R=i[K];return ut?(e[K][m]=null,Et(R,ut)):g||(ut=new H,ut instanceof Zr&&(ut.z2=F9(tt,j)),U(R,ut)),t[K][y]=ut}function Et(K,H){var tt=K[y]={};H instanceof Zm?(tt.oldX=H.x,tt.oldY=H.y):tt.oldShape=F({},H.shape)}function U(K,H){var tt=K[y]={},j=o.parentNode,ut=H instanceof _t;if(j&&(!n||n.direction==="drillDown")){var R=0,k=0,z=i.background[j.getRawIndex()];!n&&z&&z.oldShape&&(R=z.oldShape.width,k=z.oldShape.height),ut?(tt.oldX=0,tt.oldY=k):tt.oldShape={x:R,y:k,width:0,height:0}}tt.fadein=!ut}}function F9(r,t){return r*N9+t}const H9=z9;var vf=M,W9=yt,gv=-1,x1=function(){function r(t){var e=t.mappingMethod,n=t.type,i=this.option=mt(t);this.type=n,this.mappingMethod=e,this._normalizeData=Y9[e];var a=r.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[e],e==="piecewise"?(wg(i),$9(i)):e==="category"?i.categories?U9(i):wg(i,!0):(lr(e!=="linear"||i.dataExtent),wg(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&&vf(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(W9(t)){var e=[];vf(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 wg(r,t){var e=r.visual,n=[];yt(e)?vf(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]),ek(r,n)}function Vc(r){return{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("color",r(e("color"),i))},_normalizedToVisual:Xm([0,1])}}function OA(r){var t=this.option.visual;return t[Math.round(Ut(r,[0,1],[0,t.length-1],!0))]||{}}function Zl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function cu(r){var t=this.option.visual;return t[this.option.loop&&r!==gv?r%t.length:r]}function Ja(){return this.option.visual[0]}function Xm(r){return{linear:function(t){return Ut(t,r,this.option.visual,!0)},category:cu,piecewise:function(t,e){var n=qm.call(this,e);return n==null&&(n=Ut(t,r,this.option.visual,!0)),n},fixed:Ja}}function qm(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=x1.findPieceIndex(r,e),i=e[n];if(i&&i.visual)return i.visual[this.type]}}function ek(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 Y9={linear:function(r){return Ut(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=x1.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?gv:t},fixed:pe};function Bc(r,t,e){return r?t<=e:t=e.length||p===e[p.depth]){var y=J9(i,l,p,g,d,n);nk(p,y,e,n)}})}}}function q9(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 NA(r){var t=Tg(r,"color");if(t){var e=Tg(r,"colorAlpha"),n=Tg(r,"colorSaturation");return n&&(t=wu(t,null,null,n)),e&&(t=Gh(t,e)),t}}function K9(r,t){return t!=null?wu(t,null,null,r):null}function Tg(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function j9(r,t,e,n,i,a){if(!(!a||!a.length)){var o=Ag(t,"color")||i.color!=null&&i.color!=="none"&&(Ag(t,"colorAlpha")||Ag(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 Ge(c);return rk(h).drColorMappingBy=f,h}}}function Ag(r,t){var e=r.get(t);return Y(e)&&e.length?{name:t,range:e}:null}function J9(r,t,e,n,i,a){var o=F({},t);if(i){var s=i.type,l=s==="color"&&rk(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 df=Math.max,yv=Math.min,VA=Re,b1=M,ik=["itemStyle","borderWidth"],Q9=["itemStyle","gapWidth"],tZ=["upperLabel","show"],eZ=["upperLabel","height"];const rZ={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=rt(VA(s.width,l[0]),i),f=rt(VA(s.height,l[1]),a),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=hf(n,h,r),d=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,p=r.getViewRoot(),g=JE(p);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?lZ(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),ak(p,_,!1,0),S=p.getLayout(),b1(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(uZ(s,d,v),!0),r.setLayoutInfo(s),ok(x,new Mt(-s.x,-s.y,i,a),g,p,0)}};function ak(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(ik),u=s.get(Q9)/2,f=sk(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),i=df(i-2*h,0),a=df(a-h-v,0);var d=i*a,p=nZ(r,s,d,t,e,n);if(p.length){var g={x:h,y:v,width:i,height:a},y=yv(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 sZ(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?df(u*n/l,l/(u*i)):1/0}function BA(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;cKx&&(u=Kx),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 C1=DZ;var IZ=function(){function r(t){this.group=new _t,this._LineCtor=t||C1}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=$A(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=$A(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!LZ(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function $A(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 UA(r){return isNaN(r[0])||isNaN(r[1])}function Lg(r){return r&&!UA(r[0])&&!UA(r[1])}const M1=IZ;var Pg=[],Rg=[],Eg=[],us=Le,kg=So,YA=Math.abs;function ZA(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){Pg[0]=us(n[0],i[0],a[0],f),Pg[1]=us(n[1],i[1],a[1],f);var c=YA(kg(Pg,t)-l);c=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Og(r,t){var e=[],n=Yu,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=[ci(u[0]),ci(u[1])],u[2]&&u.__original.push(ci(u[2])));var h=u.__original;if(u[2]!=null){if(rr(i[0],h[0]),rr(i[1],h[2]),rr(i[2],h[1]),f&&f!=="none"){var v=vu(s.node1),d=ZA(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=vu(s.node2),d=ZA(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]}rr(u[0],i[0]),rr(u[1],i[2]),rr(u[2],i[1])}else{if(rr(a[0],h[0]),rr(a[1],h[1]),lo(o,a[1],a[0]),rl(o,o),f&&f!=="none"){var v=vu(s.node1);Vy(a[0],a[0],o,v*t)}if(c&&c!=="none"){var v=vu(s.node2);Vy(a[1],a[1],o,-v*t)}rr(u[0],a[0]),rr(u[1],a[1])}})}function XA(r){return r.type==="view"}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,n){var i=new Nf,a=new M1,o=this.group;this._controller=new Ff(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(XA(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Ht(u,f,e)}Og(e.getGraph(),hu(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),A1(e,"symbolSize",_,[A.offsetX,A.offsetY]),a.updateLayout(e);break;case"none":default:c.setItemLayout(S,[x.x,x.y]),T1(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(_){ck(_,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)&&!Cd(u,i,e)}),!XA(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){d1(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){p1(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(),Og(e.getGraph(),hu(e)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),i=hu(e);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(e){Og(e.getGraph(),hu(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 RZ=PZ;function fs(r){return"_EC_"+r}var EZ=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[fs(t)]){var i=new Qa(t,e);return i.hostGraph=this,this.nodes.push(i),n[fs(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[fs(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 Qa||(t=i[fs(t)]),e instanceof Qa||(e=i[fs(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new vk(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 Qa&&(t=t.id),e instanceof Qa&&(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 Qa||(e=this._nodesMap[fs(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)}}}_e(Qa,dk("hostGraph","data"));_e(vk,dk("hostGraph","edgeData"));const kZ=EZ;function pk(r,t,e,n,i){for(var a=new kZ(n),o=0;o "+h)),u++)}var v=e.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=Mi(r,e);else{var p=Pf.get(v),g=p?p.dimensions||[]:[];Dt(g,"value")<0&&g.concat(["value"]);var y=Ef(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new sr(y,e),d.initData(r)}var m=new sr(["value"],e);return m.initData(l,s),i&&i(d,m),KE({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var OZ=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 Gf(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),Lo(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){gZ(this);var s=pk(a,i,this,!0,l);return M(s.edges,function(u){yZ(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=k2({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 sr(["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 NZ=OZ;var VZ={type:"graphRoam",event:"graphRoam",update:"none"};function BZ(r){r.registerChartView(RZ),r.registerSeriesModel(NZ),r.registerProcessor(cZ),r.registerVisual(hZ),r.registerVisual(vZ),r.registerLayout(mZ),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,SZ),r.registerLayout(bZ),r.registerCoordinateSystem("graphView",{dimensions:Hf.dimensions,create:TZ}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},pe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},pe),r.registerAction(VZ,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=y1(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var zZ=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),GZ=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 zZ},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 FZ=GZ;function HZ(r,t){var e=r.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=rt(e[0],t.getWidth()),s=rt(e[1],t.getHeight()),l=rt(r.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Gc(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var WZ=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=HZ(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?hv:gr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];p_(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:G,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:G,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=rt(L.get("width"),o.r),E=rt(L.get("length"),o.r),O=e.get(["pointer","icon"]),V=L.get("offsetCenter"),N=rt(V[0],o.r),G=rt(V[1],o.r),$=L.get("keepAspect"),q;return O?q=me(O,N-P/2,G-E,P,E,null,$):q=new FZ({shape:{angle:-Math.PI/2,width:P,r:E,x:N,y:G}}),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?hv: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);oe(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");oe(L,{shape:{endAngle:Ut(D,b,w,P)}},e),c.add(L),fm(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),G=g.get("clip");Ht(N,{shape:{endAngle:Ut(I,b,w,G)}},e),c.add(N),fm(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 We){var G=O.style;O.useStyle(F({image:G.image,x:G.x,y:G.y,width:G.width,height:G.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,Fe(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,Fe($,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=me(s,n.cx-o/2+rt(l[0],n.r),n.cy-o/2+rt(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+rt(w[0],o.r),A=o.cy+rt(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+rt(I[0],o.r),P=o.cy+rt(I[1],o.r),E=rt(D.get("width"),o.r),O=rt(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:Gc(_,N),width:isNaN(E)?null:E,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:V})}),NP(C,{normal:D},_,function($){return Gc($,N)}),p&&VP(C,y,l,e,{getFormattedLabel:function($,q,Q,ct,ht,gt){return Gc(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 $Z=WZ;var UZ=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 yl(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 YZ=UZ;function ZZ(r){r.registerChartView($Z),r.registerSeriesModel(YZ)}var XZ=["itemStyle","opacity"],qZ=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(XZ);f=f==null?1:f,i||yn(a),a.useStyle(e.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,oe(a,{style:{opacity:f}},o,n)):Ht(a,{style:{opacity:f},shape:{points:l.points}},o,n),Fe(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;He(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}),i1(i,a1(l),{stroke:h})},t}(yr),KZ=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 qZ(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);tf(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 jZ=KZ;var JZ=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 Gf(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return yl(this,{coordDimensions:["value"],encodeDefaulter:bt(k_,this)})},t.prototype._defaultLabelLine=function(e){Lo(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 QZ=JZ;function tX(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function eX(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();oSX)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||!Vg(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 Vg(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const wX=xX;var TX=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 AX=TX;var CX=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}(_n);const MX=CX;function Yo(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=cs(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=cs(s,[0,o]),i=a=cs(s,[i,a]),n=0}t[0]=cs(t[0],e),t[1]=cs(t[1],e);var l=Bg(t,n);t[n]+=r;var u=i||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=cs(t[n],f);var c;return c=Bg(t,n),i!=null&&(c.sign!==l.sign||c.spana&&(t[1-n]=t[n]+c.sign*a),t}function Bg(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 cs(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var zg=M,yk=Math.min,mk=Math.max,jA=Math.floor,DX=Math.ceil,JA=ce,IX=Math.PI,LX=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;zg(i,function(o,s){var l=a[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new MX(o,Td(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();zg(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Xs(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=Fc(t.get("axisExpandWidth"),l),c=Fc(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=Fc(v[1]-v[0],l),v[1]=v[0]+d;else{d=Fc(f*(c-1),l);var p=t.get("axisExpandCenter")||jA(u/2);v=[f*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[jA(JA(v[0]/f,1))+1,DX(JA(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])}),zg(n,function(o,s){var l=(i.axisExpandable?RX:PX)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:IX/2,vertical:0},c=[u[a].x+t.x,u[a].y+t.y],h=f[a],v=Cr();Bo(v,v,h),Un(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?Yo(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[mk(0,d-v/2)],i[1]=yk(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},r}();function Fc(r,t){return yk(mk(r,t[0]),t[1])}function PX(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function RX(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;azX}function Ak(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function Ck(r,t,e,n){var i=new _t;return i.add(new Vt({name:"main",style:P1(e),silent:!0,draggable:!0,cursor:"move",drift:bt(rC,r,t,i,["n","s","w","e"]),ondragend:bt(No,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(rC,r,t,i,a),ondragend:bt(No,t,{isEnd:!0})}))}),i}function Mk(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=js(i,GX),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;ei(r,t,"main",o,s,d,p),n.transformable&&(ei(r,t,"w",l,u,a,y),ei(r,t,"e",h,u,a,y),ei(r,t,"n",l,u,g,a),ei(r,t,"s",l,v,g,a),ei(r,t,"nw",l,u,a,a),ei(r,t,"ne",h,u,a,a),ei(r,t,"sw",l,v,a,a),ei(r,t,"se",h,v,a,a))}function t0(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(P1(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?e0(r,a[0]):ZX(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?HX[s]+"-resize":null})})}function ei(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(qX(R1(r,t,[[n,i],[n+a,i+o]])))}function P1(r){return pt({strokeNoScale:!0},r.brushStyle)}function Dk(r,t,e,n){var i=[gf(r,e),gf(t,n)],a=[js(r,e),js(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function YX(r){return Ao(r.group)}function e0(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=ld(e[t],YX(r));return n[i]}function ZX(r,t){var e=[e0(r,t[0]),e0(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function rC(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=Ik(t,i,a);M(n,function(u){var f=FX[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])),D1(t,e),No(t,{isEnd:!1})}function XX(r,t,e,n){var i=t.__brushOption.range,a=Ik(r,e,n);M(i,function(o){o[0]+=a[0],o[1]+=a[1]}),D1(r,t),No(r,{isEnd:!1})}function Ik(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 R1(r,t,e){var n=Tk(r,t);return n&&n!==Oo?n.clipPath(e,r._transform):mt(e)}function qX(r){var t=gf(r[0][0],r[1][0]),e=gf(r[0][1],r[1][1]),n=js(r[0][0],r[1][0]),i=js(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function KX(r,t,e){if(!(!r._brushType||JX(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=L1(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var Ld={lineX:aC(0),lineY:aC(1),rect:{createCover:function(r,t){function e(n){return n}return Ck({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Ak(r);return Dk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){Mk(r,t,e,n)},updateCommon:t0,contain:n0},polygon:{createCover:function(r,t){var e=new _t;return e.add(new mr({name:"main",style:P1(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(XX,r,t),ondragend:bt(No,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:R1(r,t,e)})},updateCommon:t0,contain:n0}};function aC(r){return{createCover:function(t,e){return Ck({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=Ak(t),n=gf(e[0][r],e[1][r]),i=js(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=Tk(t,e);if(o!==Oo&&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(),Mk(t,e,l,i)},updateCommon:t0,contain:n0}}const E1=$X;function Pk(r){return r=k1(r),function(t){return EP(t,r)}}function Rk(r,t){return r=k1(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 Ek(r,t,e){var n=k1(r);return function(i,a){return n.contain(a[0],a[1])&&!Cd(i,t,e)}}function k1(r){return Mt.create(r)}var QX=["axisLine","axisTickLabel","axisName"],tq=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 E1(n.getZr())).on("brush",at(this._onBrush,this))},t.prototype.render=function(e,n,i,a){if(!eq(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=nq(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 wi(e,v);M(QX,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,e,s,f,i),If(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:Pk(c),isTargetByCursor:Ek(c,s,a),getLinearBrushOtherExtent:Rk(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(rq(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 eq(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function rq(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 nq(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const iq=tq;var aq={type:"axisAreaSelect",event:"axisAreaSelected"};function oq(r){r.registerAction(aq,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 sq={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function kk(r){r.registerComponentView(wX),r.registerComponentModel(AX),r.registerCoordinateSystem("parallel",NX),r.registerPreprocessor(yX),r.registerComponentModel(QA),r.registerComponentView(iq),Ks(r,"parallel",QA,sq),oq(r)}function lq(r){Lt(kk),r.registerChartView(uX),r.registerSeriesModel(vX),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,gX)}var uq=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}(),fq=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new uq},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(){Si(this)},t.prototype.downplay=function(){xi(this)},t}(Pt),cq=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 fq,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,G,$;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*_,G=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,G=L*_+E*(1-_),$=O),p.setShape({x1:L,y1:P,x2:E,y2:O,cpx1:V,cpy1:N,cpx2:G,cpy2:$}),p.useStyle(m.getItemStyle()),oC(p.style,v,d);var q=""+y.get("value"),Q=De(y,"edgeLabel");He(p,Q,{labelFetcher:{getFormattedLabel:function(gt,Et,U,K,H,tt){return e.getFormattedLabel(gt,Et,"edge",K,Gn(H,Q.normal&&Q.normal.get("formatter"),q),tt)}},labelDataIndex:d.dataIndex,defaultText:q}),p.setTextConfig({position:"inside"});var ct=y.getModel("emphasis");Fe(p,y,"lineStyle",function(gt){var Et=gt.getItemStyle();return oC(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});He(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),Fe(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(hq(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(ee);function oC(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 Df(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function hq(r,t,e){var n=new Vt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return oe(n,{shape:{width:r.width+20}},t,e),n}const vq=cq;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.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=pk(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 pq=dq;function gq(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),a=yq(e,t);e.layoutInfo=a;var o=a.width,s=a.height,l=e.getGraph(),u=l.nodes,f=l.edges;_q(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");mq(u,f,n,i,o,s,h,v,d)})}function yq(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function mq(r,t,e,n,i,a,o,s,l){Sq(r,t,e,i,a,s,l),Tq(r,t,a,i,n,o,s),Eq(r,s)}function _q(r){M(r,function(t){var e=aa(t.outEdges,mv),n=aa(t.inEdges,mv),i=t.getValue()||0,a=Math.max(e,n,i);t.setLayout({value:a},!0)})}function Sq(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"&&xq(r,o,a,w);var T=a==="vertical"?(i-e)/w:(n-e)/w;wq(r,T,a)}function Ok(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function xq(r,t,e,n){if(t==="right"){for(var i=[],a=r,o=0;a.length;){for(var s=0;s0;a--)l*=.99,Mq(s,l,o),Gg(s,i,e,n,o),Rq(s,l,o),Gg(s,i,e,n,o)}function Aq(r,t){var e=[],n=t==="vertical"?"y":"x",i=om(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 Cq(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 Mq(r,t,e){M(r.slice().reverse(),function(n){M(n,function(i){if(i.outEdges.length){var a=aa(i.outEdges,Dq,e)/aa(i.outEdges,mv);if(isNaN(a)){var o=i.outEdges.length;a=o?aa(i.outEdges,Iq,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(a-pa(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-pa(i,e))*t;i.setLayout({y:l},!0)}}})})}function Dq(r,t){return pa(r.node2,t)*r.getValue()}function Iq(r,t){return pa(r.node2,t)}function Lq(r,t){return pa(r.node1,t)*r.getValue()}function Pq(r,t){return pa(r.node1,t)}function pa(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function mv(r){return r.getValue()}function aa(r,t,e){for(var n=0,i=r.length,a=-1;++ao&&(o=l)}),M(n,function(s){var l=new Ge({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 Oq(r){r.registerChartView(vq),r.registerSeriesModel(pq),r.registerLayout(gq),r.registerVisual(kq),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 Nk=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:ov(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:ov(p),dimsDef:m.slice()}];return yl(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:bt(a2,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),Vk=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);_e(Vk,Nk,!0);const Nq=Vk;var Vq=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=sC(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?(yn(c),Bk(h,c,a,u)):c=sC(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),Bq=function(){function r(){}return r}(),zq=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 Bq},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 Zq={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==je){var n="";Wt(n)}var i=Yq(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Xq(r){r.registerSeriesModel(Nq),r.registerChartView(Fq),r.registerLayout(Hq),r.registerTransform(Zq)}var qq=["itemStyle","borderColor"],Kq=["itemStyle","borderColor0"],jq=["itemStyle","borderColorDoji"],Jq=["itemStyle","color"],Qq=["itemStyle","color0"];function O1(r,t){return t.get(r>0?Jq:Qq)}function N1(r,t){return t.get(r===0?jq:r>0?qq:Kq)}var tK={seriesType:"candlestick",plan:vl(),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=O1(s,o),l.stroke=N1(s,o)||l.fill;var u=i.ensureUniqueItemVisual(a,"style");F(u,l)}}}}}};const eK=tK;var rK=["color","borderColor"],nK=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){Sa(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&&lC(u,c))return;var h=Fg(c,f,!0);oe(h,{shape:{points:c.ends}},e,f),Hg(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&&lC(u,v)){a.remove(h);return}h?(Ht(h,{shape:{points:v.ends}},e,f),yn(h)):h=Fg(v),Hg(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(),uC(e,this.group);var n=e.get("clip",!0)?Vf(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=Fg(s);Hg(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){uC(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),iK=function(){function r(){}return r}(),aK=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 iK},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 Fg(r,t,e){var n=r.ends;return new aK({shape:{points:e?oK(n,r):n},z2:100})}function lC(r,t){for(var e=!0,n=0;nx?D[a]:C[a],ends:P,brushRect:G(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]=ph(ht[i]+n/2,1,!1),gt[i]=ph(gt[i]-n/2,1,!0),ct?q.push(ht,gt):q.push(gt,ht)}function G(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]=ph(q[i],1),q}}function d(p,g){for(var y=Bn(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++]=fC(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 fC(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 hK(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=rt(xt(r.get("barMaxWidth"),i),i),o=rt(xt(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?rt(s,i):Math.max(Math.min(i/2,a),o)}const vK=cK;function dK(r){r.registerChartView(lK),r.registerSeriesModel(uK),r.registerPreprocessor(fK),r.registerVisual(eK),r.registerLayout(vK)}function cC(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 pK=function(r){B(t,r);function t(e,n){var i=r.call(this)||this,a=new Of(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 Zi(e.__p1,e.__cp1)+Zi(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=Uy;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}(Gk);const AK=TK;var CK=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),MK=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 CK},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(YL(c,h,g,y,d,p,s,e,n))return l}else if(Ui(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 IK=DK;var LK={seriesType:"lines",plan:vl(),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)&&Vf(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=Hk.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 IK:new M1(o?a?AK:Fk:a?Gk:C1),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 RK=PK;var EK=typeof Uint32Array=="undefined"?Array:Uint32Array,kK=typeof Float64Array=="undefined"?Array:Float64Array;function hC(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),t_([i,e[0],e[1]])}))}var OK=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||[],hC(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(hC(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=Uu(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Uu(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 NK=OK;function Hc(r){return r instanceof Array||(r=[r,r]),r}var VK={seriesType:"lines",reset:function(r){var t=Hc(r.get("symbol")),e=Hc(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=Hc(s.getShallow("symbol",!0)),u=Hc(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 BK=VK;function zK(r){r.registerChartView(RK),r.registerSeriesModel(NK),r.registerLayout(Hk),r.registerVisual(BK)}var GK=256,FK=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ua.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=ua.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 HK=FK;function WK(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 vC(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var UK=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()):vC(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&&(vC(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Sa(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,i,a,o){var s=e.coordinateSystem,l=$o(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 G=e.getRawValue(D),$="-";G&&G[2]!=null&&($=G[2]+""),He(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 HK;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"?$K(S,i.option.range):WK(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 We({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(ee);const YK=UK;var ZK=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 Mi(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Pf.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 XK=ZK;function qK(r){r.registerChartView(YK),r.registerSeriesModel(XK)}var KK=["itemStyle","borderWidth"],dC=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ug=new _a,jK=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:dC[+f],categoryDim:dC[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=gC(o,d),g=pC(o,d,p,h),y=yC(o,h,g);o.setItemGraphicEl(d,y),a.add(y),_C(y,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){a.remove(g);return}var y=gC(o,d),m=pC(o,d,y,h),_=Xk(o,m);g&&_!==g.__pictorialShapeStr&&(a.remove(g),o.setItemGraphicEl(d,null),g=null),g?ij(g,h,m):g=yC(o,h,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,a.add(g),_C(g,h,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&mC(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=e.get("clip",!0)?Vf(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){mC(a,St(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t}(ee);function pC(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};JK(e,a,i,n,h),QK(r,t,i,a,o,h.boundingLength,h.pxSign,f,n,h),tj(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=Ho(e.get("symbolOffset"),v);return ej(e,v,i,a,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function JK(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=[Yg(s,o[0])-l,Yg(s,o[1])-l];c[1]=0?1:-1:f>0?1:-1}function Yg(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function QK(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]=rt(d[c.index],h),d[f.index]=rt(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 tj(r,t,e,n,i){var a=r.get(KK)||0;a&&(Ug.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Ug.updateTransform(),a/=Ug.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function ej(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=rt(m,t[v.index]),x=Math.max(p+S*2,0),b=_?0:S*2,w=RL(n),T=w?n:SC((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?SC((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 Wk(r){var t=r.symbolPatternSize,e=me(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function $k(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(V1(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 Uk(r,t,e,n){var i=r.__pictorialBundle,a=r.__pictorialMainPath;a?Vs(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=Wk(e),i.add(a),Vs(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 Yk(r,t,e){var n=F({},t.barRectShape),i=r.__pictorialBarRect;i?Vs(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 Zk(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],Go[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function gC(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=rj,e.isAnimationEnabled=nj,e}function rj(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function nj(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function yC(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?$k(i,t,e):Uk(i,t,e),Yk(i,e,n),Zk(i,t,e,n),i.__pictorialShapeStr=Xk(r,e),i.__pictorialSymbolMeta=e,i}function ij(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?$k(r,t,e,!0):Uk(r,t,e,!0),Yk(r,e,!0),Zk(r,t,e,!0)}function mC(r,t,e,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];V1(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),M(a,function(o){ca(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function Xk(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function V1(r,t,e){M(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Vs(r,t,e,n,i,a){t&&r.attr(t),n.symbolClip&&!i?e&&r.attr(e):e&&Go[i?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,a)}function _C(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");V1(r,function(p){if(p instanceof We){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,He(d,De(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:qs(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),ue(r,f,c,a.get("disabled"))}function SC(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const aj=jK;var oj=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=xa(cv.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}(cv);const sj=oj;function lj(r){r.registerChartView(aj),r.registerSeriesModel(sj),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(CR,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,MR("pictorialBar"))}var uj=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 bi(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 gj(r){r.registerChartView(cj),r.registerSeriesModel(vj),r.registerLayout(dj),r.registerProcessor(zf("themeRiver"))}var yj=2,mj=4,_j=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this)||this;o.z2=yj,o.textConfig={inside:!0},St(o).seriesIndex=n.seriesIndex;var s=new Gt({z2:mj,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=Zs(v,o));var d=go(l.getModel("itemStyle"),c,!0);F(c,d),M(ur,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=go(S,c);x&&(_.shape=x)}),e?(s.setShape(c),s.shape.r=f.r0,oe(s,{shape:{r:f.r}},i,n.dataIndex)):(Ht(s,{shape:c},i),yn(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"?Uu(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&&!qu(O-P)&&O0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,n,i):(o.virtualPiece=new bC(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";Jh(u,f)}}i=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:i0,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 wj=bj;var Tj=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};qk(i);var a=this._levelModels=Z(e.levels||[],function(l){return new te(l,this,n)},this),o=_1.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=Dd(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(){QE(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 qk(r){var t=0;M(r.children,function(n){qk(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 Aj=Tj;var TC=Math.PI/180;function Cj(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=rt(i[0],o),f=rt(i[1],s),c=rt(a[0],l/2),h=rt(a[1],l/2),v=-n.get("startAngle")*TC,d=n.get("minAngle")*TC,p=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&Kk(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 G=O.getValue(),$=S===0&&C?x:G*x;$1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&nt(s)&&(s=Xy(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 Ij(r){r.registerChartView(wj),r.registerSeriesModel(Aj),r.registerLayout(bt(Cj,"sunburst")),r.registerProcessor(bt(zf,"sunburst")),r.registerVisual(Dj),xj(r)}var AC={color:"fill",borderColor:"stroke"},Lj={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},di=Nt(),Pj=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 Mi(null,this)},t.prototype.getDataParams=function(e,n,i){var a=r.prototype.getDataParams.call(this,e,n);return i&&(a.info=di(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 Rj=Pj;function Ej(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 kj(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(Ej,r)}}}function Oj(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 Nj(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(Oj,r)}}}function Vj(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 Bj(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(Vj,r)}}}function zj(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 Gj(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(zj,r)}}}function Fj(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 jk(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||lt(r,"text")))}function Jk(r,t,e){var n=r,i,a,o;if(t==="text")o=n;else{o={},lt(n,"text")&&(o.text=n.text),lt(n,"rich")&&(o.rich=n.rich),lt(n,"textFill")&&(o.fill=n.textFill),lt(n,"textStroke")&&(o.stroke=n.textStroke),lt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),lt(n,"fontSize")&&(o.fontSize=n.fontSize),lt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),lt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=lt(n,"textPosition");e?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),lt(n,"textPosition")&&(i.position=n.textPosition),lt(n,"textOffset")&&(i.offset=n.textOffset),lt(n,"textRotation")&&(i.rotation=n.textRotation),lt(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,lt(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),lt(t,"textAlign")&&(r.align=t.textAlign),lt(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),lt(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),lt(t,"textWidth")&&(r.width=t.textWidth),lt(t,"textHeight")&&(r.height=t.textHeight),lt(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),lt(t,"textPadding")&&(r.padding=t.textPadding),lt(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),lt(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),lt(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),lt(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),lt(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),lt(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),lt(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function MC(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";DC(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){DC(s,s)}),n}function DC(r,t){t&&(lt(t,"fill")&&(r.textFill=t.fill),lt(t,"stroke")&&(r.textStroke=t.fill),lt(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),lt(t,"font")&&(r.font=t.font),lt(t,"fontStyle")&&(r.fontStyle=t.fontStyle),lt(t,"fontWeight")&&(r.fontWeight=t.fontWeight),lt(t,"fontSize")&&(r.fontSize=t.fontSize),lt(t,"fontFamily")&&(r.fontFamily=t.fontFamily),lt(t,"align")&&(r.textAlign=t.align),lt(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),lt(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),lt(t,"width")&&(r.textWidth=t.width),lt(t,"height")&&(r.textHeight=t.height),lt(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),lt(t,"padding")&&(r.textPadding=t.padding),lt(t,"borderColor")&&(r.textBorderColor=t.borderColor),lt(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),lt(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),lt(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),lt(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),lt(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),lt(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),lt(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),lt(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),lt(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),lt(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Qk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},IC=kt(Qk);$n(Yn,function(r,t){return r[t]=1,r},{});Yn.join(", ");var _v=["","style","shape","extra"],Js=Nt();function B1(r,t,e,n,i){var a=r+"Animation",o=ol(r,n,i)||{},s=Js(t).userDuring;return o.duration>0&&(o.during=s?at(Yj,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,e[a]),o}function xh(r,t,e,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=Js(r),u=t.style;l.userDuring=t.during;var f={},c={};if(Xj(r,t,c),PC("shape",t,c),PC("extra",t,c),!a&&s&&(Zj(r,t,f),LC("shape",r,t,f),LC("extra",r,t,f),qj(r,t,u,f)),c.style=u,Hj(r,c,o),$j(r,t),s)if(a){var h={};M(_v,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=B1("enter",r,t,e,i);v.duration>0&&r.animateFrom(h,v)}else Wj(r,t,i||0,e,f);tO(r,t),u?r.dirty():r.markRedraw()}function tO(r,t){for(var e=Js(r).leaveToProps,n=0;n<_v.length;n++){var i=_v[n],a=i?t[i]:t;a&&a.leaveTo&&(e||(e=Js(r).leaveToProps={}),i&&(e[i]=e[i]||{}),F(i?e[i]:e,a.leaveTo))}}function Pd(r,t,e,n){if(r){var i=r.parent,a=Js(r).leaveToProps;if(a){var o=B1("update",r,t,e,0);o.done=function(){i.remove(r),n&&n()},r.animateTo(a,o)}else i.remove(r),n&&n()}}function Io(r){return r==="all"}function Hj(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var i=r.animators,a=0;a0&&r.animateFrom(i,a)}}function $j(r,t){lt(t,"silent")&&(r.silent=t.silent),lt(t,"ignore")&&(r.ignore=t.ignore),r instanceof Zr&<(t,"invisible")&&(r.invisible=t.invisible),r instanceof Pt&<(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Mn={},Uj={setTransform:function(r,t){return Mn.el[r]=t,this},getTransform:function(r){return Mn.el[r]},setShape:function(r,t){var e=Mn.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Mn.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Mn.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Mn.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Mn.el.extra||(Mn.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Mn.el.extra;if(t)return t[r]}};function Yj(){var r=this,t=r.el;if(t){var e=Js(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}Mn.el=t,n(Uj)}}function LC(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]={}),Io(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),G=O&&O.ordinalMeta;return G?G.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,G=m(E,ta).getItemStyle();V!=null&&(G.fill=V),N!=null&&(G.opacity=N);var $={inheritColor:nt(V)?V:"#000"},q=_(E,ta),Q=Qt(q,null,$,!1,!0);Q.text=q.getShallow("show")?xt(r.getFormattedLabel(E,ta),qs(t,E)):null;var ct=Kh(q,$,!1);return A(P,G),G=MC(G,Q,ct),P&&T(G,P),G.legacy=!0,G}function w(P,E){E==null&&(E=u);var O=m(E,pi).getItemStyle(),V=_(E,pi),N=Qt(V,null,null,!0,!0);N.text=V.getShallow("show")?Gn(r.getFormattedLabel(E,pi),r.getFormattedLabel(E,ta),qs(t,E)):null;var G=Kh(V,null,!0);return A(P,O),O=MC(O,N,G),P&&T(O,P),O.legacy=!0,O}function T(P,E){for(var O in E)lt(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),lt(AC,P)){var O=t.getItemVisual(E,"style");return O?O[AC[P]]:null}if(lt(Lj,P))return t.getItemVisual(E,P)}function D(P){if(a.type==="cartesian2d"){var E=a.getBaseAxis();return oU(pt({axis:E},P))}}function I(){return e.getCurrentSeriesIndices()}function L(P){return M_(P,e)}}function oJ(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 Kg(r,t,e,n,i,a,o){if(!n){a.remove(t);return}var s=W1(r,t,e,n,i,a);return s&&o.setItemGraphicEl(e,s),s&&ue(s,n.focus,n.blurScope,n.emphasisDisabled),s}function W1(r,t,e,n,i,a){var o=-1,s=t;t&&iO(t,n,i)&&(o=Dt(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=F1(n),s&&eJ(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,lJ(u,e,n,i,l,Er),sJ(u,e,n,i,l),H1(r,u,e,n,Er,i,l),lt(n,"info")&&(di(u).info=n.info);for(var f=0;f=0?a.replaceAt(u,o):a.add(u),u}function iO(r,t,e){var n=di(r),i=t.type,a=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&vJ(a)&&aO(a)!==n.customPathData||i==="image"&<(o,"image")&&o.image!==n.customImagePath}function sJ(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&&iO(o,a,n)&&(o=null),o||(o=F1(a),r.setClipPath(o)),H1(null,o,t,a,null,n,i)}}function lJ(r,t,e,n,i,a){if(!r.isGroup){EC(e,null,a),EC(e,pi,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=F1(o),r.setTextContent(f)),H1(null,f,t,o,null,n,i);for(var c=o&&o.style,h=0;h=f;v--){var d=t.childAt(v);fJ(t,d,i)}}}function fJ(r,t,e){t&&Pd(t,di(r).option,e)}function cJ(r){new bi(r.oldChildren,r.newChildren,kC,kC,r).add(OC).update(OC).remove(hJ).execute()}function kC(r,t){var e=r&&r.name;return e!=null?e:Qj+t}function OC(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,i=t!=null?e.oldChildren[t]:null;W1(e.api,i,e.dataIndex,n,e.seriesModel,e.group)}function hJ(r){var t=this.context,e=t.oldChildren[r];e&&Pd(e,di(e).option,t.seriesModel)}function aO(r){return r&&(r.pathData||r.d)}function vJ(r){return r&&(lt(r,"pathData")||lt(r,"d"))}function dJ(r){r.registerChartView(nJ),r.registerSeriesModel(Rj)}var io=Nt(),NC=mt,jg=at,pJ=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(VC,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}zC(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=h1(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=io(t).pointerEl=new Go[a.type](NC(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=io(t).labelEl=new Gt(NC(e.label));t.add(a),BC(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=io(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=io(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),BC(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=Lf(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){mi(u.event)},onmousedown:jg(this._onHandleDragMove,this,0,0),drift:jg(this._onHandleDragMove,this),ondragend:jg(this._onHandleDragEnd,this)}),n.add(i)),zC(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,dl(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){VC(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Jg(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(Jg(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Jg(i)),io(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),af(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 VC(r,t,e,n){oO(io(e).lastProp,n)||(io(e).lastProp=n,t?Ht(e,n,r):(e.stopAnimation(),e.attr(n)))}function oO(r,t){if(yt(r)&&yt(t)){var e=!0;return M(t,function(n,i){e=e&&oO(r[i],n)}),!!e}else return r===t}function BC(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Jg(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function zC(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 U1=pJ;function Y1(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 sO(r,t,e,n,i){var a=e.get("value"),o=lO(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ul(s.get("padding")||0),u=s.getFont(),f=Af(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),gJ(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 gJ(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 lO(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:r1(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 Z1(r,t,e){var n=Cr();return Bo(n,n,e.rotation),Un(n,n,e.position),hn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function uO(r,t,e,n,i,a){var o=wi.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),sO(t,n,i,a,{position:Z1(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function X1(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function fO(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function GC(r,t,e,n,i,a){return{cx:r,cy:t,r0:e,r:n,startAngle:i,endAngle:a,clockwise:!0}}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,l=s.grid,u=a.get("type"),f=FC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Y1(a),v=mJ[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Hm(l.model,i);uO(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=Hm(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Z1(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=FC(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}(U1);function FC(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var mJ={line:function(r,t,e){var n=X1([t,e[0]],[t,e[1]],HC(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:fO([t-n/2,e[0]],[n,i],HC(r))}}};function HC(r){return r.dim==="x"?0:1}const _J=yJ;var SJ=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 xJ=SJ;var fi=Nt(),bJ=M;function cO(r,t,e){if(!zt.node){var n=t.getZr();fi(n).records||(fi(n).records={}),wJ(n,t);var i=fi(n).records[r]||(fi(n).records[r]={});i.handler=e}}function wJ(r,t){if(fi(r).initialized)return;fi(r).initialized=!0,e("click",bt(WC,"click")),e("mousemove",bt(WC,"mousemove")),e("globalout",AJ);function e(n,i){r.on(n,function(a){var o=CJ(t);bJ(fi(r).records,function(s){s&&i(s,a,o.dispatchAction)}),TJ(o.pendings,t)})}}function TJ(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 AJ(r,t,e){r.handler("leave",null,e)}function WC(r,t,e,n){t.handler(r,e,n)}function CJ(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 s0(r,t){if(!zt.node){var e=t.getZr(),n=(fi(e).records||{})[r];n&&(fi(e).records[r]=null)}}var MJ=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";cO("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){s0("axisPointer",n)},t.prototype.dispose=function(e,n){s0("axisPointer",n)},t.type="axisPointer",t}(fe);const DJ=MJ;function hO(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Po(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 $C=Nt();function IJ(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){bh(i)&&(i=hO({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=bh(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||bh(i),h={},v={},d={list:[],map:{}},p={showPointer:bt(PJ,v),showTooltip:bt(RJ,d)};M(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);M(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=NJ(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=b.pointToData(i)),T!=null&&UC(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,YC(S),YC(y)))),g[y.key]=w}})}),M(g,function(y,m){UC(f[m],y,p,!0,h)}),EJ(v,f,h),kJ(d,i,r,o),OJ(f,o,e),h}}function UC(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=LJ(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 LJ(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 PJ(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function RJ(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=cf(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 EJ(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 kJ(r,t,e,n){if(bh(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 OJ(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=$C(n)[i]||{},o=$C(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 NJ(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 YC(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 bh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Wf(r){Uo.registerAxisPointerClass("CartesianAxisPointer",_J),r.registerComponentModel(xJ),r.registerComponentView(DJ),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=wY(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},IJ)}function VJ(r){Lt(BE),Lt(Wf)}var BJ=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=Y1(a),d=GJ[h](s,l,c,f);d.style=v,e.graphicKey=d.type,e.pointer=d}var p=a.get(["label","margin"]),g=zJ(n,i,a,l,p);sO(e,i,a,o,g)},t}(U1);function zJ(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();Bo(h,h,s),Un(h,h,[n.cx,n.cy]),u=hn([o,-i],h);var v=t.getModel("axisLabel").get("rotate")||0,d=wi.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 GJ={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:X1(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:GC(t.cx,t.cy,n[0],n[1],(-e-i/2)*a,(-e+i/2)*a)}:{type:"Sector",shape:GC(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}};const FJ=BJ;var HJ=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 WJ=HJ;var q1=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ye).models[0]},t.type="polarAxis",t}(Bt);_e(q1,kf);var $J=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}(q1),UJ=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}(q1),K1=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}(_n);K1.prototype.dataToRadius=_n.prototype.dataToCoord;K1.prototype.radiusToData=_n.prototype.coordToData;const YJ=K1;var ZJ=Nt(),j1=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=Af(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),h=c/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=ZJ(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}(_n);j1.prototype.dataToAngle=_n.prototype.dataToCoord;j1.prototype.angleToData=_n.prototype.coordToData;const XJ=j1;var vO=["radius","angle"],qJ=function(){function r(t){this.dimensions=vO,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new YJ,this._angleAxis=new XJ,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=ZC(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=ZC(e);return i===this?this.pointToData(n):null},r}();function ZC(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const KJ=qJ;function jJ(r,t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight();r.cx=rt(n[0],i),r.cy=rt(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=[rt(l[0],s),rt(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function JJ(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(sv(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),M(sv(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Xs(n.scale,n.model),Xs(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 QJ(r){return r.mainType==="angleAxis"}function XC(r,t){var e;if(r.type=t.get("type"),r.scale=Td(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),QJ(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 tQ={dimensions:vO,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,i){var a=new KJ(i+"");a.update=JJ;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");XC(o,l),XC(s,u),jJ(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",ye).models[0];n.coordinateSystem=i.coordinateSystem}}),e}};const eQ=tQ;var rQ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Wc(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 $c(r){var t=r.getRadiusAxis();return t.inverse?0:1}function qC(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 nQ=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});qC(u),qC(s),M(rQ,function(f){e.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&iQ[f](this.group,e,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Uo),iQ={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=$c(e),c=f?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[c]===0?h=new Go[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 ad({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[$c(e)],u=Z(n,function(f){return new Ee({shape:Wc(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[$c(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:wi.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=wi.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,G=void 0;if(d.dim==="radius"){var $=d.dataToCoord(I)-A,q=l.dataToCoord(L);Math.abs($)=G})}}})}function vQ(r){var t={};M(r,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=pO(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=dO(n);h[v]||c.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=rt(n.get("barWidth"),f),p=rt(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=rt(n.categoryGap,o),l=rt(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=KC(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=KC(e);return i===this?this.pointToData(n):null},r}();function KC(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function CQ(r,t){var e=[];return r.eachComponent("singleAxis",function(n,i){var a=new AQ(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",ye).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),e}var MQ={create:CQ,dimensions:yO};const DQ=MQ;var jC=["x","y"],IQ=["width","height"],LQ=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=ty(l,1-bv(s)),f=l.dataToPoint(n)[0],c=a.get("type");if(c&&c!=="none"){var h=Y1(a),v=PQ[c](s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=l0(i);uO(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=l0(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Z1(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=bv(o),u=ty(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=ty(s,1-l),h=(c[1]+c[0])/2,v=[h,h];return v[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(U1),PQ={line:function(r,t,e){var n=X1([t,e[0]],[t,e[1]],bv(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:fO([t-n/2,e[0]],[n,i],bv(r))}}};function bv(r){return r.isHorizontal()?0:1}function ty(r,t){var e=r.getRect();return[e[jC[t]],e[jC[t]]+e[IQ[t]]]}const RQ=LQ;var EQ=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 kQ(r){Lt(Wf),Uo.registerAxisPointerClass("SingleAxisPointer",RQ),r.registerComponentView(EQ),r.registerComponentView(bQ),r.registerComponentModel(Qg),Ks(r,"single",Qg,Qg.defaultOption),r.registerCoordinateSystem("single",DQ)}var OQ=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=fl(e);r.prototype.init.apply(this,arguments),JC(e,a)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),JC(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 JC(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 GH(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});ha(r,t,{type:"box",ignoreSize:i})}const NQ=OQ;var VQ=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?VH(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=mm(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/ey)-Math.floor(e[0].time/ey)+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 QC(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}const GQ=zQ;function FQ(r){r.registerComponentModel(NQ),r.registerComponentView(BQ),r.registerCoordinateSystem("calendar",GQ)}function HQ(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 tM(r,t){var e;return M(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function WQ(r,t,e){var n=F({},e),i=r[t],a=e.$action||"merge";a==="merge"?i?(Tt(i,n,!0),ha(i,n,{ignoreSize:!0}),t2(e,i),Uc(e,i),Uc(e,i,"shape"),Uc(e,i,"style"),Uc(e,i,"extra"),e.clipPath=i.clipPath):r[t]=n:a==="replace"?r[t]=n:a==="remove"&&i&&(r[t]=null)}var mO=["transition","enterFrom","leaveTo"],$Q=mO.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Uc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?mO:$Q,i=0;i=0;f--){var c=i[f],h=xe(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=pd(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){wh(i,Br(i).option,n,e._lastGraphicModel)}),this._elMap=ft()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(fe);function u0(r){var t=lt(eM,r)?eM[r]:C_(r),e=new t({});return Br(e).type=r,e}function rM(r,t,e,n){var i=u0(e);return t.add(i),n.set(r,i),Br(i).id=r,Br(i).isNew=!0,i}function wh(r,t,e,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(a){wh(a,t,e,n)}),Pd(r,t,n),e.removeKey(Br(r).id))}function nM(r,t,e,n){r.isGroup||M([["cursor",Zr.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(i){var a=i[0];lt(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}}),lt(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function XQ(r){return r=F({},r),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(QP),function(t){delete r[t]}),r}function qQ(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 KQ(r){r.registerComponentModel(YQ),r.registerComponentView(ZQ),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 iM=["x","y","radius","angle","single"],jQ=["cartesian2d","polar","singleAxis"];function JQ(r){var t=r.get("coordinateSystem");return Dt(jQ,t)>=0}function ea(r){return r+"Axis"}function QQ(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 _O(r){var t=r.ecModel,e={infoList:[],infoMap:ft()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(ea(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 ry=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}(),ttt=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=aM(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=aM(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(iM,function(i){var a=this.getReferringComponents(ea(i),yF);if(a.specified){n=!0;var o=new ry;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 ry;if(h.add(c.componentIndex),e.set(f,h),a=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",ye).models[0];v&&M(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",ye).models[0]&&h.add(d.componentIndex)})}}}a&&M(iM,function(u){if(a){var f=i.findComponents({mainType:ea(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new ry;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(ea(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(ea(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 xs(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)}});xs(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;xs(["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=IL(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 stt(r,t,e){var n=[1/0,-1/0];xs(e,function(o){IU(n,o.getData(),t)});var i=r.getAxisModel(),a=ER(i.axis.scale,i,n).calculate();return[a.min,a.max]}const ltt=ott;var utt={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(ea(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 ltt(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 ftt=utt;function ctt(r){r.registerAction("dataZoom",function(t,e){var n=QQ(e,t);M(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var sM=!1;function Q1(r){sM||(sM=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,ftt),ctt(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function htt(r){r.registerComponentModel(rtt),r.registerComponentView(att),Q1(r)}var Fr=function(){function r(){}return r}(),SO={};function bs(r,t){SO[r]=t}function xO(r){return SO[r]}var vtt=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=xO(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 dtt=vtt;function ptt(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=be(n,a,i);Co(t.get("orient"),r,t.get("itemGap"),o.width,o.height),pd(r,n,a,i)}function bO(r,t){var e=ul(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 gtt=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 bi(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(ytt(g))S={onclick:_.option.onclick,featureName:g};else{var x=xO(g);if(!x)return;S=new x}f[g]=S}else if(S=f[y],!S)return;S.uid=ll("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"?Si:xi)(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=Lf(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:M_({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});C.setTextContent(I),zo({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"?Si:xi)(C),o.add(C),C.on("click",at(p.onclick,p,n,i,A)),w[A]=C})}ptt(o,e,i),o.add(bO(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=Af(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 ytt(r){return r.indexOf("my")===0}const mtt=gtt;var _tt=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 Stt=_tt;var lM="__ec_magicType_stack__",xtt=[["line","bar"],["stack"]],btt=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(uM[i]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=uM[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,ye).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(xtt,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),uM={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")===lM;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Tt({id:t,stack:i?"":lM},n.get(["option","stack"])||{},!0)}};Kn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const wtt=btt;var Rd=new Array(60).join("-"),Qs=" ";function Ttt(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 Att(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(Qs)],f=0;f=0)return!0}var f0=new RegExp("["+Qs+"]+","g");function Itt(r){for(var t=r.split(/\n+/g),e=wv(t.shift()).split(f0),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 Ntt(r){var t=tS(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return wO(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 Vtt(r){TO(r).snapshots=null}function Btt(r){return tS(r).length}function tS(r){var t=TO(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var ztt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Vtt(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);Kn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const Gtt=ztt;var Ftt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Htt=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=fM(e,t);M(Wtt,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=ny[n.brushType](0,a,i);n.__rangeOffset={offset:dM[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=ny[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=ny[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?dM[n.brushType](a.values,o.offset,$tt(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:Pk(i),isTargetByCursor:Ek(i,t,n.coordSysModel),getLinearBrushOtherExtent:Rk(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=fM(e,t),a=0;ar[1]&&r.reverse(),r}function fM(r,t){return Cu(r,t,{includeMainTypes:Ftt})}var Wtt={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:hM.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:hM.geo})})}},cM=[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}],hM={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ao(r)),t}},ny={lineX:bt(vM,0),lineY:bt(vM,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=[c0([i[0],a[0]]),c0([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 vM(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=c0(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 dM={lineX:bt(pM,0),lineY:bt(pM,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 pM(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function $tt(r,t){var e=gM(r),n=gM(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 gM(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const eS=Htt;var h0=M,Utt=hF("toolbox-dataZoom_"),Ytt=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 E1(i.getZr()),this._brushController.on("brush",at(this._onBrush,this)).mount()),qtt(e,n,this,a,i),Xtt(e,n)},t.prototype.onclick=function(e,n,i){Ztt[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 eS(rS(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)}}),Ott(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=Yo(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=[];h0(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),Ztt={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Ntt(this.ecModel))}};function rS(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 Xtt(r,t){r.setIconStatus("back",Btt(t)>1?"emphasis":"normal")}function qtt(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 eS(rS(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)}YH("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=rS(n),o=Cu(r,a);h0(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),h0(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:Utt+u+c};h[f]=c,i.push(h)}return i});const Ktt=Ytt;function jtt(r){r.registerComponentModel(dtt),r.registerComponentView(mtt),bs("saveAsImage",Stt),bs("magicType",wtt),bs("dataView",ktt),bs("dataZoom",Ktt),bs("restore",Gtt),Lt(htt)}var Jtt=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 Qtt=Jtt;function AO(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function CO(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 oet(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?","+nS+n:",left"+n+",top"+n),ret+":"+i}function yM(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;"+nS+":"+o+";":[["top",0],["left",0],[MO,o]]}function set(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 uet(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=E2(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(oet(i,e)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,p=jP(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(set(f)),c!=null&&n.push("padding:"+ul(c).join("px ")+"px"),n.join(";")+";"}function mM(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&O5(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 fet=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):$s(a)?a:vt(a)&&a(t.getDom()));mM(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=eet(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=net+uet(t,!this._firstShow,this._longHide)+yM(a[0],a[1],!0)+("border-color:"+ko(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"&&!AO(n)&&(s=aet(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=xM(a,i);this._ticket="";var s=a.dataByCoordSys,l=_et(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=det;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=hO(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(xM(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=Xl([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;ho(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=Xl([n.tooltipOption],a),l=this._renderMode,u=[],f=Ie("section",{blocks:[],noHeader:!0}),c=[],h=new Fp;M(e,function(m){M(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=lO(x,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Ie("section",{header:b,noHeader:!on(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=r1(S.axis,{value:x}),D.axisValueLabel=b,D.marker=h.makeTooltipMarker("item",ko(D.color),l);var I=aw(A.formatTooltip(C,!0,null)),L=I.frag;if(L){var P=Xl([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=cw(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=Xl([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 Fp;y.marker=m.makeTooltipMarker("item",ko(y.color),v);var _=aw(u.formatTooltip(f,!1,c)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?cw(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=qe(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=Xl(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",y=new Fp;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=fd(y.axisValue,v,g)),v=JP(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=rt(n[0],u),a=rt(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=met(n,d,c,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=get(i,a,o,u,f,h?null:20,v?null:20);i=y[0],a=y[1]}if(h&&(i-=bM(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=bM(v)?c[1]/2:v==="bottom"?c[1]:0),AO(e)){var y=yet(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()||(af(this,"_updatePosition"),this._tooltipContent.dispose(),s0("itemTooltip",n))},t.type="tooltip",t}(fe);function Xl(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 xM(r,t){return r.dispatchAction||at(t.dispatchAction,t)}function get(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 yet(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 met(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 bM(r){return r==="center"||r==="middle"}function _et(r,t,e){var n=h_(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Cf(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 xet=pet;function bet(r){Lt(Wf),r.registerComponentModel(Qtt),r.registerComponentView(xet),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},pe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},pe)}var wet=["rect","polygon","keep","clear"];function Tet(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),Aet(s),t&&!s.length&&s.push.apply(s,wet)}}function Aet(r){var t={};M(r,function(e){t[e]=1}),r.length=0,M(t,function(e,n){r.push(n)})}var wM=M;function TM(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function v0(r,t,e){var n={};return wM(t,function(a){var o=n[a]=i();wM(r[a],function(s,l){if(Ge.isValidType(l)){var u={type:l,visual:s};e&&e(u,a),o[l]=new Ge(u),l==="opacity"&&(u=mt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ge(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function IO(r,t,e){var n;M(e,function(i){t.hasOwnProperty(i)&&TM(t[i])&&(n=!0)}),n&&M(e,function(i){t.hasOwnProperty(i)&&TM(t[i])?r[i]=mt(t[i]):delete r[i]})}function Cet(r,t,e,n,i,a){var o={};M(r,function(c){var h=Ge.prepareVisualTypes(t[c]);o[c]=h});var s;function l(c){return $_(e,s,c)}function u(c,h){W2(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&&IM(t)}};function IM(r){return new Mt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}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.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new E1(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){LO(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 Oet=ket;var Net="#ddd",Vet=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&&IO(i,e,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:Net},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Z(e,function(n){return LM(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=LM(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 LM(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 Bet=Vet;var zet=["rect","polygon","lineX","lineY","keep","clear"],Get=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:zet.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 Fet=Get;function Het(r){r.registerComponentView(Oet),r.registerComponentModel(Bet),r.registerPreprocessor(Tet),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Iet),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},pe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},pe),bs("brush",Fet)}var Wet=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),$et=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(){Jh(d,"_"+e.get("target"))}),p&&v.on("click",function(){Jh(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 Uet(r){r.registerComponentModel(Wet),r.registerComponentView($et)}var Yet=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=xe(il(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 sr([{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 PM=Yet;var PO=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=xa(PM.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}(PM);_e(PO,yd.prototype);const Zet=PO;var Xet=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 qet=Xet;var Ket=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}(_n);const jet=Ket;var ay=Math.PI,RM=Nt(),Jet=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=trt(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:ay/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*ay/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;Un(s,s,[-l,-u]),Bo(s,s,-ay/2),Un(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=Qet(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 jet("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=EM(c,h,n,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),To(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),To(y),RM(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=gn(xt(a.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=ert(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(_),To(_)}}},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),kM(c,u._progressLine,s,i,a,!0)},onUpdate:function(c){kM(c,u._progressLine,s,i,a)}};this._currentPointer=EM(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 oy={min:bt(Xc,"min"),max:bt(Xc,"max"),average:bt(Xc,"average"),median:bt(Xc,"median")};function mf(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,i=n&&n.dimensions;if(!urt(t)&&!Y(t.coord)&&Y(i)){var a=EO(t,e,n,r);if(t=mt(t),t.type&&oy[t.type]&&a.baseAxis&&a.valueAxis){var o=Dt(i,a.baseAxis.dim),s=Dt(i,a.valueAxis.dim),l=oy[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++)oy[u[f]]&&(u[f]=aS(e,e.mapDimension(i[f]),u[f]));return t}}function EO(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(frt(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 frt(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function _f(r,t){return r&&r.containData&&t.coord&&!p0(t)?r.containData(t.coord):!0}function crt(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!p0(t)&&!p0(e)?r.containZone(t.coord,e.coord):!0}function kO(r,t){return r?function(e,n,i,a){var o=a<2?e.coord&&e.coord[a]:e.value;return ia(o,t[a])}:function(e,n,i,a){return ia(e.value,t[a])}}function aS(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 sy=Nt(),hrt=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){sy(s).keep=!1}),n.eachSeries(function(s){var l=ya.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!sy(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(e){sy(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var i=this;M(e,function(a){var o=ya.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?oP(l):__(l))})}})},t.type="marker",t}(fe);const oS=hrt;function NM(r,t,e){var n=t.coordinateSystem;r.each(function(i){var a=r.getItemModel(i),o,s=rt(a.get("x"),e.getWidth()),l=rt(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 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.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=ya.getMarkerModelFromSeries(a,"markPoint");o&&(NM(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 Nf),c=drt(o,e,n);n.setData(c),NM(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=Rf(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}(oS);function drt(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 sr(n,e),a=Z(e.get("data"),bt(mf,t));r&&(a=$t(a,bt(_f,r)));var o=kO(!!r,n);return i.initData(a,null,o),i}const prt=vrt;function grt(r){r.registerComponentModel(lrt),r.registerComponentView(prt),r.registerPreprocessor(function(t){iS(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var yrt=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}(ya);const mrt=yrt;var qc=Nt(),_rt=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=EO(n,i,t,r);s=u.valueAxis;var f=yR(i,u.valueDataDim);l=aS(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=[mf(r,a[0]),mf(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 Tv(r){return!isNaN(r)&&!isFinite(r)}function VM(r,t,e,n){var i=1-r,a=n.dimensions[r];return Tv(t[i])&&Tv(e[i])&&t[r]===e[r]&&n.getAxis(a).containData(t[r])}function Srt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(VM(1,e,n,r)||VM(0,e,n,r)))return!0}return _f(r,t[0])&&_f(r,t[1])}function ly(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=rt(o.get("x"),i.getWidth()),u=rt(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($o(a,"cartesian2d")){var v=a.getAxis("x"),d=a.getAxis("y"),f=a.dimensions;Tv(r.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[e?0:1]):Tv(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 xrt=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=ya.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=qc(o).from,u=qc(o).to;l.each(function(f){ly(l,f,!0,a,i),ly(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 M1);this.group.add(f.group);var c=brt(o,e,n),h=c.from,v=c.to,d=c.line;qc(n).from=h,qc(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);ly(S,x,b,e,a);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Rf(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}(oS);function brt(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 sr(n,e),a=new sr(n,e),o=new sr([],e),s=Z(e.get("data"),bt(_rt,t,r,e));r&&(s=$t(s,bt(Srt,r)));var l=kO(!!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 wrt=xrt;function Trt(r){r.registerComponentModel(mrt),r.registerComponentView(wrt),r.registerPreprocessor(function(t){iS(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Art=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}(ya);const Crt=Art;var Kc=Nt(),Mrt=function(r,t,e,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=mf(r,i),s=mf(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=t_([{},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 Av(r){return!isNaN(r)&&!isFinite(r)}function BM(r,t,e,n){var i=1-r;return Av(t[i])&&Av(e[i])}function Drt(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 $o(r,"cartesian2d")?e&&n&&(BM(1,e,n)||BM(0,e,n))?!0:crt(r,i,a):_f(r,i)||_f(r,a)}function zM(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=rt(o.get(e[0]),i.getWidth()),u=rt(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($o(a,"cartesian2d")){var m=a.getAxis("x"),_=a.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);Av(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):Av(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var GM=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],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.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=ya.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(GM,function(c){return zM(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=Lrt(o,e,n);n.setData(c),c.each(function(h){var v=Z(GM,function(T){return zM(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=Rf(l,"color");b.fill||(b.fill=w,nt(b.fill)&&(b.fill=Gh(b.fill,.4))),b.stroke||(b.stroke=w),c.setItemVisual(h,"style",b)}),c.diff(Kc(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=Kc(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=Kc(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")),He(h,De(d),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:nt(p.fill)?Gh(p.fill,1):"#000"}),Fe(h,d),ue(h,null,null,d.get(["emphasis","disabled"])),St(h).dataModel=n}),Kc(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(oS);function Lrt(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 sr(i,e)}else i=[{name:"value",type:"float"}],n=new sr(i,e);var s=Z(e.get("data"),bt(Mrt,t,r,e));r&&(s=$t(s,bt(Drt,r)));var l=r?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return ia(v,i[h])}:function(u,f,c,h){return ia(u.value,i[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}const Prt=Irt;function Rrt(r){r.registerComponentModel(Crt),r.registerComponentView(Prt),r.registerPreprocessor(function(t){iS(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Ert=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"])}},krt=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,Ert(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 g0=krt;var hs=bt,y0=M,jc=_t,Ort=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 jc),this.group.add(this._selectorGroup=new jc),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=bO(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)}),y0(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new jc;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",hs(FM,p,null,a,h)).on("mouseover",hs(m0,y.name,null,a,h)).on("mouseout",hs(_0,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:vi(I,"rgba")}));var L=this._createItem(w,p,d,v,n,e,{},C,D,c,a);L.on("click",hs(FM,null,p,a,h)).on("mouseover",hs(m0,null,p,a,h)).on("mouseout",hs(_0,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();y0(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"]);He(c,{normal:h,emphasis:v},{defaultText:u.title}),To(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=Nrt(f,a,l,u,v,g,h),x=new jc,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(Vrt({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")&&zo({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),To(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Co(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){Co("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 Nrt(r,t,e,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),y0(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:Zs(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 Vrt(r){var t=r.icon||"roundRect",e=me(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 FM(r,t,e,n){_0(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),m0(r,t,e,n)}function OO(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=uy[o],l=fy[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}(NO);const Wrt=Hrt;function $rt(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 Urt(r){Lt(VO),r.registerComponentModel(Frt),r.registerComponentView(Wrt),$rt(r)}function Yrt(r){Lt(VO),Lt(Urt)}var Zrt=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=xa(yf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(yf);const Xrt=Zrt;var sS=Nt();function qrt(r,t,e){sS(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function Krt(r,t){for(var e=sS(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 ent(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=sS(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=ft());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=_O(a);M(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,jrt(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){BO(i,a);return}var f=tnt(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),dl(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var rnt=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(),qrt(i,e,{pan:at(cy.pan,this),zoom:at(cy.zoom,this),scrollMove:at(cy.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Krt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(J1),cy={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=hy[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(Yo(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:UM(function(r,t,e,n,i,a){var o=hy[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:UM(function(r,t,e,n,i,a){var o=hy[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function UM(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(Yo(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var hy={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 nnt=rnt;function zO(r){Q1(r),r.registerComponentModel(Xrt),r.registerComponentView(nnt),ent(r)}var int=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=xa(yf.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}(yf);const ant=int;var jl=Vt,YM=7,ont=1,vy=30,snt=7,Jl="horizontal",ZM="vertical",lnt=5,unt=["line","bar","candlestick","scatter"],fnt={easing:"cubicOut",duration:100,delay:0},cnt=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),dl(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(){af(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?snt:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Jl?{right:s.width-o.x-o.width,top:s.height-vy-YM-a,width:o.width,height:vy}:{right:YM,top:o.y,width:vy,height:o.height},u=fl(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===ZM&&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===Jl&&!o?{scaleY:l?1:-1,scaleX:1}:i===Jl&&o?{scaleY:l?1:-1,scaleX:-1}:i===ZM&&!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 jl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new jl({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(unt,u.get("type"))<0)){var f=a.getComponent(ea(o),s).axis,c=hnt(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 jl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new jl({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:ont,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!ev[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=me(S,-1,0,2,2,null,!0);x.attr({cursor:XM(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=rt(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(),To(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=rt(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=me(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:XM(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];Yo(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&&(mi(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 jl({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?fnt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=_O(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}(J1);function hnt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function XM(r){return r==="vertical"?"ns-resize":"ew-resize"}const vnt=cnt;function GO(r){r.registerComponentModel(ant),r.registerComponentView(vnt),Q1(r)}function dnt(r){Lt(zO),Lt(GO)}var pnt={get:function(r,t,e){var n=mt((gnt[r]||{})[t]);return e&&Y(n)?n[n.length-1]:n}},gnt={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 FO=pnt;var qM=Ge.mapVisual,ynt=Ge.eachVisual,mnt=Y,KM=M,_nt=$r,Snt=Ut,xnt=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&&IO(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=v0(this.option.controller,n,e),this.targetVisuals=v0(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=_nt([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){mnt(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]={},KM(d,function(g,y){if(Ge.isValidType(y)){var m=FO.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";KM(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=qM(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;ynt(S,function(b){b>x&&(x=b)}),_.symbolSize=qM(S,function(b){return Snt(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 Cv=xnt;var jM=[20,140],bnt=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]=jM[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=jM[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=JM(this,"outOfRange",this.getExtent()),i=JM(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);Ant([0,1],function(c){var h=o[c];h.setStyle("fill",n.handlesColor[c]),h.y=e[c];var v=Dn(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=hn(i.handleLabelPoints[c],Ao(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=Dn(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=hn(f.indicatorLabelPoint,Ao(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||rD(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var d=pF(h,v);this._dispatchHighDown("downplay",Th(d[0],i)),this._dispatchHighDown("highlight",Th(d[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(ho(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 knt(r,t,e,n){for(var i=t.targetVisuals[n],a=Ge.prepareVisualTypes(i),o={color:Rf(r.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Pnt,Rnt),M(Ent,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Ont))}function UO(r){r.registerComponentModel(wnt),r.registerComponentView(Lnt),$O(r)}var Nnt=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=[],Vnt[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=Ge.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]=FO.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=Ge.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=Ge.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=xa(Cv.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}(Cv),Vnt={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 oD(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const Bnt=Nnt;var znt=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),Co(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:Th(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return WO(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=me(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}(HO);const Gnt=znt;function YO(r){r.registerComponentModel(Bnt),r.registerComponentView(Gnt),$O(r)}function Fnt(r){Lt(UO),Lt(YO)}var Hnt={label:{enabled:!0},decal:{show:!1}},sD=Nt(),Wnt={};function $nt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=mt(Hnt);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)),sD(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=xm(h.ecModel,h.name,Wnt,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=h.getRawData(),p={},g=sD(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=xm(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=[],G=0;G":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Znt=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):T5(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}(),Xnt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),qnt=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){Cs(L,E)&&Cs(P,O)||i.push(L,P,E,O,E,O)}function c(L,P,E,O,V,N){var G=Math.abs(P-L),$=Math.tan(G/4)*4/3,q=PT:D2&&n.push(i),n}function x0(r,t,e,n,i,a,o,s,l,u){if(Cs(r,e)&&Cs(t,n)&&Cs(i,o)&&Cs(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=[];fa(r,e,i,o,.5,A),fa(t,n,a,s,.5,C),x0(A[0],C[0],A[1],C[1],A[2],C[2],A[3],C[3],l,u),x0(A[4],C[4],A[5],C[5],A[6],C[6],A[7],C[7],l,u)}function uit(r,t){var e=S0(r),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),c=XO([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;vi,o=XO([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 hit(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 ds(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function vit(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),vit(t,u,f)}function Mv(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);Mv(r,a[0],i,n),Mv(r,a[1],e-i,n)}return n}function dit(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 Lv(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:wit(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 jO(r){return yit(r.path,r.count)}function b0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Tit(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 Cit={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;gD(r)&&(u=r,f=t),gD(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(Dv(T))c({many:[T],one:A},!0,_,S,!0);else{var C=s?pt({delay:s(_,S)},l):l;uS(T,A,C),a(T,A,T,A,C)}}else for(var D=pt({dividePath:Cit[e],individualDelay:s&&function(V,N,G,$){return s(V+_,S)}},l),I=m?Tit(b,w,D):Ait(w,b,D),L=I.fromIndividuals,P=I.toIndividuals,E=L.length,O=0;Ot.length,v=u?yD(f,u):yD(h?t:r,[h?r:t]),d=0,p=0;pJO))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 bD(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function wD(r){return Y(r)?r.sort().join(","):r}function Yi(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Eit(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=bD(a),f=wD(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=bD(a),u=wD(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Yi(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Yi(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:Yi(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Yi(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:Yi(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Yi(s)})}}}}),e}function TD(r,t){for(var e=0;e=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Yi(t.oldData[s]),groupIdDim:o.dimension})}),M(Zt(r.to),function(o){var s=TD(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Yi(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&QO(i,a,n)}function Oit(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{w0(r)}))}function w0(r,t=new WeakSet){if(!(!r||typeof r!="object")&&!t.has(r)){if(t.add(r),Array.isArray(r)){r.forEach(e=>w0(e,t));return}r.tooltip&&typeof r.tooltip=="object"&&(r.tooltip=Vit(r.tooltip)),Object.keys(r).forEach(e=>{const n=r[e];!n||typeof n!="object"||w0(n,t)})}}function Vit(r){var t,e;return gS(pS({},r),{appendToBody:(t=r.appendToBody)!=null?t:!0,confine:(e=r.confine)!=null?e:!1,extraCssText:Bit(r.extraCssText)})}function Bit(r=""){const t=String(r||"").trim();return t?/z-index\s*:/i.test(t)?t:`${t.replace(/;$/,"")};${AD}`:AD}Nit();let zit=zB(s5);zit.use(UI).mount("#app");export{O0 as A,qV as B,Eh as C,Uit as D,iat as E,zr as F,Z0 as G,qS as H,Jit as I,nat as J,C0 as K,BN as L,Df as M,zv as N,RB as O,tB as P,z0 as Q,Wit as R,DI as S,$it as T,Fit as U,aat as V,ke as W,W_ as X,i5 as _,AI as a,Pe as b,Xit as c,Qc as d,tat as e,Qit as f,an as g,hV as h,fn as i,Kit as j,t5 as k,rat as l,eat as m,M0 as n,Ph as o,th as p,uV as q,Zit as r,Hit as s,gN as t,_o as u,jit as v,eh as w,KN as x,Yit as y,qit as z};