vite-bundle-explorer 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -19
- package/dist/assets/index-CgYcK0gG.css +1 -0
- package/dist/assets/index-DHBN8nqM.js +63 -0
- package/dist/index.html +2 -2
- package/package.json +5 -2
- package/plugin/stats-plugin.js +39 -8
- package/dist/assets/index-BajBbEJD.css +0 -1
- package/dist/assets/index-CBo5B8y_.js +0 -63
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
(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 r(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=r(i);fetch(i.href,a)}})();/**
|
|
2
|
-
* @vue/shared v3.5.17
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function rf(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const mt={},Ea=[],vr=()=>{},kT=()=>!1,Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ov=e=>e.startsWith("onUpdate:"),Ot=Object.assign,sv=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},NT=Object.prototype.hasOwnProperty,xt=(e,t)=>NT.call(e,t),Z=Array.isArray,Ra=e=>Qa(e)==="[object Map]",Xi=e=>Qa(e)==="[object Set]",Xp=e=>Qa(e)==="[object Date]",BT=e=>Qa(e)==="[object RegExp]",at=e=>typeof e=="function",Vt=e=>typeof e=="string",Dr=e=>typeof e=="symbol",Lt=e=>e!==null&&typeof e=="object",lv=e=>(Lt(e)||at(e))&&at(e.then)&&at(e.catch),c0=Object.prototype.toString,Qa=e=>c0.call(e),FT=e=>Qa(e).slice(8,-1),nf=e=>Qa(e)==="[object Object]",uv=e=>Vt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Oa=rf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),af=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},VT=/-(\w)/g,he=af(e=>e.replace(VT,(t,r)=>r?r.toUpperCase():"")),HT=/\B([A-Z])/g,We=af(e=>e.replace(HT,"-$1").toLowerCase()),Vs=af(e=>e.charAt(0).toUpperCase()+e.slice(1)),Uo=af(e=>e?`on${Vs(e)}`:""),Me=(e,t)=>!Object.is(e,t),ka=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},kh=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},pu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},gu=e=>{const t=Vt(e)?Number(e):NaN;return isNaN(t)?e:t};let qp;const of=()=>qp||(qp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),zT="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",GT=rf(zT);function Hs(e){if(Z(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=Vt(n)?YT(n):Hs(n);if(i)for(const a in i)t[a]=i[a]}return t}else if(Vt(e)||Lt(e))return e}const $T=/;(?![^(]*\))/g,UT=/:([^]+)/,WT=/\/\*[^]*?\*\//g;function YT(e){const t={};return e.replace(WT,"").split($T).forEach(r=>{if(r){const n=r.split(UT);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Fi(e){let t="";if(Vt(e))t=e;else if(Z(e))for(let r=0;r<e.length;r++){const n=Fi(e[r]);n&&(t+=n+" ")}else if(Lt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function XT(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Vt(t)&&(e.class=Fi(t)),r&&(e.style=Hs(r)),e}const qT="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",KT=rf(qT);function h0(e){return!!e||e===""}function jT(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Gn(e[n],t[n]);return r}function Gn(e,t){if(e===t)return!0;let r=Xp(e),n=Xp(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=Dr(e),n=Dr(t),r||n)return e===t;if(r=Z(e),n=Z(t),r||n)return r&&n?jT(e,t):!1;if(r=Lt(e),n=Lt(t),r||n){if(!r||!n)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Gn(e[o],t[o]))return!1}}return String(e)===String(t)}function sf(e,t){return e.findIndex(r=>Gn(r,t))}const d0=e=>!!(e&&e.__v_isRef===!0),wi=e=>Vt(e)?e:e==null?"":Z(e)||Lt(e)&&(e.toString===c0||!at(e.toString))?d0(e)?wi(e.value):JSON.stringify(e,v0,2):String(e),v0=(e,t)=>d0(t)?v0(e,t.value):Ra(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[Kf(n,a)+" =>"]=i,r),{})}:Xi(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Kf(r))}:Dr(t)?Kf(t):Lt(t)&&!Z(t)&&!nf(t)?String(t):t,Kf=(e,t="")=>{var r;return Dr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.17
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let ye;class fv{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ye,!t&&ye&&(this.index=(ye.scopes||(ye.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=ye;try{return ye=this,t()}finally{ye=r}}}on(){++this._on===1&&(this.prevScope=ye,ye=this)}off(){this._on>0&&--this._on===0&&(ye=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function ZT(e){return new fv(e)}function cv(){return ye}function p0(e,t=!1){ye&&ye.cleanups.push(e)}let Bt;const jf=new WeakSet;class us{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ye&&ye.active&&ye.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,jf.has(this)&&(jf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||m0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Kp(this),y0(this);const t=Bt,r=Cr;Bt=this,Cr=!0;try{return this.fn()}finally{_0(this),Bt=t,Cr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)vv(t);this.deps=this.depsTail=void 0,Kp(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?jf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Nh(this)&&this.run()}get dirty(){return Nh(this)}}let g0=0,Wo,Yo;function m0(e,t=!1){if(e.flags|=8,t){e.next=Yo,Yo=e;return}e.next=Wo,Wo=e}function hv(){g0++}function dv(){if(--g0>0)return;if(Yo){let t=Yo;for(Yo=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Wo;){let t=Wo;for(Wo=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function y0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _0(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),vv(n),QT(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function Nh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(b0(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function b0(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fs)||(e.globalVersion=fs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Nh(e))))return;e.flags|=2;const t=e.dep,r=Bt,n=Cr;Bt=e,Cr=!0;try{y0(e);const i=e.fn(e._value);(t.version===0||Me(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Bt=r,Cr=n,_0(e),e.flags&=-3}}function vv(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)vv(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function QT(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function JT(e,t){e.effect instanceof us&&(e=e.effect.fn);const r=new us(e);t&&Ot(r,t);try{r.run()}catch(i){throw r.stop(),i}const n=r.run.bind(r);return n.effect=r,n}function tx(e){e.effect.stop()}let Cr=!0;const S0=[];function sn(){S0.push(Cr),Cr=!1}function ln(){const e=S0.pop();Cr=e===void 0?!0:e}function Kp(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Bt;Bt=void 0;try{t()}finally{Bt=r}}}let fs=0;class ex{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class lf{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(!Bt||!Cr||Bt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Bt)r=this.activeLink=new ex(Bt,this),Bt.deps?(r.prevDep=Bt.depsTail,Bt.depsTail.nextDep=r,Bt.depsTail=r):Bt.deps=Bt.depsTail=r,w0(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Bt.depsTail,r.nextDep=void 0,Bt.depsTail.nextDep=r,Bt.depsTail=r,Bt.deps===r&&(Bt.deps=n)}return r}trigger(t){this.version++,fs++,this.notify(t)}notify(t){hv();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{dv()}}}function w0(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)w0(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const mu=new WeakMap,Mi=Symbol(""),Bh=Symbol(""),cs=Symbol("");function be(e,t,r){if(Cr&&Bt){let n=mu.get(e);n||mu.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new lf),i.map=n,i.key=r),i.track()}}function Jr(e,t,r,n,i,a){const o=mu.get(e);if(!o){fs++;return}const s=l=>{l&&l.trigger()};if(hv(),t==="clear")o.forEach(s);else{const l=Z(e),u=l&&uv(r);if(l&&r==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===cs||!Dr(h)&&h>=f)&&s(c)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(cs)),t){case"add":l?u&&s(o.get("length")):(s(o.get(Mi)),Ra(e)&&s(o.get(Bh)));break;case"delete":l||(s(o.get(Mi)),Ra(e)&&s(o.get(Bh)));break;case"set":Ra(e)&&s(o.get(Mi));break}}dv()}function rx(e,t){const r=mu.get(e);return r&&r.get(t)}function ra(e){const t=_t(e);return t===e?t:(be(t,"iterate",cs),rr(e)?t:t.map(ce))}function uf(e){return be(e=_t(e),"iterate",cs),e}const nx={__proto__:null,[Symbol.iterator](){return Zf(this,Symbol.iterator,ce)},concat(...e){return ra(this).concat(...e.map(t=>Z(t)?ra(t):t))},entries(){return Zf(this,"entries",e=>(e[1]=ce(e[1]),e))},every(e,t){return qr(this,"every",e,t,void 0,arguments)},filter(e,t){return qr(this,"filter",e,t,r=>r.map(ce),arguments)},find(e,t){return qr(this,"find",e,t,ce,arguments)},findIndex(e,t){return qr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qr(this,"findLast",e,t,ce,arguments)},findLastIndex(e,t){return qr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Qf(this,"includes",e)},indexOf(...e){return Qf(this,"indexOf",e)},join(e){return ra(this).join(e)},lastIndexOf(...e){return Qf(this,"lastIndexOf",e)},map(e,t){return qr(this,"map",e,t,void 0,arguments)},pop(){return so(this,"pop")},push(...e){return so(this,"push",e)},reduce(e,...t){return jp(this,"reduce",e,t)},reduceRight(e,...t){return jp(this,"reduceRight",e,t)},shift(){return so(this,"shift")},some(e,t){return qr(this,"some",e,t,void 0,arguments)},splice(...e){return so(this,"splice",e)},toReversed(){return ra(this).toReversed()},toSorted(e){return ra(this).toSorted(e)},toSpliced(...e){return ra(this).toSpliced(...e)},unshift(...e){return so(this,"unshift",e)},values(){return Zf(this,"values",ce)}};function Zf(e,t,r){const n=uf(e),i=n[t]();return n!==e&&!rr(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const ix=Array.prototype;function qr(e,t,r,n,i,a){const o=uf(e),s=o!==e&&!rr(e),l=o[t];if(l!==ix[t]){const c=l.apply(e,a);return s?ce(c):c}let u=r;o!==e&&(s?u=function(c,h){return r.call(this,ce(c),h,e)}:r.length>2&&(u=function(c,h){return r.call(this,c,h,e)}));const f=l.call(o,u,n);return s&&i?i(f):f}function jp(e,t,r,n){const i=uf(e);let a=r;return i!==e&&(rr(e)?r.length>3&&(a=function(o,s,l){return r.call(this,o,s,l,e)}):a=function(o,s,l){return r.call(this,o,ce(s),l,e)}),i[t](a,...n)}function Qf(e,t,r){const n=_t(e);be(n,"iterate",cs);const i=n[t](...r);return(i===-1||i===!1)&&df(r[0])?(r[0]=_t(r[0]),n[t](...r)):i}function so(e,t,r=[]){sn(),hv();const n=_t(e)[t].apply(e,r);return dv(),ln(),n}const ax=rf("__proto__,__v_isRef,__isVue"),T0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dr));function ox(e){Dr(e)||(e=String(e));const t=_t(this);return be(t,"has",e),t.hasOwnProperty(e)}class x0{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?L0:M0:a?A0:I0).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Z(t);if(!i){let l;if(o&&(l=nx[r]))return l;if(r==="hasOwnProperty")return ox}const s=Reflect.get(t,r,Xt(t)?t:n);return(Dr(r)?T0.has(r):ax(r))||(i||be(t,"get",r),a)?s:Xt(s)?o&&uv(r)?s:s.value:Lt(s)?i?pv(s):cf(s):s}}class C0 extends x0{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._isShallow){const l=un(a);if(!rr(n)&&!un(n)&&(a=_t(a),n=_t(n)),!Z(t)&&Xt(a)&&!Xt(n))return l?!1:(a.value=n,!0)}const o=Z(t)&&uv(r)?Number(r)<t.length:xt(t,r),s=Reflect.set(t,r,n,Xt(t)?t:i);return t===_t(i)&&(o?Me(n,a)&&Jr(t,"set",r,n):Jr(t,"add",r,n)),s}deleteProperty(t,r){const n=xt(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&Jr(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!Dr(r)||!T0.has(r))&&be(t,"has",r),n}ownKeys(t){return be(t,"iterate",Z(t)?"length":Mi),Reflect.ownKeys(t)}}class D0 extends x0{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const sx=new C0,lx=new D0,ux=new C0(!0),fx=new D0(!0),Fh=e=>e,rl=e=>Reflect.getPrototypeOf(e);function cx(e,t,r){return function(...n){const i=this.__v_raw,a=_t(i),o=Ra(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),f=r?Fh:t?yu:ce;return!t&&be(a,"iterate",l?Bh:Mi),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function nl(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function hx(e,t){const r={get(i){const a=this.__v_raw,o=_t(a),s=_t(i);e||(Me(i,s)&&be(o,"get",i),be(o,"get",s));const{has:l}=rl(o),u=t?Fh:e?yu:ce;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!e&&be(_t(i),"iterate",Mi),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=_t(a),s=_t(i);return e||(Me(i,s)&&be(o,"has",i),be(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=_t(s),u=t?Fh:e?yu:ce;return!e&&be(l,"iterate",Mi),s.forEach((f,c)=>i.call(a,u(f),u(c),o))}};return Ot(r,e?{add:nl("add"),set:nl("set"),delete:nl("delete"),clear:nl("clear")}:{add(i){!t&&!rr(i)&&!un(i)&&(i=_t(i));const a=_t(this);return rl(a).has.call(a,i)||(a.add(i),Jr(a,"add",i,i)),this},set(i,a){!t&&!rr(a)&&!un(a)&&(a=_t(a));const o=_t(this),{has:s,get:l}=rl(o);let u=s.call(o,i);u||(i=_t(i),u=s.call(o,i));const f=l.call(o,i);return o.set(i,a),u?Me(a,f)&&Jr(o,"set",i,a):Jr(o,"add",i,a),this},delete(i){const a=_t(this),{has:o,get:s}=rl(a);let l=o.call(a,i);l||(i=_t(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&Jr(a,"delete",i,void 0),u},clear(){const i=_t(this),a=i.size!==0,o=i.clear();return a&&Jr(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=cx(i,e,t)}),r}function ff(e,t){const r=hx(e,t);return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(xt(r,i)&&i in n?r:n,i,a)}const dx={get:ff(!1,!1)},vx={get:ff(!1,!0)},px={get:ff(!0,!1)},gx={get:ff(!0,!0)},I0=new WeakMap,A0=new WeakMap,M0=new WeakMap,L0=new WeakMap;function mx(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yx(e){return e.__v_skip||!Object.isExtensible(e)?0:mx(FT(e))}function cf(e){return un(e)?e:hf(e,!1,sx,dx,I0)}function P0(e){return hf(e,!1,ux,vx,A0)}function pv(e){return hf(e,!0,lx,px,M0)}function _x(e){return hf(e,!0,fx,gx,L0)}function hf(e,t,r,n,i){if(!Lt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=yx(e);if(a===0)return e;const o=i.get(e);if(o)return o;const s=new Proxy(e,a===2?n:r);return i.set(e,s),s}function Rn(e){return un(e)?Rn(e.__v_raw):!!(e&&e.__v_isReactive)}function un(e){return!!(e&&e.__v_isReadonly)}function rr(e){return!!(e&&e.__v_isShallow)}function df(e){return e?!!e.__v_raw:!1}function _t(e){const t=e&&e.__v_raw;return t?_t(t):e}function E0(e){return!xt(e,"__v_skip")&&Object.isExtensible(e)&&kh(e,"__v_skip",!0),e}const ce=e=>Lt(e)?cf(e):e,yu=e=>Lt(e)?pv(e):e;function Xt(e){return e?e.__v_isRef===!0:!1}function Zt(e){return R0(e,!1)}function vf(e){return R0(e,!0)}function R0(e,t){return Xt(e)?e:new bx(e,t)}class bx{constructor(t,r){this.dep=new lf,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:_t(t),this._value=r?t:ce(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||rr(t)||un(t);t=n?t:_t(t),Me(t,r)&&(this._rawValue=t,this._value=n?t:ce(t),this.dep.trigger())}}function Sx(e){e.dep&&e.dep.trigger()}function z(e){return Xt(e)?e.value:e}function Na(e){return at(e)?e():z(e)}const Tx={get:(e,t,r)=>t==="__v_raw"?e:z(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Xt(i)&&!Xt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function gv(e){return Rn(e)?e:new Proxy(e,Tx)}class xx{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new lf,{get:n,set:i}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function O0(e){return new xx(e)}function zs(e){const t=Z(e)?new Array(e.length):{};for(const r in e)t[r]=k0(e,r);return t}class Cx{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return rx(_t(this._object),this._key)}}class Dx{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ix(e,t,r){return Xt(e)?e:at(e)?new Dx(e):Lt(e)&&arguments.length>1?k0(e,t,r):Zt(e)}function k0(e,t,r){const n=e[t];return Xt(n)?n:new Cx(e,t,r)}class Ax{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new lf(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Bt!==this)return m0(this,!0),!0}get value(){const t=this.dep.track();return b0(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Mx(e,t,r=!1){let n,i;return at(e)?n=e:(n=e.get,i=e.set),new Ax(n,i,r)}const Lx={GET:"get",HAS:"has",ITERATE:"iterate"},Px={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},il={},_u=new WeakMap;let In;function Ex(){return In}function N0(e,t=!1,r=In){if(r){let n=_u.get(r);n||_u.set(r,n=[]),n.push(e)}}function Rx(e,t,r=mt){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=b=>i?b:rr(b)||i===!1||i===0?tn(b,1):tn(b);let f,c,h,d,v=!1,p=!1;if(Xt(e)?(c=()=>e.value,v=rr(e)):Rn(e)?(c=()=>u(e),v=!0):Z(e)?(p=!0,v=e.some(b=>Rn(b)||rr(b)),c=()=>e.map(b=>{if(Xt(b))return b.value;if(Rn(b))return u(b);if(at(b))return l?l(b,2):b()})):at(e)?t?c=l?()=>l(e,2):e:c=()=>{if(h){sn();try{h()}finally{ln()}}const b=In;In=f;try{return l?l(e,3,[d]):e(d)}finally{In=b}}:c=vr,t&&i){const b=c,S=i===!0?1/0:i;c=()=>tn(b(),S)}const g=cv(),m=()=>{f.stop(),g&&g.active&&sv(g.effects,f)};if(a&&t){const b=t;t=(...S)=>{b(...S),m()}}let _=p?new Array(e.length).fill(il):il;const y=b=>{if(!(!(f.flags&1)||!f.dirty&&!b))if(t){const S=f.run();if(i||v||(p?S.some((w,T)=>Me(w,_[T])):Me(S,_))){h&&h();const w=In;In=f;try{const T=[S,_===il?void 0:p&&_[0]===il?[]:_,d];_=S,l?l(t,3,T):t(...T)}finally{In=w}}}else f.run()};return s&&s(y),f=new us(c),f.scheduler=o?()=>o(y,!1):y,d=b=>N0(b,!1,f),h=f.onStop=()=>{const b=_u.get(f);if(b){if(l)l(b,4);else for(const S of b)S();_u.delete(f)}},t?n?y(!0):_=f.run():o?o(y.bind(null,!0),!0):f.run(),m.pause=f.pause.bind(f),m.resume=f.resume.bind(f),m.stop=m,m}function tn(e,t=1/0,r){if(t<=0||!Lt(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Xt(e))tn(e.value,t,r);else if(Z(e))for(let n=0;n<e.length;n++)tn(e[n],t,r);else if(Xi(e)||Ra(e))e.forEach(n=>{tn(n,t,r)});else if(nf(e)){for(const n in e)tn(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&tn(e[n],t,r)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.17
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/const B0=[];function Ox(e){B0.push(e)}function kx(){B0.pop()}function Nx(e,t){}const Bx={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},Fx={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Ja(e,t,r,n){try{return n?e(...n):e()}catch(i){qi(i,t,r)}}function mr(e,t,r,n){if(at(e)){const i=Ja(e,t,r,n);return i&&lv(i)&&i.catch(a=>{qi(a,t,r)}),i}if(Z(e)){const i=[];for(let a=0;a<e.length;a++)i.push(mr(e[a],t,r,n));return i}}function qi(e,t,r,n=!0){const i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||mt;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){const f=s.ec;if(f){for(let c=0;c<f.length;c++)if(f[c](e,l,u)===!1)return}s=s.parent}if(a){sn(),Ja(a,null,10,[e,l,u]),ln();return}}Vx(e,r,i,n,o)}function Vx(e,t,r,n=!0,i=!1){if(i)throw e;console.error(e)}const Le=[];let Fr=-1;const Ba=[];let An=null,wa=0;const F0=Promise.resolve();let bu=null;function Ki(e){const t=bu||F0;return e?t.then(this?e.bind(this):e):t}function Hx(e){let t=Fr+1,r=Le.length;for(;t<r;){const n=t+r>>>1,i=Le[n],a=ds(i);a<e||a===e&&i.flags&2?t=n+1:r=n}return t}function mv(e){if(!(e.flags&1)){const t=ds(e),r=Le[Le.length-1];!r||!(e.flags&2)&&t>=ds(r)?Le.push(e):Le.splice(Hx(t),0,e),e.flags|=1,V0()}}function V0(){bu||(bu=F0.then(H0))}function hs(e){Z(e)?Ba.push(...e):An&&e.id===-1?An.splice(wa+1,0,e):e.flags&1||(Ba.push(e),e.flags|=1),V0()}function Zp(e,t,r=Fr+1){for(;r<Le.length;r++){const n=Le[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Le.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Su(e){if(Ba.length){const t=[...new Set(Ba)].sort((r,n)=>ds(r)-ds(n));if(Ba.length=0,An){An.push(...t);return}for(An=t,wa=0;wa<An.length;wa++){const r=An[wa];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}An=null,wa=0}}const ds=e=>e.id==null?e.flags&2?-1:1/0:e.id;function H0(e){try{for(Fr=0;Fr<Le.length;Fr++){const t=Le[Fr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ja(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Fr<Le.length;Fr++){const t=Le[Fr];t&&(t.flags&=-2)}Fr=-1,Le.length=0,Su(),bu=null,(Le.length||Ba.length)&&H0()}}let Ta,al=[];function z0(e,t){var r,n;Ta=e,Ta?(Ta.enabled=!0,al.forEach(({event:i,args:a})=>Ta.emit(i,...a)),al=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{z0(a,t)}),setTimeout(()=>{Ta||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,al=[])},3e3)):al=[]}let ie=null,pf=null;function vs(e){const t=ie;return ie=e,pf=e&&e.type.__scopeId||null,t}function zx(e){pf=e}function Gx(){pf=null}const $x=e=>$t;function $t(e,t=ie,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&Yh(-1);const a=vs(t);let o;try{o=e(...i)}finally{vs(a),n._d&&Yh(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function yv(e,t){if(ie===null)return e;const r=Us(ie),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,o,s,l=mt]=t[i];a&&(at(a)&&(a={mounted:a,updated:a}),a.deep&&tn(o),n.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:l}))}return e}function Vr(e,t,r,n){const i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(sn(),mr(l,r,8,[e.el,s,e,t]),ln())}}const G0=Symbol("_vte"),$0=e=>e.__isTeleport,Xo=e=>e&&(e.disabled||e.disabled===""),Qp=e=>e&&(e.defer||e.defer===""),Jp=e=>typeof SVGElement<"u"&&e instanceof SVGElement,tg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Vh=(e,t)=>{const r=e&&e.to;return Vt(r)?t?t(r):null:r},U0={name:"Teleport",__isTeleport:!0,process(e,t,r,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:h,o:{insert:d,querySelector:v,createText:p,createComment:g}}=u,m=Xo(t.props);let{shapeFlag:_,children:y,dynamicChildren:b}=t;if(e==null){const S=t.el=p(""),w=t.anchor=p("");d(S,r,n),d(w,r,n);const T=(x,D)=>{_&16&&(i&&i.isCE&&(i.ce._teleportTarget=x),f(y,x,D,i,a,o,s,l))},C=()=>{const x=t.target=Vh(t.props,v),D=W0(x,t,p,d);x&&(o!=="svg"&&Jp(x)?o="svg":o!=="mathml"&&tg(x)&&(o="mathml"),m||(T(x,D),jl(t,!1)))};m&&(T(r,w),jl(t,!0)),Qp(t.props)?(t.el.__isMounted=!1,re(()=>{C(),delete t.el.__isMounted},a)):C()}else{if(Qp(t.props)&&e.el.__isMounted===!1){re(()=>{U0.process(e,t,r,n,i,a,o,s,l,u)},a);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,w=t.target=e.target,T=t.targetAnchor=e.targetAnchor,C=Xo(e.props),x=C?r:w,D=C?S:T;if(o==="svg"||Jp(w)?o="svg":(o==="mathml"||tg(w))&&(o="mathml"),b?(h(e.dynamicChildren,b,x,i,a,o,s),Ev(e,t,!0)):l||c(e,t,x,D,i,a,o,s,!1),m)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ol(t,r,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=Vh(t.props,v);A&&ol(t,A,null,u,0)}else C&&ol(t,w,T,u,1);jl(t,m)}},remove(e,t,r,{um:n,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:f,target:c,props:h}=e;if(c&&(i(u),i(f)),a&&i(l),o&16){const d=a||!Xo(h);for(let v=0;v<s.length;v++){const p=s[v];n(p,t,r,d,!!p.dynamicChildren)}}},move:ol,hydrate:Ux};function ol(e,t,r,{o:{insert:n},m:i},a=2){a===0&&n(e.targetAnchor,t,r);const{el:o,anchor:s,shapeFlag:l,children:u,props:f}=e,c=a===2;if(c&&n(o,t,r),(!c||Xo(f))&&l&16)for(let h=0;h<u.length;h++)i(u[h],t,r,2);c&&n(s,t,r)}function Ux(e,t,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:u,createText:f}},c){const h=t.target=Vh(t.props,l);if(h){const d=Xo(t.props),v=h._lpa||h.firstChild;if(t.shapeFlag&16)if(d)t.anchor=c(o(e),t,s(e),r,n,i,a),t.targetStart=v,t.targetAnchor=v&&o(v);else{t.anchor=o(e);let p=v;for(;p;){if(p&&p.nodeType===8){if(p.data==="teleport start anchor")t.targetStart=p;else if(p.data==="teleport anchor"){t.targetAnchor=p,h._lpa=t.targetAnchor&&o(t.targetAnchor);break}}p=o(p)}t.targetAnchor||W0(h,t,f,u),c(v&&o(v),t,h,r,n,i,a)}jl(t,d)}return t.anchor&&o(t.anchor)}const Wx=U0;function jl(e,t){const r=e.ctx;if(r&&r.ut){let n,i;for(t?(n=e.el,i=e.anchor):(n=e.targetStart,i=e.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function W0(e,t,r,n){const i=t.targetStart=r(""),a=t.targetAnchor=r("");return i[G0]=a,e&&(n(i,e),n(a,e)),a}const Mn=Symbol("_leaveCb"),sl=Symbol("_enterCb");function _v(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ji(()=>{e.isMounted=!0}),_f(()=>{e.isUnmounting=!0}),e}const or=[Function,Array],bv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:or,onEnter:or,onAfterEnter:or,onEnterCancelled:or,onBeforeLeave:or,onLeave:or,onAfterLeave:or,onLeaveCancelled:or,onBeforeAppear:or,onAppear:or,onAfterAppear:or,onAppearCancelled:or},Y0=e=>{const t=e.subTree;return t.component?Y0(t.component):t},Yx={name:"BaseTransition",props:bv,setup(e,{slots:t}){const r=Oe(),n=_v();return()=>{const i=t.default&&gf(t.default(),!0);if(!i||!i.length)return;const a=X0(i),o=_t(e),{mode:s}=o;if(n.isLeaving)return Jf(a);const l=eg(a);if(!l)return Jf(a);let u=Wa(l,o,n,r,c=>u=c);l.type!==Qt&&fn(l,u);let f=r.subTree&&eg(r.subTree);if(f&&f.type!==Qt&&!xr(l,f)&&Y0(r).type!==Qt){let c=Wa(f,o,n,r);if(fn(f,c),s==="out-in"&&l.type!==Qt)return n.isLeaving=!0,c.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete c.afterLeave,f=void 0},Jf(a);s==="in-out"&&l.type!==Qt?c.delayLeave=(h,d,v)=>{const p=K0(n,f);p[String(f.key)]=f,h[Mn]=()=>{d(),h[Mn]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return a}}};function X0(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Qt){t=r;break}}return t}const q0=Yx;function K0(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Wa(e,t,r,n,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:f,onEnterCancelled:c,onBeforeLeave:h,onLeave:d,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:g,onAppear:m,onAfterAppear:_,onAppearCancelled:y}=t,b=String(e.key),S=K0(r,e),w=(x,D)=>{x&&mr(x,n,9,D)},T=(x,D)=>{const A=D[1];w(x,D),Z(x)?x.every(M=>M.length<=1)&&A():x.length<=1&&A()},C={mode:o,persisted:s,beforeEnter(x){let D=l;if(!r.isMounted)if(a)D=g||l;else return;x[Mn]&&x[Mn](!0);const A=S[b];A&&xr(e,A)&&A.el[Mn]&&A.el[Mn](),w(D,[x])},enter(x){let D=u,A=f,M=c;if(!r.isMounted)if(a)D=m||u,A=_||f,M=y||c;else return;let E=!1;const O=x[sl]=V=>{E||(E=!0,V?w(M,[x]):w(A,[x]),C.delayedLeave&&C.delayedLeave(),x[sl]=void 0)};D?T(D,[x,O]):O()},leave(x,D){const A=String(e.key);if(x[sl]&&x[sl](!0),r.isUnmounting)return D();w(h,[x]);let M=!1;const E=x[Mn]=O=>{M||(M=!0,D(),O?w(p,[x]):w(v,[x]),x[Mn]=void 0,S[A]===e&&delete S[A])};S[A]=e,d?T(d,[x,E]):E()},clone(x){const D=Wa(x,t,r,n,i);return i&&i(D),D}};return C}function Jf(e){if(Gs(e))return e=Ir(e),e.children=null,e}function eg(e){if(!Gs(e))return $0(e.type)&&e.children?X0(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&at(r.default))return r.default()}}function fn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,fn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gf(e,t=!1,r){let n=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:a);o.type===te?(o.patchFlag&128&&i++,n=n.concat(gf(o.children,t,s))):(t||o.type!==Qt)&&n.push(s!=null?Ir(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function It(e,t){return at(e)?Ot({name:e.name},t,{setup:e}):e}function j0(){const e=Oe();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Sv(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function wv(e){const t=Oe(),r=vf(null);if(t){const i=t.refs===mt?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>r.value,set:a=>r.value=a})}return r}function Fa(e,t,r,n,i=!1){if(Z(e)){e.forEach((v,p)=>Fa(v,t&&(Z(t)?t[p]:t),r,n,i));return}if(On(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Fa(e,t,r,n.component.subTree);return}const a=n.shapeFlag&4?Us(n.component):n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,f=s.refs===mt?s.refs={}:s.refs,c=s.setupState,h=_t(c),d=c===mt?()=>!1:v=>xt(h,v);if(u!=null&&u!==l&&(Vt(u)?(f[u]=null,d(u)&&(c[u]=null)):Xt(u)&&(u.value=null)),at(l))Ja(l,s,12,[o,f]);else{const v=Vt(l),p=Xt(l);if(v||p){const g=()=>{if(e.f){const m=v?d(l)?c[l]:f[l]:l.value;i?Z(m)&&sv(m,a):Z(m)?m.includes(a)||m.push(a):v?(f[l]=[a],d(l)&&(c[l]=f[l])):(l.value=[a],e.k&&(f[e.k]=l.value))}else v?(f[l]=o,d(l)&&(c[l]=o)):p&&(l.value=o,e.k&&(f[e.k]=o))};o?(g.id=-1,re(g,r)):g()}}}let rg=!1;const na=()=>{rg||(console.error("Hydration completed but contains mismatches."),rg=!0)},Xx=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",qx=e=>e.namespaceURI.includes("MathML"),ll=e=>{if(e.nodeType===1){if(Xx(e))return"svg";if(qx(e))return"mathml"}},Da=e=>e.nodeType===8;function Kx(e){const{mt:t,p:r,o:{patchProp:n,createText:i,nextSibling:a,parentNode:o,remove:s,insert:l,createComment:u}}=e,f=(y,b)=>{if(!b.hasChildNodes()){r(null,y,b),Su(),b._vnode=y;return}c(b.firstChild,y,null,null,null),Su(),b._vnode=y},c=(y,b,S,w,T,C=!1)=>{C=C||!!b.dynamicChildren;const x=Da(y)&&y.data==="[",D=()=>p(y,b,S,w,T,x),{type:A,ref:M,shapeFlag:E,patchFlag:O}=b;let V=y.nodeType;b.el=y,O===-2&&(C=!1,b.dynamicChildren=null);let k=null;switch(A){case kn:V!==3?b.children===""?(l(b.el=i(""),o(y),y),k=y):k=D():(y.data!==b.children&&(na(),y.data=b.children),k=a(y));break;case Qt:_(y)?(k=a(y),m(b.el=y.content.firstChild,y,S)):V!==8||x?k=D():k=a(y);break;case Pi:if(x&&(y=a(y),V=y.nodeType),V===1||V===3){k=y;const K=!b.children.length;for(let $=0;$<b.staticCount;$++)K&&(b.children+=k.nodeType===1?k.outerHTML:k.data),$===b.staticCount-1&&(b.anchor=k),k=a(k);return x?a(k):k}else D();break;case te:x?k=v(y,b,S,w,T,C):k=D();break;default:if(E&1)(V!==1||b.type.toLowerCase()!==y.tagName.toLowerCase())&&!_(y)?k=D():k=h(y,b,S,w,T,C);else if(E&6){b.slotScopeIds=T;const K=o(y);if(x?k=g(y):Da(y)&&y.data==="teleport start"?k=g(y,y.data,"teleport end"):k=a(y),t(b,K,null,S,w,ll(K),C),On(b)&&!b.type.__asyncResolved){let $;x?($=ct(te),$.anchor=k?k.previousSibling:K.lastChild):$=y.nodeType===3?Nn(""):ct("div"),$.el=y,b.component.subTree=$}}else E&64?V!==8?k=D():k=b.type.hydrate(y,b,S,w,T,C,e,d):E&128&&(k=b.type.hydrate(y,b,S,w,ll(o(y)),T,C,e,c))}return M!=null&&Fa(M,null,w,b),k},h=(y,b,S,w,T,C)=>{C=C||!!b.dynamicChildren;const{type:x,props:D,patchFlag:A,shapeFlag:M,dirs:E,transition:O}=b,V=x==="input"||x==="option";if(V||A!==-1){E&&Vr(b,null,S,"created");let k=!1;if(_(y)){k=bb(null,O)&&S&&S.vnode.props&&S.vnode.props.appear;const $=y.content.firstChild;if(k){const ot=$.getAttribute("class");ot&&($.$cls=ot),O.beforeEnter($)}m($,y,S),b.el=y=$}if(M&16&&!(D&&(D.innerHTML||D.textContent))){let $=d(y.firstChild,b,y,S,w,T,C);for(;$;){ul(y,1)||na();const ot=$;$=$.nextSibling,s(ot)}}else if(M&8){let $=b.children;$[0]===`
|
|
14
|
-
`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&($=$.slice(1)),y.textContent!==$&&(ul(y,0)||na(),y.textContent=b.children)}if(D){if(V||!C||A&48){const $=y.tagName.includes("-");for(const ot in D)(V&&(ot.endsWith("value")||ot==="indeterminate")||Fs(ot)&&!Oa(ot)||ot[0]==="."||$)&&n(y,ot,null,D[ot],void 0,S)}else if(D.onClick)n(y,"onClick",null,D.onClick,void 0,S);else if(A&4&&Rn(D.style))for(const $ in D.style)D.style[$]}let K;(K=D&&D.onVnodeBeforeMount)&&He(K,S,b),E&&Vr(b,null,S,"beforeMount"),((K=D&&D.onVnodeMounted)||E||k)&&Mb(()=>{K&&He(K,S,b),k&&O.enter(y),E&&Vr(b,null,S,"mounted")},w)}return y.nextSibling},d=(y,b,S,w,T,C,x)=>{x=x||!!b.dynamicChildren;const D=b.children,A=D.length;for(let M=0;M<A;M++){const E=x?D[M]:D[M]=ze(D[M]),O=E.type===kn;y?(O&&!x&&M+1<A&&ze(D[M+1]).type===kn&&(l(i(y.data.slice(E.children.length)),S,a(y)),y.data=E.children),y=c(y,E,w,T,C,x)):O&&!E.children?l(E.el=i(""),S):(ul(S,1)||na(),r(null,E,S,null,w,T,ll(S),C))}return y},v=(y,b,S,w,T,C)=>{const{slotScopeIds:x}=b;x&&(T=T?T.concat(x):x);const D=o(y),A=d(a(y),b,D,S,w,T,C);return A&&Da(A)&&A.data==="]"?a(b.anchor=A):(na(),l(b.anchor=u("]"),D,A),A)},p=(y,b,S,w,T,C)=>{if(ul(y.parentElement,1)||na(),b.el=null,C){const A=g(y);for(;;){const M=a(y);if(M&&M!==A)s(M);else break}}const x=a(y),D=o(y);return s(y),r(null,b,D,x,S,w,ll(D),T),S&&(S.vnode.el=b.el,wf(S,b.el)),x},g=(y,b="[",S="]")=>{let w=0;for(;y;)if(y=a(y),y&&Da(y)&&(y.data===b&&w++,y.data===S)){if(w===0)return a(y);w--}return y},m=(y,b,S)=>{const w=b.parentNode;w&&w.replaceChild(y,b);let T=S;for(;T;)T.vnode.el===b&&(T.vnode.el=T.subTree.el=y),T=T.parent},_=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[f,c]}const ng="data-allow-mismatch",jx={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ul(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ng);)e=e.parentElement;const r=e&&e.getAttribute(ng);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:n.includes(jx[t])}}const Zx=of().requestIdleCallback||(e=>setTimeout(e,1)),Qx=of().cancelIdleCallback||(e=>clearTimeout(e)),Jx=(e=1e4)=>t=>{const r=Zx(t,{timeout:e});return()=>Qx(r)};function tC(e){const{top:t,left:r,bottom:n,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||n>0&&n<a)&&(r>0&&r<o||i>0&&i<o)}const eC=e=>(t,r)=>{const n=new IntersectionObserver(i=>{for(const a of i)if(a.isIntersecting){n.disconnect(),t();break}},e);return r(i=>{if(i instanceof Element){if(tC(i))return t(),n.disconnect(),!1;n.observe(i)}}),()=>n.disconnect()},rC=e=>t=>{if(e){const r=matchMedia(e);if(r.matches)t();else return r.addEventListener("change",t,{once:!0}),()=>r.removeEventListener("change",t)}},nC=(e=[])=>(t,r)=>{Vt(e)&&(e=[e]);let n=!1;const i=o=>{n||(n=!0,a(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},a=()=>{r(o=>{for(const s of e)o.removeEventListener(s,i)})};return r(o=>{for(const s of e)o.addEventListener(s,i,{once:!0})}),a};function iC(e,t){if(Da(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Da(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const On=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function aC(e){at(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:l}=e;let u=null,f,c=0;const h=()=>(c++,u=null,d()),d=()=>{let v;return u||(v=u=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((g,m)=>{l(p,()=>g(h()),()=>m(p),c+1)});throw p}).then(p=>v!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),f=p,p)))};return It({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(v,p,g){const m=a?()=>{const y=a(()=>{g()},b=>iC(v,b));y&&(p.bum||(p.bum=[])).push(y),(p.u||(p.u=[])).push(()=>!0)}:g;f?m():d().then(()=>!p.isUnmounted&&m())},get __asyncResolved(){return f},setup(){const v=ne;if(Sv(v),f)return()=>tc(f,v);const p=y=>{u=null,qi(y,v,13,!n)};if(s&&v.suspense||Ya)return d().then(y=>()=>tc(y,v)).catch(y=>(p(y),()=>n?ct(n,{error:y}):null));const g=Zt(!1),m=Zt(),_=Zt(!!i);return i&&setTimeout(()=>{_.value=!1},i),o!=null&&setTimeout(()=>{if(!g.value&&!m.value){const y=new Error(`Async component timed out after ${o}ms.`);p(y),m.value=y}},o),d().then(()=>{g.value=!0,v.parent&&Gs(v.parent.vnode)&&v.parent.update()}).catch(y=>{p(y),m.value=y}),()=>{if(g.value&&f)return tc(f,v);if(m.value&&n)return ct(n,{error:m.value});if(r&&!_.value)return ct(r)}}})}function tc(e,t){const{ref:r,props:n,children:i,ce:a}=t.vnode,o=ct(e,n,i);return o.ref=r,o.ce=a,delete t.vnode.ce,o}const Gs=e=>e.type.__isKeepAlive,oC={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=Oe(),n=r.ctx;if(!n.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};const i=new Map,a=new Set;let o=null;const s=r.suspense,{renderer:{p:l,m:u,um:f,o:{createElement:c}}}=n,h=c("div");n.activate=(_,y,b,S,w)=>{const T=_.component;u(_,y,b,0,s),l(T.vnode,_,y,b,T,s,S,_.slotScopeIds,w),re(()=>{T.isDeactivated=!1,T.a&&ka(T.a);const C=_.props&&_.props.onVnodeMounted;C&&He(C,T.parent,_)},s)},n.deactivate=_=>{const y=_.component;Tu(y.m),Tu(y.a),u(_,h,null,1,s),re(()=>{y.da&&ka(y.da);const b=_.props&&_.props.onVnodeUnmounted;b&&He(b,y.parent,_),y.isDeactivated=!0},s)};function d(_){ec(_),f(_,r,s,!0)}function v(_){i.forEach((y,b)=>{const S=Zh(y.type);S&&!_(S)&&p(b)})}function p(_){const y=i.get(_);y&&(!o||!xr(y,o))?d(y):o&&ec(o),i.delete(_),a.delete(_)}de(()=>[e.include,e.exclude],([_,y])=>{_&&v(b=>Ro(_,b)),y&&v(b=>!Ro(y,b))},{flush:"post",deep:!0});let g=null;const m=()=>{g!=null&&(xu(r.subTree.type)?re(()=>{i.set(g,fl(r.subTree))},r.subTree.suspense):i.set(g,fl(r.subTree)))};return ji(m),yf(m),_f(()=>{i.forEach(_=>{const{subTree:y,suspense:b}=r,S=fl(y);if(_.type===S.type&&_.key===S.key){ec(S);const w=S.component.da;w&&re(w,b);return}d(_)})}),()=>{if(g=null,!t.default)return o=null;const _=t.default(),y=_[0];if(_.length>1)return o=null,_;if(!cn(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let b=fl(y);if(b.type===Qt)return o=null,b;const S=b.type,w=Zh(On(b)?b.type.__asyncResolved||{}:S),{include:T,exclude:C,max:x}=e;if(T&&(!w||!Ro(T,w))||C&&w&&Ro(C,w))return b.shapeFlag&=-257,o=b,y;const D=b.key==null?S:b.key,A=i.get(D);return b.el&&(b=Ir(b),y.shapeFlag&128&&(y.ssContent=b)),g=D,A?(b.el=A.el,b.component=A.component,b.transition&&fn(b,b.transition),b.shapeFlag|=512,a.delete(D),a.add(D)):(a.add(D),x&&a.size>parseInt(x,10)&&p(a.values().next().value)),b.shapeFlag|=256,o=b,xu(y.type)?y:b}}},sC=oC;function Ro(e,t){return Z(e)?e.some(r=>Ro(r,t)):Vt(e)?e.split(",").includes(t):BT(e)?(e.lastIndex=0,e.test(t)):!1}function Z0(e,t){J0(e,"a",t)}function Q0(e,t){J0(e,"da",t)}function J0(e,t,r=ne){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(mf(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Gs(i.parent.vnode)&&lC(n,t,r,i),i=i.parent}}function lC(e,t,r,n){const i=mf(t,e,n,!0);to(()=>{sv(n[t],i)},r)}function ec(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fl(e){return e.shapeFlag&128?e.ssContent:e}function mf(e,t,r=ne,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{sn();const s=Hi(r),l=mr(t,r,e,o);return s(),ln(),l});return n?i.unshift(a):i.push(a),a}}const dn=e=>(t,r=ne)=>{(!Ya||e==="sp")&&mf(e,(...n)=>t(...n),r)},tb=dn("bm"),ji=dn("m"),Tv=dn("bu"),yf=dn("u"),_f=dn("bum"),to=dn("um"),eb=dn("sp"),rb=dn("rtg"),nb=dn("rtc");function ib(e,t=ne){mf("ec",e,t)}const xv="components",uC="directives";function fC(e,t){return Cv(xv,e,!0,t)||e}const ab=Symbol.for("v-ndc");function cC(e){return Vt(e)?Cv(xv,e,!1)||e:e||ab}function hC(e){return Cv(uC,e)}function Cv(e,t,r=!0,n=!1){const i=ie||ne;if(i){const a=i.type;if(e===xv){const s=Zh(a,!1);if(s&&(s===t||s===he(t)||s===Vs(he(t))))return a}const o=ig(i[e]||a[e],t)||ig(i.appContext[e],t);return!o&&n?a:o}}function ig(e,t){return e&&(e[t]||e[he(t)]||e[Vs(he(t))])}function Dv(e,t,r,n){let i;const a=r&&r[n],o=Z(e);if(o||Vt(e)){const s=o&&Rn(e);let l=!1,u=!1;s&&(l=!rr(e),u=un(e),e=uf(e)),i=new Array(e.length);for(let f=0,c=e.length;f<c;f++)i[f]=t(l?u?yu(ce(e[f])):ce(e[f]):e[f],f,void 0,a&&a[f])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,a&&a[s])}else if(Lt(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,a&&a[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const f=s[l];i[l]=t(e[f],f,l,a&&a[l])}}else i=[];return r&&(r[n]=i),i}function dC(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(Z(n))for(let i=0;i<n.length;i++)e[n[i].name]=n[i].fn;else n&&(e[n.name]=n.key?(...i)=>{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return e}function Te(e,t,r={},n,i){if(ie.ce||ie.parent&&On(ie.parent)&&ie.parent.ce)return t!=="default"&&(r.name=t),dt(),Wt(te,null,[ct("slot",r,n&&n())],64);let a=e[t];a&&a._c&&(a._d=!1),dt();const o=a&&Iv(a(r)),s=r.key||o&&o.key,l=Wt(te,{key:(s&&!Dr(s)?s:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function Iv(e){return e.some(t=>cn(t)?!(t.type===Qt||t.type===te&&!Iv(t.children)):!0)?e:null}function vC(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Uo(n)]=e[n];return r}const Hh=e=>e?kb(e)?Us(e):Hh(e.parent):null,qo=Ot(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Hh(e.parent),$root:e=>Hh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Av(e),$forceUpdate:e=>e.f||(e.f=()=>{mv(e.update)}),$nextTick:e=>e.n||(e.n=Ki.bind(e.proxy)),$watch:e=>WC.bind(e)}),rc=(e,t)=>e!==mt&&!e.__isScriptSetup&&xt(e,t),zh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(rc(n,t))return o[t]=1,n[t];if(i!==mt&&xt(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&xt(u,t))return o[t]=3,a[t];if(r!==mt&&xt(r,t))return o[t]=4,r[t];Gh&&(o[t]=0)}}const f=qo[t];let c,h;if(f)return t==="$attrs"&&be(e.attrs,"get",""),f(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(r!==mt&&xt(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,xt(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return rc(i,t)?(i[t]=r,!0):n!==mt&&xt(n,t)?(n[t]=r,!0):xt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==mt&&xt(e,o)||rc(t,o)||(s=a[0])&&xt(s,o)||xt(n,o)||xt(qo,o)||xt(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:xt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},pC=Ot({},zh,{get(e,t){if(t!==Symbol.unscopables)return zh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!GT(t)}});function gC(){return null}function mC(){return null}function yC(e){}function _C(e){}function bC(){return null}function SC(){}function wC(e,t){return null}function TC(){return ob().slots}function xC(){return ob().attrs}function ob(){const e=Oe();return e.setupContext||(e.setupContext=Fb(e))}function ps(e){return Z(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function CC(e,t){const r=ps(e);for(const n in t){if(n.startsWith("__skip"))continue;let i=r[n];i?Z(i)||at(i)?i=r[n]={type:i,default:t[n]}:i.default=t[n]:i===null&&(i=r[n]={default:t[n]}),i&&t[`__skip_${n}`]&&(i.skipFactory=!0)}return r}function bf(e,t){return!e||!t?e||t:Z(e)&&Z(t)?e.concat(t):Ot({},ps(e),ps(t))}function DC(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function IC(e){const t=Oe();let r=e();return qh(),lv(r)&&(r=r.catch(n=>{throw Hi(t),n})),[r,()=>Hi(t)]}let Gh=!0;function AC(e){const t=Av(e),r=e.proxy,n=e.ctx;Gh=!1,t.beforeCreate&&ag(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:d,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:_,destroyed:y,unmounted:b,render:S,renderTracked:w,renderTriggered:T,errorCaptured:C,serverPrefetch:x,expose:D,inheritAttrs:A,components:M,directives:E,filters:O}=t;if(u&&MC(u,n,null),o)for(const K in o){const $=o[K];at($)&&(n[K]=$.bind(r))}if(i){const K=i.call(r,r);Lt(K)&&(e.data=cf(K))}if(Gh=!0,a)for(const K in a){const $=a[K],ot=at($)?$.bind(r,r):at($.get)?$.get.bind(r,r):vr,kt=!at($)&&at($.set)?$.set.bind(r):vr,zt=Rt({get:ot,set:kt});Object.defineProperty(n,K,{enumerable:!0,configurable:!0,get:()=>zt.value,set:vt=>zt.value=vt})}if(s)for(const K in s)sb(s[K],n,r,K);if(l){const K=at(l)?l.call(r):l;Reflect.ownKeys(K).forEach($=>{Mv($,K[$])})}f&&ag(f,e,"c");function k(K,$){Z($)?$.forEach(ot=>K(ot.bind(r))):$&&K($.bind(r))}if(k(tb,c),k(ji,h),k(Tv,d),k(yf,v),k(Z0,p),k(Q0,g),k(ib,C),k(nb,w),k(rb,T),k(_f,_),k(to,b),k(eb,x),Z(D))if(D.length){const K=e.exposed||(e.exposed={});D.forEach($=>{Object.defineProperty(K,$,{get:()=>r[$],set:ot=>r[$]=ot})})}else e.exposed||(e.exposed={});S&&e.render===vr&&(e.render=S),A!=null&&(e.inheritAttrs=A),M&&(e.components=M),E&&(e.directives=E),x&&Sv(e)}function MC(e,t,r=vr){Z(e)&&(e=$h(e));for(const n in e){const i=e[n];let a;Lt(i)?"default"in i?a=Va(i.from||n,i.default,!0):a=Va(i.from||n):a=Va(i),Xt(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function ag(e,t,r){mr(Z(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function sb(e,t,r,n){let i=n.includes(".")?Cb(r,n):()=>r[n];if(Vt(e)){const a=t[e];at(a)&&de(i,a)}else if(at(e))de(i,e.bind(r));else if(Lt(e))if(Z(e))e.forEach(a=>sb(a,t,r,n));else{const a=at(e.handler)?e.handler.bind(r):t[e.handler];at(a)&&de(i,a,e)}}function Av(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>wu(l,u,o,!0)),wu(l,t,o)),Lt(t)&&a.set(t,l),l}function wu(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&wu(e,a,r,!0),i&&i.forEach(o=>wu(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=LC[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const LC={data:og,props:sg,emits:sg,methods:Oo,computed:Oo,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:Oo,directives:Oo,watch:EC,provide:og,inject:PC};function og(e,t){return t?e?function(){return Ot(at(e)?e.call(this,this):e,at(t)?t.call(this,this):t)}:t:e}function PC(e,t){return Oo($h(e),$h(t))}function $h(e){if(Z(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function De(e,t){return e?[...new Set([].concat(e,t))]:t}function Oo(e,t){return e?Ot(Object.create(null),e,t):t}function sg(e,t){return e?Z(e)&&Z(t)?[...new Set([...e,...t])]:Ot(Object.create(null),ps(e),ps(t??{})):t}function EC(e,t){if(!e)return t;if(!t)return e;const r=Ot(Object.create(null),e);for(const n in t)r[n]=De(e[n],t[n]);return r}function lb(){return{app:null,config:{isNativeTag:kT,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let RC=0;function OC(e,t){return function(n,i=null){at(n)||(n=Ot({},n)),i!=null&&!Lt(i)&&(i=null);const a=lb(),o=new WeakSet,s=[];let l=!1;const u=a.app={_uid:RC++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:Hb,get config(){return a.config},set config(f){},use(f,...c){return o.has(f)||(f&&at(f.install)?(o.add(f),f.install(u,...c)):at(f)&&(o.add(f),f(u,...c))),u},mixin(f){return a.mixins.includes(f)||a.mixins.push(f),u},component(f,c){return c?(a.components[f]=c,u):a.components[f]},directive(f,c){return c?(a.directives[f]=c,u):a.directives[f]},mount(f,c,h){if(!l){const d=u._ceVNode||ct(n,i);return d.appContext=a,h===!0?h="svg":h===!1&&(h=void 0),c&&t?t(d,f):e(d,f,h),l=!0,u._container=f,f.__vue_app__=u,Us(d.component)}},onUnmount(f){s.push(f)},unmount(){l&&(mr(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(f,c){return a.provides[f]=c,u},runWithContext(f){const c=Li;Li=u;try{return f()}finally{Li=c}}};return u}}let Li=null;function Mv(e,t){if(ne){let r=ne.provides;const n=ne.parent&&ne.parent.provides;n===r&&(r=ne.provides=Object.create(n)),r[e]=t}}function Va(e,t,r=!1){const n=ne||ie;if(n||Li){let i=Li?Li._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return r&&at(t)?t.call(n&&n.proxy):t}}function kC(){return!!(ne||ie||Li)}const ub={},fb=()=>Object.create(ub),cb=e=>Object.getPrototypeOf(e)===ub;function NC(e,t,r,n=!1){const i={},a=fb();e.propsDefaults=Object.create(null),hb(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:P0(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function BC(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=_t(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let c=0;c<f.length;c++){let h=f[c];if(Sf(e.emitsOptions,h))continue;const d=t[h];if(l)if(xt(a,h))d!==a[h]&&(a[h]=d,u=!0);else{const v=he(h);i[v]=Uh(l,s,v,d,e,!1)}else d!==a[h]&&(a[h]=d,u=!0)}}}else{hb(e,t,i,a)&&(u=!0);let f;for(const c in s)(!t||!xt(t,c)&&((f=We(c))===c||!xt(t,f)))&&(l?r&&(r[c]!==void 0||r[f]!==void 0)&&(i[c]=Uh(l,s,c,void 0,e,!0)):delete i[c]);if(a!==s)for(const c in a)(!t||!xt(t,c))&&(delete a[c],u=!0)}u&&Jr(e.attrs,"set","")}function hb(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(Oa(l))continue;const u=t[l];let f;i&&xt(i,f=he(l))?!a||!a.includes(f)?r[f]=u:(s||(s={}))[f]=u:Sf(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=_t(r),u=s||mt;for(let f=0;f<a.length;f++){const c=a[f];r[c]=Uh(i,l,c,u[c],e,!xt(u,c))}}return o}function Uh(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=xt(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&at(l)){const{propsDefaults:u}=i;if(r in u)n=u[r];else{const f=Hi(i);n=u[r]=l.call(null,t),f()}}else n=l;i.ce&&i.ce._setProp(r,n)}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===We(r))&&(n=!0))}return n}const FC=new WeakMap;function db(e,t,r=!1){const n=r?FC:t.propsCache,i=n.get(e);if(i)return i;const a=e.props,o={},s=[];let l=!1;if(!at(e)){const f=c=>{l=!0;const[h,d]=db(c,t,!0);Ot(o,h),d&&s.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!l)return Lt(e)&&n.set(e,Ea),Ea;if(Z(a))for(let f=0;f<a.length;f++){const c=he(a[f]);lg(c)&&(o[c]=mt)}else if(a)for(const f in a){const c=he(f);if(lg(c)){const h=a[f],d=o[c]=Z(h)||at(h)?{type:h}:Ot({},h),v=d.type;let p=!1,g=!0;if(Z(v))for(let m=0;m<v.length;++m){const _=v[m],y=at(_)&&_.name;if(y==="Boolean"){p=!0;break}else y==="String"&&(g=!1)}else p=at(v)&&v.name==="Boolean";d[0]=p,d[1]=g,(p||xt(d,"default"))&&s.push(c)}}const u=[o,s];return Lt(e)&&n.set(e,u),u}function lg(e){return e[0]!=="$"&&!Oa(e)}const Lv=e=>e[0]==="_"||e==="$stable",Pv=e=>Z(e)?e.map(ze):[ze(e)],VC=(e,t,r)=>{if(t._n)return t;const n=$t((...i)=>Pv(t(...i)),r);return n._c=!1,n},vb=(e,t,r)=>{const n=e._ctx;for(const i in e){if(Lv(i))continue;const a=e[i];if(at(a))t[i]=VC(i,a,n);else if(a!=null){const o=Pv(a);t[i]=()=>o}}},pb=(e,t)=>{const r=Pv(t);e.slots.default=()=>r},gb=(e,t,r)=>{for(const n in t)(r||!Lv(n))&&(e[n]=t[n])},HC=(e,t,r)=>{const n=e.slots=fb();if(e.vnode.shapeFlag&32){const i=t.__;i&&kh(n,"__",i,!0);const a=t._;a?(gb(n,t,r),r&&kh(n,"_",a,!0)):vb(t,n)}else t&&pb(e,t)},zC=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=mt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:gb(i,t,r):(a=!t.$stable,vb(t,i)),o=t}else t&&(pb(e,t),o={default:1});if(a)for(const s in i)!Lv(s)&&o[s]==null&&delete i[s]},re=Mb;function mb(e){return _b(e)}function yb(e){return _b(e,Kx)}function _b(e,t){const r=of();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:d=vr,insertStaticContent:v}=e,p=(I,L,R,B=null,N=null,F=null,Y=void 0,U=null,W=!!L.dynamicChildren)=>{if(I===L)return;I&&!xr(I,L)&&(B=Ne(I),vt(I,N,F,!0),I=null),L.patchFlag===-2&&(W=!1,L.dynamicChildren=null);const{type:H,ref:nt,shapeFlag:X}=L;switch(H){case kn:g(I,L,R,B);break;case Qt:m(I,L,R,B);break;case Pi:I==null&&_(L,R,B,Y);break;case te:M(I,L,R,B,N,F,Y,U,W);break;default:X&1?S(I,L,R,B,N,F,Y,U,W):X&6?E(I,L,R,B,N,F,Y,U,W):(X&64||X&128)&&H.process(I,L,R,B,N,F,Y,U,W,ut)}nt!=null&&N?Fa(nt,I&&I.ref,F,L||I,!L):nt==null&&I&&I.ref!=null&&Fa(I.ref,null,F,I,!0)},g=(I,L,R,B)=>{if(I==null)n(L.el=s(L.children),R,B);else{const N=L.el=I.el;L.children!==I.children&&u(N,L.children)}},m=(I,L,R,B)=>{I==null?n(L.el=l(L.children||""),R,B):L.el=I.el},_=(I,L,R,B)=>{[I.el,I.anchor]=v(I.children,L,R,B,I.el,I.anchor)},y=({el:I,anchor:L},R,B)=>{let N;for(;I&&I!==L;)N=h(I),n(I,R,B),I=N;n(L,R,B)},b=({el:I,anchor:L})=>{let R;for(;I&&I!==L;)R=h(I),i(I),I=R;i(L)},S=(I,L,R,B,N,F,Y,U,W)=>{L.type==="svg"?Y="svg":L.type==="math"&&(Y="mathml"),I==null?w(L,R,B,N,F,Y,U,W):x(I,L,N,F,Y,U,W)},w=(I,L,R,B,N,F,Y,U)=>{let W,H;const{props:nt,shapeFlag:X,transition:J,dirs:st}=I;if(W=I.el=o(I.type,F,nt&&nt.is,nt),X&8?f(W,I.children):X&16&&C(I.children,W,null,B,N,nc(I,F),Y,U),st&&Vr(I,null,B,"created"),T(W,I,I.scopeId,Y,B),nt){for(const Nt in nt)Nt!=="value"&&!Oa(Nt)&&a(W,Nt,null,nt[Nt],F,B);"value"in nt&&a(W,"value",null,nt.value,F),(H=nt.onVnodeBeforeMount)&&He(H,B,I)}st&&Vr(I,null,B,"beforeMount");const yt=bb(N,J);yt&&J.beforeEnter(W),n(W,L,R),((H=nt&&nt.onVnodeMounted)||yt||st)&&re(()=>{H&&He(H,B,I),yt&&J.enter(W),st&&Vr(I,null,B,"mounted")},N)},T=(I,L,R,B,N)=>{if(R&&d(I,R),B)for(let F=0;F<B.length;F++)d(I,B[F]);if(N){let F=N.subTree;if(L===F||xu(F.type)&&(F.ssContent===L||F.ssFallback===L)){const Y=N.vnode;T(I,Y,Y.scopeId,Y.slotScopeIds,N.parent)}}},C=(I,L,R,B,N,F,Y,U,W=0)=>{for(let H=W;H<I.length;H++){const nt=I[H]=U?Ln(I[H]):ze(I[H]);p(null,nt,L,R,B,N,F,Y,U)}},x=(I,L,R,B,N,F,Y)=>{const U=L.el=I.el;let{patchFlag:W,dynamicChildren:H,dirs:nt}=L;W|=I.patchFlag&16;const X=I.props||mt,J=L.props||mt;let st;if(R&&Kn(R,!1),(st=J.onVnodeBeforeUpdate)&&He(st,R,L,I),nt&&Vr(L,I,R,"beforeUpdate"),R&&Kn(R,!0),(X.innerHTML&&J.innerHTML==null||X.textContent&&J.textContent==null)&&f(U,""),H?D(I.dynamicChildren,H,U,R,B,nc(L,N),F):Y||$(I,L,U,null,R,B,nc(L,N),F,!1),W>0){if(W&16)A(U,X,J,R,N);else if(W&2&&X.class!==J.class&&a(U,"class",null,J.class,N),W&4&&a(U,"style",X.style,J.style,N),W&8){const yt=L.dynamicProps;for(let Nt=0;Nt<yt.length;Nt++){const At=yt[Nt],Be=X[At],ve=J[At];(ve!==Be||At==="value")&&a(U,At,Be,ve,N,R)}}W&1&&I.children!==L.children&&f(U,L.children)}else!Y&&H==null&&A(U,X,J,R,N);((st=J.onVnodeUpdated)||nt)&&re(()=>{st&&He(st,R,L,I),nt&&Vr(L,I,R,"updated")},B)},D=(I,L,R,B,N,F,Y)=>{for(let U=0;U<L.length;U++){const W=I[U],H=L[U],nt=W.el&&(W.type===te||!xr(W,H)||W.shapeFlag&198)?c(W.el):R;p(W,H,nt,null,B,N,F,Y,!0)}},A=(I,L,R,B,N)=>{if(L!==R){if(L!==mt)for(const F in L)!Oa(F)&&!(F in R)&&a(I,F,L[F],null,N,B);for(const F in R){if(Oa(F))continue;const Y=R[F],U=L[F];Y!==U&&F!=="value"&&a(I,F,U,Y,N,B)}"value"in R&&a(I,"value",L.value,R.value,N)}},M=(I,L,R,B,N,F,Y,U,W)=>{const H=L.el=I?I.el:s(""),nt=L.anchor=I?I.anchor:s("");let{patchFlag:X,dynamicChildren:J,slotScopeIds:st}=L;st&&(U=U?U.concat(st):st),I==null?(n(H,R,B),n(nt,R,B),C(L.children||[],R,nt,N,F,Y,U,W)):X>0&&X&64&&J&&I.dynamicChildren?(D(I.dynamicChildren,J,R,N,F,Y,U),(L.key!=null||N&&L===N.subTree)&&Ev(I,L,!0)):$(I,L,R,nt,N,F,Y,U,W)},E=(I,L,R,B,N,F,Y,U,W)=>{L.slotScopeIds=U,I==null?L.shapeFlag&512?N.ctx.activate(L,R,B,Y,W):O(L,R,B,N,F,Y,W):V(I,L,W)},O=(I,L,R,B,N,F,Y)=>{const U=I.component=Ob(I,B,N);if(Gs(I)&&(U.ctx.renderer=ut),Nb(U,!1,Y),U.asyncDep){if(N&&N.registerDep(U,k,Y),!I.el){const W=U.subTree=ct(Qt);m(null,W,L,R)}}else k(U,I,L,R,N,F,Y)},V=(I,L,R)=>{const B=L.component=I.component;if(jC(I,L,R))if(B.asyncDep&&!B.asyncResolved){K(B,L,R);return}else B.next=L,B.update();else L.el=I.el,B.vnode=L},k=(I,L,R,B,N,F,Y)=>{const U=()=>{if(I.isMounted){let{next:X,bu:J,u:st,parent:yt,vnode:Nt}=I;{const Ze=Sb(I);if(Ze){X&&(X.el=Nt.el,K(I,X,Y)),Ze.asyncDep.then(()=>{I.isUnmounted||U()});return}}let At=X,Be;Kn(I,!1),X?(X.el=Nt.el,K(I,X,Y)):X=Nt,J&&ka(J),(Be=X.props&&X.props.onVnodeBeforeUpdate)&&He(Be,yt,X,Nt),Kn(I,!0);const ve=Zl(I),_r=I.subTree;I.subTree=ve,p(_r,ve,c(_r.el),Ne(_r),I,N,F),X.el=ve.el,At===null&&wf(I,ve.el),st&&re(st,N),(Be=X.props&&X.props.onVnodeUpdated)&&re(()=>He(Be,yt,X,Nt),N)}else{let X;const{el:J,props:st}=L,{bm:yt,m:Nt,parent:At,root:Be,type:ve}=I,_r=On(L);if(Kn(I,!1),yt&&ka(yt),!_r&&(X=st&&st.onVnodeBeforeMount)&&He(X,At,L),Kn(I,!0),J&&Q){const Ze=()=>{I.subTree=Zl(I),Q(J,I.subTree,I,N,null)};_r&&ve.__asyncHydrate?ve.__asyncHydrate(J,I,Ze):Ze()}else{Be.ce&&Be.ce._def.shadowRoot!==!1&&Be.ce._injectChildStyle(ve);const Ze=I.subTree=Zl(I);p(null,Ze,R,B,I,N,F),L.el=Ze.el}if(Nt&&re(Nt,N),!_r&&(X=st&&st.onVnodeMounted)){const Ze=L;re(()=>He(X,At,Ze),N)}(L.shapeFlag&256||At&&On(At.vnode)&&At.vnode.shapeFlag&256)&&I.a&&re(I.a,N),I.isMounted=!0,L=R=B=null}};I.scope.on();const W=I.effect=new us(U);I.scope.off();const H=I.update=W.run.bind(W),nt=I.job=W.runIfDirty.bind(W);nt.i=I,nt.id=I.uid,W.scheduler=()=>mv(nt),Kn(I,!0),H()},K=(I,L,R)=>{L.component=I;const B=I.vnode.props;I.vnode=L,I.next=null,BC(I,L.props,B,R),zC(I,L.children,R),sn(),Zp(I),ln()},$=(I,L,R,B,N,F,Y,U,W=!1)=>{const H=I&&I.children,nt=I?I.shapeFlag:0,X=L.children,{patchFlag:J,shapeFlag:st}=L;if(J>0){if(J&128){kt(H,X,R,B,N,F,Y,U,W);return}else if(J&256){ot(H,X,R,B,N,F,Y,U,W);return}}st&8?(nt&16&&Ce(H,N,F),X!==H&&f(R,X)):nt&16?st&16?kt(H,X,R,B,N,F,Y,U,W):Ce(H,N,F,!0):(nt&8&&f(R,""),st&16&&C(X,R,B,N,F,Y,U,W))},ot=(I,L,R,B,N,F,Y,U,W)=>{I=I||Ea,L=L||Ea;const H=I.length,nt=L.length,X=Math.min(H,nt);let J;for(J=0;J<X;J++){const st=L[J]=W?Ln(L[J]):ze(L[J]);p(I[J],st,R,null,N,F,Y,U,W)}H>nt?Ce(I,N,F,!0,!1,X):C(L,R,B,N,F,Y,U,W,X)},kt=(I,L,R,B,N,F,Y,U,W)=>{let H=0;const nt=L.length;let X=I.length-1,J=nt-1;for(;H<=X&&H<=J;){const st=I[H],yt=L[H]=W?Ln(L[H]):ze(L[H]);if(xr(st,yt))p(st,yt,R,null,N,F,Y,U,W);else break;H++}for(;H<=X&&H<=J;){const st=I[X],yt=L[J]=W?Ln(L[J]):ze(L[J]);if(xr(st,yt))p(st,yt,R,null,N,F,Y,U,W);else break;X--,J--}if(H>X){if(H<=J){const st=J+1,yt=st<nt?L[st].el:B;for(;H<=J;)p(null,L[H]=W?Ln(L[H]):ze(L[H]),R,yt,N,F,Y,U,W),H++}}else if(H>J)for(;H<=X;)vt(I[H],N,F,!0),H++;else{const st=H,yt=H,Nt=new Map;for(H=yt;H<=J;H++){const Qe=L[H]=W?Ln(L[H]):ze(L[H]);Qe.key!=null&&Nt.set(Qe.key,H)}let At,Be=0;const ve=J-yt+1;let _r=!1,Ze=0;const oo=new Array(ve);for(H=0;H<ve;H++)oo[H]=0;for(H=st;H<=X;H++){const Qe=I[H];if(Be>=ve){vt(Qe,N,F,!0);continue}let Er;if(Qe.key!=null)Er=Nt.get(Qe.key);else for(At=yt;At<=J;At++)if(oo[At-yt]===0&&xr(Qe,L[At])){Er=At;break}Er===void 0?vt(Qe,N,F,!0):(oo[Er-yt]=H+1,Er>=Ze?Ze=Er:_r=!0,p(Qe,L[Er],R,null,N,F,Y,U,W),Be++)}const Wp=_r?GC(oo):Ea;for(At=Wp.length-1,H=ve-1;H>=0;H--){const Qe=yt+H,Er=L[Qe],Yp=Qe+1<nt?L[Qe+1].el:B;oo[H]===0?p(null,Er,R,Yp,N,F,Y,U,W):_r&&(At<0||H!==Wp[At]?zt(Er,R,Yp,2):At--)}}},zt=(I,L,R,B,N=null)=>{const{el:F,type:Y,transition:U,children:W,shapeFlag:H}=I;if(H&6){zt(I.component.subTree,L,R,B);return}if(H&128){I.suspense.move(L,R,B);return}if(H&64){Y.move(I,L,R,ut);return}if(Y===te){n(F,L,R);for(let X=0;X<W.length;X++)zt(W[X],L,R,B);n(I.anchor,L,R);return}if(Y===Pi){y(I,L,R);return}if(B!==2&&H&1&&U)if(B===0)U.beforeEnter(F),n(F,L,R),re(()=>U.enter(F),N);else{const{leave:X,delayLeave:J,afterLeave:st}=U,yt=()=>{I.ctx.isUnmounted?i(F):n(F,L,R)},Nt=()=>{X(F,()=>{yt(),st&&st()})};J?J(F,yt,Nt):Nt()}else n(F,L,R)},vt=(I,L,R,B=!1,N=!1)=>{const{type:F,props:Y,ref:U,children:W,dynamicChildren:H,shapeFlag:nt,patchFlag:X,dirs:J,cacheIndex:st}=I;if(X===-2&&(N=!1),U!=null&&(sn(),Fa(U,null,R,I,!0),ln()),st!=null&&(L.renderCache[st]=void 0),nt&256){L.ctx.deactivate(I);return}const yt=nt&1&&J,Nt=!On(I);let At;if(Nt&&(At=Y&&Y.onVnodeBeforeUnmount)&&He(At,L,I),nt&6)ke(I.component,R,B);else{if(nt&128){I.suspense.unmount(R,B);return}yt&&Vr(I,null,L,"beforeUnmount"),nt&64?I.type.remove(I,L,R,ut,B):H&&!H.hasOnce&&(F!==te||X>0&&X&64)?Ce(H,L,R,!1,!0):(F===te&&X&384||!N&&nt&16)&&Ce(W,L,R),B&&se(I)}(Nt&&(At=Y&&Y.onVnodeUnmounted)||yt)&&re(()=>{At&&He(At,L,I),yt&&Vr(I,null,L,"unmounted")},R)},se=I=>{const{type:L,el:R,anchor:B,transition:N}=I;if(L===te){fe(R,B);return}if(L===Pi){b(I);return}const F=()=>{i(R),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(I.shapeFlag&1&&N&&!N.persisted){const{leave:Y,delayLeave:U}=N,W=()=>Y(R,F);U?U(I.el,F,W):W()}else F()},fe=(I,L)=>{let R;for(;I!==L;)R=h(I),i(I),I=R;i(L)},ke=(I,L,R)=>{const{bum:B,scope:N,job:F,subTree:Y,um:U,m:W,a:H,parent:nt,slots:{__:X}}=I;Tu(W),Tu(H),B&&ka(B),nt&&Z(X)&&X.forEach(J=>{nt.renderCache[J]=void 0}),N.stop(),F&&(F.flags|=8,vt(Y,I,L,R)),U&&re(U,L),re(()=>{I.isUnmounted=!0},L),L&&L.pendingBranch&&!L.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===L.pendingId&&(L.deps--,L.deps===0&&L.resolve())},Ce=(I,L,R,B=!1,N=!1,F=0)=>{for(let Y=F;Y<I.length;Y++)vt(I[Y],L,R,B,N)},Ne=I=>{if(I.shapeFlag&6)return Ne(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const L=h(I.anchor||I.el),R=L&&L[G0];return R?h(R):L};let pt=!1;const et=(I,L,R)=>{I==null?L._vnode&&vt(L._vnode,null,null,!0):p(L._vnode||null,I,L,null,null,null,R),L._vnode=I,pt||(pt=!0,Zp(),Su(),pt=!1)},ut={p,um:vt,m:zt,r:se,mt:O,mc:C,pc:$,pbc:D,n:Ne,o:e};let q,Q;return t&&([q,Q]=t(ut)),{render:et,hydrate:q,createApp:OC(et,q)}}function nc({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Kn({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function bb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ev(e,t,r=!1){const n=e.children,i=t.children;if(Z(n)&&Z(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=Ln(i[a]),s.el=o.el),!r&&s.patchFlag!==-2&&Ev(o,s)),s.type===kn&&(s.el=o.el),s.type===Qt&&!s.el&&(s.el=o.el)}}function GC(e){const t=e.slice(),r=[0];let n,i,a,o,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(i=r[r.length-1],e[i]<u){t[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,e[r[s]]<u?a=s+1:o=s;u<e[r[a]]&&(a>0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}function Sb(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Sb(t)}function Tu(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const wb=Symbol.for("v-scx"),Tb=()=>Va(wb);function $C(e,t){return $s(e,null,t)}function UC(e,t){return $s(e,null,{flush:"post"})}function xb(e,t){return $s(e,null,{flush:"sync"})}function de(e,t,r){return $s(e,t,r)}function $s(e,t,r=mt){const{immediate:n,deep:i,flush:a,once:o}=r,s=Ot({},r),l=t&&n||!t&&a!=="post";let u;if(Ya){if(a==="sync"){const d=Tb();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=vr,d.resume=vr,d.pause=vr,d}}const f=ne;s.call=(d,v,p)=>mr(d,f,v,p);let c=!1;a==="post"?s.scheduler=d=>{re(d,f&&f.suspense)}:a!=="sync"&&(c=!0,s.scheduler=(d,v)=>{v?d():mv(d)}),s.augmentJob=d=>{t&&(d.flags|=4),c&&(d.flags|=2,f&&(d.id=f.uid,d.i=f))};const h=Rx(e,t,s);return Ya&&(u?u.push(h):l&&h()),h}function WC(e,t,r){const n=this.proxy,i=Vt(e)?e.includes(".")?Cb(n,e):()=>n[e]:e.bind(n,n);let a;at(t)?a=t:(a=t.handler,r=t);const o=Hi(this),s=$s(i,a.bind(n),r);return o(),s}function Cb(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function Zi(e,t,r=mt){const n=Oe(),i=he(t),a=We(t),o=Db(e,i),s=O0((l,u)=>{let f,c=mt,h;return xb(()=>{const d=e[i];Me(f,d)&&(f=d,u())}),{get(){return l(),r.get?r.get(f):f},set(d){const v=r.set?r.set(d):d;if(!Me(v,f)&&!(c!==mt&&Me(d,c)))return;const p=n.vnode.props;p&&(t in p||i in p||a in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${a}`in p)||(f=d,u()),n.emit(`update:${t}`,v),Me(d,v)&&Me(d,c)&&!Me(v,h)&&u(),c=d,h=v}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||mt:s,done:!1}:{done:!0}}}},s}const Db=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${he(t)}Modifiers`]||e[`${We(t)}Modifiers`];function YC(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||mt;let i=r;const a=t.startsWith("update:"),o=a&&Db(n,t.slice(7));o&&(o.trim&&(i=r.map(f=>Vt(f)?f.trim():f)),o.number&&(i=r.map(pu)));let s,l=n[s=Uo(t)]||n[s=Uo(he(t))];!l&&a&&(l=n[s=Uo(We(t))]),l&&mr(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,mr(u,e,6,i)}}function Ib(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!at(e)){const l=u=>{const f=Ib(u,t,!0);f&&(s=!0,Ot(o,f))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Lt(e)&&n.set(e,null),null):(Z(a)?a.forEach(l=>o[l]=null):Ot(o,a),Lt(e)&&n.set(e,o),o)}function Sf(e,t){return!e||!Fs(t)?!1:(t=t.slice(2).replace(/Once$/,""),xt(e,t[0].toLowerCase()+t.slice(1))||xt(e,We(t))||xt(e,t))}function Zl(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:d,ctx:v,inheritAttrs:p}=e,g=vs(e);let m,_;try{if(r.shapeFlag&4){const b=i||n,S=b;m=ze(u.call(S,b,f,c,d,h,v)),_=s}else{const b=t;m=ze(b.length>1?b(c,{attrs:s,slots:o,emit:l}):b(c,null)),_=t.props?s:qC(s)}}catch(b){Ko.length=0,qi(b,e,1),m=ct(Qt)}let y=m;if(_&&p!==!1){const b=Object.keys(_),{shapeFlag:S}=y;b.length&&S&7&&(a&&b.some(ov)&&(_=KC(_,a)),y=Ir(y,_,!1,!0))}return r.dirs&&(y=Ir(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&fn(y,r.transition),m=y,vs(g),m}function XC(e,t=!0){let r;for(let n=0;n<e.length;n++){const i=e[n];if(cn(i)){if(i.type!==Qt||i.children==="v-if"){if(r)return;r=i}}else return}return r}const qC=e=>{let t;for(const r in e)(r==="class"||r==="style"||Fs(r))&&((t||(t={}))[r]=e[r]);return t},KC=(e,t)=>{const r={};for(const n in e)(!ov(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function jC(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?ug(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;c<f.length;c++){const h=f[c];if(o[h]!==n[h]&&!Sf(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?ug(n,o,u):!0:!!o;return!1}function ug(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(t[a]!==e[a]&&!Sf(r,a))return!0}return!1}function wf({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const xu=e=>e.__isSuspense;let Wh=0;const ZC={name:"Suspense",__isSuspense:!0,process(e,t,r,n,i,a,o,s,l,u){if(e==null)JC(t,r,n,i,a,o,s,l,u);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}tD(e,t,r,n,i,o,s,l,u)}},hydrate:eD,normalize:rD},QC=ZC;function gs(e,t){const r=e.props&&e.props[t];at(r)&&r()}function JC(e,t,r,n,i,a,o,s,l){const{p:u,o:{createElement:f}}=l,c=f("div"),h=e.suspense=Ab(e,i,n,t,c,r,a,o,s,l);u(null,h.pendingBranch=e.ssContent,c,null,n,h,a,o),h.deps>0?(gs(e,"onPending"),gs(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,a,o),Ha(h,e.ssFallback)):h.resolve(!1,!0)}function tD(e,t,r,n,i,a,o,s,{p:l,um:u,o:{createElement:f}}){const c=t.suspense=e.suspense;c.vnode=t,t.el=e.el;const h=t.ssContent,d=t.ssFallback,{activeBranch:v,pendingBranch:p,isInFallback:g,isHydrating:m}=c;if(p)c.pendingBranch=h,xr(h,p)?(l(p,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():g&&(m||(l(v,d,r,n,i,null,a,o,s),Ha(c,d)))):(c.pendingId=Wh++,m?(c.isHydrating=!1,c.activeBranch=p):u(p,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=f("div"),g?(l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():(l(v,d,r,n,i,null,a,o,s),Ha(c,d))):v&&xr(h,v)?(l(v,h,r,n,i,c,a,o,s),c.resolve(!0)):(l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0&&c.resolve()));else if(v&&xr(h,v))l(v,h,r,n,i,c,a,o,s),Ha(c,h);else if(gs(t,"onPending"),c.pendingBranch=h,h.shapeFlag&512?c.pendingId=h.component.suspenseId:c.pendingId=Wh++,l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0)c.resolve();else{const{timeout:_,pendingId:y}=c;_>0?setTimeout(()=>{c.pendingId===y&&c.fallback(d)},_):_===0&&c.fallback(d)}}function Ab(e,t,r,n,i,a,o,s,l,u,f=!1){const{p:c,m:h,um:d,n:v,o:{parentNode:p,remove:g}}=u;let m;const _=nD(e);_&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const y=e.props?gu(e.props.timeout):void 0,b=a,S={vnode:e,parent:t,parentComponent:r,namespace:o,container:n,hiddenContainer:i,deps:0,pendingId:Wh++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(w=!1,T=!1){const{vnode:C,activeBranch:x,pendingBranch:D,pendingId:A,effects:M,parentComponent:E,container:O}=S;let V=!1;S.isHydrating?S.isHydrating=!1:w||(V=x&&D.transition&&D.transition.mode==="out-in",V&&(x.transition.afterLeave=()=>{A===S.pendingId&&(h(D,O,a===b?v(x):a,0),hs(M))}),x&&(p(x.el)===O&&(a=v(x)),d(x,E,S,!0)),V||h(D,O,a,0)),Ha(S,D),S.pendingBranch=null,S.isInFallback=!1;let k=S.parent,K=!1;for(;k;){if(k.pendingBranch){k.effects.push(...M),K=!0;break}k=k.parent}!K&&!V&&hs(M),S.effects=[],_&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!T&&t.resolve()),gs(C,"onResolve")},fallback(w){if(!S.pendingBranch)return;const{vnode:T,activeBranch:C,parentComponent:x,container:D,namespace:A}=S;gs(T,"onFallback");const M=v(C),E=()=>{S.isInFallback&&(c(null,w,D,M,x,null,A,s,l),Ha(S,w))},O=w.transition&&w.transition.mode==="out-in";O&&(C.transition.afterLeave=E),S.isInFallback=!0,d(C,x,null,!0),O||E()},move(w,T,C){S.activeBranch&&h(S.activeBranch,w,T,C),S.container=w},next(){return S.activeBranch&&v(S.activeBranch)},registerDep(w,T,C){const x=!!S.pendingBranch;x&&S.deps++;const D=w.vnode.el;w.asyncDep.catch(A=>{qi(A,w,0)}).then(A=>{if(w.isUnmounted||S.isUnmounted||S.pendingId!==w.suspenseId)return;w.asyncResolved=!0;const{vnode:M}=w;Kh(w,A,!1),D&&(M.el=D);const E=!D&&w.subTree.el;T(w,M,p(D||w.subTree.el),D?null:v(w.subTree),S,o,C),E&&g(E),wf(w,M.el),x&&--S.deps===0&&S.resolve()})},unmount(w,T){S.isUnmounted=!0,S.activeBranch&&d(S.activeBranch,r,w,T),S.pendingBranch&&d(S.pendingBranch,r,w,T)}};return S}function eD(e,t,r,n,i,a,o,s,l){const u=t.suspense=Ab(t,n,r,e.parentNode,document.createElement("div"),null,i,a,o,s,!0),f=l(e,u.pendingBranch=t.ssContent,r,u,a,o);return u.deps===0&&u.resolve(!1,!0),f}function rD(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=fg(n?r.default:r),e.ssFallback=n?fg(r.fallback):ct(Qt)}function fg(e){let t;if(at(e)){const r=Vi&&e._c;r&&(e._d=!1,dt()),e=e(),r&&(e._d=!0,t=Se,Lb())}return Z(e)&&(e=XC(e)),e=ze(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Mb(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):hs(e)}function Ha(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;r.el=i,n&&n.subTree===r&&(n.vnode.el=i,wf(n,i))}function nD(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const te=Symbol.for("v-fgt"),kn=Symbol.for("v-txt"),Qt=Symbol.for("v-cmt"),Pi=Symbol.for("v-stc"),Ko=[];let Se=null;function dt(e=!1){Ko.push(Se=e?null:[])}function Lb(){Ko.pop(),Se=Ko[Ko.length-1]||null}let Vi=1;function Yh(e,t=!1){Vi+=e,e<0&&Se&&t&&(Se.hasOnce=!0)}function Pb(e){return e.dynamicChildren=Vi>0?Se||Ea:null,Lb(),Vi>0&&Se&&Se.push(e),e}function nr(e,t,r,n,i,a){return Pb(Gt(e,t,r,n,i,a,!0))}function Wt(e,t,r,n,i){return Pb(ct(e,t,r,n,i,!0))}function cn(e){return e?e.__v_isVNode===!0:!1}function xr(e,t){return e.type===t.type&&e.key===t.key}function iD(e){}const Eb=({key:e})=>e??null,Ql=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Vt(e)||Xt(e)||at(e)?{i:ie,r:e,k:t,f:!!r}:e:null);function Gt(e,t=null,r=null,n=0,i=null,a=e===te?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Eb(t),ref:t&&Ql(t),scopeId:pf,slotScopeIds:null,children:r,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:ie};return s?(Rv(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Vt(r)?8:16),Vi>0&&!o&&Se&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Se.push(l),l}const ct=aD;function aD(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===ab)&&(e=Qt),cn(e)){const s=Ir(e,t,!0);return r&&Rv(s,r),Vi>0&&!a&&Se&&(s.shapeFlag&6?Se[Se.indexOf(e)]=s:Se.push(s)),s.patchFlag=-2,s}if(dD(e)&&(e=e.__vccOpts),t){t=Rb(t);let{class:s,style:l}=t;s&&!Vt(s)&&(t.class=Fi(s)),Lt(l)&&(df(l)&&!Z(l)&&(l=Ot({},l)),t.style=Hs(l))}const o=Vt(e)?1:xu(e)?128:$0(e)?64:Lt(e)?4:at(e)?2:0;return Gt(e,t,r,n,i,o,a,!0)}function Rb(e){return e?df(e)||cb(e)?Ot({},e):e:null}function Ir(e,t,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?$n(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Eb(u),ref:t&&t.ref?r&&a?Z(a)?a.concat(Ql(t)):[a,Ql(t)]:Ql(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==te?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ir(e.ssContent),ssFallback:e.ssFallback&&Ir(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&fn(f,l.clone(f)),f}function Nn(e=" ",t=0){return ct(kn,null,e,t)}function oD(e,t){const r=ct(Pi,null,e);return r.staticCount=t,r}function ms(e="",t=!1){return t?(dt(),Wt(Qt,null,e)):ct(Qt,null,e)}function ze(e){return e==null||typeof e=="boolean"?ct(Qt):Z(e)?ct(te,null,e.slice()):cn(e)?Ln(e):ct(kn,null,String(e))}function Ln(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ir(e)}function Rv(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Z(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Rv(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!cb(t)?t._ctx=ie:i===3&&ie&&(ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else at(t)?(t={default:t,_ctx:ie},r=32):(t=String(t),n&64?(r=16,t=[Nn(t)]):r=8);e.children=t,e.shapeFlag|=r}function $n(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Fi([t.class,n.class]));else if(i==="style")t.style=Hs([t.style,n.style]);else if(Fs(i)){const a=t[i],o=n[i];o&&a!==o&&!(Z(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function He(e,t,r,n=null){mr(e,t,7,[r,n])}const sD=lb();let lD=0;function Ob(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||sD,a={uid:lD++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new fv(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:db(n,i),emitsOptions:Ib(n,i),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:n.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=YC.bind(null,a),e.ce&&e.ce(a),a}let ne=null;const Oe=()=>ne||ie;let Cu,Xh;{const e=of(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};Cu=t("__VUE_INSTANCE_SETTERS__",r=>ne=r),Xh=t("__VUE_SSR_SETTERS__",r=>Ya=r)}const Hi=e=>{const t=ne;return Cu(e),e.scope.on(),()=>{e.scope.off(),Cu(t)}},qh=()=>{ne&&ne.scope.off(),Cu(null)};function kb(e){return e.vnode.shapeFlag&4}let Ya=!1;function Nb(e,t=!1,r=!1){t&&Xh(t);const{props:n,children:i}=e.vnode,a=kb(e);NC(e,n,a,t),HC(e,i,r||t);const o=a?uD(e,t):void 0;return t&&Xh(!1),o}function uD(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,zh);const{setup:n}=r;if(n){sn();const i=e.setupContext=n.length>1?Fb(e):null,a=Hi(e),o=Ja(n,e,0,[e.props,i]),s=lv(o);if(ln(),a(),(s||e.sp)&&!On(e)&&Sv(e),s){if(o.then(qh,qh),t)return o.then(l=>{Kh(e,l,t)}).catch(l=>{qi(l,e,0)});e.asyncDep=o}else Kh(e,o,t)}else Bb(e,t)}function Kh(e,t,r){at(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Lt(t)&&(e.setupState=gv(t)),Bb(e,r)}let Du,jh;function fD(e){Du=e,jh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,pC))}}const cD=()=>!Du;function Bb(e,t,r){const n=e.type;if(!e.render){if(!t&&Du&&!n.render){const i=n.template||Av(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Ot(Ot({isCustomElement:a,delimiters:s},o),l);n.render=Du(i,u)}}e.render=n.render||vr,jh&&jh(e)}{const i=Hi(e);sn();try{AC(e)}finally{ln(),i()}}}const hD={get(e,t){return be(e,"get",""),e[t]}};function Fb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,hD),slots:e.slots,emit:e.emit,expose:t}}function Us(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gv(E0(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in qo)return qo[r](e)},has(t,r){return r in t||r in qo}})):e.proxy}function Zh(e,t=!0){return at(e)?e.displayName||e.name:e.name||t&&e.__name}function dD(e){return at(e)&&"__vccOpts"in e}const Rt=(e,t)=>Mx(e,t,Ya);function za(e,t,r){const n=arguments.length;return n===2?Lt(t)&&!Z(t)?cn(t)?ct(e,null,[t]):ct(e,t):ct(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&cn(r)&&(r=[r]),ct(e,t,r))}function vD(){}function pD(e,t,r,n){const i=r[n];if(i&&Vb(i,e))return i;const a=t();return a.memo=e.slice(),a.cacheIndex=n,r[n]=a}function Vb(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(Me(r[n],t[n]))return!1;return Vi>0&&Se&&Se.push(e),!0}const Hb="3.5.17",gD=vr,mD=Fx,yD=Ta,_D=z0,bD={createComponentInstance:Ob,setupComponent:Nb,renderComponentRoot:Zl,setCurrentRenderingInstance:vs,isVNode:cn,normalizeVNode:ze,getComponentPublicInstance:Us,ensureValidVNode:Iv,pushWarningContext:Ox,popWarningContext:kx},SD=bD,wD=null,TD=null,xD=null;/**
|
|
15
|
-
* @vue/runtime-dom v3.5.17
|
|
16
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
|
-
* @license MIT
|
|
18
|
-
**/let Qh;const cg=typeof window<"u"&&window.trustedTypes;if(cg)try{Qh=cg.createPolicy("vue",{createHTML:e=>e})}catch{}const zb=Qh?e=>Qh.createHTML(e):e=>e,CD="http://www.w3.org/2000/svg",DD="http://www.w3.org/1998/Math/MathML",Zr=typeof document<"u"?document:null,hg=Zr&&Zr.createElement("template"),ID={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?Zr.createElementNS(CD,e):t==="mathml"?Zr.createElementNS(DD,e):r?Zr.createElement(e,{is:r}):Zr.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Zr.createTextNode(e),createComment:e=>Zr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Zr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{hg.innerHTML=zb(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const s=hg.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},mn="transition",lo="animation",Xa=Symbol("_vtc"),Gb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$b=Ot({},bv,Gb),AD=e=>(e.displayName="Transition",e.props=$b,e),MD=AD((e,{slots:t})=>za(q0,Ub(e),t)),jn=(e,t=[])=>{Z(e)?e.forEach(r=>r(...t)):e&&e(...t)},dg=e=>e?Z(e)?e.some(t=>t.length>1):e.length>1:!1;function Ub(e){const t={};for(const M in e)M in Gb||(t[M]=e[M]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:d=`${r}-leave-to`}=e,v=LD(i),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:_,onEnterCancelled:y,onLeave:b,onLeaveCancelled:S,onBeforeAppear:w=m,onAppear:T=_,onAppearCancelled:C=y}=t,x=(M,E,O,V)=>{M._enterCancelled=V,xn(M,E?f:s),xn(M,E?u:o),O&&O()},D=(M,E)=>{M._isLeaving=!1,xn(M,c),xn(M,d),xn(M,h),E&&E()},A=M=>(E,O)=>{const V=M?T:_,k=()=>x(E,M,O);jn(V,[E,k]),vg(()=>{xn(E,M?l:a),Br(E,M?f:s),dg(V)||pg(E,n,p,k)})};return Ot(t,{onBeforeEnter(M){jn(m,[M]),Br(M,a),Br(M,o)},onBeforeAppear(M){jn(w,[M]),Br(M,l),Br(M,u)},onEnter:A(!1),onAppear:A(!0),onLeave(M,E){M._isLeaving=!0;const O=()=>D(M,E);Br(M,c),M._enterCancelled?(Br(M,h),Jh()):(Jh(),Br(M,h)),vg(()=>{M._isLeaving&&(xn(M,c),Br(M,d),dg(b)||pg(M,n,g,O))}),jn(b,[M,O])},onEnterCancelled(M){x(M,!1,void 0,!0),jn(y,[M])},onAppearCancelled(M){x(M,!0,void 0,!0),jn(C,[M])},onLeaveCancelled(M){D(M),jn(S,[M])}})}function LD(e){if(e==null)return null;if(Lt(e))return[ic(e.enter),ic(e.leave)];{const t=ic(e);return[t,t]}}function ic(e){return gu(e)}function Br(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Xa]||(e[Xa]=new Set)).add(t)}function xn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Xa];r&&(r.delete(t),r.size||(e[Xa]=void 0))}function vg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let PD=0;function pg(e,t,r,n){const i=e._endId=++PD,a=()=>{i===e._endId&&n()};if(r!=null)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=Wb(e,t);if(!o)return n();const u=o+"end";let f=0;const c=()=>{e.removeEventListener(u,h),a()},h=d=>{d.target===e&&++f>=l&&c()};setTimeout(()=>{f<l&&c()},s+1),e.addEventListener(u,h)}function Wb(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),i=n(`${mn}Delay`),a=n(`${mn}Duration`),o=gg(i,a),s=n(`${lo}Delay`),l=n(`${lo}Duration`),u=gg(s,l);let f=null,c=0,h=0;t===mn?o>0&&(f=mn,c=o,h=a.length):t===lo?u>0&&(f=lo,c=u,h=l.length):(c=Math.max(o,u),f=c>0?o>u?mn:lo:null,h=f?f===mn?a.length:l.length:0);const d=f===mn&&/\b(transform|all)(,|$)/.test(n(`${mn}Property`).toString());return{type:f,timeout:c,propCount:h,hasTransform:d}}function gg(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>mg(r)+mg(e[n])))}function mg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Jh(){return document.body.offsetHeight}function ED(e,t,r){const n=e[Xa];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Iu=Symbol("_vod"),Yb=Symbol("_vsh"),Xb={beforeMount(e,{value:t},{transition:r}){e[Iu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):uo(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),uo(e,!0),n.enter(e)):n.leave(e,()=>{uo(e,!1)}):uo(e,t))},beforeUnmount(e,{value:t}){uo(e,t)}};function uo(e,t){e.style.display=t?e[Iu]:"none",e[Yb]=!t}function RD(){Xb.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const qb=Symbol("");function OD(e){const t=Oe();if(!t)return;const r=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>Au(a,i))},n=()=>{const i=e(t.proxy);t.ce?Au(t.ce,i):td(t.subTree,i),r(i)};Tv(()=>{hs(n)}),ji(()=>{de(n,vr,{flush:"post"});const i=new MutationObserver(n);i.observe(t.subTree.el.parentNode,{childList:!0}),to(()=>i.disconnect())})}function td(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{td(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Au(e.el,t);else if(e.type===te)e.children.forEach(r=>td(r,t));else if(e.type===Pi){let{el:r,anchor:n}=e;for(;r&&(Au(r,t),r!==n);)r=r.nextSibling}}function Au(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const i in t)r.setProperty(`--${i}`,t[i]),n+=`--${i}: ${t[i]};`;r[qb]=n}}const kD=/(^|;)\s*display\s*:/;function ND(e,t,r){const n=e.style,i=Vt(r);let a=!1;if(r&&!i){if(t)if(Vt(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&Jl(n,s,"")}else for(const o in t)r[o]==null&&Jl(n,o,"");for(const o in r)o==="display"&&(a=!0),Jl(n,o,r[o])}else if(i){if(t!==r){const o=n[qb];o&&(r+=";"+o),n.cssText=r,a=kD.test(r)}}else t&&e.removeAttribute("style");Iu in e&&(e[Iu]=a?n.display:"",e[Yb]&&(n.display="none"))}const yg=/\s*!important$/;function Jl(e,t,r){if(Z(r))r.forEach(n=>Jl(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=BD(e,t);yg.test(r)?e.setProperty(We(n),r.replace(yg,""),"important"):e[n]=r}}const _g=["Webkit","Moz","ms"],ac={};function BD(e,t){const r=ac[t];if(r)return r;let n=he(t);if(n!=="filter"&&n in e)return ac[t]=n;n=Vs(n);for(let i=0;i<_g.length;i++){const a=_g[i]+n;if(a in e)return ac[t]=a}return t}const bg="http://www.w3.org/1999/xlink";function Sg(e,t,r,n,i,a=KT(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(bg,t.slice(6,t.length)):e.setAttributeNS(bg,t,r):r==null||a&&!h0(r)?e.removeAttribute(t):e.setAttribute(t,a?"":Dr(r)?String(r):r)}function wg(e,t,r,n,i){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?zb(r):r);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const s=typeof e[t];s==="boolean"?r=h0(r):r==null&&s==="string"?(r="",o=!0):s==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(i||t)}function en(e,t,r,n){e.addEventListener(t,r,n)}function FD(e,t,r,n){e.removeEventListener(t,r,n)}const Tg=Symbol("_vei");function VD(e,t,r,n,i=null){const a=e[Tg]||(e[Tg]={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=HD(t);if(n){const u=a[t]=$D(n,i);en(e,s,u,l)}else o&&(FD(e,s,o,l),a[t]=void 0)}}const xg=/(?:Once|Passive|Capture)$/;function HD(e){let t;if(xg.test(e)){t={};let n;for(;n=e.match(xg);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):We(e.slice(2)),t]}let oc=0;const zD=Promise.resolve(),GD=()=>oc||(zD.then(()=>oc=0),oc=Date.now());function $D(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;mr(UD(n,r.value),t,5,[n])};return r.value=e,r.attached=GD(),r}function UD(e,t){if(Z(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Cg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,WD=(e,t,r,n,i,a)=>{const o=i==="svg";t==="class"?ED(e,n,o):t==="style"?ND(e,r,n):Fs(t)?ov(t)||VD(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):YD(e,t,n,o))?(wg(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Sg(e,t,n,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Vt(n))?wg(e,he(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Sg(e,t,n,o))};function YD(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Cg(t)&&at(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Cg(t)&&Vt(r)?!1:t in e}const Dg={};/*! #__NO_SIDE_EFFECTS__ */function Kb(e,t,r){const n=It(e,t);nf(n)&&Ot(n,t);class i extends Tf{constructor(o){super(n,o,r)}}return i.def=n,i}/*! #__NO_SIDE_EFFECTS__ */const XD=(e,t)=>Kb(e,t,sS),qD=typeof HTMLElement<"u"?HTMLElement:class{};class Tf extends qD{constructor(t,r={},n=Lu){super(),this._def=t,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==Lu?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Tf){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Ki(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const i of n)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(n,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:o}=n;let s;if(a&&!Z(a))for(const l in a){const u=a[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=gu(this._props[l])),(s||(s=Object.create(null)))[he(l)]=!0)}this._numberProps=s,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)xt(this,n)||Object.defineProperty(this,n,{get:()=>z(r[n])})}_resolveProps(t){const{props:r}=t,n=Z(r)?r:Object.keys(r||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(he))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let n=r?this.getAttribute(t):Dg;const i=he(t);r&&this._numberProps&&this._numberProps[i]&&(n=gu(n)),this._setProp(i,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,i=!1){if(r!==this._props[t]&&(r===Dg?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),i&&this._instance&&this._update(),n)){const a=this._ob;a&&a.disconnect(),r===!0?this.setAttribute(We(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(We(t),r+""):r||this.removeAttribute(We(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),oS(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=ct(this._def,Ot(t,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const i=(a,o)=>{this.dispatchEvent(new CustomEvent(a,nf(o[0])?Ot({detail:o},o[0]):{detail:o}))};n.emit=(a,...o)=>{i(a,o),We(a)!==a&&i(We(a),o)},this._setParent()}),r}_applyStyles(t,r){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const n=this._nonce;for(let i=t.length-1;i>=0;i--){const a=document.createElement("style");n&&a.setAttribute("nonce",n),a.textContent=t[i],this.shadowRoot.prepend(a)}}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),r=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const i=t[n],a=i.getAttribute("name")||"default",o=this._slots[a],s=i.parentNode;if(o)for(const l of o){if(r&&l.nodeType===1){const u=r+"-s",f=document.createTreeWalker(l,1);l.setAttribute(u,"");let c;for(;c=f.nextNode();)c.setAttribute(u,"")}s.insertBefore(l,i)}else for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function jb(e){const t=Oe(),r=t&&t.ce;return r||null}function KD(){const e=jb();return e&&e.shadowRoot}function jD(e="$style"){{const t=Oe();if(!t)return mt;const r=t.type.__cssModules;if(!r)return mt;const n=r[e];return n||mt}}const Zb=new WeakMap,Qb=new WeakMap,Mu=Symbol("_moveCb"),Ig=Symbol("_enterCb"),ZD=e=>(delete e.props.mode,e),QD=ZD({name:"TransitionGroup",props:Ot({},$b,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Oe(),n=_v();let i,a;return yf(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!nI(i[0].el,r.vnode.el,o)){i=[];return}i.forEach(tI),i.forEach(eI);const s=i.filter(rI);Jh(),s.forEach(l=>{const u=l.el,f=u.style;Br(u,o),f.transform=f.webkitTransform=f.transitionDuration="";const c=u[Mu]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",c),u[Mu]=null,xn(u,o))};u.addEventListener("transitionend",c)}),i=[]}),()=>{const o=_t(e),s=Ub(o);let l=o.tag||te;if(i=[],a)for(let u=0;u<a.length;u++){const f=a[u];f.el&&f.el instanceof Element&&(i.push(f),fn(f,Wa(f,s,n,r)),Zb.set(f,f.el.getBoundingClientRect()))}a=t.default?gf(t.default()):[];for(let u=0;u<a.length;u++){const f=a[u];f.key!=null&&fn(f,Wa(f,s,n,r))}return ct(l,null,a)}}}),JD=QD;function tI(e){const t=e.el;t[Mu]&&t[Mu](),t[Ig]&&t[Ig]()}function eI(e){Qb.set(e,e.el.getBoundingClientRect())}function rI(e){const t=Zb.get(e),r=Qb.get(e),n=t.left-r.left,i=t.top-r.top;if(n||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${i}px)`,a.transitionDuration="0s",e}}function nI(e,t,r){const n=e.cloneNode(),i=e[Xa];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(n);const{hasTransform:o}=Wb(n);return a.removeChild(n),o}const Un=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Z(t)?r=>ka(t,r):t};function iI(e){e.target.composing=!0}function Ag(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const pr=Symbol("_assign"),ys={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[pr]=Un(i);const a=n||i.props&&i.props.type==="number";en(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=pu(s)),e[pr](s)}),r&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",iI),en(e,"compositionend",Ag),en(e,"change",Ag))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},o){if(e[pr]=Un(o),e.composing)return;const s=(a||e.type==="number")&&!/^0\d/.test(e.value)?pu(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===l)||(e.value=l))}},Ov={deep:!0,created(e,t,r){e[pr]=Un(r),en(e,"change",()=>{const n=e._modelValue,i=qa(e),a=e.checked,o=e[pr];if(Z(n)){const s=sf(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(Xi(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(Jb(e,a))})},mounted:Mg,beforeUpdate(e,t,r){e[pr]=Un(r),Mg(e,t,r)}};function Mg(e,{value:t,oldValue:r},n){e._modelValue=t;let i;if(Z(t))i=sf(t,n.props.value)>-1;else if(Xi(t))i=t.has(n.props.value);else{if(t===r)return;i=Gn(t,Jb(e,!0))}e.checked!==i&&(e.checked=i)}const kv={created(e,{value:t},r){e.checked=Gn(t,r.props.value),e[pr]=Un(r),en(e,"change",()=>{e[pr](qa(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[pr]=Un(n),t!==r&&(e.checked=Gn(t,n.props.value))}},Nv={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=Xi(t);en(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?pu(qa(o)):qa(o));e[pr](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,Ki(()=>{e._assigning=!1})}),e[pr]=Un(n)},mounted(e,{value:t}){Lg(e,t)},beforeUpdate(e,t,r){e[pr]=Un(r)},updated(e,{value:t}){e._assigning||Lg(e,t)}};function Lg(e,t){const r=e.multiple,n=Z(t);if(!(r&&!n&&!Xi(t))){for(let i=0,a=e.options.length;i<a;i++){const o=e.options[i],s=qa(o);if(r)if(n){const l=typeof s;l==="string"||l==="number"?o.selected=t.some(u=>String(u)===String(s)):o.selected=sf(t,s)>-1}else o.selected=t.has(s);else if(Gn(qa(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function qa(e){return"_value"in e?e._value:e.value}function Jb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const tS={created(e,t,r){cl(e,t,r,null,"created")},mounted(e,t,r){cl(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){cl(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){cl(e,t,r,n,"updated")}};function eS(e,t){switch(e){case"SELECT":return Nv;case"TEXTAREA":return ys;default:switch(t){case"checkbox":return Ov;case"radio":return kv;default:return ys}}}function cl(e,t,r,n,i){const o=eS(e.tagName,r.props&&r.props.type)[i];o&&o(e,t,r,n)}function aI(){ys.getSSRProps=({value:e})=>({value:e}),kv.getSSRProps=({value:e},t)=>{if(t.props&&Gn(t.props.value,e))return{checked:!0}},Ov.getSSRProps=({value:e},t)=>{if(Z(e)){if(t.props&&sf(e,t.props.value)>-1)return{checked:!0}}else if(Xi(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},tS.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=eS(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const oI=["ctrl","shift","alt","meta"],sI={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>oI.some(r=>e[`${r}Key`]&&!t.includes(r))},rS=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o<t.length;o++){const s=sI[t[o]];if(s&&s(i,t))return}return e(i,...a)})},lI={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Bv=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const a=We(i.key);if(t.some(o=>o===a||lI[o]===a))return e(i)})},nS=Ot({patchProp:WD},ID);let jo,Pg=!1;function iS(){return jo||(jo=mb(nS))}function aS(){return jo=Pg?jo:yb(nS),Pg=!0,jo}const oS=(...e)=>{iS().render(...e)},uI=(...e)=>{aS().hydrate(...e)},Lu=(...e)=>{const t=iS().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=uS(n);if(!i)return;const a=t._component;!at(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,lS(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t},sS=(...e)=>{const t=aS().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=uS(n);if(i)return r(i,!0,lS(i))},t};function lS(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function uS(e){return Vt(e)?document.querySelector(e):e}let Eg=!1;const fI=()=>{Eg||(Eg=!0,aI(),RD())};/**
|
|
19
|
-
* vue v3.5.17
|
|
20
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
21
|
-
* @license MIT
|
|
22
|
-
**/const cI=()=>{},hI=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:q0,BaseTransitionPropsValidators:bv,Comment:Qt,DeprecationTypes:xD,EffectScope:fv,ErrorCodes:Bx,ErrorTypeStrings:mD,Fragment:te,KeepAlive:sC,ReactiveEffect:us,Static:Pi,Suspense:QC,Teleport:Wx,Text:kn,TrackOpTypes:Lx,Transition:MD,TransitionGroup:JD,TriggerOpTypes:Px,VueElement:Tf,assertNumber:Nx,callWithAsyncErrorHandling:mr,callWithErrorHandling:Ja,camelize:he,capitalize:Vs,cloneVNode:Ir,compatUtils:TD,compile:cI,computed:Rt,createApp:Lu,createBlock:Wt,createCommentVNode:ms,createElementBlock:nr,createElementVNode:Gt,createHydrationRenderer:yb,createPropsRestProxy:DC,createRenderer:mb,createSSRApp:sS,createSlots:dC,createStaticVNode:oD,createTextVNode:Nn,createVNode:ct,customRef:O0,defineAsyncComponent:aC,defineComponent:It,defineCustomElement:Kb,defineEmits:mC,defineExpose:yC,defineModel:SC,defineOptions:_C,defineProps:gC,defineSSRCustomElement:XD,defineSlots:bC,devtools:yD,effect:JT,effectScope:ZT,getCurrentInstance:Oe,getCurrentScope:cv,getCurrentWatcher:Ex,getTransitionRawChildren:gf,guardReactiveProps:Rb,h:za,handleError:qi,hasInjectionContext:kC,hydrate:uI,hydrateOnIdle:Jx,hydrateOnInteraction:nC,hydrateOnMediaQuery:rC,hydrateOnVisible:eC,initCustomFormatter:vD,initDirectivesForSSR:fI,inject:Va,isMemoSame:Vb,isProxy:df,isReactive:Rn,isReadonly:un,isRef:Xt,isRuntimeOnly:cD,isShallow:rr,isVNode:cn,markRaw:E0,mergeDefaults:CC,mergeModels:bf,mergeProps:$n,nextTick:Ki,normalizeClass:Fi,normalizeProps:XT,normalizeStyle:Hs,onActivated:Z0,onBeforeMount:tb,onBeforeUnmount:_f,onBeforeUpdate:Tv,onDeactivated:Q0,onErrorCaptured:ib,onMounted:ji,onRenderTracked:nb,onRenderTriggered:rb,onScopeDispose:p0,onServerPrefetch:eb,onUnmounted:to,onUpdated:yf,onWatcherCleanup:N0,openBlock:dt,popScopeId:Gx,provide:Mv,proxyRefs:gv,pushScopeId:zx,queuePostFlushCb:hs,reactive:cf,readonly:pv,ref:Zt,registerRuntimeCompiler:fD,render:oS,renderList:Dv,renderSlot:Te,resolveComponent:fC,resolveDirective:hC,resolveDynamicComponent:cC,resolveFilter:wD,resolveTransitionHooks:Wa,setBlockTracking:Yh,setDevtoolsHook:_D,setTransitionHooks:fn,shallowReactive:P0,shallowReadonly:_x,shallowRef:vf,ssrContextKey:wb,ssrUtils:SD,stop:tx,toDisplayString:wi,toHandlerKey:Uo,toHandlers:vC,toRaw:_t,toRef:Ix,toRefs:zs,toValue:Na,transformVNodeArgs:iD,triggerRef:Sx,unref:z,useAttrs:xC,useCssModule:jD,useCssVars:OD,useHost:jb,useId:j0,useModel:Zi,useSSRContext:Tb,useShadowRoot:KD,useSlots:TC,useTemplateRef:wv,useTransitionState:_v,vModelCheckbox:Ov,vModelDynamic:tS,vModelRadio:kv,vModelSelect:Nv,vModelText:ys,vShow:Xb,version:Hb,warn:gD,watch:de,watchEffect:$C,watchPostEffect:UC,watchSyncEffect:xb,withAsyncContext:IC,withCtx:$t,withDefaults:wC,withDirectives:yv,withKeys:Bv,withMemo:pD,withModifiers:rS,withScopeId:$x},Symbol.toStringTag,{value:"Module"})),dI={class:"flex border border-solid border-indigo-700 rounded-lg"},vI="bg-indigo-700 rounded-l-md c-white",pI="bg-indigo-700 rounded-r-md c-white",gI=It({__name:"ViewToggle",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=Zi(e,"modelValue");return(r,n)=>(dt(),nr("div",dI,[Gt("div",{class:Fi(["flex w-1/2 items-center justify-center py-1 cursor-pointer",{[vI]:t.value==="treemap"}]),onClick:n[0]||(n[0]=i=>t.value="treemap")},n[2]||(n[2]=[Gt("div",{class:"i-mdi-chart-tree"},null,-1)]),2),Gt("div",{class:Fi(["flex w-1/2 items-center justify-center py-1 cursor-pointer",{[pI]:t.value==="graph"}]),onClick:n[1]||(n[1]=i=>t.value="graph")},n[3]||(n[3]=[Gt("div",{class:"i-mdi-graph"},null,-1)]),2)]))}});/*! *****************************************************************************
|
|
23
|
-
Copyright (c) Microsoft Corporation.
|
|
24
|
-
|
|
25
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
26
|
-
purpose with or without fee is hereby granted.
|
|
27
|
-
|
|
28
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
29
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
30
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
31
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
32
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
33
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
34
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
35
|
-
***************************************************************************** */var ed=function(e,t){return ed=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ed(e,t)};function tt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ed(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var mI=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),yI=function(){function e(){this.browser=new mI,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),lt=new yI;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(lt.wxa=!0,lt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?lt.worker=!0:!lt.hasGlobalWindow||"Deno"in window?(lt.node=!0,lt.svgSupported=!0):_I(navigator.userAgent,lt);function _I(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var Fv=12,bI="sans-serif",zi=Fv+"px "+bI,SI=20,wI=100,TI="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function xI(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-SI)/wI;t[n]=i}return t}var CI=xI(TI),eo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=eo.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||zi),e.measureText(r);r=r||"",n=n||zi;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Fv,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=CI[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},fS=ro(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),cS=ro(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Ws=Object.prototype.toString,xf=Array.prototype,DI=xf.forEach,II=xf.filter,Vv=xf.slice,AI=xf.map,Rg=(function(){}).constructor,hl=Rg?Rg.prototype:null,Hv="__proto__",MI=2311;function hS(){return MI++}function zv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function gt(e){if(e==null||typeof e!="object")return e;var t=e,r=Ws.call(e);if(r==="[object Array]"){if(!Zo(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=gt(e[n])}}else if(cS[r]){if(!Zo(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!fS[r]&&!Zo(e)&&!_s(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Hv&&(t[o]=gt(e[o]))}return t}function qt(e,t,r){if(!it(t)||!it(e))return r?gt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Hv){var i=e[n],a=t[n];it(a)&&it(i)&&!j(a)&&!j(i)&&!_s(a)&&!_s(i)&&!Og(a)&&!Og(i)&&!Zo(a)&&!Zo(i)?qt(i,a,r):(r||!(n in e))&&(e[n]=gt(t[n]))}return e}function G(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Hv&&(e[r]=t[r]);return e}function Ut(e,t,r){for(var n=Kt(t),i=0,a=n.length;i<a;i++){var o=n[i];e[o]==null&&(e[o]=t[o])}return e}function Mt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function LI(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Mr(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else Ut(e,t)}function qe(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function P(e,t,r){if(e&&t)if(e.forEach&&e.forEach===DI)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Tt(e,t,r){if(!e)return[];if(!t)return Gv(e);if(e.map&&e.map===AI)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function ro(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function tr(e,t,r){if(!e)return[];if(!t)return Gv(e);if(e.filter&&e.filter===II)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function Kt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function PI(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Vv.call(arguments)))}}var bt=hl&&St(hl.bind)?hl.call.bind(hl.bind):PI;function Yt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Vv.call(arguments)))}}function j(e){return Array.isArray?Array.isArray(e):Ws.call(e)==="[object Array]"}function St(e){return typeof e=="function"}function rt(e){return typeof e=="string"}function rd(e){return Ws.call(e)==="[object String]"}function jt(e){return typeof e=="number"}function it(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Og(e){return!!fS[Ws.call(e)]}function Ke(e){return!!cS[Ws.call(e)]}function _s(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Cf(e){return e.colorStops!=null}function EI(e){return e.image!=null}function RI(e){return e!==e}function Wn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function ht(e,t){return e??t}function Ei(e,t,r){return e??t??r}function Gv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Vv.apply(e,t)}function $v(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ar(e,t){if(!e)throw new Error(t)}function zr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var dS="__ec_primitive__";function nd(e){e[dS]=!0}function Zo(e){return e[dS]}var OI=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return Kt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),vS=typeof Map=="function";function kI(){return vS?new Map:new OI}var NI=function(){function e(t){var r=j(t);this.data=kI();var n=this;t instanceof e?t.each(i):t&&P(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return vS?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ft(e){return new NI(e)}function BI(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Df(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&G(r,t),r}function pS(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Gi(e,t){return e.hasOwnProperty(t)}function ae(){}var FI=180/Math.PI;function Qi(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Ie(e,t){return e[0]=t[0],e[1]=t[1],e}function nn(e){return[e[0],e[1]]}function VI(e,t,r){return e[0]=t,e[1]=r,e}function kg(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function id(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function Ti(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function ad(e){return Math.sqrt(HI(e))}function HI(e){return e[0]*e[0]+e[1]*e[1]}function tu(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function no(e,t){var r=ad(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function od(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var zI=od;function GI(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ri=GI;function ir(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Ia(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Aa(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var ia=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),$I=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ia(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new ia(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ia(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new ia(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ia(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ia(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Lr=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),UI=Math.log(2);function sd(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/UI);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,d=0;h<s;h++){var v=1<<h;v&i||(c+=(d%2?-1:1)*e[r][h]*sd(e,t-1,f,u,i|v,a),d++)}return a[o]=c,c}function Ng(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=sd(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*sd(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Bg="___zrEVENTSAVED",sc=[];function WI(e,t,r,n,i){return ld(sc,t,n,i,!0)&&ld(e,r,sc[0],sc[1])}function ld(e,t,r,n,i){if(t.getBoundingClientRect&<.domSupported&&!gS(t)){var a=t[Bg]||(t[Bg]={}),o=YI(t,a),s=XI(o,a,i);if(s)return s(e,r,n),!0}return!1}function YI(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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;"),e.appendChild(o),r.push(o)}return r}function XI(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,h=f.left,d=f.top;o.push(h,d),l=l&&a&&h===a[c]&&d===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?Ng(s,o):Ng(o,s))}function gS(e){return e.nodeName.toUpperCase()==="CANVAS"}var qI=/([&<>"'])/g,KI={"&":"&","<":"<",">":">",'"':""","'":"'"};function Pe(e){return e==null?"":(e+"").replace(qI,function(t,r){return KI[r]})}var jI=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lc=[],ZI=lt.browser.firefox&&+lt.browser.version.split(".")[0]<39;function ud(e,t,r,n){return r=r||{},n?Fg(e,t,r):ZI&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Fg(e,t,r),r}function Fg(e,t,r){if(lt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(gS(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(ld(lc,e,n,i)){r.zrX=lc[0],r.zrY=lc[1];return}}r.zrX=r.zrY=0}function Uv(e){return e||window.event}function fr(e,t,r){if(t=Uv(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&&ud(e,o,t,r)}else{ud(e,t,t,r);var a=QI(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&jI.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function QI(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function JI(e,t,r,n){e.addEventListener(t,r,n)}function tA(e,t,r,n){e.removeEventListener(t,r,n)}var If=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Vg(e){return e.which===2||e.which===3}var eA=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=ud(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in uc)if(uc.hasOwnProperty(r)){var n=uc[r](this._track,t);if(n)return n}},e}();function Hg(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function rA(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var uc={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Hg(n)/Hg(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=rA(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Bn(){return[1,0,0,1,0,0]}function Wv(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function mS(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Ga(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function bs(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Yv(e,t,r,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(r),c=Math.cos(r);return e[0]=i*c+s*f,e[1]=-i*f+s*c,e[2]=a*c+l*f,e[3]=-a*f+c*l,e[4]=c*(o-n[0])+f*(u-n[1])+n[0],e[5]=c*(u-n[1])-f*(o-n[0])+n[1],e}function yS(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Xv(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}var Et=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),dl=Math.min,vl=Math.max,Zn=new Et,Qn=new Et,Jn=new Et,ti=new Et,fo=new Et,co=new Et,wt=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=dl(t.x,this.x),n=dl(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=vl(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=vl(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Bn();return bs(a,a,[-r.x,-r.y]),yS(a,a,[n,i]),bs(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.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=!(a<l||u<i||s<f||c<o);if(r){var d=1/0,v=0,p=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-f),_=Math.abs(c-o),y=Math.min(p,g),b=Math.min(m,_);a<l||u<i?y>v&&(v=y,p<g?Et.set(co,-p,0):Et.set(co,g,0)):y<d&&(d=y,p<g?Et.set(fo,p,0):Et.set(fo,-g,0)),s<f||c<o?b>v&&(v=b,m<_?Et.set(co,0,-m):Et.set(co,0,_)):y<d&&(d=y,m<_?Et.set(fo,0,m):Et.set(fo,0,-_))}return r&&Et.copy(r,h?fo:co),h},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);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=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.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}Zn.x=Jn.x=r.x,Zn.y=ti.y=r.y,Qn.x=ti.x=r.x+r.width,Qn.y=Jn.y=r.y+r.height,Zn.transform(n),ti.transform(n),Qn.transform(n),Jn.transform(n),t.x=dl(Zn.x,Qn.x,Jn.x,ti.x),t.y=dl(Zn.y,Qn.y,Jn.y,ti.y);var l=vl(Zn.x,Qn.x,Jn.x,ti.x),u=vl(Zn.y,Qn.y,Jn.y,ti.y);t.width=l-t.x,t.height=u-t.y},e}(),_S="silent";function nA(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:iA}}function iA(){If(this.event)}var aA=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Lr),ho=function(){function e(t,r){this.x=t,this.y=r}return e}(),oA=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fc=new wt(0,0,0,0),bS=function(e){tt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new ho(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new aA,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new $I(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(P(oA,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=SS(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 ho(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",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new ho(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];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(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=nA(n,r,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(r,n,i){var a=this.storage.getDisplayList(),o=new ho(r,n);if(zg(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new wt(r-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)&&(fc.copy(h.getBoundingRect()),h.transform&&fc.applyTransform(h.transform),fc.intersect(f)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=d)for(var m=0;m<p;m+=v){var _=r+g*Math.cos(m),y=n+g*Math.sin(m);if(zg(s,o,_,y,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new eA);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ho;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Lr);P(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){bS.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=SS(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||zI(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function sA(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?_S:!0}return!1}function zg(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=sA(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==_S)){t.target=o;break}}}function SS(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var wS=32,vo=7;function lA(e){for(var t=0;e>=wS;)t|=e&1,e>>=1;return e+t}function Gg(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;uA(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function uA(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function $g(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function cc(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function hc(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function fA(e,t){var r=vo,n,i,a=0,o=[];n=[],i=[];function s(d,v){n[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;f(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,f(d)}}function f(d){var v=n[d],p=i[d],g=n[d+1],m=i[d+1];i[d]=p+m,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var _=hc(e[g],e,v,p,0,t);v+=_,p-=_,p!==0&&(m=cc(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?c(v,p,g,m):h(v,p,g,m)))}function c(d,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=e[d+m];var _=0,y=p,b=d;if(e[b++]=e[y++],--g===0){for(m=0;m<v;m++)e[b+m]=o[_+m];return}if(v===1){for(m=0;m<g;m++)e[b+m]=e[y+m];e[b+g]=o[_];return}for(var S=r,w,T,C;;){w=0,T=0,C=!1;do if(t(e[y],o[_])<0){if(e[b++]=e[y++],T++,w=0,--g===0){C=!0;break}}else if(e[b++]=o[_++],w++,T=0,--v===1){C=!0;break}while((w|T)<S);if(C)break;do{if(w=hc(e[y],o,_,v,0,t),w!==0){for(m=0;m<w;m++)e[b+m]=o[_+m];if(b+=w,_+=w,v-=w,v<=1){C=!0;break}}if(e[b++]=e[y++],--g===0){C=!0;break}if(T=cc(o[_],e,y,g,0,t),T!==0){for(m=0;m<T;m++)e[b+m]=e[y+m];if(b+=T,y+=T,g-=T,g===0){C=!0;break}}if(e[b++]=o[_++],--v===1){C=!0;break}S--}while(w>=vo||T>=vo);if(C)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(m=0;m<g;m++)e[b+m]=e[y+m];e[b+g]=o[_]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[b+m]=o[_+m]}}function h(d,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var _=d+v-1,y=g-1,b=p+g-1,S=0,w=0;if(e[b--]=e[_--],--v===0){for(S=b-(g-1),m=0;m<g;m++)e[S+m]=o[m];return}if(g===1){for(b-=v,_-=v,w=b+1,S=_+1,m=v-1;m>=0;m--)e[w+m]=e[S+m];e[b]=o[y];return}for(var T=r;;){var C=0,x=0,D=!1;do if(t(o[y],e[_])<0){if(e[b--]=e[_--],C++,x=0,--v===0){D=!0;break}}else if(e[b--]=o[y--],x++,C=0,--g===1){D=!0;break}while((C|x)<T);if(D)break;do{if(C=v-hc(o[y],e,d,v,v-1,t),C!==0){for(b-=C,_-=C,v-=C,w=b+1,S=_+1,m=C-1;m>=0;m--)e[w+m]=e[S+m];if(v===0){D=!0;break}}if(e[b--]=o[y--],--g===1){D=!0;break}if(x=g-cc(e[_],o,0,g,g-1,t),x!==0){for(b-=x,y-=x,g-=x,w=b+1,S=y+1,m=0;m<x;m++)e[w+m]=o[S+m];if(g<=1){D=!0;break}}if(e[b--]=e[_--],--v===0){D=!0;break}T--}while(C>=vo||x>=vo);if(D)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(b-=v,_-=v,w=b+1,S=_+1,m=v-1;m>=0;m--)e[w+m]=e[S+m];e[b]=o[y]}else{if(g===0)throw new Error;for(S=b-(g-1),m=0;m<g;m++)e[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function eu(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<wS){a=Gg(e,r,n,t),$g(e,r,n,r+a,t);return}var o=fA(e,t),s=lA(i);do{if(a=Gg(e,r,n,t),a<s){var l=i;l>s&&(l=s),$g(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var er=1,ko=2,xa=4,Ug=!1;function dc(){Ug||(Ug=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Wg(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var cA=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Wg}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,eu(n,Wg)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=er),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(dc(),f.z=0),isNaN(f.z2)&&(dc(),f.z2=0),isNaN(f.zlevel)&&(dc(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=Mt(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Pu;Pu=lt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Qo={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Qo.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Qo.bounceIn(e*2)*.5:Qo.bounceOut(e*2-1)*.5+.5}},pl=Math.pow,Fn=Math.sqrt,Eu=1e-8,TS=1e-4,Yg=Fn(3),gl=1/3,Hr=Qi(),dr=Qi(),$a=Qi();function Pn(e){return e>-Eu&&e<Eu}function xS(e){return e>Eu||e<-Eu}function Ee(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Xg(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function CS(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,d=0;if(Pn(f)&&Pn(c))if(Pn(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var p=c*c-4*f*h;if(Pn(p)){var g=c/f,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m)}else if(p>0){var _=Fn(p),y=f*s+1.5*o*(-c+_),b=f*s+1.5*o*(-c-_);y<0?y=-pl(-y,gl):y=pl(y,gl),b<0?b=-pl(-b,gl):b=pl(b,gl);var v=(-s-(y+b))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var S=(2*f*s-3*o*c)/(2*Fn(f*f*f)),w=Math.acos(S)/3,T=Fn(f),C=Math.cos(w),v=(-s-2*T*C)/(3*o),m=(-s+T*(C+Yg*Math.sin(w)))/(3*o),x=(-s+T*(C-Yg*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m),x>=0&&x<=1&&(a[d++]=x)}}return d}function DS(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Pn(o)){if(xS(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Pn(f))i[0]=-a/(2*o);else if(f>0){var c=Fn(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 Ru(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function hA(e,t,r,n,i,a,o,s,l,u,f){var c,h=.005,d=1/0,v,p,g,m;Hr[0]=l,Hr[1]=u;for(var _=0;_<1;_+=.05)dr[0]=Ee(e,r,i,o,_),dr[1]=Ee(t,n,a,s,_),g=Ri(Hr,dr),g<d&&(c=_,d=g);d=1/0;for(var y=0;y<32&&!(h<TS);y++)v=c-h,p=c+h,dr[0]=Ee(e,r,i,o,v),dr[1]=Ee(t,n,a,s,v),g=Ri(dr,Hr),v>=0&&g<d?(c=v,d=g):($a[0]=Ee(e,r,i,o,p),$a[1]=Ee(t,n,a,s,p),m=Ri($a,Hr),p<=1&&m<d?(c=p,d=m):h*=.5);return Fn(d)}function dA(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,c=0,h=1/l,d=1;d<=l;d++){var v=d*h,p=Ee(e,r,i,o,v),g=Ee(t,n,a,s,v),m=p-u,_=g-f;c+=Math.sqrt(m*m+_*_),u=p,f=g}return c}function Re(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function qg(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function vA(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Pn(a)){if(xS(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Pn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Fn(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 IS(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Ss(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function pA(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Hr[0]=o,Hr[1]=s;for(var h=0;h<1;h+=.05){dr[0]=Re(e,r,i,h),dr[1]=Re(t,n,a,h);var d=Ri(Hr,dr);d<c&&(u=h,c=d)}c=1/0;for(var v=0;v<32&&!(f<TS);v++){var p=u-f,g=u+f;dr[0]=Re(e,r,i,p),dr[1]=Re(t,n,a,p);var d=Ri(dr,Hr);if(p>=0&&d<c)u=p,c=d;else{$a[0]=Re(e,r,i,g),$a[1]=Re(t,n,a,g);var m=Ri($a,Hr);g<=1&&m<c?(u=g,c=m):f*=.5}}return Fn(c)}function gA(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,d=Re(e,r,i,h),v=Re(t,n,a,h),p=d-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=d,l=v}return u}var mA=/cubic-bezier\(([0-9,\.e ]+)\)/;function AS(e){var t=e&&mA.exec(e);if(t){var r=t[1].split(","),n=+zr(r[0]),i=+zr(r[1]),a=+zr(r[2]),o=+zr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:CS(0,n,a,1,l,s)&&Ee(0,i,o,1,s[0])}}}var yA=function(){function e(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||ae,this.ondestroy=t.ondestroy||ae,this.onrestart=t.onrestart||ae,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;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},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=St(t)?t:Qo[t]||AS(t)},e}(),MS=function(){function e(t){this.value=t}return e}(),_A=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new MS(t);return this.insertEntry(r),r},e.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++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Ys=function(){function e(t){this._list=new _A,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){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=r:s=new MS(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Kg={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 Vn(e){return e=Math.round(e),e<0?0:e>255?255:e}function bA(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ou(e){return e<0?0:e>1?1:e}function vc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Vn(parseFloat(t)/100*255):Vn(parseInt(t,10))}function Oi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ou(parseFloat(t)/100):Ou(parseFloat(t))}function pc(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ml(e,t,r){return e+(t-e)*r}function ur(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function fd(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var LS=new Ys(20),yl=null;function aa(e,t){yl&&fd(yl,t),yl=LS.put(e,yl||t.slice())}function $r(e,t){if(e){t=t||[];var r=LS.get(e);if(r)return fd(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Kg)return fd(t,Kg[n]),aa(e,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)){ur(t,0,0,0,1);return}return ur(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),aa(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ur(t,0,0,0,1);return}return ur(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),aa(e,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?ur(t,+u[0],+u[1],+u[2],1):ur(t,0,0,0,1);f=Oi(u.pop());case"rgb":if(u.length>=3)return ur(t,vc(u[0]),vc(u[1]),vc(u[2]),u.length===3?f:Oi(u[3])),aa(e,t),t;ur(t,0,0,0,1);return;case"hsla":if(u.length!==4){ur(t,0,0,0,1);return}return u[3]=Oi(u[3]),cd(u,t),aa(e,t),t;case"hsl":if(u.length!==3){ur(t,0,0,0,1);return}return cd(u,t),aa(e,t),t;default:return}}ur(t,0,0,0,1)}}function cd(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Oi(e[1]),i=Oi(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ur(t,Vn(pc(o,a,r+1/3)*255),Vn(pc(o,a,r)*255),Vn(pc(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function SA(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,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-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-c:r===a?l=1/3+f-h:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return e[3]!=null&&d.push(e[3]),d}}function jg(e,t){var r=$r(e);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-t)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Hn(r,r.length===4?"rgba":"rgb")}}function gc(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=Vn(ml(o[0],s[0],l)),r[1]=Vn(ml(o[1],s[1],l)),r[2]=Vn(ml(o[2],s[2],l)),r[3]=Ou(ml(o[3],s[3],l)),r}}function Jo(e,t,r,n){var i=$r(e);if(e)return i=SA(i),t!=null&&(i[0]=bA(t)),r!=null&&(i[1]=Oi(r)),n!=null&&(i[2]=Oi(n)),Hn(cd(i),"rgba")}function PS(e,t){var r=$r(e);if(r&&t!=null)return r[3]=Ou(t),Hn(r,"rgba")}function Hn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function ku(e,t){var r=$r(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Zg=new Ys(100);function Qg(e){if(rt(e)){var t=Zg.get(e);return t||(t=jg(e,-.1),Zg.put(e,t)),t}else if(Cf(e)){var r=G({},e);return r.colorStops=Tt(e.colorStops,function(n){return{offset:n.offset,color:jg(n.color,-.1)}}),r}return e}function wA(e){return e.type==="linear"}function TA(e){return e.type==="radial"}(function(){return lt.hasGlobalWindow&&St(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var hd=Array.prototype.slice;function Qr(e,t,r){return(t-e)*r+e}function mc(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=Qr(t[a],r[a],n);return e}function xA(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Qr(t[o][s],r[o][s],n)}return e}function _l(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function Jg(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function CA(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function DA(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:hd.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function ru(e){if(qe(e)){var t=e.length;if(qe(e[0])){for(var r=[],n=0;n<t;n++)r.push(hd.call(e[n]));return r}return hd.call(e)}return e}function nu(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function IA(e){return qe(e&&e[0])?2:1}var bl=0,iu=1,ES=2,No=3,dd=4,vd=5,tm=6;function em(e){return e===dd||e===vd}function Sl(e){return e===iu||e===ES}var po=[0,0,0,0],AA=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=tm,l=r;if(qe(r)){var u=IA(r);s=u,(u===1&&!jt(r[0])||u===2&&!jt(r[0][0]))&&(o=!0)}else if(jt(r)&&!RI(r))s=bl;else if(rt(r))if(!isNaN(+r))s=bl;else{var f=$r(r);f&&(l=f,s=No)}else if(Cf(r)){var c=G({},l);c.colorStops=Tt(r.colorStops,function(d){return{offset:d.offset,color:$r(d.color)}}),wA(r)?s=dd:TA(r)&&(s=vd),l=c}a===0?this.valType=s:(s!==this.valType||s===tm)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=St(n)?n:Qo[n]||AS(n)),i.push(h),h},e.prototype.prepare=function(t,r){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=Sl(i),u=em(i),f=0;f<a;f++){var c=n[f],h=c.value,d=o.value;c.percent=c.time/t,s||(l&&f!==a-1?DA(h,d,i):u&&CA(h.colorStops,d.colorStops))}if(!s&&i!==vd&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,f=0;f<a;f++)i===bl?n[f].additiveValue=n[f].value-v:i===No?n[f].additiveValue=_l([],n[f].value,v,-1):Sl(i)&&(n[f].additiveValue=i===iu?_l([],n[f].value,v,-1):Jg([],n[f].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===No,f,c=this._lastFr,h=Math.min,d,v;if(s===1)d=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}v=o[f+1],d=o[f]}if(d&&v){this._lastFr=f,this._lastFrP=r;var g=v.percent-d.percent,m=g===0?1:h((r-d.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var _=n?this._additiveValue:u?po:t[l];if((Sl(a)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)t[l]=m<1?d.rawValue:v.rawValue;else if(Sl(a))a===iu?mc(_,d[i],v[i],m):xA(_,d[i],v[i],m);else if(em(a)){var y=d[i],b=v[i],S=a===dd;t[l]={type:S?"linear":"radial",x:Qr(y.x,b.x,m),y:Qr(y.y,b.y,m),colorStops:Tt(y.colorStops,function(T,C){var x=b.colorStops[C];return{offset:Qr(T.offset,x.offset,m),color:nu(mc([],T.color,x.color,m))}}),global:b.global},S?(t[l].x2=Qr(y.x2,b.x2,m),t[l].y2=Qr(y.y2,b.y2,m)):t[l].r=Qr(y.r,b.r,m)}else if(u)mc(_,d[i],v[i],m),n||(t[l]=nu(_));else{var w=Qr(d[i],v[i],m);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===bl?t[n]=t[n]+i:r===No?($r(t[n],po),_l(po,po,i,1),t[n]=nu(po)):r===iu?_l(t[n],t[n],i,1):r===ES&&Jg(t[n],t[n],i,1)},e}(),qv=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){zv("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Kt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new AA(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===No&&u&&(u=nu(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,ru(u),i),this._trackKeys.push(s)}l.addKeyframe(t,ru(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new yA({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,d);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Tt(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=ru(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Kt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Ma(){return new Date().getTime()}var MA=function(e){tt(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Ma()-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,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Pu(n),!r._paused&&r.update())}Pu(n)},t.prototype.start=function(){this._running||(this._time=Ma(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ma(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ma()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new qv(r,n.loop);return this.addAnimator(i),i},t}(Lr),LA=300,yc=lt.domSupported,_c=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Tt(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),rm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},nm=!1;function pd(e){var t=e.pointerType;return t==="pen"||t==="touch"}function PA(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function bc(e){e&&(e.zrByTouch=!0)}function EA(e,t){return fr(e.dom,new RA(e,t),!0)}function RS(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var RA=function(){function e(t,r){this.stopPropagation=ae,this.stopImmediatePropagation=ae,this.preventDefault=ae,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),wr={mousedown:function(e){e=fr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=fr(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=fr(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=fr(this.dom,e);var t=e.toElement||e.relatedTarget;RS(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){nm=!0,e=fr(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){nm||(e=fr(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=fr(this.dom,e),bc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),wr.mousemove.call(this,e),wr.mousedown.call(this,e)},touchmove:function(e){e=fr(this.dom,e),bc(e),this.handler.processGesture(e,"change"),wr.mousemove.call(this,e)},touchend:function(e){e=fr(this.dom,e),bc(e),this.handler.processGesture(e,"end"),wr.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<LA&&wr.click.call(this,e)},pointerdown:function(e){wr.mousedown.call(this,e)},pointermove:function(e){pd(e)||wr.mousemove.call(this,e)},pointerup:function(e){wr.mouseup.call(this,e)},pointerout:function(e){pd(e)||wr.mouseout.call(this,e)}};P(["click","dblclick","contextmenu"],function(e){wr[e]=function(t){t=fr(this.dom,t),this.trigger(e,t)}});var gd={pointermove:function(e){pd(e)||gd.mousemove.call(this,e)},pointerup:function(e){gd.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function OA(e,t){var r=t.domHandlers;lt.pointerEventsSupported?P(_c.pointer,function(n){au(t,n,function(i){r[n].call(e,i)})}):(lt.touchEventsSupported&&P(_c.touch,function(n){au(t,n,function(i){r[n].call(e,i),PA(t)})}),P(_c.mouse,function(n){au(t,n,function(i){i=Uv(i),t.touching||r[n].call(e,i)})}))}function kA(e,t){lt.pointerEventsSupported?P(rm.pointer,r):lt.touchEventsSupported||P(rm.mouse,r);function r(n){function i(a){a=Uv(a),RS(e,a.target)||(a=EA(e,a),t.domHandlers[n].call(e,a))}au(t,n,i,{capture:!0})}}function au(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,JI(e.domTarget,t,r,n)}function Sc(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&tA(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var im=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),NA=function(e){tt(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new im(r,wr),yc&&(i._globalHandlerScope=new im(document,gd)),OA(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Sc(this._localHandlerScope),yc&&Sc(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,yc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?kA(this,n):Sc(n)}},t}(Lr),OS=1;lt.hasGlobalWindow&&(OS=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Nu=OS,md=.4,yd="#333",_d="#ccc",BA="#eee",am=Wv,om=5e-5;function ei(e){return e>om||e<-om}var ri=[],oa=[],wc=Bn(),Tc=Math.abs,xi=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return ei(this.rotation)||ei(this.x)||ei(this.y)||ei(this.scaleX-1)||ei(this.scaleY-1)||ei(this.skewX)||ei(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(am(n),this.invTransform=null);return}n=n||Bn(),r?this.getLocalTransform(n):am(n),t&&(r?Ga(n,t,n):mS(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ri);var n=ri[0]<0?-1:1,i=ri[1]<0?-1:1,a=((ri[0]-n)*r+n)/ri[0]||0,o=((ri[1]-i)*r+i)/ri[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Bn(),Xv(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=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),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Bn(),Ga(oa,t.invTransform,r),r=oa);var n=this.originX,i=this.originY;(n||i)&&(wc[4]=n,wc[5]=i,Ga(oa,r,wc),oa[4]-=n,oa[5]-=i,r=oa),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&ir(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&ir(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Tc(t[0]-1)>1e-10&&Tc(t[3]-1)>1e-10?Math.sqrt(Tc(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){FA(this,t)},e.getLocalTransform=function(t,r){r=r||[];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,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-h*p*o,r[5]=-p*o-d*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&Yv(r,r,u),r[4]+=n+f,r[5]+=i+c,r},e.initDefaultProps=function(){var t=e.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}(),e}(),ws=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function FA(e,t){for(var r=0;r<ws.length;r++){var n=ws[r];e[n]=t[n]}}var sm={};function ar(e,t){t=t||zi;var r=sm[t];r||(r=sm[t]=new Ys(500));var n=r.get(e);return n==null&&(n=eo.measureText(e,t).width,r.put(e,n)),n}function lm(e,t,r,n){var i=ar(e,t),a=Kv(t),o=Bo(0,i,r),s=Ca(0,a,n),l=new wt(o,s,i,a);return l}function kS(e,t,r,n){var i=((e||"")+"").split(`
|
|
36
|
-
`),a=i.length;if(a===1)return lm(i[0],t,r,n);for(var o=new wt(0,0,0,0),s=0;s<i.length;s++){var l=lm(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Bo(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ca(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Kv(e){return ar("国",e)}function Ts(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function NS(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=Ts(n[0],r.width),u+=Ts(n[1],r.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 e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var xc="__zr_normal__",Cc=ws.concat(["ignore"]),VA=ro(ws,function(e,t){return e[t]=!0,e},{ignore:!1}),sa={},HA=new wt(0,0,0,0),Af=function(){function e(t){this.id=hS(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=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]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=HA;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(sa,n,f):NS(sa,n,f),a.x=sa.x,a.y=sa.y,o=sa.align,s=sa.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,d=void 0;c==="center"?(h=f.width*.5,d=f.height*.5):(h=Ts(c[0],f.width),d=Ts(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+d+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,_=void 0,y=void 0;p&&this.canBeInsideText()?(m=n.insideFill,_=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,_=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(m),y=!0)),m=m||"#000",(m!==g.fill||_!==g.stroke||y!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=_,g.autoStroke=y,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=er,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?_d:yd},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&$r(r);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,Hn(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},G(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(it(t))for(var n=t,i=Kt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==xc)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Cc)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(xc,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===xc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Mt(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){zv("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,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,r,n,f),h&&h.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~er),u}}},e.prototype.useStates=function(t,r,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;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,h),g&&g.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~er)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=Mt(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=Mt(i,t),o=Mt(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];G(r,a),a.textConfig&&(n=n||{},G(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=G({},i?this.textConfig:n.textConfig),G(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Cc.length;f++){var c=Cc[f],h=a&&VA[c];r&&r[c]!=null?h?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var d=this.animators[f],v=d.targetName;d.getLoop()||d.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new xi,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),G(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=er;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new qv(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=Mt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Dc(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Dc(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Dc(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=er;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Mr(Af,Lr);Mr(Af,xi);function Dc(e,t,r,n,i){r=r||{};var a=[];BS(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var h=0;h<a.length;h++){var d=a[h];f&&d.done(f),c&&d.aborted(c),r.force&&d.duration(r.duration),d.start(r.easing)}return a}function Ic(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function zA(e){return qe(e[0])}function GA(e,t,r){if(qe(t[r]))if(qe(e[r])||(e[r]=[]),Ke(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Ic(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(zA(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Ic(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Ic(a,i,o);a.length=i.length}else e[r]=t[r]}function $A(e,t){return e===t||qe(e)&&qe(t)&&UA(e,t)}function UA(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function BS(e,t,r,n,i,a,o,s){for(var l=Kt(n),u=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,d=!it(a),v=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],_=n[m];if(_!=null&&r[m]!=null&&(d||a[m]))if(it(_)&&!qe(_)&&!Cf(_)){if(t){s||(r[m]=_,e.updateDuringAnimation(t));continue}BS(e,m,r[m],_,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=_,e.updateDuringAnimation(t),p.push(m))}var y=p.length;if(!c&&y)for(var b=0;b<v.length;b++){var S=v[b];if(S.targetName===t){var w=S.stopTracks(p);if(w){var T=Mt(v,S);v.splice(T,1)}}}if(i.force||(p=tr(p,function(A){return!$A(n[A],r[A])}),y=p.length),y>0||i.force&&!o.length){var C=void 0,x=void 0,D=void 0;if(s){x={},h&&(C={});for(var b=0;b<y;b++){var m=p[b];x[m]=r[m],h?C[m]=n[m]:r[m]=n[m]}}else if(h){D={};for(var b=0;b<y;b++){var m=p[b];D[m]=ru(r[m]),GA(r,n,m)}}var S=new qv(r,!1,!1,c?tr(v,function(M){return M.targetName===t}):null);S.targetName=t,i.scope&&(S.scope=i.scope),h&&C&&S.whenWithKeys(0,C,p),D&&S.whenWithKeys(0,D,p),S.whenWithKeys(u??500,s?x:n,p).delay(f||0),e.addAnimator(S,t),o.push(S)}}var oe=function(e){tt(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=Mt(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Mt(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new wt(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(wt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(Af);oe.prototype.type="group";/*!
|
|
37
|
-
* ZRender, a high performance 2d drawing library.
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) 2013, Baidu Inc.
|
|
40
|
-
* All rights reserved.
|
|
41
|
-
*
|
|
42
|
-
* LICENSE
|
|
43
|
-
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
44
|
-
*/var ou={},FS={};function WA(e){delete FS[e]}function YA(e){if(!e)return!1;if(typeof e=="string")return ku(e,1)<md;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=ku(t[i].color,1);return r/=n,r<md}return!1}var XA=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new cA,o=n.renderer||"canvas";ou[o]||(o=Kt(ou)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new ou[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!lt.node&&!lt.worker&&!l?new NA(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?lt.touchEventsSupported:!!f,h=44,d;c&&(d=ht(n.pointerSize,h)),this.handler=new bS(a,s,u,s.root,d),this.animation=new MA({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=YA(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=Ma();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Ma();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof oe&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,WA(this.id))},e}();function um(e,t){var r=new XA(hS(),e,t);return FS[r.id]=r,r}function qA(e,t){ou[e]=t}var fm=1e-4,VS=20;function KA(e){return e.replace(/^\s+|\s+$/g,"")}function $i(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function le(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return rt(e)?KA(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function HS(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),VS),e=(+e).toFixed(t),r?e:+e}function cm(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return jA(e)}function jA(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function ZA(e,t){var r=Math.max(cm(e),cm(t)),n=e+t;return r>VS?n:HS(n,r)}var hm=9007199254740991;function zS(e){var t=Math.PI*2;return(e%t+t)%t}function Bu(e){return e>-fm&&e<fm}var QA=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Mf(e){if(e instanceof Date)return e;if(rt(e)){var t=QA.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function Fu(e){var t=parseFloat(e);return t==e&&(t!==0||!rt(e)||e.indexOf("x")<=0)?t:NaN}function JA(e){return!isNaN(Fu(e))}function GS(){return Math.round(Math.random()*9)}function $S(e,t){return t===0?e:$S(t,e%t)}function dm(e,t){return e==null?t:t==null?e:e*t/$S(e,t)}function Ge(e){throw new Error(e)}var US="series\0",tM="\0_ec_\0";function ue(e){return e instanceof Array?e:e==null?[]:[e]}function bd(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var vm=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Xs(e){return it(e)&&!j(e)&&!(e instanceof Date)?e.value:e}function eM(e){return it(e)&&!(e instanceof Array)}function rM(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=ft();P(t,function(l,u){if(!it(l)){t[u]=null;return}});var s=nM(e,o,r);return(n||i)&&iM(s,e,o,t),n&&aM(s,t),n||i?oM(s,t,i):a&&sM(s,t),lM(s),s}function nM(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||xs(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function iM(e,t,r,n){P(n,function(i,a){if(!(!i||i.id==null)){var o=ts(i.id),s=r.get(o);if(s!=null){var l=e[s];Ar(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function aM(e,t){P(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!xs(r)&&!xs(a)&&WS("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function oM(e,t,r){P(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||xs(i.existing)||i.existing&&n.id!=null&&!WS("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function sM(e,t){P(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function lM(e){var t=ft();P(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),P(e,function(r){var n=r.newOption;Ar(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),P(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(it(a)){if(o.name=a.name!=null?ts(a.name):i?i.name:US+n,i)o.id=ts(i.id);else if(a.id!=null)o.id=ts(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function WS(e,t,r){var n=Xe(t[e],null),i=Xe(r[e],null);return n!=null&&i!=null&&n===i}function ts(e){return Xe(e,"")}function Xe(e,t){return e==null?t:rt(e)?e:jt(e)||rd(e)?e+"":t}function jv(e){var t=e.name;return!!(t&&t.indexOf(US))}function xs(e){return e&&e.id!=null&&ts(e.id).indexOf(tM)===0}function uM(e,t,r){P(e,function(n){var i=n.newOption;it(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=fM(t,i,n.existing,r))})}function fM(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function qs(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return j(t.dataIndex)?Tt(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return j(t.name)?Tt(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function ee(){var e="__ec_inner_"+cM++;return function(t){return t[e]||(t[e]={})}}var cM=GS();function Ac(e,t,r){var n=Zv(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=Ks(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Zv(e,t){var r;if(rt(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=ft(),a={},o=!1;return P(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&Mt(t.includeMainTypes,f)<0)){o=o||!!f;var h=i.get(f)||i.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ci={useDefault:!0,enableAll:!1,enableNone:!1};function Ks(e,t,r,n){n=n||Ci;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(Ar(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Ar(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function YS(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function hM(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function dM(e){return e==="auto"?lt.domSupported?"html":"richText":e||"html"}var vM=".",ni="___EC__COMPONENT__CONTAINER___",XS="___EC__EXTENDED_CLASS___";function Gr(e){var t={main:"",sub:""};if(e){var r=e.split(vM);t.main=r[0]||"",t.sub=r[1]||""}return t}function pM(e){Ar(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function gM(e){return!!(e&&e[XS])}function Qv(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return mM(n)?i=function(a){tt(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},LI(i,this)),G(i.prototype,r),i[XS]=!0,i.extend=this.extend,i.superCall=bM,i.superApply=SM,i.superClass=n,i}}function mM(e){return St(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function qS(e,t){e.extend=t.extend}var yM=Math.round(Math.random()*10);function _M(e){var t=["__\0is_clz",yM++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function bM(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function SM(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Jv(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){pM(i),n.prototype.type=i;var a=Gr(i);if(!a.sub)t[a.main]=n;else if(a.sub!==ni){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[ni]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=Gr(n),a=[],o=t[i.main];return o&&o[ni]?P(o,function(s,l){l!==ni&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Gr(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return P(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Gr(n),a=t[i.main];return a&&a[ni]};function r(n){var i=t[n.main];return(!i||!i[ni])&&(i=t[n.main]={},i[ni]=!0),i}}function Ka(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&Mt(i,l)>=0||a&&Mt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var wM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],TM=Ka(wM),xM=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return TM(this,t,r)},e}(),Sd=new Ys(50);function CM(e){if(typeof e=="string"){var t=Sd.get(e);return t&&t.image}else return e}function KS(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Sd.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Lf(t)&&a.pending.push(o)):(t=eo.loadImage(e,pm,pm),t.__zrImageSrc=e,Sd.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function pm(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Lf(e){return e&&e.width&&e.height}var Mc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function DM(e,t,r,n,i,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
|
|
45
|
-
`);a=jS(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)ZS(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join(`
|
|
46
|
-
`),e.isTruncated=s}function jS(e,t,r,n){n=n||{};var i=G({},n);i.font=t,r=ht(r,"..."),i.maxIterations=ht(n.maxIterations,2);var a=i.minChar=ht(n.minChar,0);i.cnCharWidth=ar("国",t);var o=i.ascCharWidth=ar("a",t);i.placeholder=ht(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=ar(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function ZS(e,t,r){var n=r.containerWidth,i=r.font,a=r.contentWidth;if(!n){e.textLine="",e.isTruncated=!1;return}var o=ar(t,i);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?IM(t,a,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=ar(t,i)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function IM(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function AM(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=Kv(i),s=ht(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=!1,c=t.width,h;c!=null&&(r==="break"||r==="breakAll")?h=e?QS(e,t.font,c,r==="breakAll",0).lines:[]:h=e?e.split(`
|
|
47
|
-
`):[];var d=h.length*s,v=ht(t.height,d);if(d>v&&u){var p=Math.floor(v/s);f=f||h.length>p,h=h.slice(0,p)}if(e&&a&&c!=null)for(var g=jS(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m={},_=0;_<h.length;_++)ZS(m,h[_],g),h[_]=m.textLine,f=f||m.isTruncated;for(var y=v,b=0,_=0;_<h.length;_++)b=Math.max(ar(h[_],i),b);c==null&&(c=b);var S=b;return n&&(y+=n[0]+n[2],S+=n[1]+n[3],c+=n[1]+n[3]),l&&(S=c),{lines:h,height:v,outerWidth:S,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:d,width:c,isTruncated:f}}var MM=function(){function e(){}return e}(),gm=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),LM=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function PM(e,t){var r=new LM;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Mc.lastIndex=0,l;(l=Mc.exec(e))!=null;){var u=l.index;u>s&&Lc(r,e.substring(s,u),t,o),Lc(r,l[2],t,o,l[1]),s=Mc.lastIndex}s<e.length&&Lc(r,e.substring(s,e.length),t,o);var f=[],c=0,h=0,d=t.padding,v=a==="truncate",p=t.lineOverflow==="truncate",g={};function m(kt,zt,vt){kt.width=zt,kt.lineHeight=vt,c+=vt,h=Math.max(h,zt)}t:for(var _=0;_<r.lines.length;_++){for(var y=r.lines[_],b=0,S=0,w=0;w<y.tokens.length;w++){var T=y.tokens[w],C=T.styleName&&t.rich[T.styleName]||{},x=T.textPadding=C.padding,D=x?x[1]+x[3]:0,A=T.font=C.font||t.font;T.contentHeight=Kv(A);var M=ht(C.height,T.contentHeight);if(T.innerHeight=M,x&&(M+=x[0]+x[2]),T.height=M,T.lineHeight=Ei(C.lineHeight,t.lineHeight,M),T.align=C&&C.align||t.align,T.verticalAlign=C&&C.verticalAlign||"middle",p&&i!=null&&c+T.lineHeight>i){var E=r.lines.length;w>0?(y.tokens=y.tokens.slice(0,w),m(y,S,b),r.lines=r.lines.slice(0,_+1)):r.lines=r.lines.slice(0,_),r.isTruncated=r.isTruncated||r.lines.length<E;break t}var O=C.width,V=O==null||O==="auto";if(typeof O=="string"&&O.charAt(O.length-1)==="%")T.percentWidth=O,f.push(T),T.contentWidth=ar(T.text,A);else{if(V){var k=C.backgroundColor,K=k&&k.image;K&&(K=CM(K),Lf(K)&&(T.width=Math.max(T.width,K.width*M/K.height)))}var $=v&&n!=null?n-S:null;$!=null&&$<T.width?!V||$<D?(T.text="",T.width=T.contentWidth=0):(DM(g,T.text,$-D,A,t.ellipsis,{minChar:t.truncateMinChar}),T.text=g.text,r.isTruncated=r.isTruncated||g.isTruncated,T.width=T.contentWidth=ar(T.text,A)):T.contentWidth=ar(T.text,A)}T.width+=D,S+=T.width,C&&(b=Math.max(b,T.lineHeight))}m(y,S,b)}r.outerWidth=r.width=ht(n,h),r.outerHeight=r.height=ht(i,c),r.contentHeight=c,r.contentWidth=h,d&&(r.outerWidth+=d[1]+d[3],r.outerHeight+=d[0]+d[2]);for(var _=0;_<f.length;_++){var T=f[_],ot=T.percentWidth;T.width=parseInt(ot,10)/100*r.width}return r}function Lc(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var h=o.padding,d=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Ts(o.width,n.width)+d;s.length>0&&v+n.accumWidth>n.width&&(f=t.split(`
|
|
48
|
-
`),u=!0),n.accumWidth=v}else{var p=QS(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+d,c=p.linesWidths,f=p.lines}}else f=t.split(`
|
|
49
|
-
`);for(var g=0;g<f.length;g++){var m=f[g],_=new MM;if(_.styleName=i,_.text=m,_.isLineHolder=!m&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:ar(m,l),!g&&!u){var y=(s[s.length-1]||(s[0]=new gm)).tokens,b=y.length;b===1&&y[0].isLineHolder?y[0]=_:(m||!b||a)&&y.push(_)}else s.push(new gm([_]))}}function EM(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var RM=ro(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function OM(e){return EM(e)?!!RM[e]:!0}function QS(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<e.length;c++){var h=e.charAt(c);if(h===`
|
|
50
|
-
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=ar(h,t),v=n?!1:!OM(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=e,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 wd="__zr_style_"+Math.round(Math.random()*10),ki={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Pf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ki[wd]=!0;var mm=["z","z2","invisible"],kM=["invisible"],io=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Kt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&NM(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new wt(0,0,0,0)),n?wt.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new wt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:G(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ko,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ko)},t.prototype.styleUpdated=function(){this.__dirty&=~ko},t.prototype.createStyle=function(r){return Df(ki,r)},t.prototype.useStyle=function(r){r[wd]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[wd]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,mm)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Kt(f),h=0;h<c.length;h++){var d=c[h];d in u&&(u[d]=u[d],this.style[d]=f[d])}for(var v=Kt(u),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?kM:mm,h=0;h<p.length;h++){var d=p[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return G(r,n),r},t.prototype.getAnimationStyleProps=function(){return Pf},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=er|ko}(),t}(Af),Pc=new wt(0,0,0,0),Ec=new wt(0,0,0,0);function NM(e,t,r){return Pc.copy(e.getBoundingRect()),e.transform&&Pc.applyTransform(e.transform),Ec.width=t,Ec.height=r,!Pc.intersect(Ec)}var $e=Math.min,Ue=Math.max,Rc=Math.sin,Oc=Math.cos,ii=Math.PI*2,wl=Qi(),Tl=Qi(),xl=Qi();function BM(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],i=$e(i,n[0]),a=Ue(a,n[0]),o=$e(o,n[1]),s=Ue(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function ym(e,t,r,n,i,a){i[0]=$e(e,r),i[1]=$e(t,n),a[0]=Ue(e,r),a[1]=Ue(t,n)}var _m=[],bm=[];function FM(e,t,r,n,i,a,o,s,l,u){var f=DS,c=Ee,h=f(e,r,i,o,_m);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var v=c(e,r,i,o,_m[d]);l[0]=$e(v,l[0]),u[0]=Ue(v,u[0])}h=f(t,n,a,s,bm);for(var d=0;d<h;d++){var p=c(t,n,a,s,bm[d]);l[1]=$e(p,l[1]),u[1]=Ue(p,u[1])}l[0]=$e(e,l[0]),u[0]=Ue(e,u[0]),l[0]=$e(o,l[0]),u[0]=Ue(o,u[0]),l[1]=$e(t,l[1]),u[1]=Ue(t,u[1]),l[1]=$e(s,l[1]),u[1]=Ue(s,u[1])}function VM(e,t,r,n,i,a,o,s){var l=IS,u=Re,f=Ue($e(l(e,r,i),1),0),c=Ue($e(l(t,n,a),1),0),h=u(e,r,i,f),d=u(t,n,a,c);o[0]=$e(e,i,h),o[1]=$e(t,a,d),s[0]=Ue(e,i,h),s[1]=Ue(t,a,d)}function HM(e,t,r,n,i,a,o,s,l){var u=Ia,f=Aa,c=Math.abs(i-a);if(c%ii<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(wl[0]=Oc(i)*r+e,wl[1]=Rc(i)*n+t,Tl[0]=Oc(a)*r+e,Tl[1]=Rc(a)*n+t,u(s,wl,Tl),f(l,wl,Tl),i=i%ii,i<0&&(i=i+ii),a=a%ii,a<0&&(a=a+ii),i>a&&!o?a+=ii:i<a&&o&&(i+=ii),o){var h=a;a=i,i=h}for(var d=0;d<a;d+=Math.PI/2)d>i&&(xl[0]=Oc(d)*r+e,xl[1]=Rc(d)*n+t,u(s,xl,s),f(l,xl,l))}var Dt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ai=[],oi=[],Rr=[],yn=[],Or=[],kr=[],kc=Math.min,Nc=Math.max,si=Math.cos,li=Math.sin,Kr=Math.abs,Td=Math.PI,Cn=Td*2,Bc=typeof Float32Array<"u",go=[];function Fc(e){var t=Math.round(e/Td*1e8)/1e8;return t%2*Td}function zM(e,t){var r=Fc(e[0]);r<0&&(r+=Cn);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Cn?i=r+Cn:t&&r-i>=Cn?i=r-Cn:!t&&r>i?i=r+(Cn-Fc(r-i)):t&&r<i&&(i=r-(Cn-Fc(i-r))),e[0]=r,e[1]=i}var ja=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=Kr(n/Nu/t)||0,this._uy=Kr(n/Nu/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(Dt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Kr(t-this._xi),i=Kr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Dt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(Dt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(Dt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),go[0]=i,go[1]=a,zM(go,o),i=go[0],a=go[1];var s=a-i;return this.addData(Dt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=si(a)*n+t,this._yi=li(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(Dt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Dt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Bc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Bc&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Bc&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Rr[0]=Rr[1]=Or[0]=Or[1]=Number.MAX_VALUE,yn[0]=yn[1]=kr[0]=kr[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case Dt.M:r=i=t[o++],n=a=t[o++],Or[0]=i,Or[1]=a,kr[0]=i,kr[1]=a;break;case Dt.L:ym(r,n,t[o],t[o+1],Or,kr),r=t[o++],n=t[o++];break;case Dt.C:FM(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Or,kr),r=t[o++],n=t[o++];break;case Dt.Q:VM(r,n,t[o++],t[o++],t[o],t[o+1],Or,kr),r=t[o++],n=t[o++];break;case Dt.A:var u=t[o++],f=t[o++],c=t[o++],h=t[o++],d=t[o++],v=t[o++]+d;o+=1;var p=!t[o++];l&&(i=si(d)*c+u,a=li(d)*h+f),HM(u,f,c,h,d,v,p,Or,kr),r=si(v)*c+u,n=li(v)*h+f;break;case Dt.R:i=r=t[o++],a=n=t[o++];var g=t[o++],m=t[o++];ym(i,a,i+g,a+m,Or,kr);break;case Dt.Z:r=i,n=a;break}Ia(Rr,Rr,Or),Aa(yn,yn,kr)}return o===0&&(Rr[0]=Rr[1]=yn[0]=yn[1]=0),new wt(Rr[0],Rr[1],yn[0]-Rr[0],yn[1]-Rr[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,h=0;h<r;){var d=t[h++],v=h===1;v&&(a=t[h],o=t[h+1],s=a,l=o);var p=-1;switch(d){case Dt.M:a=s=t[h++],o=l=t[h++];break;case Dt.L:{var g=t[h++],m=t[h++],_=g-a,y=m-o;(Kr(_)>n||Kr(y)>i||h===r-1)&&(p=Math.sqrt(_*_+y*y),a=g,o=m);break}case Dt.C:{var b=t[h++],S=t[h++],g=t[h++],m=t[h++],w=t[h++],T=t[h++];p=dA(a,o,b,S,g,m,w,T,10),a=w,o=T;break}case Dt.Q:{var b=t[h++],S=t[h++],g=t[h++],m=t[h++];p=gA(a,o,b,S,g,m,10),a=g,o=m;break}case Dt.A:var C=t[h++],x=t[h++],D=t[h++],A=t[h++],M=t[h++],E=t[h++],O=E+M;h+=1,v&&(s=si(M)*D+C,l=li(M)*A+x),p=Nc(D,A)*kc(Cn,Math.abs(E)),a=si(O)*D+C,o=li(O)*A+x;break;case Dt.R:{s=a=t[h++],l=o=t[h++];var V=t[h++],k=t[h++];p=V*2+k*2;break}case Dt.Z:{var _=s-a,y=l-o;p=Math.sqrt(_*_+y*y),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,d=r<1,v,p,g=0,m=0,_,y=0,b,S;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,_=r*p,!_)))t:for(var w=0;w<o;){var T=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),T!==Dt.L&&y>0&&(t.lineTo(b,S),y=0),T){case Dt.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case Dt.L:{c=n[w++],h=n[w++];var x=Kr(c-u),D=Kr(h-f);if(x>i||D>a){if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;t.lineTo(u*(1-M)+c*M,f*(1-M)+h*M);break t}g+=A}t.lineTo(c,h),u=c,f=h,y=0}else{var E=x*x+D*D;E>y&&(b=c,S=h,y=E)}break}case Dt.C:{var O=n[w++],V=n[w++],k=n[w++],K=n[w++],$=n[w++],ot=n[w++];if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;Ru(u,O,k,$,M,ai),Ru(f,V,K,ot,M,oi),t.bezierCurveTo(ai[1],oi[1],ai[2],oi[2],ai[3],oi[3]);break t}g+=A}t.bezierCurveTo(O,V,k,K,$,ot),u=$,f=ot;break}case Dt.Q:{var O=n[w++],V=n[w++],k=n[w++],K=n[w++];if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;Ss(u,O,k,M,ai),Ss(f,V,K,M,oi),t.quadraticCurveTo(ai[1],oi[1],ai[2],oi[2]);break t}g+=A}t.quadraticCurveTo(O,V,k,K),u=k,f=K;break}case Dt.A:var kt=n[w++],zt=n[w++],vt=n[w++],se=n[w++],fe=n[w++],ke=n[w++],Ce=n[w++],Ne=!n[w++],pt=vt>se?vt:se,et=Kr(vt-se)>.001,ut=fe+ke,q=!1;if(d){var A=v[m++];g+A>_&&(ut=fe+ke*(_-g)/A,q=!0),g+=A}if(et&&t.ellipse?t.ellipse(kt,zt,vt,se,Ce,fe,ut,Ne):t.arc(kt,zt,pt,fe,ut,Ne),q)break t;C&&(s=si(fe)*vt+kt,l=li(fe)*se+zt),u=si(ut)*vt+kt,f=li(ut)*se+zt;break;case Dt.R:s=u=n[w],l=f=n[w+1],c=n[w++],h=n[w++];var Q=n[w++],I=n[w++];if(d){var A=v[m++];if(g+A>_){var L=_-g;t.moveTo(c,h),t.lineTo(c+kc(L,Q),h),L-=Q,L>0&&t.lineTo(c+Q,h+kc(L,I)),L-=I,L>0&&t.lineTo(c+Nc(Q-L,0),h+I),L-=Q,L>0&&t.lineTo(c,h+Nc(I-L,0));break t}g+=A}t.rect(c,h,Q,I);break;case Dt.Z:if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;t.lineTo(u*(1-M)+s*M,f*(1-M)+l*M);break t}g+=A}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=Dt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function la(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function GM(e,t,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>a+c&&f>s+c||f<t-c&&f<n-c&&f<a-c&&f<s-c||u>e+c&&u>r+c&&u>i+c&&u>o+c||u<e-c&&u<r-c&&u<i-c&&u<o-c)return!1;var h=hA(e,t,r,n,i,a,o,s,u,f);return h<=c/2}function $M(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var f=pA(e,t,r,n,i,a,s,l);return f<=u/2}var Sm=Math.PI*2;function Cl(e){return e%=Sm,e<0&&(e+=Sm),e}var mo=Math.PI*2;function UM(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%mo<1e-4)return!0;if(a){var c=n;n=Cl(i),i=Cl(c)}else n=Cl(n),i=Cl(i);n>i&&(i+=mo);var h=Math.atan2(l,s);return h<0&&(h+=mo),h>=n&&h<=i||h+mo>=n&&h+mo<=i}function ui(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var _n=ja.CMD,fi=Math.PI*2,WM=1e-4;function YM(e,t){return Math.abs(e-t)<WM}var Ae=[-1,-1,-1],hr=[-1,-1];function XM(){var e=hr[0];hr[0]=hr[1],hr[1]=e}function qM(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=CS(t,n,a,s,u,Ae);if(f===0)return 0;for(var c=0,h=-1,d=void 0,v=void 0,p=0;p<f;p++){var g=Ae[p],m=g===0||g===1?.5:1,_=Ee(e,r,i,o,g);_<l||(h<0&&(h=DS(t,n,a,s,hr),hr[1]<hr[0]&&h>1&&XM(),d=Ee(t,n,a,s,hr[0]),h>1&&(v=Ee(t,n,a,s,hr[1]))),h===2?g<hr[0]?c+=d<t?m:-m:g<hr[1]?c+=v<d?m:-m:c+=s<v?m:-m:g<hr[0]?c+=d<t?m:-m:c+=s<d?m:-m)}return c}function KM(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=vA(t,n,a,s,Ae);if(l===0)return 0;var u=IS(t,n,a);if(u>=0&&u<=1){for(var f=0,c=Re(t,n,a,u),h=0;h<l;h++){var d=Ae[h]===0||Ae[h]===1?.5:1,v=Re(e,r,i,Ae[h]);v<o||(Ae[h]<u?f+=c<t?d:-d:f+=a<c?d:-d)}return f}else{var d=Ae[0]===0||Ae[0]===1?.5:1,v=Re(e,r,i,Ae[0]);return v<o?0:a<t?d:-d}}function jM(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Ae[0]=-l,Ae[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=fi-1e-4){n=0,i=fi;var f=a?1:-1;return o>=Ae[0]+e&&o<=Ae[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=fi,i+=fi);for(var h=0,d=0;d<2;d++){var v=Ae[d];if(v+e>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=fi+p),(p>=n&&p<=i||p+fi>=n&&p+fi<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function JS(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,h,d,v=0;v<o;){var p=a[v++],g=v===1;switch(p===_n.M&&v>1&&(r||(s+=ui(l,u,f,c,n,i))),g&&(l=a[v],u=a[v+1],f=l,c=u),p){case _n.M:f=a[v++],c=a[v++],l=f,u=c;break;case _n.L:if(r){if(la(l,u,a[v],a[v+1],t,n,i))return!0}else s+=ui(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case _n.C:if(r){if(GM(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=qM(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case _n.Q:if(r){if($M(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=KM(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case _n.A:var m=a[v++],_=a[v++],y=a[v++],b=a[v++],S=a[v++],w=a[v++];v+=1;var T=!!(1-a[v++]);h=Math.cos(S)*y+m,d=Math.sin(S)*b+_,g?(f=h,c=d):s+=ui(l,u,h,d,n,i);var C=(n-m)*b/y+m;if(r){if(UM(m,_,b,S,S+w,T,t,C,i))return!0}else s+=jM(m,_,b,S,S+w,T,C,i);l=Math.cos(S+w)*y+m,u=Math.sin(S+w)*b+_;break;case _n.R:f=l=a[v++],c=u=a[v++];var x=a[v++],D=a[v++];if(h=f+x,d=c+D,r){if(la(f,c,h,c,t,n,i)||la(h,c,h,d,t,n,i)||la(h,d,f,d,t,n,i)||la(f,d,f,c,t,n,i))return!0}else s+=ui(h,c,h,d,n,i),s+=ui(f,d,f,c,n,i);break;case _n.Z:if(r){if(la(l,u,f,c,t,n,i))return!0}else s+=ui(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!YM(u,c)&&(s+=ui(l,u,f,c,n,i)||0),s!==0}function ZM(e,t,r){return JS(e,0,!1,t,r)}function QM(e,t,r,n){return JS(e,t,!0,r,n)}var tw=Ut({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ki),JM={style:Ut({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Pf.style)},Vc=ws.concat(["invisible","culling","z","z2","zlevel","parent"]),Ht=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.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){r.buildPath(l,r.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<Vc.length;++s)i[Vc[s]]=this[Vc[s]];i.__dirty|=er}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Kt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(rt(r)){var n=ku(r,0);return n>.5?yd:n>.2?BA:_d}else if(r)return _d}return yd},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(rt(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=ku(r,0)<md;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~xa},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new ja(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&xa)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,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)),QM(s,l/u,r,n)))return!0}if(this.hasFill())return ZM(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=xa,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:G(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&xa)},t.prototype.createStyle=function(r){return Df(tw,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=G({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=G({},i.shape),G(u,n.shape)):(u=G({},a?this.shape:i.shape),G(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=G({},this.shape);for(var f={},c=Kt(u),h=0;h<c.length;h++){var d=c[h];typeof u[d]=="object"?this.shape[d]=u[d]:f[d]=u[d]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return JM},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){tt(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return gt(r.style)},o.prototype.getDefaultShape=function(){return gt(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=er|ko|xa}(),t}(io),tL=Ut({strokeFirst:!0,font:zi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},tw),Vu=function(e){tt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Df(tL,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=kS(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.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 r=t.prototype;r.dirtyRectTolerance=10}(),t}(io);Vu.prototype.type="tspan";var eL=Ut({x:0,y:0},ki),rL={style:Ut({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Pf.style)};function nL(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Yn=function(e){tt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Df(eL,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=nL(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return rL},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new wt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(io);Yn.prototype.type="image";function iL(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+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),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var La=Math.round;function ew(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(La(n*2)===La(i*2)&&(e.x1=e.x2=Di(n,s,!0)),La(a*2)===La(o*2)&&(e.y1=e.y2=Di(a,s,!0))),e}}function rw(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Di(n,s,!0),e.y=Di(i,s,!0),e.width=Math.max(Di(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Di(i+o,s,!1)-e.y,o===0?0:1)),e}}function Di(e,t,r){if(!t)return e;var n=La(e*2);return(n+La(t))%2===0?n/2:(n+(r?1:-1))/2}var aL=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),oL={},we=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new aL},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=rw(oL,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?iL(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ht);we.prototype.type="rect";var wm={fill:"#000"},Tm=2,sL={style:Ut({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},Pf.style)},xe=function(e){tt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=wm,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,hL(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new wt(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||wm},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return G(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=Kt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},G(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return sL},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||zi,i=r.padding,a=Lm(r),o=AM(a,r),s=Hc(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,d=o.lineHeight,v=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=r.x||0,g=r.y||0,m=r.align||v.align||"left",_=r.verticalAlign||v.verticalAlign||"top",y=p,b=Ca(g,o.contentHeight,_);if(s||i){var S=Bo(p,f,m),w=Ca(g,u,_);s&&this._renderBackground(r,r,S,w,f,u)}b+=d/2,i&&(y=Mm(p,m,i),_==="top"?b+=i[0]:_==="bottom"&&(b-=i[2]));for(var T=0,C=!1,x=Am("fill"in r?r.fill:(C=!0,v.fill)),D=Im("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(T=Tm,v.stroke):null),A=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),E=o.calculatedLineHeight,O=0;O<h.length;O++){var V=this._getOrCreateChild(Vu),k=V.createStyle();V.useStyle(k),k.text=h[O],k.x=y,k.y=b,k.textAlign=m,k.textBaseline="middle",k.opacity=r.opacity,k.strokeFirst=!0,A&&(k.shadowBlur=r.textShadowBlur||0,k.shadowColor=r.textShadowColor||"transparent",k.shadowOffsetX=r.textShadowOffsetX||0,k.shadowOffsetY=r.textShadowOffsetY||0),k.stroke=D,k.fill=x,D&&(k.lineWidth=r.lineWidth||T,k.lineDash=r.lineDash,k.lineDashOffset=r.lineDashOffset||0),k.font=n,Cm(k,r),b+=d,M&&V.setBoundingRect(new wt(Bo(k.x,c,k.textAlign),Ca(k.y,E,k.textBaseline),c,E))}},t.prototype._updateRichTexts=function(){var r=this.style,n=Lm(r),i=PM(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,h=r.align||c.align,d=r.verticalAlign||c.verticalAlign;this.isTruncated=!!i.isTruncated;var v=Bo(u,o,h),p=Ca(f,s,d),g=v,m=p;l&&(g+=l[3],m+=l[0]);var _=g+a;Hc(r)&&this._renderBackground(r,r,v,p,o,s);for(var y=!!r.backgroundColor,b=0;b<i.lines.length;b++){for(var S=i.lines[b],w=S.tokens,T=w.length,C=S.lineHeight,x=S.width,D=0,A=g,M=_,E=T-1,O=void 0;D<T&&(O=w[D],!O.align||O.align==="left");)this._placeToken(O,r,C,m,A,"left",y),x-=O.width,A+=O.width,D++;for(;E>=0&&(O=w[E],O.align==="right");)this._placeToken(O,r,C,m,M,"right",y),x-=O.width,M-=O.width,E--;for(A+=(a-(A-g)-(_-M)-x)/2;D<=E;)O=w[D],this._placeToken(O,r,C,m,A+O.width/2,"center",y),A+=O.width,D++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&Hc(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var d=!!u.backgroundColor,v=r.textPadding;v&&(o=Mm(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Vu),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,_=!1,y=0,b=Am("fill"in u?u.fill:"fill"in n?n.fill:(_=!0,m.fill)),S=Im("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!m.autoStroke||_)?(y=Tm,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,w&&(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=r.font||zi,g.opacity=Ei(u.opacity,n.opacity,1),Cm(g,u),S&&(g.lineWidth=Ei(u.lineWidth,n.lineWidth,y),g.lineDash=ht(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=S),b&&(g.fill=b);var T=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new wt(Bo(g.x,T,g.textAlign),Ca(g.y,C,g.textBaseline),T,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,d=r.borderRadius,v=this,p,g;if(h||r.lineHeight||u&&f){p=this._getOrCreateChild(we),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=d,p.dirtyShape()}if(h){var _=p.style;_.fill=l||null,_.fillOpacity=ht(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Yn),g.onload=function(){v.dirtyStyle()};var y=g.style;y.image=l.image,y.x=i,y.y=a,y.width=o,y.height=s}if(u&&f){var _=p.style;_.lineWidth=u,_.stroke=f,_.strokeOpacity=ht(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Ei(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return cL(r)&&(n=[r.fontStyle,r.fontWeight,fL(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&zr(n)||r.textFont||r.font},t}(io),lL={left:!0,right:1,center:1},uL={top:1,bottom:1,middle:1},xm=["fontStyle","fontWeight","fontSize","fontFamily"];function fL(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Fv+"px":e+"px"}function Cm(e,t){for(var r=0;r<xm.length;r++){var n=xm[r],i=t[n];i!=null&&(e[n]=i)}}function cL(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function hL(e){return Dm(e),P(e.rich,Dm),e}function Dm(e){if(e){e.font=xe.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||lL[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||uL[r]?r:"top";var n=e.padding;n&&(e.padding=$v(e.padding))}}function Im(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Am(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Mm(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Lm(e){var t=e.text;return t!=null&&(t+=""),t}function Hc(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Ct=ee(),dL=function(e,t,r,n){if(n){var i=Ct(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Ct(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},Pm=1,Em={},nw=ee(),tp=ee(),iw=0,ep=1,rp=2,Ur=["emphasis","blur","select"],Rm=["normal","emphasis","blur","select"],js=10,vL=9,Ni="highlight",su="downplay",es="select",lu="unselect",rs="toggleSelect";function ua(e){return e!=null&&e!=="none"}function Ef(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function aw(e){Ef(e,"emphasis",rp)}function ow(e){e.hoverState===rp&&Ef(e,"normal",iw)}function np(e){Ef(e,"blur",ep)}function sw(e){e.hoverState===ep&&Ef(e,"normal",iw)}function pL(e){e.selected=!0}function gL(e){e.selected=!1}function Om(e,t,r){t(e,r)}function vn(e,t,r){Om(e,t,r),e.isGroup&&e.traverse(function(n){Om(n,t,r)})}function mL(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function yL(e,t,r,n){var i=r&&Mt(r,"select")>=0,a=!1;if(e instanceof Ht){var o=nw(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ua(s)||ua(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=G({},n),u=G({},u),u.fill=s):!ua(u.fill)&&ua(s)?(a=!0,n=G({},n),u=G({},u),u.fill=Qg(s)):!ua(u.stroke)&&ua(l)&&(a||(n=G({},n),u=G({},u)),u.stroke=Qg(l)),n.style=u}}if(n&&n.z2==null){a||(n=G({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??js)}return n}function _L(e,t,r){if(r&&r.z2==null){r=G({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??vL)}return r}function bL(e,t,r){var n=Mt(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:mL(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=G({},r),o=G({opacity:n?i:a.opacity*.1},o),r.style=o),r}function zc(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return yL(this,e,t,r);if(e==="blur")return bL(this,e,r);if(e==="select")return _L(this,e,r)}return r}function xd(e){e.stateProxy=zc;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=zc),r&&(r.stateProxy=zc)}function km(e,t){!cw(e,t)&&!e.__highByOuter&&vn(e,aw)}function Nm(e,t){!cw(e,t)&&!e.__highByOuter&&vn(e,ow)}function Cs(e,t){e.__highByOuter|=1<<(t||0),vn(e,aw)}function Ds(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&vn(e,ow)}function SL(e){vn(e,np)}function lw(e){vn(e,sw)}function uw(e){vn(e,pL)}function fw(e){vn(e,gL)}function cw(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function hw(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=tp(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){sw(u)}),s&&r.push(a)),o.isBlured=!1}),P(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function Cd(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&lw(h)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||t==="series"&&f)){var d=n.getViewOfSeriesModel(u);if(d.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||np(g)}),qe(t))a(u.getData(),t);else if(it(t))for(var v=Kt(t),p=0;p<v.length;p++)a(u.getData(v[p]),t[v[p]]);l.push(u),tp(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Dd(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){tp(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){np(a)})}}}function wL(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=qs(i,t);a=(j(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=Ct(o);Cd(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&Cd(n,f,c,r)}}}function ip(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(Ct(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function TL(e,t,r){var n=Ct(e),i=ip(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Dd(n.componentMainType,n.componentIndex,r),P(a,function(s){return km(s,t)})):(Cd(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Dd(n.componentMainType,n.componentIndex,r),km(e,t))}function xL(e,t,r){hw(r);var n=Ct(e),i=ip(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?P(i,function(a){return Nm(a,t)}):Nm(e,t)}function CL(e,t,r){if(Md(t)){var n=t.dataType,i=e.getData(n),a=qs(i,t);j(a)||(a=[a]),e[t.type===rs?"toggleSelect":t.type===es?"select":"unselect"](a,n)}}function Bm(e){var t=e.getAllData();P(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?uw(a):fw(a)})})}function DL(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();P(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Id(e,t,r){Pa(e,!0),vn(e,xd),Ad(e,t,r)}function IL(e){Pa(e,!1)}function ap(e,t,r,n){n?IL(e):Id(e,t,r)}function Ad(e,t,r){var n=Ct(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}function Pa(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Is(e){return!!(e&&e.__highDownDispatcher)}function AL(e){var t=Em[e];return t==null&&Pm<=32&&(t=Em[e]=Pm++),t}function Md(e){var t=e.type;return t===es||t===lu||t===rs}function Fm(e){var t=e.type;return t===Ni||t===su}function ML(e){var t=nw(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var fa=ja.CMD,LL=[[],[],[]],Vm=Math.sqrt,PL=Math.atan2;function EL(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=fa.M,c=fa.C,h=fa.L,d=fa.R,v=fa.A,p=fa.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case p:a=2;break;case v:var g=t[4],m=t[5],_=Vm(t[0]*t[0]+t[1]*t[1]),y=Vm(t[2]*t[2]+t[3]*t[3]),b=PL(-t[1]/y,t[0]/_);r[o]*=_,r[o++]+=g,r[o]*=y,r[o++]+=m,r[o++]*=_,r[o++]*=y,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case d:u[0]=r[o++],u[1]=r[o++],ir(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ir(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=LL[l];S[0]=r[o++],S[1]=r[o++],ir(S,S,t),r[s++]=S[0],r[s++]=S[1]}}e.increaseVersion()}}var Gc=Math.sqrt,Dl=Math.sin,Il=Math.cos,yo=Math.PI;function Hm(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ld(e,t){return(e[0]*t[0]+e[1]*t[1])/(Hm(e)*Hm(t))}function zm(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Ld(e,t))}function Gm(e,t,r,n,i,a,o,s,l,u,f){var c=l*(yo/180),h=Il(c)*(e-r)/2+Dl(c)*(t-n)/2,d=-1*Dl(c)*(e-r)/2+Il(c)*(t-n)/2,v=h*h/(o*o)+d*d/(s*s);v>1&&(o*=Gc(v),s*=Gc(v));var p=(i===a?-1:1)*Gc((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,g=p*o*d/s,m=p*-s*h/o,_=(e+r)/2+Il(c)*g-Dl(c)*m,y=(t+n)/2+Dl(c)*g+Il(c)*m,b=zm([1,0],[(h-g)/o,(d-m)/s]),S=[(h-g)/o,(d-m)/s],w=[(-1*h-g)/o,(-1*d-m)/s],T=zm(S,w);if(Ld(S,w)<=-1&&(T=yo),Ld(S,w)>=1&&(T=0),T<0){var C=Math.round(T/yo*1e6)/1e6;T=yo*2+C%2*yo}f.addData(u,_,y,o,s,b,T,c,a)}var RL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kL(e){var t=new ja;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=ja.CMD,l=e.match(RL);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,d=f.match(OL)||[],v=d.length,p=0;p<v;p++)d[p]=parseFloat(d[p]);for(var g=0;g<v;){var m=void 0,_=void 0,y=void 0,b=void 0,S=void 0,w=void 0,T=void 0,C=r,x=n,D=void 0,A=void 0;switch(c){case"l":r+=d[g++],n+=d[g++],h=s.L,t.addData(h,r,n);break;case"L":r=d[g++],n=d[g++],h=s.L,t.addData(h,r,n);break;case"m":r+=d[g++],n+=d[g++],h=s.M,t.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=d[g++],n=d[g++],h=s.M,t.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=d[g++],h=s.L,t.addData(h,r,n);break;case"H":r=d[g++],h=s.L,t.addData(h,r,n);break;case"v":n+=d[g++],h=s.L,t.addData(h,r,n);break;case"V":n=d[g++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,d[g++],d[g++],d[g++],d[g++],d[g++],d[g++]),r=d[g-2],n=d[g-1];break;case"c":h=s.C,t.addData(h,d[g++]+r,d[g++]+n,d[g++]+r,d[g++]+n,d[g++]+r,d[g++]+n),r+=d[g-2],n+=d[g-1];break;case"S":m=r,_=n,D=t.len(),A=t.data,o===s.C&&(m+=r-A[D-4],_+=n-A[D-3]),h=s.C,C=d[g++],x=d[g++],r=d[g++],n=d[g++],t.addData(h,m,_,C,x,r,n);break;case"s":m=r,_=n,D=t.len(),A=t.data,o===s.C&&(m+=r-A[D-4],_+=n-A[D-3]),h=s.C,C=r+d[g++],x=n+d[g++],r+=d[g++],n+=d[g++],t.addData(h,m,_,C,x,r,n);break;case"Q":C=d[g++],x=d[g++],r=d[g++],n=d[g++],h=s.Q,t.addData(h,C,x,r,n);break;case"q":C=d[g++]+r,x=d[g++]+n,r+=d[g++],n+=d[g++],h=s.Q,t.addData(h,C,x,r,n);break;case"T":m=r,_=n,D=t.len(),A=t.data,o===s.Q&&(m+=r-A[D-4],_+=n-A[D-3]),r=d[g++],n=d[g++],h=s.Q,t.addData(h,m,_,r,n);break;case"t":m=r,_=n,D=t.len(),A=t.data,o===s.Q&&(m+=r-A[D-4],_+=n-A[D-3]),r+=d[g++],n+=d[g++],h=s.Q,t.addData(h,m,_,r,n);break;case"A":y=d[g++],b=d[g++],S=d[g++],w=d[g++],T=d[g++],C=r,x=n,r=d[g++],n=d[g++],h=s.A,Gm(C,x,r,n,w,T,y,b,S,h,t);break;case"a":y=d[g++],b=d[g++],S=d[g++],w=d[g++],T=d[g++],C=r,x=n,r+=d[g++],n+=d[g++],h=s.A,Gm(C,x,r,n,w,T,y,b,S,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),r=i,n=a),o=h}return t.toStatic(),t}var dw=function(e){tt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Ht);function vw(e){return e.setData!=null}function pw(e,t){var r=kL(e),n=G({},t);return n.buildPath=function(i){if(vw(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){EL(r,i),this.dirtyShape()},n}function NL(e,t){return new dw(pw(e,t))}function BL(e,t){var r=pw(e,t),n=function(i){tt(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(dw);return n}function FL(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Ht(t);return o.createPathProxy(),o.buildPath=function(s){if(vw(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var VL=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Rf=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new VL},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Ht);Rf.prototype.type="circle";var HL=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),op=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new HL},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},t}(Ht);op.prototype.type="ellipse";var gw=Math.PI,$c=gw*2,ci=Math.sin,ca=Math.cos,zL=Math.acos,pe=Math.atan2,$m=Math.abs,ns=Math.sqrt,Fo=Math.max,Nr=Math.min,Sr=1e-4;function GL(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<Sr))return h=(f*(t-a)-c*(e-i))/h,[e+h*l,t+h*u]}function Al(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/ns(s*s+l*l),f=u*l,c=-u*s,h=e+f,d=t+c,v=r+f,p=n+c,g=(h+v)/2,m=(d+p)/2,_=v-h,y=p-d,b=_*_+y*y,S=i-a,w=h*p-v*d,T=(y<0?-1:1)*ns(Fo(0,S*S*b-w*w)),C=(w*y-_*T)/b,x=(-w*_-y*T)/b,D=(w*y+_*T)/b,A=(-w*_+y*T)/b,M=C-g,E=x-m,O=D-g,V=A-m;return M*M+E*E>O*O+V*V&&(C=D,x=A),{cx:C,cy:x,x0:-f,y0:-c,x1:C*(i/S-1),y1:x*(i/S-1)}}function $L(e){var t;if(j(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function UL(e,t){var r,n=Fo(t.r,0),i=Fo(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,d=$m(u-l),v=d>$c&&d%$c;if(v>Sr&&(d=v),!(n>Sr))e.moveTo(f,c);else if(d>$c-Sr)e.moveTo(f+n*ca(l),c+n*ci(l)),e.arc(f,c,n,l,u,!h),i>Sr&&(e.moveTo(f+i*ca(u),c+i*ci(u)),e.arc(f,c,i,u,l,h));else{var p=void 0,g=void 0,m=void 0,_=void 0,y=void 0,b=void 0,S=void 0,w=void 0,T=void 0,C=void 0,x=void 0,D=void 0,A=void 0,M=void 0,E=void 0,O=void 0,V=n*ca(l),k=n*ci(l),K=i*ca(u),$=i*ci(u),ot=d>Sr;if(ot){var kt=t.cornerRadius;kt&&(r=$L(kt),p=r[0],g=r[1],m=r[2],_=r[3]);var zt=$m(n-i)/2;if(y=Nr(zt,m),b=Nr(zt,_),S=Nr(zt,p),w=Nr(zt,g),x=T=Fo(y,b),D=C=Fo(S,w),(T>Sr||C>Sr)&&(A=n*ca(u),M=n*ci(u),E=i*ca(l),O=i*ci(l),d<gw)){var vt=GL(V,k,E,O,A,M,K,$);if(vt){var se=V-vt[0],fe=k-vt[1],ke=A-vt[0],Ce=M-vt[1],Ne=1/ci(zL((se*ke+fe*Ce)/(ns(se*se+fe*fe)*ns(ke*ke+Ce*Ce)))/2),pt=ns(vt[0]*vt[0]+vt[1]*vt[1]);x=Nr(T,(n-pt)/(Ne+1)),D=Nr(C,(i-pt)/(Ne-1))}}}if(!ot)e.moveTo(f+V,c+k);else if(x>Sr){var et=Nr(m,x),ut=Nr(_,x),q=Al(E,O,V,k,n,et,h),Q=Al(A,M,K,$,n,ut,h);e.moveTo(f+q.cx+q.x0,c+q.cy+q.y0),x<T&&et===ut?e.arc(f+q.cx,c+q.cy,x,pe(q.y0,q.x0),pe(Q.y0,Q.x0),!h):(et>0&&e.arc(f+q.cx,c+q.cy,et,pe(q.y0,q.x0),pe(q.y1,q.x1),!h),e.arc(f,c,n,pe(q.cy+q.y1,q.cx+q.x1),pe(Q.cy+Q.y1,Q.cx+Q.x1),!h),ut>0&&e.arc(f+Q.cx,c+Q.cy,ut,pe(Q.y1,Q.x1),pe(Q.y0,Q.x0),!h))}else e.moveTo(f+V,c+k),e.arc(f,c,n,l,u,!h);if(!(i>Sr)||!ot)e.lineTo(f+K,c+$);else if(D>Sr){var et=Nr(p,D),ut=Nr(g,D),q=Al(K,$,A,M,i,-ut,h),Q=Al(V,k,E,O,i,-et,h);e.lineTo(f+q.cx+q.x0,c+q.cy+q.y0),D<C&&et===ut?e.arc(f+q.cx,c+q.cy,D,pe(q.y0,q.x0),pe(Q.y0,Q.x0),!h):(ut>0&&e.arc(f+q.cx,c+q.cy,ut,pe(q.y0,q.x0),pe(q.y1,q.x1),!h),e.arc(f,c,i,pe(q.cy+q.y1,q.cx+q.x1),pe(Q.cy+Q.y1,Q.cx+Q.x1),h),et>0&&e.arc(f+Q.cx,c+Q.cy,et,pe(Q.y1,Q.x1),pe(Q.y0,Q.x0),!h))}else e.lineTo(f+K,c+$),e.arc(f,c,i,u,l,h)}e.closePath()}}}var WL=function(){function e(){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 e}(),sp=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new WL},t.prototype.buildPath=function(r,n){UL(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ht);sp.prototype.type="sector";var YL=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),lp=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new YL},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(Ht);lp.prototype.type="ring";function XL(e,t,r,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,d=e.length;h<d;h++)Ia(f,f,e[h]),Aa(c,c,e[h]);Ia(f,f,n[0]),Aa(c,c,n[1])}for(var h=0,d=e.length;h<d;h++){var v=e[h];if(r)l=e[h?h-1:d-1],u=e[(h+1)%d];else if(h===0||h===d-1){i.push(nn(e[h]));continue}else l=e[h-1],u=e[h+1];Ti(a,u,l),tu(a,a,t);var p=od(v,l),g=od(v,u),m=p+g;m!==0&&(p/=m,g/=m),tu(o,a,-p),tu(s,a,g);var _=kg([],v,o),y=kg([],v,s);n&&(Aa(_,_,f),Ia(_,_,c),Aa(y,y,f),Ia(y,y,c)),i.push(_),i.push(y)}return r&&i.push(i.shift()),i}function mw(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=XL(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var qL=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Of=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new qL},t.prototype.buildPath=function(r,n){mw(r,n,!0)},t}(Ht);Of.prototype.type="polygon";var KL=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),up=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new KL},t.prototype.buildPath=function(r,n){mw(r,n,!1)},t}(Ht);up.prototype.type="polyline";var jL={},ZL=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Ji=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ZL},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=ew(jL,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(Ht);Ji.prototype.type="line";var Fe=[],QL=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Um(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?Xg:Ee)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Xg:Ee)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?qg:Re)(e.x1,e.cpx1,e.x2,t),(r?qg:Re)(e.y1,e.cpy1,e.y2,t)]}var kf=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new QL},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),f==null||c==null?(h<1&&(Ss(i,l,o,h,Fe),l=Fe[1],o=Fe[2],Ss(a,u,s,h,Fe),u=Fe[1],s=Fe[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(Ru(i,l,f,o,h,Fe),l=Fe[1],f=Fe[2],o=Fe[3],Ru(a,u,c,s,h,Fe),u=Fe[1],c=Fe[2],s=Fe[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return Um(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Um(this.shape,r,!0);return no(n,n)},t}(Ht);kf.prototype.type="bezier-curve";var JL=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Nf=function(e){tt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JL},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},t}(Ht);Nf.prototype.type="arc";var tP=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ht.prototype.getBoundingRect.call(this)},t}(Ht),yw=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),eP=function(e){tt(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(yw),rP=function(e){tt(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(yw),hi=[0,0],di=[0,0],Ml=new Et,Ll=new Et,Hu=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Et;for(var n=0;n<2;n++)this._axes[n]=new Et;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);Et.sub(i[0],n[1],n[0]),Et.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Ml.set(1/0,1/0),Ll.set(0,0),!this._intersectCheckOneSide(this,t,Ml,Ll,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Ml,Ll,i,-1)&&(n=!1,i)||i||Et.copy(r,n?Ml:Ll),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,hi),this._getProjMinMaxOnAxis(l,r._corners,di),hi[1]<di[0]||hi[0]>di[1]){if(s=!1,a)return s;var f=Math.abs(di[0]-hi[1]),c=Math.abs(hi[0]-di[1]);Math.min(f,c)>i.len()&&(f<c?Et.scale(i,u,-f*o):Et.scale(i,u,c*o))}else if(n){var f=Math.abs(di[0]-hi[1]),c=Math.abs(hi[0]-di[1]);Math.min(f,c)<n.len()&&(f<c?Et.scale(n,u,f*o):Et.scale(n,u,-c*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},e}(),nP=[],iP=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new wt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(nP)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(io),aP=ee();function oP(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=ht(n.duration,200),f=ht(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),St(c)&&(c=c(r,i)),St(u)&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function fp(e,t,r,n,i,a,o){var s=!1,l;St(i)?(o=a,a=i,i=null):it(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=oP(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,d=f.easing,v={duration:c,delay:h||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Xn(e,t,r,n,i,a){fp("update",e,t,r,n,i,a)}function cp(e,t,r,n,i,a){fp("enter",e,t,r,n,i,a)}function is(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function zu(e,t,r,n,i,a){is(e)||fp("leave",e,t,r,n,i,a)}function Wm(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),zu(e,{style:{opacity:0}},t,r,n)}function sP(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||Wm(i,t,r,n)}):Wm(e,t,r,n)}function lP(e){aP(e).oldStyle=e.style}var Gu=Math.max,$u=Math.min,Pd={};function uP(e){return Ht.extend(e)}var fP=BL;function cP(e,t){return fP(e,t)}function Pr(e,t){Pd[e]=t}function hP(e){if(Pd.hasOwnProperty(e))return Pd[e]}function hp(e,t,r,n){var i=NL(e,t);return r&&(n==="center"&&(r=bw(r,i.getBoundingRect())),Sw(i,r)),i}function _w(e,t,r){var n=new Yn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(bw(t,a))}}});return n}function bw(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var dP=FL;function Sw(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function dp(e,t){return ew(e,e,{lineWidth:t}),e}function vP(e){return rw(e.shape,e.shape,e.style),e}var pP=Di;function gP(e,t){for(var r=Wv([]);e&&e!==t;)Ga(r,e.getLocalTransform(),r),e=e.parent;return r}function vp(e,t,r){return t&&!qe(t)&&(t=xi.getLocalTransform(t)),r&&(t=Xv([],t)),ir([],e,t)}function mP(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=vp(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Ym(e){return!e.isGroup}function yP(e){return e.shape!=null}function _P(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Ym(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return yP(o)&&(s.shape=G({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Ym(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Xn(o,l,r,Ct(o).dataIndex)}}})}function bP(e,t){return Tt(e,function(r){var n=r[0];n=Gu(n,t.x),n=$u(n,t.x+t.width);var i=r[1];return i=Gu(i,t.y),i=$u(i,t.y+t.height),[n,i]})}function SP(e,t){var r=Gu(e.x,t.x),n=$u(e.x+e.width,t.x+t.width),i=Gu(e.y,t.y),a=$u(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function pp(e,t,r){var n=G({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Ut(i,r),new Yn(n)):hp(e.replace("path://",""),n,r,"center")}function wP(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(ww(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function ww(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,h=Uc(f,c,l,u);if(TP(h))return!1;var d=e-i,v=t-a,p=Uc(d,v,l,u)/h;if(p<0||p>1)return!1;var g=Uc(d,v,f,c)/h;return!(g<0||g>1)}function Uc(e,t,r,n){return e*n-r*t}function TP(e){return e<=1e-6&&e>=-1e-6}function Bf(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=rt(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&P(Kt(l),function(f){Gi(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Ct(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ut({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Xm(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Ff(e,t){if(e)if(j(e))for(var r=0;r<e.length;r++)Xm(e[r],t);else Xm(e,t)}Pr("circle",Rf);Pr("ellipse",op);Pr("sector",sp);Pr("ring",lp);Pr("polygon",Of);Pr("polyline",up);Pr("rect",we);Pr("line",Ji);Pr("bezierCurve",kf);Pr("arc",Nf);const xP=Object.freeze(Object.defineProperty({__proto__:null,Arc:Nf,BezierCurve:kf,BoundingRect:wt,Circle:Rf,CompoundPath:tP,Ellipse:op,Group:oe,Image:Yn,IncrementalDisplayable:iP,Line:Ji,LinearGradient:eP,OrientedBoundingRect:Hu,Path:Ht,Point:Et,Polygon:Of,Polyline:up,RadialGradient:rP,Rect:we,Ring:lp,Sector:sp,Text:xe,applyTransform:vp,clipPointsByRect:bP,clipRectByRect:SP,createIcon:pp,extendPath:cP,extendShape:uP,getShapeClass:hP,getTransform:gP,groupTransition:_P,initProps:cp,isElementRemoved:is,lineLineIntersect:ww,linePolygonIntersect:wP,makeImage:_w,makePath:hp,mergePath:dP,registerShape:Pr,removeElement:zu,removeElementWithFadeOut:sP,resizePath:Sw,setTooltipConfig:Bf,subPixelOptimize:pP,subPixelOptimizeLine:dp,subPixelOptimizeRect:vP,transformDirection:mP,traverseElements:Ff,updateProps:Xn},Symbol.toStringTag,{value:"Module"}));var Vf={};function CP(e,t){for(var r=0;r<Ur.length;r++){var n=Ur[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function qm(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=St(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Ur.length;u++){var f=Ur[u],c=t[f];l[f]=ht(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Hf(e,t,r,n){r=r||Vf;for(var i=e instanceof xe,a=!1,o=0;o<Rm.length;o++){var s=t[Rm[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new xe,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=qm(r,t),f=t.normal,c=!!f.getShallow("show"),h=Wr(f,n,r,!1,!i);h.text=u.normal,i||e.setTextConfig(Km(f,r,!1));for(var o=0;o<Ur.length;o++){var d=Ur[o],s=t[d];if(s){var v=l.ensureState(d),p=!!ht(s.getShallow("show"),c);if(p!==c&&(v.ignore=!p),v.style=Wr(s,n,r,!0,!i),v.style.text=u[d],!i){var g=e.ensureState(d);g.textConfig=Km(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),r.enableTextSetter&&(MP(l).setLabelText=function(m){var _=qm(r,t,m);CP(l,_)})}else l&&(l.ignore=!0);e.dirty()}function Zs(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Ur.length;n++){var i=Ur[n];r[i]=e.getModel([i,t])}return r}function Wr(e,t,r,n,i){var a={};return DP(a,e,r,n,i),t&&G(a,t),a}function Km(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=ht(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function DP(e,t,r,n,i){r=r||Vf;var a=t.ecModel,o=a&&a.option.textStyle,s=IP(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Jm(l[u]={},f,o,r,n,i,!1,!0)}}l&&(e.rich=l);var c=t.get("overflow");c&&(e.overflow=c);var h=t.get("minMargin");h!=null&&(e.margin=h),Jm(e,t,o,r,n,i,!0,!1)}function IP(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Vf).rich;if(r){t=t||{};for(var n=Kt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var jm=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Zm=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Qm=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Jm(e,t,r,n,i,a,o,s){r=!i&&r||Vf;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=ht(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(e.fill=u),f!=null&&(e.stroke=f);var h=ht(t.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(e.lineWidth=h);var d=ht(t.getShallow("textBorderType"),r.textBorderType);d!=null&&(e.lineDash=d);var v=ht(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(e.opacity=c),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var p=0;p<jm.length;p++){var g=jm[p],m=ht(t.getShallow(g),r[g]);m!=null&&(e[g]=m)}for(var p=0;p<Zm.length;p++){var g=Zm[p],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var _=t.getShallow("baseline");_!=null&&(e.verticalAlign=_)}if(!o||!n.disableBox){for(var p=0;p<Qm.length;p++){var g=Qm[p],m=t.getShallow(g);m!=null&&(e[g]=m)}var y=t.getShallow("borderType");y!=null&&(e.borderDash=y),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function AP(e,t){var r=t&&t.getModel("textStyle");return zr([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var MP=ee(),LP=["textStyle","color"],Wc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Yc=new xe,PP=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(LP):null)},e.prototype.getFont=function(){return AP({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Wc.length;n++)r[Wc[n]]=this.getShallow(Wc[n]);return Yc.useStyle(r),Yc.update(),Yc.getBoundingRect()},e}(),Tw=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],EP=Ka(Tw),RP=function(){function e(){}return e.prototype.getLineStyle=function(t){return EP(this,t)},e}(),xw=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],OP=Ka(xw),kP=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return OP(this,t,r)},e}(),Ft=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){qt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(gt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!lt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();Qv(Ft);_M(Ft);Mr(Ft,RP);Mr(Ft,kP);Mr(Ft,xM);Mr(Ft,PP);var NP=Math.round(Math.random()*10);function zf(e){return[e||"",NP++].join("_")}function BP(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Gr(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Gr(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function FP(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(P(a,function(_){h[_]=!0});c.length;){var d=c.pop(),v=f[d],p=!!h[d];p&&(s.call(l,d,v.originalDeps.slice()),delete h[d]),P(v.successor,p?m:g)}P(h,function(){var _="";throw new Error(_)});function g(_){f[_].entryCount--,f[_].entryCount===0&&c.push(_)}function m(_){h[_]=!0,g(_)}};function r(a){var o={},s=[];return P(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),P(c,function(h){Mt(u.predecessor,h)<0&&u.predecessor.push(h);var d=n(o,h);Mt(d.successor,h)<0&&d.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return P(a,function(l){Mt(o,l)>=0&&s.push(l)}),s}}function VP(e,t){return qt(qt({},e,!0),t,!0)}const HP={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:". "}}}},zP={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 Uu="ZH",gp="EN",Ua=gp,uu={},mp={},Cw=lt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ua).toUpperCase();return e.indexOf(Uu)>-1?Uu:Ua}():Ua;function Dw(e,t){e=e.toUpperCase(),mp[e]=new Ft(t),uu[e]=t}function GP(e){if(rt(e)){var t=uu[e.toUpperCase()]||{};return e===Uu||e===gp?gt(t):qt(gt(t),gt(uu[Ua]),!1)}else return qt(gt(e),gt(uu[Ua]),!1)}function $P(e){return mp[e]}function UP(){return mp[Ua]}Dw(gp,HP);Dw(Uu,zP);function bn(e,t){return e+="","0000".substr(0,t-e.length)+e}function Iw(e,t,r,n){var i=Mf(e),a=i[WP(r)](),o=i[YP(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[XP(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[qP(r)](),c=(f-1)%12+1,h=i[KP(r)](),d=i[jP(r)](),v=i[ZP(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Ft?n:$P(Cw)||UP(),_=m.getModel("time"),y=_.get("month"),b=_.get("monthAbbr"),S=_.get("dayOfWeek"),w=_.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,bn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,bn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,bn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,bn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,bn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,bn(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,bn(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,bn(v,3)).replace(/{S}/g,v+"")}function WP(e){return e?"getUTCFullYear":"getFullYear"}function YP(e){return e?"getUTCMonth":"getMonth"}function XP(e){return e?"getUTCDate":"getDate"}function qP(e){return e?"getUTCHours":"getHours"}function KP(e){return e?"getUTCMinutes":"getMinutes"}function jP(e){return e?"getUTCSeconds":"getSeconds"}function ZP(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Aw(e){if(!JA(e))return rt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Mw(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Qs=$v;function Ed(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&zr(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Mf(e):e;if(isNaN(+l)){if(s)return"-"}else return Iw(l,n,r)}if(t==="ordinal")return rd(e)?i(e):jt(e)&&a(e)?e+"":"-";var u=Fu(e);return a(u)?Aw(u):rd(e)?i(e):typeof e=="boolean"?e+"":"-"}var ty=["a","b","c","d","e","f","g"],Xc=function(e,t){return"{"+e+(t??"")+"}"};function Lw(e,t,r){j(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=ty[a];e=e.replace(Xc(o),Xc(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(Xc(ty[l],s),r?Pe(u):u)}return e}function QP(e,t){var r=rt(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Pe(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Pe(n)+";"+(t||"")+'"></span>';var o=r.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 As(e,t){return t=t||"transparent",rt(e)?e:it(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Rd(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var fu=P,JP=["left","right","top","bottom","width","height"],Pl=[["width","left","right"],["height","top","bottom"]];function yp(e,t,r,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(),d,v;if(e==="horizontal"){var p=f.width+(h?-h.x+f.x:0);d=a+p,d>n||l.newline?(a=0,d=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=v+r)})}var as=yp;Yt(yp,"vertical");Yt(yp,"horizontal");function tE(e,t,r){var n=t.width,i=t.height,a=le(e.left,n),o=le(e.top,i),s=le(e.right,n),l=le(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Qs(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function Ui(e,t,r){r=Qs(r||0);var n=t.width,i=t.height,a=le(e.left,n),o=le(e.top,i),s=le(e.right,n),l=le(e.bottom,i),u=le(e.width,n),f=le(e.height,i),c=r[2]+r[0],h=r[1]+r[3],d=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),d!=null&&(isNaN(u)&&isNaN(f)&&(d>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=d*f),isNaN(f)&&(f=u/d)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[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 v=new wt(a+r[3],o+r[0],u,f);return v.margin=r,v}function eE(e,t,r,n,i,a){a=a||e,a.x=e.x,a.y=e.y;var o;if(o=e.getBoundingRect(),e.needLocalTransform()){var s=e.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=Ui(Ut({width:o.width,height:o.height},t),r,n),u=l.x-o.x,f=l.y-o.y;return a.x+=u,a.y+=f,a===e&&e.markRedraw(),!0}function Wu(e){var t=e.layoutMode||e.constructor.layoutMode;return it(t)?t:t?{type:t}:null}function Ms(e,t,r){var n=r&&r.ignoreSize;!j(n)&&(n=[n,n]);var i=o(Pl[0],0),a=o(Pl[1],1);u(Pl[0],e,i),u(Pl[1],e,a);function o(f,c){var h={},d=0,v={},p=0,g=2;if(fu(f,function(y){v[y]=e[y]}),fu(f,function(y){s(t,y)&&(h[y]=v[y]=t[y]),l(h,y)&&d++,l(v,y)&&p++}),n[c])return l(t,f[1])?v[f[2]]=null:l(t,f[2])&&(v[f[1]]=null),v;if(p===g||!d)return v;if(d>=g)return h;for(var m=0;m<f.length;m++){var _=f[m];if(!s(h,_)&&s(e,_)){h[_]=e[_];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){fu(f,function(d){c[d]=h[d]})}}function _p(e){return rE({},e)}function rE(e,t){return t&&e&&fu(JP,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var nE=ee(),Pt=function(e){tt(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=zf("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Wu(this),a=i?_p(r):{},o=n.getTheme();qt(r,o.get(this.mainType)),qt(r,this.getDefaultOption()),i&&Ms(r,a,i)},t.prototype.mergeOption=function(r,n){qt(this.option,r,!0);var i=Wu(this);i&&Ms(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!gM(r))return r.defaultOption;var n=nE(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=qt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Ks(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Ft);qS(Pt,Ft);Jv(Pt);BP(Pt);FP(Pt,iE);function iE(e){var t=[];return P(Pt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Tt(t,function(r){return Gr(r).main}),e!=="dataset"&&Mt(t,"dataset")<=0&&t.unshift("dataset"),t}var Pw="";typeof navigator<"u"&&(Pw=navigator.platform||"");var ha="rgba(0, 0, 0, 0.2)";const aE={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ha,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ha,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ha,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ha,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ha,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ha,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Pw.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 Ew=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),yr="original",je="arrayRows",Xr="objectRows",pn="keyedColumns",zn="typedArray",Rw="unknown",an="column",ao="row",Je={Must:1,Might:2,Not:3},Ow=ee();function oE(e){Ow(e).datasetMap=ft()}function sE(e,t,r){var n={},i=kw(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=Ow(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),P(e,function(p,g){var m=it(p)?p:e[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=v(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});P(e,function(p,g){var m=p.name,_=v(p);if(f==null){var y=h.valueWayDim;d(n[m],y,_),d(o,y,_),h.valueWayDim+=_}else if(f===g)d(n[m],0,_),d(a,0,_);else{var y=h.categoryWayDim;d(n[m],y,_),d(o,y,_),h.categoryWayDim+=_}});function d(p,g,m){for(var _=0;_<m;_++)p.push(g+_)}function v(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function kw(e){var t=e.get("data",!0);if(!t)return Ks(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Ci).models[0]}function lE(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Ks(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Ci).models}function Nw(e,t){return uE(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function uE(e,t,r,n,i,a){var o,s=5;if(Ke(e))return Je.Not;var l,u;if(n){var f=n[a];it(f)?(l=f.name,u=f.type):rt(f)&&(l=f)}if(u!=null)return u==="ordinal"?Je.Must:Je.Not;if(t===je){var c=e;if(r===ao){for(var h=c[a],d=0;d<(h||[]).length&&d<s;d++)if((o=b(h[i+d]))!=null)return o}else for(var d=0;d<c.length&&d<s;d++){var v=c[i+d];if(v&&(o=b(v[a]))!=null)return o}}else if(t===Xr){var p=e;if(!l)return Je.Not;for(var d=0;d<p.length&&d<s;d++){var g=p[d];if(g&&(o=b(g[l]))!=null)return o}}else if(t===pn){var m=e;if(!l)return Je.Not;var h=m[l];if(!h||Ke(h))return Je.Not;for(var d=0;d<h.length&&d<s;d++)if((o=b(h[d]))!=null)return o}else if(t===yr)for(var _=e,d=0;d<_.length&&d<s;d++){var g=_[d],y=Xs(g);if(!j(y))return Je.Not;if((o=b(y[a]))!=null)return o}function b(S){var w=rt(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return w?Je.Might:Je.Not;if(w&&S!=="-")return Je.Must}return Je.Not}var fE=ft();function cE(e,t,r){var n=fE.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var ey=ee(),hE=ee(),bp=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=ue(this.get("color",!0)),a=this.get("colorLayer",!0);return Bw(this,ey,i,a,t,r,n)},e.prototype.clearColorPalette=function(){pE(this,ey)},e}();function dE(e,t,r,n){var i=ue(e.get(["aria","decal","decals"]));return Bw(e,hE,i,null,t,r,n)}function vE(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function Bw(e,t,r,n,i,a,o){a=a||e;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?r:vE(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function pE(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var El,_o,ry,ny="\0_ec_inner",gE=1,Sp=function(e){tt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ft(a),this._locale=new Ft(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=oy(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,oy(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?ry(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&P(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ft(),u=n&&n.replaceMergeMainTypeMap;oE(this),P(r,function(c,h){c!=null&&(Pt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?gt(c):qt(i[h],c,!0))}),u&&u.each(function(c,h){Pt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Pt.topologicalTravel(s,Pt.getAllClassMainTypes(),f,this);function f(c){var h=cE(this,c,ue(r[c])),d=a.get(c),v=d?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=rM(d,h,v);uM(p,c,Pt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],_=0,y;P(p,function(b,S){var w=b.existing,T=b.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",x=Pt.getClass(c,b.keyInfo.subType,!C);if(!x)return;if(c==="tooltip"){if(y)return;y=!0}if(w&&w.constructor===x)w.name=b.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var D=G({componentIndex:S},b.keyInfo);w=new x(T,this,this,D),G(w,D),b.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),_++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,_),c==="series"&&El(this)}this._seriesIndices||El(this)},t.prototype.getOption=function(){var r=gt(this.option);return P(r,function(n,i){if(Pt.hasClass(i)){for(var a=ue(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!xs(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[ny],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],P(ue(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=iy("id",a,s):o!=null?l=iy("name",o,s):l=tr(s,function(u){return!!u}),ay(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):tr(this._componentsMap.get(i),function(u){return!!u});return l(ay(o,r));function s(u){var f=i+"Index",c=i+"Id",h=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:i,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?tr(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(St(r)){var o=n,s=r;a.each(function(c,h){for(var d=0;c&&d<c.length;d++){var v=c[d];v&&s.call(o,h,v,v.componentIndex)}})}else for(var l=rt(r)?a.get(r):it(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Xe(r,null);return tr(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return tr(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return tr(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){_o(this),P(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){P(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){_o(this),P(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return P(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return _o(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){_o(this);var i=[];P(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ft(i)},t.prototype.restoreData=function(r){El(this);var n=this._componentsMap,i=[];n.each(function(a,o){Pt.hasClass(o)&&i.push(o)}),Pt.topologicalTravel(i,Pt.getAllClassMainTypes(),function(a){P(n.get(a),function(o){o&&(a!=="series"||!mE(o,r))&&o.restoreData()})})},t.internalField=function(){El=function(r){var n=r._seriesIndices=[];P(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=ft(n)},_o=function(r){},ry=function(r,n){r.option={},r.option[ny]=gE,r._componentsMap=ft({series:[]}),r._componentsCount=ft();var i=n.aria;it(i)&&i.enabled==null&&(i.enabled=!0),yE(n,r._theme.option),qt(n,aE,!1),r._mergeOption(n,null)}}(),t}(Ft);function mE(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function yE(e,t){var r=e.color&&!e.colorLayer;P(t,function(n,i){i==="colorLayer"&&r||Pt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?qt(e[i],n,!1):gt(n):e[i]==null&&(e[i]=n))})}function iy(e,t,r){if(j(t)){var n=ft();return P(t,function(a){if(a!=null){var o=Xe(a,null);o!=null&&n.set(a,!0)}}),tr(r,function(a){return a&&n.get(a[e])})}else{var i=Xe(t,null);return tr(r,function(a){return a&&i!=null&&a[e]===i})}}function ay(e,t){return t.hasOwnProperty("subType")?tr(e,function(r){return r&&r.subType===t.subType}):e}function oy(e){var t=ft();return e&&P(ue(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Mr(Sp,bp);var _E=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Fw=function(){function e(t){P(_E,function(r){this[r]=bt(t[r],t)},this)}return e}(),qc={},Gf=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];P(qc,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){P(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){qc[t]=r},e.get=function(t){return qc[t]},e}(),bE=/^(min|max)?(.+)$/,SE=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(P(ue(t.series),function(o){o&&o.data&&Ke(o.data)&&nd(o.data)}),P(ue(t.dataset),function(o){o&&o.source&&Ke(o.source)&&nd(o.source)})),t=gt(t);var i=this._optionBackup,a=wE(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],gt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=gt(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)TE(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!CE(o,this._currentMediaIndices)&&(s=Tt(o,function(f){return gt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function wE(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(e.options=e.media=null),a=e),f&&j(u)&&P(u,function(d){d&&d.option&&(d.query?n.push(d):i||(i=d))}),h(a),P(l,function(d){return h(d)}),P(n,function(d){return h(d.option)});function h(d){P(t,function(v){v(d,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function TE(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return P(e,function(a,o){var s=o.match(bE);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();xE(n[u],a,l)||(i=!1)}}),i}function xE(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function CE(e,t){return e.join(",")===t.join(",")}var br=P,Ls=it,sy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Kc(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=sy.length;r<n;r++){var i=sy[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?qt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?qt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function _e(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,Ut(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Vo(e){_e(e,"itemStyle"),_e(e,"lineStyle"),_e(e,"areaStyle"),_e(e,"label"),_e(e,"labelLine"),_e(e,"upperLabel"),_e(e,"edgeLabel")}function Jt(e,t){var r=Ls(e)&&e[t],n=Ls(r)&&r.textStyle;if(n)for(var i=0,a=vm.length;i<a;i++){var o=vm[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function cr(e){e&&(Vo(e),Jt(e,"label"),e.emphasis&&Jt(e.emphasis,"label"))}function DE(e){if(Ls(e)){Kc(e),Vo(e),Jt(e,"label"),Jt(e,"upperLabel"),Jt(e,"edgeLabel"),e.emphasis&&(Jt(e.emphasis,"label"),Jt(e.emphasis,"upperLabel"),Jt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Kc(t),cr(t));var r=e.markLine;r&&(Kc(r),cr(r));var n=e.markArea;n&&cr(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Ke(a))for(var o=0;o<a.length;o++)cr(a[o]);P(e.categories,function(u){Vo(u)})}if(i&&!Ke(i))for(var o=0;o<i.length;o++)cr(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)cr(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)j(l[o])?(cr(l[o][0]),cr(l[o][1])):cr(l[o]);e.type==="gauge"?(Jt(e,"axisLabel"),Jt(e,"title"),Jt(e,"detail")):e.type==="treemap"?(_e(e.breadcrumb,"itemStyle"),P(e.levels,function(u){Vo(u)})):e.type==="tree"&&Vo(e.leaves)}}function jr(e){return j(e)?e:e?[e]:[]}function ly(e){return(j(e)?e[0]:e)||{}}function IE(e,t){br(jr(e.series),function(n){Ls(n)&&DE(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),br(r,function(n){br(jr(e[n]),function(i){i&&(Jt(i,"axisLabel"),Jt(i.axisPointer,"label"))})}),br(jr(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Jt(i,"axisLabel"),Jt(i&&i.axisPointer,"label")}),br(jr(e.calendar),function(n){_e(n,"itemStyle"),Jt(n,"dayLabel"),Jt(n,"monthLabel"),Jt(n,"yearLabel")}),br(jr(e.radar),function(n){Jt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),br(jr(e.geo),function(n){Ls(n)&&(cr(n),br(jr(n.regions),function(i){cr(i)}))}),br(jr(e.timeline),function(n){cr(n),_e(n,"label"),_e(n,"itemStyle"),_e(n,"controlStyle",!0);var i=n.data;j(i)&&P(i,function(a){it(a)&&(_e(a,"label"),_e(a,"itemStyle"))})}),br(jr(e.toolbox),function(n){_e(n,"iconStyle"),br(n.feature,function(i){_e(i,"iconStyle")})}),Jt(ly(e.axisPointer),"label"),Jt(ly(e.tooltip).axisPointer,"label")}function AE(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function ME(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function uy(e){e&&P(LE,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var LE=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],PE=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],jc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function bo(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<jc.length;r++){var n=jc[r][1],i=jc[r][0];t[n]!=null&&(t[i]=t[n])}}function fy(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function cy(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function EE(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function Vw(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&Vw(e[r].children,t)}function Hw(e,t){IE(e,t),e.series=ue(e.series),P(e.series,function(r){if(it(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),fy(r.label);var i=r.data;if(i&&!Ke(i))for(var a=0;a<i.length;a++)fy(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=AE(r,"pointer.color");o!=null&&ME(r,"itemStyle.color",o)}else if(n==="bar"){bo(r),bo(r.backgroundStyle),bo(r.emphasis);var i=r.data;if(i&&!Ke(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(bo(i[a]),bo(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),cy(r),Vw(r.data,cy)}else n==="graph"||n==="sankey"?EE(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Ut(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),uy(r)}}),e.dataRange&&(e.visualMap=e.dataRange),P(PE,function(r){var n=e[r];n&&(j(n)||(n=[n]),P(n,function(i){uy(i)}))})}function RE(e){var t=ft();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(OE)}function OE(e){P(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return i;var d,v;s?v=o.getRawIndex(c):d=o.get(t.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,d)),v>=0){var _=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&h>=0&&_>0||l==="samesign"&&h<=0&&_<0){h=ZA(h,_),p=_;break}}}return n[0]=h,n[1]=p,n})})}var $f=function(){function e(t){this.data=t.data||(t.sourceFormat===pn?{}:[]),this.sourceFormat=t.sourceFormat||Rw,this.seriesLayoutBy=t.seriesLayoutBy||an,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&Nw(this,n)===Je.Must&&(i.type="ordinal")}}return e}();function wp(e){return e instanceof $f}function Od(e,t,r){r=r||zw(e);var n=t.seriesLayoutBy,i=NE(e,r,n,t.sourceHeader,t.dimensions),a=new $f({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:gt(t)});return a}function Tp(e){return new $f({data:e,sourceFormat:Ke(e)?zn:yr})}function kE(e){return new $f({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:gt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function zw(e){var t=Rw;if(Ke(e))t=zn;else if(j(e)){e.length===0&&(t=je);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(j(i)||Ke(i)){t=je;break}else if(it(i)){t=Xr;break}}}}else if(it(e)){for(var a in e)if(Gi(e,a)&&qe(e[a])){t=pn;break}}return t}function NE(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:hy(i),startIndex:o,dimensionsDetectedCount:a};if(t===je){var s=e;n==="auto"||n==null?dy(function(u){u!=null&&u!=="-"&&(rt(u)?o==null&&(o=1):o=0)},r,s,10):o=jt(n)?n:n?1:0,!i&&o===1&&(i=[],dy(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===ao?s.length:s[0]?s[0].length:null}else if(t===Xr)i||(i=BE(e));else if(t===pn)i||(i=[],P(e,function(u,f){i.push(f)}));else if(t===yr){var l=Xs(e[0]);a=j(l)&&l.length||1}return{startIndex:o,dimensionsDefine:hy(i),dimensionsDetectedCount:a}}function BE(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Kt(r)}function hy(e){if(e){var t=ft();return Tt(e,function(r,n){r=it(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function dy(e,t,r,n){if(t===ao)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function Gw(e){var t=e.sourceFormat;return t===Xr||t===pn}var vi,pi,gi,vy,py,$w=function(){function e(t,r){var n=wp(t)?t:Tp(t);this._source=n;var i=this._data=n.data;n.sourceFormat===zn&&(this._offset=0,this._dimSize=r,this._data=i),py(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;py=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,d=vy[xp(u,f)];if(G(o,d),u===zn)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=Uw(u,f);o.getItem=bt(v,null,s,c,h);var p=Ww(u,f);o.count=bt(p,null,s,c,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var d=u[h],v=d[0]==null?1/0:d[0],p=d[1]==null?-1/0:d[1],g=s-o,m=l[h],_=0;_<g;_++){var y=f[_*c+h];m[o+_]=y,y<v&&(v=y),y>p&&(p=y)}d[0]=v,d[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};vy=(t={},t[je+"_"+an]={pure:!0,appendData:a},t[je+"_"+ao]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Xr]={pure:!0,appendData:a},t[pn]={pure:!0,appendData:function(o){var s=this._data;P(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[yr]={appendData:a},t[zn]={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<o.length;s++)this._data.push(o[s])}}(),e}(),gy=function(e,t,r,n){return e[n]},FE=(vi={},vi[je+"_"+an]=function(e,t,r,n){return e[n+t]},vi[je+"_"+ao]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},vi[Xr]=gy,vi[pn]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},vi[yr]=gy,vi);function Uw(e,t){var r=FE[xp(e,t)];return r}var my=function(e,t,r){return e.length},VE=(pi={},pi[je+"_"+an]=function(e,t,r){return Math.max(0,e.length-t)},pi[je+"_"+ao]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},pi[Xr]=my,pi[pn]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},pi[yr]=my,pi);function Ww(e,t){var r=VE[xp(e,t)];return r}var Zc=function(e,t,r){return e[t]},HE=(gi={},gi[je]=Zc,gi[Xr]=function(e,t,r){return e[r]},gi[pn]=Zc,gi[yr]=function(e,t,r){var n=Xs(e);return n instanceof Array?n[t]:n},gi[zn]=Zc,gi);function Yw(e){var t=HE[e];return t}function xp(e,t){return e===je?e+"_"+t:e}function Za(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return Yw(a)(n,o,s)}else{var l=n;return a===yr&&(l=Xs(n)),l}}}}var zE=/\{@(.+?)\}/g,GE=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&j(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(St(a))return l.status=r,l.dimensionIndex=i,a(l);if(rt(a)){var f=Lw(a,l);return f.replace(zE,function(c,h){var d=h.length,v=h;v.charAt(0)==="["&&v.charAt(d-1)==="]"&&(v=+v.slice(1,d-1));var p=Za(s,t,v);if(o&&j(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Za(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function yy(e){var t,r;return it(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function os(e){return new $E(e)}var $E=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.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(_){return!(_>=1)&&(_=1),_}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(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||d<v)){var p=this._progress;if(j(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],d,v,l,u);else this._doProgress(p,d,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){_y.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:_y.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),j(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),_y=function(){var e,t,r,n,i,a={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function cu(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!jt(e)&&e!=null&&e!=="-"&&(e=+Mf(e)),e==null||e===""?NaN:Number(e))}ft({number:function(e){return parseFloat(e)},time:function(e){return+Mf(e)},trim:function(e){return rt(e)?zr(e):e}});var UE=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=jt(t)?t:Fu(t),i=jt(r)?r:Fu(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=rt(t),l=rt(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),WE=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return cu(t,r)},e}();function YE(e,t){var r=new WE,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==an&&Ge(o);var s=[],l={},u=e.dimensionsDefine;if(u)P(u,function(p,g){var m=p.name,_={index:g,name:m,displayName:p.displayName};if(s.push(_),m!=null){var y="";Gi(l,m)&&Ge(y),l[m]=_}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=Uw(i,an);t.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=bt(XE,null,e)),r.cloneRawData=bt(qE,null,e);var h=Ww(i,an);r.count=bt(h,null,n,a,s);var d=Yw(i);r.retrieveValue=function(p,g){var m=c(n,a,s,p);return v(m,g)};var v=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return d(p,g,m.name)}};return r.getDimensionInfo=bt(KE,null,s,l),r.cloneAllDimensionInfo=bt(jE,null,s),r}function XE(e){var t=e.sourceFormat;if(!Cp(t)){var r="";Ge(r)}return e.data}function qE(e){var t=e.sourceFormat,r=e.data;if(!Cp(t)){var n="";Ge(n)}if(t===je){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Xr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(G({},r[a]));return i}}function KE(e,t,r){if(r!=null){if(jt(r)||!isNaN(r)&&!Gi(t,r))return e[r];if(Gi(t,r))return t[r]}}function jE(e){return gt(e)}var Xw=ft();function ZE(e){e=gt(e);var t=e.type,r="";t||Ge(r);var n=t.split(":");n.length!==2&&Ge(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,Xw.set(t,e)}function QE(e,t,r){var n=ue(e),i=n.length,a="";i||Ge(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=JE(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function JE(e,t,r,n){var i="";t.length||Ge(i),it(e)||Ge(i);var a=e.type,o=Xw.get(a);o||Ge(i);var s=Tt(t,function(u){return YE(u,o)}),l=ue(o.transform({upstream:s[0],upstreamList:s,config:gt(e.config)}));return Tt(l,function(u,f){var c="";it(u)||Ge(c),u.data||Ge(c);var h=zw(u.data);Cp(h)||Ge(c);var d,v=t[0];if(v&&f===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),d={seriesLayoutBy:an,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:an,sourceHeader:0,dimensions:u.dimensions};return Od(u.data,d,null)})}function Cp(e){return e===je||e===Xr}var Uf="undefined",tR=typeof Uint32Array===Uf?Array:Uint32Array,eR=typeof Uint16Array===Uf?Array:Uint16Array,qw=typeof Int32Array===Uf?Array:Int32Array,by=typeof Float64Array===Uf?Array:Float64Array,Kw={float:by,int:qw,ordinal:Array,number:Array,time:by},Qc;function da(e){return e>65535?tR:eR}function va(){return[1/0,-1/0]}function rR(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Sy(e,t,r,n,i){var a=Kw[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var kd=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ft()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Qc[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],Gw(i),this._dimensions=Tt(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new Kw[r||"float"](this._rawCount),this._rawExtent[a]=va(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=va());for(var l=a[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var f=i[u];Sy(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var d=h-s,v=0;v<a;v++){var f=i[v],p=Qc.arrayRows.call(this,t[d]||c,f.property,d,v);n[v][h]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Tt(o,function(_){return _.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=va()),Sy(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var h=[],d=t;d<r;d++){h=i.getItem(d,h);for(var v=0;v<s;v++){var p=a[v],g=this._dimValueGetter(h,u[v],d,v);p[d]=g;var m=l[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,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<c;f++){var h=this.getRawIndex(f),d=r-a[h],v=Math.abs(d);v<=n&&((v<s||v===s&&d>=0&&l<0)&&(s=v,l=d,u=0),d===l&&(o[u++]=f))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=da(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=da(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<i;h++){var d=void 0,v=n.getRawIndex(h);if(l===0)d=r(h);else if(l===1){var p=c[f][v];d=r(p,h)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][v];s[g]=h,d=r.apply(null,s)}d&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=Kt(t),a=i.length;if(!a)return this;var o=r.count(),s=da(r._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],h=t[f][1],d=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var g=d[i[0]],m=0;m<n;m++){var _=g[m];(_>=c&&_<=h||isNaN(_))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var g=d[i[0]],y=d[i[1]],b=t[i[1]][0],S=t[i[1]][1],m=0;m<n;m++){var _=g[m],w=y[m];(_>=c&&_<=h||isNaN(_))&&(w>=b&&w<=S||isNaN(w))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),_=d[i[0]][T];(_>=c&&_<=h||isNaN(_))&&(l[u++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=r.getRawIndex(m),x=0;x<a;x++){var D=i[x],_=d[D][T];(_<t[D][0]||_>t[D][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=va();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)l[d]=i[r[d]][h];l[o]=c;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var p=r[f],g=v[f],m=u[p],_=i[p];_&&(_[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,d=new(da(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+p)/2,_=0,y=p;y<g;y++){var b=this.getRawIndex(y),S=a[b];isNaN(S)||(_+=S)}_/=g-p;var w=v,T=Math.min(v+l,o),C=v-1,x=a[u];f=-1,h=w;for(var D=-1,A=0,y=w;y<T;y++){var b=this.getRawIndex(y),S=a[b];if(isNaN(S)){A++,D<0&&(D=b);continue}c=Math.abs((C-m)*(S-x)-(C-y)*(_-x)),c>f&&(f=c,h=b)}A>0&&A<T-w&&(d[s++]=Math.min(D,h),h=Math.max(D,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(o-1),n._count=s,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/r),o=i[t],s=this.count(),l=new(da(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,h=o[this.getRawIndex(c)],d=f,v=o[this.getRawIndex(d)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var m=this.getRawIndex(f+g),_=o[m];_<h&&(h=_,c=f+g),_>v&&(v=_,d=f+g)}var y=this.getRawIndex(c),b=this.getRawIndex(d);c<d?(l[u++]=y,l[u++]=b):(l[u++]=b,l[u++]=y)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=a._rawExtent[t]=va(),h=new(da(this._rawCount))(Math.ceil(f/l)),d=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var m=n(s),_=this.getRawIndex(Math.min(v+i(s,m)||0,f-1));u[_]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=_}return a._count=d,a._indices=h,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=va();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&ro(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?rR(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=gt(this._extent),t._rawExtent=gt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return cu(r[a],this._dimensions[a])}Qc={arrayRows:t,objectRows:function(r,n,i,a){return cu(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return cu(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),nR=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Rl(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Ke(s)?zn:yr,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=ht(c.seriesLayoutBy,h.seriesLayoutBy)||null,v=ht(c.sourceHeader,h.sourceHeader),p=ht(c.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||p;i=g?[Od(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:p},l)]:[]}else{var m=t;if(n){var _=this._applyTransform(r);i=_.sourceList,a=_.upstreamSignList}else{var y=m.get("source",!0);i=[Od(y,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&wy(a)}var o,s=[],l=[];return P(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&wy(c),s.push(f),l.push(u._getVersionSign())}),n?o=QE(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[kE(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Rl(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new kd,s.initData(new $w(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Rl(t)){var r=kw(t);return r?[r.getSourceManager()]:[]}else return Tt(lE(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Rl(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function Rl(e){return e.mainType==="series"}function wy(e){throw new Error(e)}var iR="line-height:1";function jw(e){var t=e.lineHeight;return t==null?iR:"line-height:"+Pe(t+"")+"px"}function Zw(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Pe(n+"")+"px;color:"+Pe(r)+";font-weight:"+Pe(i+""),valueStyle:"font-size:"+Pe(o+"")+"px;color:"+Pe(a)+";font-weight:"+Pe(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var aR=[0,10,20,30],oR=["",`
|
|
51
|
-
`,`
|
|
52
|
-
|
|
53
|
-
`,`
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
`];function Wi(e,t){return t.type=e,t}function Nd(e){return e.type==="section"}function Qw(e){return Nd(e)?sR:lR}function Jw(e){if(Nd(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return P(e.blocks,function(i){var a=Jw(i);a>=t&&(t=a+ +(n&&(!a||Nd(i)&&!i.noHeader)))}),t}return 0}function sR(e,t,r,n){var i=t.noHeader,a=uR(Jw(t)),o=[],s=t.blocks||[];Ar(!s||j(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Gi(u,l)){var f=new UE(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}P(s,function(p,g){var m=t.valueFormatter,_=Qw(p)(m?G(G({},e),{valueFormatter:m}):e,p,g>0?a.html:0,n);_!=null&&o.push(_)});var c=e.renderMode==="richText"?o.join(a.richText):Bd(n,o.join(""),i?r:a.html);if(i)return c;var h=Ed(t.header,"ordinal",e.useUTC),d=Zw(n,e.renderMode).nameStyle,v=jw(n);return e.renderMode==="richText"?t1(e,h,d)+a.richText+c:Bd(n,'<div style="'+d+";"+v+';">'+Pe(h)+"</div>"+c,r)}function lR(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(b){return b=j(b)?b:[b],Tt(b,function(S,w){return Ed(S,j(d)?d[w]:d,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":Ed(l,"ordinal",u),d=t.valueType,v=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,m=Zw(n,i),_=m.nameStyle,y=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":t1(e,h,_))+(o?"":hR(e,v,p,g,y)):Bd(n,(s?"":c)+(a?"":fR(h,!s,_))+(o?"":cR(v,p,g,y)),r)}}function Ty(e,t,r,n,i,a){if(e){var o=Qw(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function uR(e){return{html:aR[e],richText:oR[e]}}function Bd(e,t,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=jw(e);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function fR(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Pe(e)+"</span>"}function cR(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=j(e)?e:[e],'<span style="'+a+";"+n+'">'+Tt(e,function(o){return Pe(o)}).join(" ")+"</span>"}function t1(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function hR(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(j(t)?t.join(" "):t,a)}function dR(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return As(n)}function e1(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Jc=function(){function e(){this.richTextStyles={},this._nextStyleNameId=GS()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=QP({color:r,type:t,renderMode:n,markerId:i});return rt(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};j(r)?P(r,function(a){return G(n,a)}):G(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function r1(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=j(s),u=dR(t,r),f,c,h,d;if(o>1||l&&!o){var v=vR(s,t,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);d=f=Za(i,r,a[0]),c=p.type}else d=f=l?s[0]:s;var g=jv(t),m=g&&t.name||"",_=i.getName(r),y=n?m:_;return Wi("section",{header:m,noHeader:n||!g,sortParam:d,blocks:[Wi("nameValue",{markerType:"item",markerColor:u,name:y,noName:!zr(y),value:f,valueType:c,dataIndex:r})].concat(h||[])})}function vR(e,t,r,n,i){var a=t.getData(),o=ro(e,function(c,h,d){var v=a.getDimensionInfo(d);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?P(n,function(c){f(Za(a,r,c),c)}):P(e,f);function f(c,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(Wi("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:c,valueType:d.type})):(s.push(c),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Sn=ee();function Ol(e,t){return e.getName(t)||e.getId(t)}var pR="__universalTransitionEnabled",hn=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=os({count:mR,reset:yR}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Sn(this).sourceManager=new nR(this);a.prepareSource();var o=this.getInitialData(r,i);Cy(o,this),this.dataTask.context.data=o,Sn(this).dataBeforeProcessed=o,xy(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Wu(this),a=i?_p(r):{},o=this.subType;Pt.hasClass(o)&&(o+="Series"),qt(r,n.getTheme().get(this.subType)),qt(r,this.getDefaultOption()),bd(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ms(r,a,i)},t.prototype.mergeOption=function(r,n){r=qt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Wu(this);i&&Ms(this.option,r,i);var a=Sn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Cy(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Sn(this).dataBeforeProcessed=o,xy(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Ke(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&bd(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=Fd(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Sn(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=Fd(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Sn(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ft(r)},t.prototype.getSourceManager=function(){return Sn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Sn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return r1({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(lt.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=bp.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,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<r.length;s++){var l=r[s],u=Ol(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Kt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Ol(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[pR])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,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"){it(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=Ol(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var d=n[l-1],h=Ol(r,d);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(d),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Pt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(Pt);Mr(hn,GE);Mr(hn,bp);qS(hn,Pt);function xy(e){var t=e.name;jv(e)||(e.name=gR(e)||t)}function gR(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return P(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function mR(e){return e.model.getRawData().count()}function yR(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_R}function _R(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Cy(e,t){P(BI(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Yt(bR,t))})}function bR(e,t){var r=Fd(e);return r&&r.setOutputEnd((t||this).count()),t}function Fd(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Yr=function(){function e(){this.group=new oe,this.uid=zf("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Qv(Yr);Jv(Yr);function SR(){var e=ee();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var n1=ee(),wR=SR(),on=function(){function e(){this.group=new oe,this.uid=zf("viewChart"),this.renderTask=os({plan:TR,reset:xR}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Iy(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Iy(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Ff(this.group,t)},e.markUpdateMethod=function(t,r){n1(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Dy(e,t,r){e&&Is(e)&&(t==="emphasis"?Cs:Ds)(e,r)}function Iy(e,t,r){var n=qs(e,t),i=t&&t.highlightKey!=null?AL(t.highlightKey):null;n!=null?P(ue(n),function(a){Dy(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){Dy(a,r,i)})}Qv(on);Jv(on);function TR(e){return wR(e.model)}function xR(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&n1(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),CR[l]}var CR={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Yu="\0__throttleOriginMethod",Ay="\0__throttleRate",My="\0__throttleType";function i1(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];n=new Date().getTime(),l=this,u=d;var p=f||t,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){f=d},h}function a1(e,t,r,n){var i=e[t];if(i){var a=i[Yu]||i,o=i[My],s=i[Ay];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=i1(a,r,n==="debounce"),i[Yu]=a,i[My]=n,i[Ay]=r}return i}}function Vd(e,t){var r=e[t];r&&r[Yu]&&(r.clear&&r.clear(),e[t]=r[Yu])}var Ly=ee(),Py={itemStyle:Ka(xw,!0),lineStyle:Ka(Tw,!0)},DR={lineStyle:"stroke",itemStyle:"fill"};function o1(e,t){var r=e.visualStyleMapper||Py[t];return r||(console.warn("Unknown style type '"+t+"'."),Py.itemStyle)}function s1(e,t){var r=e.visualDrawType||DR[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var IR={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=o1(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=s1(e,n),u=o[l],f=St(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||St(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||St(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var p=e.getDataParams(v),g=G({},o);g[l]=f(p),d.setItemVisual(v,"style",g)}}}},So=new Ft,AR={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=o1(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){So.option=l[n];var u=i(So),f=o.ensureUniqueItemVisual(s,"style");G(f,u),So.option.decal&&(o.setItemVisual(s,"decal",So.option.decal),So.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},MR={performRawSeries:!0,overallReset:function(e){var t=ft();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Ly(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Ly(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=s1(r,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"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},kl=Math.PI;function LR(e,t){t=t||{},Ut(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 r=new oe,n=new we({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new xe({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 we({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Nf({shape:{startAngle:-kl/2,endAngle:-kl/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:kl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:kl*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.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=e.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:e.getWidth(),height:e.getHeight()})},r.resize(),r}var l1=function(){function e(t,r,n,i){this._stageTaskMap=ft(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&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}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.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}},e.prototype.restorePipelines=function(t){var r=this,n=r._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}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;P(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Ar(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;P(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 d,v=h.agentStubMap;v.each(function(g){s(i,g)&&(g.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);v.each(function(g){g.perform(p)}),h.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var _=o.getPerformArgs(g,i.block);_.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(_)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.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,d=s.set(h,o&&o.get(h)||os({plan:kR,reset:NR,count:FR}));d.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,d)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||os({reset:PR});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,d="";Ar(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,P(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,os({reset:ER,onDirty:OR})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return St(t)&&(t={overallReset:t,seriesType:VR(t)}),t.uid=zf("stageHandler"),r&&(t.visualType=r),t},e}();function PR(e){e.overallReset(e.ecModel,e.api,e.payload)}function ER(e){return e.overallProgress&&RR}function RR(){this.agent.dirty(),this.getDownstream().dirty()}function OR(){this.agent&&this.agent.dirty()}function kR(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function NR(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ue(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Tt(t,function(r,n){return u1(n)}):BR}var BR=u1(0);function u1(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function FR(e){return e.data.count()}function VR(e){Xu=null;try{e(Ps,f1)}catch{}return Xu}var Ps={},f1={},Xu;c1(Ps,Sp);c1(f1,Fw);Ps.eachSeriesByType=Ps.eachRawSeriesByType=function(e){Xu=e};Ps.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Xu=e.subType)};function c1(e,t){for(var r in t.prototype)e[r]=ae}var Ey=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const HR={color:Ey,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Ey]};var me="#B9B8CE",Ry="#100C2A",Nl=function(){return{axisLine:{lineStyle:{color:me}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Oy=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],h1={darkMode:!0,color:Oy,backgroundColor:Ry,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:me},pageTextStyle:{color:me}},textStyle:{color:me},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:me}},dataZoom:{borderColor:"#71708A",textStyle:{color:me},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:me}},timeline:{lineStyle:{color:me},label:{color:me},controlStyle:{color:me,borderColor:me}},calendar:{itemStyle:{color:Ry},dayLabel:{color:me},monthLabel:{color:me},yearLabel:{color:me}},timeAxis:Nl(),logAxis:Nl(),valueAxis:Nl(),categoryAxis:Nl(),line:{symbol:"circle"},graph:{color:Oy},gauge:{title:{color:me},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:me},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};h1.categoryAxis.splitLine.show=!1;var zR=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(rt(t)){var a=Gr(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};P(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){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=r.cptQuery,u=r.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,r.otherQuery,i,a));function f(c,h,d,v){return c[d]==null||h[v||d]===c[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Hd=["symbol","symbolSize","symbolRotate","symbolOffset"],ky=Hd.concat(["symbolKeepAspect"]),GR={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Hd.length;o++){var s=Hd[o],l=e.get(s);St(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(G({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Kt(i);function f(c,h){for(var d=e.getRawValue(h),v=e.getDataParams(h),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(h,g,i[g](d,v))}}return{dataEach:a?f:null}}},$R={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<ky.length;s++){var l=ky[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function UR(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function WR(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function pa(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=qs(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:j(h)?c.getName(h[0]):c.getName(h),selected:rt(l)?l:G({},l)})}})}function YR(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(pa("map","selectchanged",t,i,n),pa("pie","selectchanged",t,i,n)):n.fromAction==="select"?(pa("map","selected",t,i,n),pa("pie","selected",t,i,n)):n.fromAction==="unselect"&&(pa("map","unselected",t,i,n),pa("pie","unselected",t,i,n))})}function Ho(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var XR=Math.round(Math.random()*9),qR=typeof Object.defineProperty=="function",KR=function(){function e(){this._id="__ec_inner_"+XR++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return qR?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),jR=Ht.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),ZR=Ht.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),QR=Ht.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),d=o*.6,v=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*d,l+s+h*d,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-f+c*d,l+s+h*d,r-f,l+s),e.closePath()}}),JR=Ht.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),t2={line:Ji,rect:we,roundRect:we,square:we,circle:Rf,diamond:ZR,pin:QR,arrow:JR,triangle:jR},e2={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},zd={};P(t2,function(e,t){zd[t]=new e});var r2=Ht.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=NS(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=zd[n];i||(n="rect",i=zd[n]),e2[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function n2(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Js(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=_w(e.slice(8),new wt(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=hp(e.slice(7),{},new wt(t,r,n,i),o?"center":"cover"):l=new r2({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=n2,a&&l.setColor(a),l}function Dp(e){return j(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Wf(e,t){if(e!=null)return j(e)||(e=[e,e]),[le(e[0],t[0])||0,le(ht(e[1],e[0]),t[1])||0]}function Ii(e){return isFinite(e)}function i2(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Ii(n)?n:0,i=Ii(i)?i:1,a=Ii(a)?a:0,o=Ii(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function a2(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Ii(o)?o:.5,s=Ii(s)?s:.5,l=l>=0&&Ii(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Gd(e,t,r){for(var n=t.type==="radial"?a2(e,t,r):i2(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function o2(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Bl(e){return parseInt(e,10)}function Fl(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Bl(s[n])||Bl(e.style[n]))-(Bl(s[a])||0)-(Bl(s[o])||0)|0}function s2(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:jt(e)?[e]:j(e)?e:null}function d1(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&s2(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Tt(r,function(a){return a/i}),n/=i)}return[r,n]}var l2=new ja(!0);function qu(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Ny(e){return typeof e=="string"&&e!=="none"}function Ku(e){var t=e.fill;return t!=null&&t!=="none"}function By(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Fy(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function $d(e,t,r){var n=KS(t.image,t.__image,r);if(Lf(n)){var i=e.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)*FI),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function u2(e,t,r,n){var i,a=qu(r),o=Ku(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||l2,c=t.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,p=a&&!!d.colorStops,g=o&&!!h.image,m=a&&!!d.image,_=void 0,y=void 0,b=void 0,S=void 0,w=void 0;(v||p)&&(w=t.getBoundingRect()),v&&(_=c?Gd(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=_),p&&(y=c?Gd(e,d,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=c||!t.__canvasFillPattern?$d(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(S=c||!t.__canvasStrokePattern?$d(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),v?e.fillStyle=_:g&&(b?e.fillStyle=b:o=!1),p?e.strokeStyle=y:m&&(S?e.strokeStyle=S:a=!1)}var T=t.getGlobalScale();f.setScale(T[0],T[1],t.segmentIgnoreThreshold);var C,x;e.setLineDash&&r.lineDash&&(i=d1(t),C=i[0],x=i[1]);var D=!0;(u||c&xa)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=x),n||(r.strokeFirst?(a&&Fy(e,r),o&&By(e,r)):(o&&By(e,r),a&&Fy(e,r))),C&&e.setLineDash([])}function f2(e,t,r){var n=t.__image=KS(r.image,t.__image,t,t.onload);if(!(!n||!Lf(n))){var i=r.x||0,a=r.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),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;e.drawImage(n,u,f,c,h,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function c2(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||zi,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=d1(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(qu(r)&&e.strokeText(i,r.x,r.y),Ku(r)&&e.fillText(i,r.x,r.y)):(Ku(r)&&e.fillText(i,r.x,r.y),qu(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var Vy=["shadowBlur","shadowOffsetX","shadowOffsetY"],Hy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function v1(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Ye(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ki.opacity:o}(n||t.blend!==r.blend)&&(a||(Ye(e,i),a=!0),e.globalCompositeOperation=t.blend||ki.blend);for(var s=0;s<Vy.length;s++){var l=Vy[s];(n||t[l]!==r[l])&&(a||(Ye(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(Ye(e,i),a=!0),e.shadowColor=t.shadowColor||ki.shadowColor),a}function zy(e,t,r,n,i){var a=Es(t,i.inHover),o=n?null:r&&Es(r,i.inHover)||{};if(a===o)return!1;var s=v1(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Ye(e,i),s=!0),Ny(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Ye(e,i),s=!0),Ny(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Ye(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(Ye(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<Hy.length;f++){var c=Hy[f],h=c[0];(n||a[h]!==o[h])&&(s||(Ye(e,i),s=!0),e[h]=a[h]||c[1])}return s}function h2(e,t,r,n,i){return v1(e,Es(t,i.inHover),r&&Es(r,i.inHover),n,i)}function p1(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function d2(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),p1(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function v2(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Gy=1,$y=2,Uy=3,Wy=4;function p2(e){var t=Ku(e),r=qu(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Ye(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Es(e,t){return t&&e.__hoverStyle||e.style}function g1(e,t){Ai(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ai(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~er,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||o2(a,o))&&(o&&o.length&&(Ye(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Ye(e,r),e.save(),d2(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof Ht&&t.autoBatch&&p2(t.style);s||v2(i,u.transform)?(Ye(e,r),p1(e,t)):f||Ye(e,r);var c=Es(t,r.inHover);t instanceof Ht?(r.lastDrawType!==Gy&&(l=!0,r.lastDrawType=Gy),zy(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),u2(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof Vu?(r.lastDrawType!==Uy&&(l=!0,r.lastDrawType=Uy),zy(e,t,u,l,r),c2(e,t,c)):t instanceof Yn?(r.lastDrawType!==$y&&(l=!0,r.lastDrawType=$y),h2(e,t,u,l,r),f2(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==Wy&&(l=!0,r.lastDrawType=Wy),g2(e,t,r)),f&&n&&Ye(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function g2(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ai(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ai(e,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var th=new KR,Yy=new Ys(100),Xy=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ud(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&th.delete(e);var a=th.get(e);if(a)return a;var o=Ut(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,th.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<Xy.length;++h){var d=o[Xy[h]];if(d!=null&&!j(d)&&!rt(d)&&!jt(d)&&typeof d!="boolean"){c=!1;break}f.push(d)}var v;if(c){v=f.join(",")+(i?"-svg":"");var p=Yy.get(v);p&&(i?u.svgElement=p:u.image=p)}var g=y1(o.dashArrayX),m=m2(o.dashArrayY),_=m1(o.symbol),y=y2(g),b=_1(m),S=!i&&eo.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=x(),C;S&&(S.width=T.width*r,S.height=T.height*r,C=S.getContext("2d")),D(),c&&Yy.put(v,S||w),u.image=S,u.svgElement=w,u.svgWidth=T.width,u.svgHeight=T.height;function x(){for(var A=1,M=0,E=y.length;M<E;++M)A=dm(A,y[M]);for(var O=1,M=0,E=_.length;M<E;++M)O=dm(O,_[M].length);A*=O;var V=b*y.length*_.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(V,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,S.width,S.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,S.width,S.height)));for(var A=0,M=0;M<m.length;++M)A+=m[M];if(A<=0)return;for(var E=-b,O=0,V=0,k=0;E<T.height;){if(O%2===0){for(var K=V/2%_.length,$=0,ot=0,kt=0;$<T.width*2;){for(var zt=0,M=0;M<g[k].length;++M)zt+=g[k][M];if(zt<=0)break;if(ot%2===0){var vt=(1-o.symbolSize)*.5,se=$+g[k][ot]*vt,fe=E+m[O]*vt,ke=g[k][ot]*o.symbolSize,Ce=m[O]*o.symbolSize,Ne=kt/2%_[K].length;pt(se,fe,ke,Ce,_[K][Ne])}$+=g[k][ot],++kt,++ot,ot===g[k].length&&(ot=0)}++k,k===g.length&&(k=0)}E+=m[O],++V,++O,O===m.length&&(O=0)}function pt(et,ut,q,Q,I){var L=i?1:r,R=Js(I,et*L,ut*L,q*L,Q*L,o.color,o.symbolKeepAspect);if(i){var B=n.painter.renderOneToVNode(R);B&&w.children.push(B)}else g1(C,R)}}}}function m1(e){if(!e||e.length===0)return[["rect"]];if(rt(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!rt(e[r])){t=!1;break}if(t)return m1([e]);for(var n=[],r=0;r<e.length;++r)rt(e[r])?n.push([e[r]]):n.push(e[r]);return n}function y1(e){if(!e||e.length===0)return[[0,0]];if(jt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!jt(e[n])){r=!1;break}if(r)return y1([e]);for(var i=[],n=0;n<e.length;++n)if(jt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Tt(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function m2(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(jt(e)){var t=Math.ceil(e);return[t,t]}var r=Tt(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function y2(e){return Tt(e,function(t){return _1(t)})}function _1(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function _2(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Ud(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Ud(i,t)}}})}var Tr=new Lr,b1={};function b2(e,t){b1[e]=t}function S2(e){return b1[e]}var w2=1,T2=800,x2=900,C2=1e3,D2=2e3,I2=5e3,S1=1e3,A2=1100,Ip=2e3,w1=3e3,M2=4e3,Yf=4500,L2=4600,P2=5e3,E2=6e3,T1=7e3,R2={PROCESSOR:{FILTER:C2,SERIES_FILTER:T2,STATISTIC:I2},VISUAL:{LAYOUT:S1,PROGRESSIVE_LAYOUT:A2,GLOBAL:Ip,CHART:w1,POST_CHART_LAYOUT:L2,COMPONENT:M2,BRUSH:P2,CHART_ITEM:Yf,ARIA:E2,DECAL:T1}},ge="__flagInMainProcess",Ve="__pendingUpdate",eh="__needsUpdateStatus",qy=/^[a-zA-Z0-9_]+$/,rh="__connectUpdateStatus",Ky=0,O2=1,k2=2;function x1(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return D1(this,e,t)}}function C1(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return D1(this,e,t)}}function D1(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Lr.prototype[t].apply(e,r)}var I1=function(e){tt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Lr),A1=I1.prototype;A1.on=C1("on");A1.off=C1("off");var ga,nh,Vl,wn,ih,ah,oh,wo,To,jy,Zy,sh,Qy,Hl,Jy,M1,sr,t_,L1=function(e){tt(t,e);function t(r,n,i){var a=e.call(this,new zR)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},rt(n)&&(n=P1[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr;var u=a._zr=um(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ht(i.useDirtyRect,l),useCoarsePointer:ht(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=i1(bt(u.flush,u),17),n=gt(n),n&&Hw(n,!0),a._theme=n,a._locale=GP(i.locale||Cw),a._coordSysMgr=new Gf;var f=a._api=Jy(a);function c(h,d){return h.__prio-d.__prio}return eu(Zu,c),eu(Wd,c),a._scheduler=new l1(a,f,Wd,Zu),a._messageCenter=new I1,a._initEvents(),a.resize=bt(a.resize,a),u.animation.on("frame",a._onframe,a),jy(u,a),Zy(u,a),nd(a),a}return t.prototype._onframe=function(){if(!this._disposed){t_(this);var r=this._scheduler;if(this[Ve]){var n=this[Ve].silent;this[ge]=!0;try{ga(this),wn.update.call(this,null,this[Ve].updateParams)}catch(l){throw this[ge]=!1,this[Ve]=null,l}this._zr.flush(),this[ge]=!1,this[Ve]=null,wo.call(this,n),To.call(this,n)}else if(r.unfinished){var i=w2,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),ah(this,a),r.performVisualTasks(a),Hl(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.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(r,n,i){if(!this[ge]){if(this._disposed){this.id;return}var a,o,s;if(it(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ge]=!0,!this._model||n){var l=new SE(this._api),u=this._theme,f=this._model=new Sp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Yd);var c={seriesTransition:s,optionChanged:!0};if(i)this[Ve]={silent:a,updateParams:c},this[ge]=!1,this.getZr().wakeUp();else{try{ga(this),wn.update.call(this,null,c)}catch(h){throw this[Ve]=null,this[ge]=!1,h}this._ssr||this._zr.flush(),this[Ve]=null,this[ge]=!1,wo.call(this,a),To.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||lt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(lt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return P(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;P(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(r).toDataURL("image/"+(r&&r.type||"png"));return P(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(e_[i]){var l=s,u=s,f=-s,c=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();P(ls,function(y,b){if(y.group===i){var S=n?y.getZr().painter.getSvgDom().innerHTML:y.renderToCanvas(gt(r)),w=y.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),h.push({dom:S,left:w.left,top:w.top})}}),l*=d,u*=d,f*=d,c*=d;var v=f-l,p=c-u,g=eo.createCanvas(),m=um(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var _="";return P(h,function(y){var b=y.left-l,S=y.top-u;_+='<g transform="translate('+b+","+S+')">'+y.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new we({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),P(h,function(y){var b=new Yn({style:{x:y.left*d-l,y:y.top*d-u,image:y.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return ih(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return ih(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Ac(i,r);return P(o,function(s,l){l.indexOf("Models")>=0&&P(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(r,n){var i=this._model,a=Ac(i,r,{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?UR(s,l,n):WR(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;P(N2,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ho(s,function(v){var p=Ct(v);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=G({},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),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:d},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),P(ss,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),P(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),YR(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 r=this.getDom();r&&YS(this.getDom(),Mp,"");var n=this,i=n._api,a=n._model;P(n._componentsViews,function(o){o.dispose(a,i)}),P(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 ls[n.id]},t.prototype.resize=function(r){if(!this[ge]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Ve]&&(a==null&&(a=this[Ve].silent),i=!0,this[Ve]=null),this[ge]=!0;try{i&&ga(this),wn.update.call(this,{type:"resize",animation:G({duration:0},r&&r.animation)})}catch(o){throw this[ge]=!1,o}this[ge]=!1,wo.call(this,a),To.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(it(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Xd[r]){var i=Xd[r](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(r){var n=G({},r);return n.type=ss[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(it(n)||(n={silent:!!n}),!!ju[r.type]&&this._model){if(this[ge]){this._pendingActions.push(r);return}var i=n.silent;oh.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&<.browser.weChat&&this._throttledZrFlush(),wo.call(this,i),To.call(this,i)}},t.prototype.updateLabelLayout=function(){Tr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ga=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),nh(c,!0),nh(c,!1),h.plan()},nh=function(c,h){for(var d=c._model,v=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,_=c._api,y=0;y<p.length;y++)p[y].__alive=!1;h?d.eachComponent(function(w,T){w!=="series"&&b(T)}):d.eachSeries(b);function b(w){var T=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,x=!T&&g[C];if(!x){var D=Gr(w.type),A=h?Yr.getClass(D.main,D.sub):on.getClass(D.sub);x=new A,x.init(d,_),g[C]=x,p.push(x),m.add(x.group)}w.__viewId=x.__id=C,x.__alive=!0,x.__model=w,x.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!h&&v.prepareView(x,w,d,_)}for(var y=0;y<p.length;){var S=p[y];S.__alive?y++:(!h&&S.renderTask.dispose(),m.remove(S.group),S.dispose(d,_),p.splice(y,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Vl=function(c,h,d,v,p){var g=c._model;if(g.setUpdatePayload(d),!v){P([].concat(c._componentsViews).concat(c._chartsViews),S);return}var m={};m[v+"Id"]=d[v+"Id"],m[v+"Index"]=d[v+"Index"],m[v+"Name"]=d[v+"Name"];var _={mainType:v,query:m};p&&(_.subType=p);var y=d.excludeSeriesId,b;y!=null&&(b=ft(),P(ue(y),function(w){var T=Xe(w,null);T!=null&&b.set(T,!0)})),g&&g.eachComponent(_,function(w){var T=b&&b.get(w.id)!=null;if(!T)if(Fm(d))if(w instanceof hn)d.type===Ni&&!d.notBlur&&!w.get(["emphasis","disabled"])&&wL(w,d,c._api);else{var C=ip(w.mainType,w.componentIndex,d.name,c._api),x=C.focusSelf,D=C.dispatchers;d.type===Ni&&x&&!d.notBlur&&Dd(w.mainType,w.componentIndex,c._api),D&&P(D,function(A){d.type===Ni?Cs(A):Ds(A)})}else Md(d)&&w instanceof hn&&(CL(w,d,c._api),Bm(w),sr(c))},c),g&&g.eachComponent(_,function(w){var T=b&&b.get(w.id)!=null;T||S(c[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},c);function S(w){w&&w.__alive&&w[h]&&w[h](w.__model,g,c._api,d)}},wn={prepareAndUpdate:function(c){ga(this),wn.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var d=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(d){d.setUpdatePayload(c),m.restoreData(d,c),m.performSeriesTasks(d),g.create(d,v),m.performDataProcessorTasks(d,c),ah(this,d),g.update(d,v),r(d),m.performVisualTasks(d,c),sh(this,d,v,c,h);var _=d.get("backgroundColor")||"transparent",y=d.get("darkMode");p.setBackgroundColor(_),y!=null&&y!=="auto"&&p.setDarkMode(y),Tr.trigger("afterupdate",d,v)}},updateTransform:function(c){var h=this,d=this._model,v=this._api;if(d){d.setUpdatePayload(c);var p=[];d.eachComponent(function(m,_){if(m!=="series"){var y=h.getViewOfComponentModel(_);if(y&&y.__alive)if(y.updateTransform){var b=y.updateTransform(_,d,v,c);b&&b.update&&p.push(y)}else p.push(y)}});var g=ft();d.eachSeries(function(m){var _=h._chartsMap[m.__viewId];if(_.updateTransform){var y=_.updateTransform(m,d,v,c);y&&y.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0,dirtyMap:g}),Hl(this,d,v,c,{},g),Tr.trigger("afterupdate",d,v)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),on.markUpdateMethod(c,"updateView"),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),sh(this,h,this._api,c,{}),Tr.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,d=this._model;d&&(d.setUpdatePayload(c),d.eachSeries(function(v){v.getData().clearAllVisual()}),on.markUpdateMethod(c,"updateVisual"),r(d),this._scheduler.performVisualTasks(d,c,{visualType:"visual",setDirty:!0}),d.eachComponent(function(v,p){if(v!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,d,h._api,c)}}),d.eachSeries(function(v){var p=h._chartsMap[v.__viewId];p.updateVisual(v,d,h._api,c)}),Tr.trigger("afterupdate",d,this._api))},updateLayout:function(c){wn.update.call(this,c)}},ih=function(c,h,d,v){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,_=Ac(p,d),y=0;y<g.length;y++){var b=g[y];if(b[h]&&(m=b[h](p,_,v))!=null)return m}},ah=function(c,h){var d=c._chartsMap,v=c._scheduler;h.eachSeries(function(p){v.updateStreamModes(p,d[p.__viewId])})},oh=function(c,h){var d=this,v=this.getModel(),p=c.type,g=c.escapeConnect,m=ju[p],_=m.actionInfo,y=(_.update||"update").split(":"),b=y.pop(),S=y[0]!=null&&Gr(y[0]);this[ge]=!0;var w=[c],T=!1;c.batch&&(T=!0,w=Tt(c.batch,function(O){return O=Ut(G({},O),c),O.batch=null,O}));var C=[],x,D=Md(c),A=Fm(c);if(A&&hw(this._api),P(w,function(O){if(x=m.action(O,d._model,d._api),x=x||G({},O),x.type=_.event||x.type,C.push(x),A){var V=Zv(c),k=V.queryOptionMap,K=V.mainTypeSpecified,$=K?k.keys()[0]:"series";Vl(d,b,O,$),sr(d)}else D?(Vl(d,b,O,"series"),sr(d)):S&&Vl(d,b,O,S.main,S.sub)}),b!=="none"&&!A&&!D&&!S)try{this[Ve]?(ga(this),wn.update.call(this,c),this[Ve]=null):wn[b].call(this,c)}catch(O){throw this[ge]=!1,O}if(T?x={type:_.event||p,escapeConnect:g,batch:C}:x=C[0],this[ge]=!1,!h){var M=this._messageCenter;if(M.trigger(x.type,x),D){var E={type:"selectchanged",escapeConnect:g,selected:DL(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};M.trigger(E.type,E)}}},wo=function(c){for(var h=this._pendingActions;h.length;){var d=h.shift();oh.call(this,d,c)}},To=function(c){!c&&this.trigger("updated")},jy=function(c,h){c.on("rendered",function(d){h.trigger("rendered",d),c.animation.isFinished()&&!h[Ve]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Zy=function(c,h){c.on("mouseover",function(d){var v=d.target,p=Ho(v,Is);p&&(TL(p,d,h._api),sr(h))}).on("mouseout",function(d){var v=d.target,p=Ho(v,Is);p&&(xL(p,d,h._api),sr(h))}).on("click",function(d){var v=d.target,p=Ho(v,function(_){return Ct(_).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Ct(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],d=[],v=!1;if(c.eachComponent(function(_,y){var b=y.get("zlevel")||0,S=y.get("z")||0,w=y.getZLevelKey();v=v||!!w,(_==="series"?d:h).push({zlevel:b,z:S,idx:y.componentIndex,type:_,key:w})}),v){var p=h.concat(d),g,m;eu(p,function(_,y){return _.zlevel===y.zlevel?_.z-y.z:_.zlevel-y.zlevel}),P(p,function(_){var y=c.getComponent(_.type,_.idx),b=_.zlevel,S=_.key;g!=null&&(b=Math.max(g,b)),S?(b===g&&S!==m&&b++,m=S):m&&(b===g&&b++,m=""),g=b,y.setZLevel(b)})}}sh=function(c,h,d,v,p){n(h),Qy(c,h,d,v,p),P(c._chartsViews,function(g){g.__alive=!1}),Hl(c,h,d,v,p),P(c._chartsViews,function(g){g.__alive||g.remove(h,d)})},Qy=function(c,h,d,v,p,g){P(g||c._componentsViews,function(m){var _=m.__model;u(_,m),m.render(_,h,d,v),s(_,m),f(_,m)})},Hl=function(c,h,d,v,p,g){var m=c._scheduler;p=G(p||{},{updatedSeries:h.getSeries()}),Tr.trigger("series:beforeupdate",h,d,p);var _=!1;h.eachSeries(function(y){var b=c._chartsMap[y.__viewId];b.__alive=!0;var S=b.renderTask;m.updatePayload(S,v),u(y,b),g&&g.get(y.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(_=!0),b.group.silent=!!y.get("silent"),o(y,b),Bm(y)}),m.unfinished=_||m.unfinished,Tr.trigger("series:layoutlabels",h,d,p),Tr.trigger("series:transition",h,d,p),h.eachSeries(function(y){var b=c._chartsMap[y.__viewId];s(y,b),f(y,b)}),a(c,h),Tr.trigger("series:afterupdate",h,d,p)},sr=function(c){c[eh]=!0,c.getZr().wakeUp()},t_=function(c){c[eh]&&(c.getZr().storage.traverse(function(h){is(h)||i(h)}),c[eh]=!1)};function i(c){for(var h=[],d=c.currentStates,v=0;v<d.length;v++){var p=d[v];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===rp&&c.states.emphasis?h.push("emphasis"):c.hoverState===ep&&c.states.blur&&h.push("blur"),c.useStates(h)}function a(c,h){var d=c._zr,v=d.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!lt.node&&!lt.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var d=c.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(c,h){if(!c.preventAutoZ){var d=c.get("z")||0,v=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,d,v,-1/0),!0})}}function l(c,h,d,v){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var _=c.childrenRef(),y=0;y<_.length;y++)v=Math.max(l(_[y],h,d,v),v);else c.z=h,c.zlevel=d,v=Math.max(c.z2,v);if(p&&(p.z=h,p.zlevel=d,isFinite(v)&&(p.z2=v+2)),g){var b=c.textGuideLineConfig;g.z=h,g.zlevel=d,isFinite(v)&&(g.z2=v+(b&&b.showAbove?1:-1))}return v}function u(c,h){h.eachRendered(function(d){if(!is(d)){var v=d.getTextContent(),p=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function f(c,h){var d=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),p=d.get("duration"),g=p>0?{duration:p,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(is(m))return;if(m instanceof Ht&&ML(m),m.__dirty){var _=m.prevStates;_&&m.useStates(_)}if(v){m.stateTransition=g;var y=m.getTextContent(),b=m.getTextGuideLine();y&&(y.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&i(m)}})}Jy=function(c){return new(function(h){tt(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},d.prototype.enterEmphasis=function(v,p){Cs(v,p),sr(c)},d.prototype.leaveEmphasis=function(v,p){Ds(v,p),sr(c)},d.prototype.enterBlur=function(v){SL(v),sr(c)},d.prototype.leaveBlur=function(v){lw(v),sr(c)},d.prototype.enterSelect=function(v){uw(v),sr(c)},d.prototype.leaveSelect=function(v){fw(v),sr(c)},d.prototype.getModel=function(){return c.getModel()},d.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},d}(Fw))(c)},M1=function(c){function h(d,v){for(var p=0;p<d.length;p++){var g=d[p];g[rh]=v}}P(ss,function(d,v){c._messageCenter.on(v,function(p){if(e_[c.group]&&c[rh]!==Ky){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];P(ls,function(_){_!==c&&_.group===c.group&&m.push(_)}),h(m,Ky),P(m,function(_){_[rh]!==O2&&_.dispatchAction(g)}),h(m,k2)}})})}}(),t}(Lr),Ap=L1.prototype;Ap.on=x1("on");Ap.off=x1("off");Ap.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var N2=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var ju={},ss={},Wd=[],Yd=[],Zu=[],P1={},Xd={},ls={},e_={},B2=+new Date-0,Mp="_echarts_instance_";function F2(e,t,r){{var n=V2(e);if(n)return n}var i=new L1(e,t,r);return i.id="ec_"+B2++,ls[i.id]=i,YS(e,Mp,i.id),M1(i),Tr.trigger("afterinit",i),i}function V2(e){return ls[hM(e,Mp)]}function E1(e,t){P1[e]=t}function R1(e){Mt(Yd,e)<0&&Yd.push(e)}function O1(e,t){Pp(Wd,e,t,D2)}function H2(e){Lp("afterinit",e)}function z2(e){Lp("afterupdate",e)}function Lp(e,t){Tr.on(e,t)}function ta(e,t,r){St(t)&&(r=t,t="");var n=it(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!ss[t]&&(Ar(qy.test(n)&&qy.test(t)),ju[n]||(ju[n]={action:r,actionInfo:e}),ss[t]=n)}function G2(e,t){Gf.register(e,t)}function $2(e,t){Pp(Zu,e,t,S1,"layout")}function ea(e,t){Pp(Zu,e,t,w1,"visual")}var r_=[];function Pp(e,t,r,n,i){if((St(t)||it(t))&&(r=t,t=n),!(Mt(r_,r)>=0)){r_.push(r);var a=l1.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function k1(e,t){Xd[e]=t}function U2(e,t,r){var n=S2("registerMap");n&&n(e,t,r)}var W2=ZE;ea(Ip,IR);ea(Yf,AR);ea(Yf,MR);ea(Ip,GR);ea(Yf,$R);ea(T1,_2);R1(Hw);O1(x2,RE);k1("default",LR);ta({type:Ni,event:Ni,update:Ni},ae);ta({type:su,event:su,update:su},ae);ta({type:es,event:es,update:es},ae);ta({type:lu,event:lu,update:lu},ae);ta({type:rs,event:rs,update:rs},ae);E1("light",HR);E1("dark",h1);function xo(e){return e==null?0:e.length||1}function n_(e){return e}var N1=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||n_,this._newKeyGetter=i||n_,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=xo(l);if(u>1){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)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=xo(u),h=xo(f);if(c>1&&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 d=0;d<c;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=xo(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=xo(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),Y2=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function X2(e,t){var r={},n=r.encode={},i=ft(),a=[],o=[],s={};P(e.dimensions,function(h){var d=e.getDimensionInfo(h),v=d.coordDim;if(v){var p=d.coordDimIndex;lh(n,v)[p]=h,d.isExtraCoord||(i.set(v,1),K2(d.type)&&(a[0]=h),lh(s,v)[p]=e.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(h)}Ew.each(function(g,m){var _=lh(n,m),y=d.otherDims[m];y!=null&&y!==!1&&(_[y]=d.name)})});var l=[],u={};i.each(function(h,d){var v=n[d];u[d]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Tt(l,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new Y2(s,t),r}function lh(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function q2(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function K2(e){return!(e==="ordinal"||e==="time")}var hu=function(){function e(t){this.otherDims={},t!=null&&G(this,t)}return e}(),j2=ee(),Z2={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},B1=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=H1(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ht(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=Gw(this.source),n=!z1(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Z2[u]||"f",f&&(i+=f.uid),i+="$"}var d=this.source,v=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:a,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function F1(e){return e instanceof B1}function V1(e){for(var t=ft(),r=0;r<(e||[]).length;r++){var n=e[r],i=it(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function H1(e){var t=j2(e);return t.dimNameMap||(t.dimNameMap=V1(e.dimensionsDefine))}function z1(e){return e>30}var Co=it,Tn=Tt,Q2=typeof Int32Array>"u"?Array:Int32Array,J2="e\0\0",i_=-1,tO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],eO=["_approximateExtent"],a_,zl,Do,Io,uh,Ao,fh,Rs=function(){function e(t,r){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;F1(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<n.length;f++){var c=n[f],h=rt(c)?new hu({name:c}):c instanceof hu?c:new hu(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var v=h.otherDims=h.otherDims||{};o.push(d),a[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),i&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ft();P(o,function(g){p.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(jt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof kd&&(a=t),!a){var o=this.dimensions,s=wp(t)||qe(t)?new $w(t,o.length):t;a=new kd;var l=Tn(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=X2(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&fh(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==zn&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===yr;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&eM(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=Xe(h,null));var d=c.id;o[f]==null&&d!=null&&(o[f]=Xe(d,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)fh(this,f);a_(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Co(t)?G(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Do(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return zl(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return j(t)?i.getValues(Tn(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n&&n[r];return i==null||isNaN(i)?i_:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){St(t)&&(n=r,r=t,t=[]);var i=n||this,a=Tn(Io(t),this._getStoreDimIndex,this);this._store.each(a,i?bt(r,i):r)},e.prototype.filterSelf=function(t,r,n){St(t)&&(n=r,r=t,t=[]);var i=n||this,a=Tn(Io(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?bt(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Kt(t);return P(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){St(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Tn(Io(t),this._getStoreDimIndex,this),s=Ao(this);return s._store=this._store.map(o,a?bt(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Tn(Io(t),this._getStoreDimIndex,this);this._store.modify(o,a?bt(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Ao(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.minmaxDownSample=function(t,r){var n=Ao(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=Ao(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Ft(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new N1(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return zl(t,n)},function(n){return zl(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Co(t)?G(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),j(a)?a=a.slice():Co(a)&&(a=G({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Co(r)?G(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Co(t)?G(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?G(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;dL(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){P(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Tn(this.dimensions,this._getDimInfo,this),this.hostModel)),uh(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];St(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Gv(arguments)))})},e.internalField=function(){a_=function(t){var r=t._invertedIndicesMap;P(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Q2(o.categories.length);for(var l=0;l<n.length;l++)n[l]=i_;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Do=function(t,r,n){return Xe(t._getCategory(r,n),null)},zl=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Do(t,t._idDimIdx,r)),n==null&&(n=J2+r),n},Io=function(t){return j(t)||(t=t!=null?[t]:[]),t},Ao=function(t){var r=new e(t._schema?t._schema:Tn(t.dimensions,t._getDimInfo,t),t.hostModel);return uh(r,t),r},uh=function(t,r){P(tO.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,P(eO,function(n){t[n]=gt(r[n])}),t._calculationInfo=G({},r._calculationInfo)},fh=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Do(t,a,r)),l==null&&o!=null&&(i[r]=l=Do(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),e}();function Ep(e,t){wp(e)||(e=Tp(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ft(),a=[],o=nO(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&z1(o),l=n===e.dimensionsDefine,u=l?H1(e):V1(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=ft(f),h=new qw(o),d=0;d<h.length;d++)h[d]=-1;function v(x){var D=h[x];if(D<0){var A=n[x],M=it(A)?A:{name:A},E=new hu,O=M.name;O!=null&&u.get(O)!=null&&(E.name=E.displayName=O),M.type!=null&&(E.type=M.type),M.displayName!=null&&(E.displayName=M.displayName);var V=a.length;return h[x]=V,E.storeDimIndex=x,a.push(E),E}return a[D]}if(!s)for(var d=0;d<o;d++)v(d);c.each(function(x,D){var A=ue(x).slice();if(A.length===1&&!rt(A[0])&&A[0]<0){c.set(D,!1);return}var M=c.set(D,[]);P(A,function(E,O){var V=rt(E)?u.get(E):E;V!=null&&V<o&&(M[O]=V,g(v(V),D,O))})});var p=0;P(r,function(x){var D,A,M,E;if(rt(x))D=x,E={};else{E=x,D=E.name;var O=E.ordinalMeta;E.ordinalMeta=null,E=G({},E),E.ordinalMeta=O,A=E.dimsDef,M=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var V=c.get(D);if(V!==!1){if(V=ue(V),!V.length)for(var k=0;k<(A&&A.length||1);k++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&V.push(p++)}P(V,function(K,$){var ot=v(K);if(l&&E.type!=null&&(ot.type=E.type),g(Ut(ot,E),D,$),ot.name==null&&A){var kt=A[$];!it(kt)&&(kt={name:kt}),ot.name=ot.displayName=kt.name,ot.defaultTooltip=kt.defaultTooltip}M&&Ut(ot.otherDims,M)})}});function g(x,D,A){Ew.get(D)!=null?x.otherDims[D]=A:(x.coordDim=D,x.coordDimIndex=A,i.set(D,!0))}var m=t.generateCoord,_=t.generateCoordCount,y=_!=null;_=m?_||1:0;var b=m||"value";function S(x){x.name==null&&(x.name=x.coordDim)}if(s)P(a,function(x){S(x)}),a.sort(function(x,D){return x.storeDimIndex-D.storeDimIndex});else for(var w=0;w<o;w++){var T=v(w),C=T.coordDim;C==null&&(T.coordDim=iO(b,i,y),T.coordDimIndex=0,(!m||_<=0)&&(T.isExtraCoord=!0),_--),S(T),T.type==null&&(Nw(e,w)===Je.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return rO(a),new B1({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function rO(e){for(var t=ft(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function nO(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return P(t,function(a){var o;it(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function iO(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var aO=function(){function e(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return e}();function oO(e){var t=e.get("coordinateSystem"),r=new aO(t),n=sO[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var sO={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Ci).models[0],a=e.getReferringComponents("yAxis",Ci).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ma(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ma(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Ci).models[0];t.coordSysDims=["single"],r.set("single",i),ma(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Ci).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ma(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ma(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();P(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),ma(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ma(e){return e.get("type")==="category"}function lO(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;uO(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,h;if(P(a,function(_,y){rt(_)&&(a[y]=_={name:_}),l&&!_.isExtraCoord&&(!n&&!u&&_.ordinalMeta&&(u=_),!f&&_.type!=="ordinal"&&_.type!=="time"&&(!i||i===_.coordDim)&&(f=_))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,v=f.type,p=0;P(a,function(_){_.coordDim===d&&p++});var g={name:c,coordDim:d,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,v),m.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function uO(e){return!F1(e.schema)}function fO(e,t){var r=e.get("coordinateSystem"),n=Gf.get(r),i;return t&&t.coordSysDims&&(i=Tt(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=q2(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function cO(e,t,r){var n,i;return r&&P(e,function(a,o){var s=a.coordDim,l=r.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&&(e[n].otherDims.itemName=0),n}function hO(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=Tp(e)):(i=n.getSource(),a=i.sourceFormat===yr);var o=oO(t),s=fO(t,o),l=r.useEncodeDefaulter,u=St(l)?l:l?Yt(sE,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Ep(i,f),h=cO(c.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(c),v=lO(t,{schema:c,store:d}),p=new Rs(c,t);p.setCalculationInfo(v);var g=h!=null&&dO(i)?function(m,_,y,b){return b===h?y:this.defaultDimValueGetter(m,_,y,b)}:null;return p.hasItemOption=!1,p.initData(a?i:d,null,g),p}function dO(e){if(e.sourceFormat===yr){var t=vO(e.data||[]);return!j(Xs(t))}}function vO(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function G1(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function pO(e){var t=e.get("interval");return t??"auto"}function gO(e){return e.type==="category"&&pO(e.getLabelModel())===0}var o_=[],mO={registerPreprocessor:R1,registerProcessor:O1,registerPostInit:H2,registerPostUpdate:z2,registerUpdateLifecycle:Lp,registerAction:ta,registerCoordinateSystem:G2,registerLayout:$2,registerVisual:ea,registerTransform:W2,registerLoading:k1,registerMap:U2,registerImpl:b2,PRIORITY:R2,ComponentModel:Pt,ComponentView:Yr,SeriesModel:hn,ChartView:on,registerComponentModel:function(e){Pt.registerClass(e)},registerComponentView:function(e){Yr.registerClass(e)},registerSeriesModel:function(e){hn.registerClass(e)},registerChartView:function(e){on.registerClass(e)},registerSubTypeDefaulter:function(e,t){Pt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){qA(e,t)}};function Yi(e){if(j(e)){P(e,function(t){Yi(t)});return}Mt(o_,e)>=0||(o_.push(e),St(e)&&(e={install:e}),e.install(mO))}function yO(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Hu(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function _O(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new wt(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<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,h=!1,d=0;d<t.length;d++){var v=t[d];if(r.intersect(v.rect)){if(o&&v.axisAligned){h=!0;break}if(v.obb||(v.obb=new Hu(v.localRect,v.transform)),c||(c=new Hu(s,l)),c.intersect(v.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function $1(e){const t=vf();function r(){t.value?.resize()}return ji(()=>{t.value=F2(e.value),window.addEventListener("resize",r)}),to(()=>{window.removeEventListener("resize",r),t.value?.dispose()}),t}function Gl(e,t){return Rt({get:()=>e.value[t],set:r=>{e.value={...e.value,[t]:r}}})}function s_(e,t,r){r=r||{};var n=e.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},d=t.get("offset")||0,v=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[h.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[h[l]]:c[0],u==="x"?v[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?v[h[s]]-v[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Wn(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}var En=Math.PI,Bi=function(){function e(t,r){this.group=new oe,this.opt=r,this.axisModel=t,Ut(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new oe({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!l_[t]},e.prototype.add=function(t){l_[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=zS(r-t),a,o;return Bu(i)?(o=n>0?"top":"bottom",a="center"):Bu(i-En)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<En?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),l_={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.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&&(ir(s,s,o),ir(l,l,o));var f=G({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Ji({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});dp(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var d=t.get(["axisLine","symbolSize"]);rt(h)&&(h=[h,h]),(rt(d)||jt(d))&&(d=[d,d]);var v=Wf(t.get(["axisLine","symbolOffset"])||0,d),p=d[0],g=d[1];P([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,_){if(h[_]!=="none"&&h[_]!=null){var y=Js(h[_],-p/2,-g/2,p,g,f.stroke,!0),b=m.r+m.offset,S=u?l:s;y.attr({rotation:m.rotate,x:S[0]+b*Math.cos(e.rotation),y:S[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),r.add(y)}})}}},axisTickLabel:function(e,t,r,n){var i=wO(r,n,t,e),a=xO(r,n,t,e);if(SO(t,a,i),TO(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=yO(Tt(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));_O(o)}},axisName:function(e,t,r,n){var i=Wn(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.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,f_(a)?e.labelOffset+o*l:0],h,d=t.get("nameRotate");d!=null&&(d=d*En/180);var v;f_(a)?h=Bi.innerTextLayout(e.rotation,d??e.rotation,o):(h=bO(e.rotation,a,d||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,_=Wn(e.nameTruncateMaxWidth,g.maxWidth,v),y=new xe({x:c[0],y:c[1],rotation:h.rotation,silent:Bi.isLabelSilent(t),style:Wr(s,{text:i,font:p,overflow:"truncate",width:_,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Bf({el:y,componentModel:t,itemName:i}),y.__fullText=i,y.anid="name",t.get("triggerEvent")){var b=Bi.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,Ct(y).eventData=b}n.add(y),y.updateTransform(),r.add(y),y.decomposeTransform()}}};function bO(e,t,r,n){var i=zS(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Bu(i-En/2)?(o=l?"bottom":"top",a="center"):Bu(i-En*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<En*1.5&&i>En/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function SO(e,t,r){if(!gO(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],f=r[1],c=r[r.length-1],h=r[r.length-2];n===!1?(lr(a),lr(u)):u_(a,o)&&(n?(lr(o),lr(f)):(lr(a),lr(u))),i===!1?(lr(s),lr(c)):u_(l,s)&&(i?(lr(l),lr(h)):(lr(s),lr(c)))}}function lr(e){e&&(e.ignore=!0)}function u_(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Wv([]);return Yv(i,i,-e.rotation),r.applyTransform(Ga([],i,e.getLocalTransform())),n.applyTransform(Ga([],i,t.getLocalTransform())),r.intersect(n)}}function f_(e){return e==="middle"||e==="center"}function U1(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(ir(o,o,t),ir(s,s,t));var f=new Ji({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});dp(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,a.push(f)}return a}function wO(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=U1(u,t.transform,l,Ut(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}}function TO(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Ut(s.getLineStyle(),Ut(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=U1(o[f],t.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)e.add(c[h])}}function xO(e,t,r,n){var i=r.axis,a=Wn(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Wn(n.labelRotate,o.get("rotate"))||0)*En/180,f=Bi.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),h=[],d=Bi.isLabelSilent(r),v=r.get("triggerEvent");return P(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,_=p.formattedLabel,y=p.rawLabel,b=o;if(c&&c[m]){var S=c[m];it(S)&&S.textStyle&&(b=new Ft(S.textStyle,o,r.ecModel))}var w=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=i.dataToCoord(m),C=b.getShallow("align",!0)||f.textAlign,x=ht(b.getShallow("alignMinLabel",!0),C),D=ht(b.getShallow("alignMaxLabel",!0),C),A=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||f.textVerticalAlign,M=ht(b.getShallow("verticalAlignMinLabel",!0),A),E=ht(b.getShallow("verticalAlignMaxLabel",!0),A),O=new xe({x:T,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:d,z2:10+(p.level||0),style:Wr(b,{text:_,align:g===0?x:g===l.length-1?D:C,verticalAlign:g===0?M:g===l.length-1?E:A,fill:St(w)?w(i.type==="category"?y:i.type==="value"?m+"":m,g):w})});if(O.anid="label_"+m,Bf({el:O,componentModel:r,itemName:_,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:y,tickIndex:g}}),v){var V=Bi.makeAxisEventDataBase(r);V.targetType="axisLabel",V.value=y,V.tickIndex=g,i.type==="category"&&(V.dataIndex=m),Ct(O).eventData=V}t.add(O),O.updateTransform(),h.push(O),e.add(O),O.decomposeTransform()}),h}}function CO(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return DO(r,e,t),r.seriesInvolved&&AO(r,e),r}function DO(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];P(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Os(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(P(s.getAxes(),Yt(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",d=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&P(v.baseAxes,Yt(p,d?"cross":!0,h)),d&&P(v.otherAxes,Yt(p,"cross",!1))}function p(g,m,_){var y=_.model.getModel("axisPointer",i),b=y.get("show");if(!(!b||b==="auto"&&!g&&!qd(y))){m==null&&(m=y.get("triggerTooltip")),y=g?IO(_,c,i,t,g,m):y;var S=y.get("snap"),w=y.get("triggerEmphasis"),T=Os(_.model),C=m||S||_.type==="category",x=e.axesInfo[T]={key:T,axis:_,coordSys:s,axisPointerModel:y,triggerTooltip:m,triggerEmphasis:w,involveSeries:C,snap:S,useHandle:qd(y),seriesModels:[],linkGroup:null};u[T]=x,e.seriesInvolved=e.seriesInvolved||C;var D=MO(a,_);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[T]=x,A.mapper=a[D].mapper,x.linkGroup=A}}}})}function IO(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};P(s,function(h){l[h]=gt(o.get(h))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&Ut(u,c.textStyle)}}return e.model.getModel("axisPointer",new Ft(l,r,n))}function AO(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||P(e.coordSysAxesInfo[Os(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function MO(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(ch(a[n+"AxisId"],r.id)||ch(a[n+"AxisIndex"],r.componentIndex)||ch(a[n+"AxisName"],r.name))return i}}function ch(e,t){return e==="all"||j(e)&&Mt(e,t)>=0||e===t}function LO(e){var t=Rp(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=qd(r);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]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Rp(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Os(e)]}function PO(e){var t=Rp(e);return t&&t.axisPointerModel}function qd(e){return!!e.get(["handle","show"])}function Os(e){return e.type+"||"+e.id}var c_={},EO=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&LO(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=PO(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){c_[r]=n},t.getAxisPointerClass=function(r){return r&&c_[r]},t.type="axis",t}(Yr),Si=ee(),h_=gt,hh=bt,RO=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,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,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new oe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=Yt(d_,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}p_(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.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=Rp(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Si(t).pointerEl=new xP[a.type](h_(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Si(t).labelEl=new xe(h_(r.label));t.add(a),v_(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Si(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Si(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),v_(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.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=pp(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){If(u.event)},onmousedown:hh(this._onHandleDragMove,this,0,0),drift:hh(this._onHandleDragMove,this),ondragend:hh(this._onHandleDragEnd,this)}),n.add(i)),p_(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");j(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,a1(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){d_(this._axisPointerModel,!r&&this._moveAnimation,this._handle,dh(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(dh(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(dh(i)),Si(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Vd(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function d_(e,t,r,n){W1(Si(r).lastProp,n)||(Si(r).lastProp=n,t?Xn(r,n,e):(r.stopAnimation(),r.attr(n)))}function W1(e,t){if(it(e)&&it(t)){var r=!0;return P(t,function(n,i){r=r&&W1(e[i],n)}),!!r}else return e===t}function v_(e,t){e[t.get(["label","show"])?"show":"hide"]()}function dh(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function p_(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function OO(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function kO(e,t,r,n,i){var a=r.get("value"),o=Y1(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Qs(s.get("padding")||0),u=s.getFont(),f=kS(o,u),c=i.position,h=f.width+l[1]+l[3],d=f.height+l[0]+l[2],v=i.align;v==="right"&&(c[0]-=h),v==="center"&&(c[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=d),p==="middle"&&(c[1]-=d/2),NO(c,h,d,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:Wr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function NO(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Y1(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:G1(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};P(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),rt(o)?a=o.replace("{value}",a):St(o)&&(a=o(s))}return a}function X1(e,t,r){var n=Bn();return Yv(n,n,r.rotation),bs(n,n,r.position),vp([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function BO(e,t,r,n,i,a){var o=Bi.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),kO(t,n,i,a,{position:X1(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function FO(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function VO(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var HO=function(e){tt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=g_(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=OO(a),d=zO[u](s,c,f);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=s_(l.model,i);BO(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=s_(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=X1(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=g_(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.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,d=[h,h];d[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[f]}},t}(RO);function g_(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var zO={line:function(e,t,r){var n=FO([t,r[0]],[t,r[1]],m_(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:VO([t-n/2,r[0]],[n,i],m_(e))}}};function m_(e){return e.dim==="x"?0:1}var GO=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(Pt),rn=ee(),$O=P;function q1(e,t,r){if(!lt.node){var n=t.getZr();rn(n).records||(rn(n).records={}),UO(n,t);var i=rn(n).records[e]||(rn(n).records[e]={});i.handler=r}}function UO(e,t){if(rn(e).initialized)return;rn(e).initialized=!0,r("click",Yt(y_,"click")),r("mousemove",Yt(y_,"mousemove")),r("globalout",YO);function r(n,i){e.on(n,function(a){var o=XO(t);$O(rn(e).records,function(s){s&&i(s,a,o.dispatchAction)}),WO(o.pendings,t)})}}function WO(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function YO(e,t,r){e.handler("leave",null,r)}function y_(e,t,r,n){t.handler(e,r,n)}function XO(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function Kd(e,t){if(!lt.node){var r=t.getZr(),n=(rn(r).records||{})[e];n&&(rn(r).records[e]=null)}}var qO=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";q1("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(r,n){Kd("axisPointer",n)},t.prototype.dispose=function(r,n){Kd("axisPointer",n)},t.type="axisPointer",t}(Yr);function K1(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=qs(a,e);if(o==null||o<0||j(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,d=c==="x"||c==="radius"?1:0,v=a.mapDimension(h),p=[];p[d]=a.get(v,o),p[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(Tt(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var __=ee();function KO(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||bt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){du(i)&&(i=K1({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=du(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||du(i),h={},d={},v={list:[],map:{}},p={showPointer:Yt(ZO,d),showTooltip:Yt(QO,v)};P(s.coordSysMap,function(m,_){var y=l||m.containPoint(i);P(s.coordSysAxesInfo[_],function(b,S){var w=b.axis,T=rk(u,b);if(!c&&y&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&b_(b,C,p,!1,h)}})});var g={};return P(f,function(m,_){var y=m.linkGroup;y&&!d[_]&&P(y.axesInfo,function(b,S){var w=d[S];if(b!==m&&w){var T=w.value;y.mapper&&(T=m.axis.scale.parse(y.mapper(T,S_(b),S_(m)))),g[m.key]=T}})}),P(g,function(m,_){b_(f[_],m,p,!0,h)}),JO(d,f,h),tk(v,i,e,o),ek(f,o,r),h}}function b_(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=jO(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&G(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function jO(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return P(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(f,e,r);h=d.dataIndices,c=d.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var v=e-c,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,i=c,a.length=0),P(h,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function ZO(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function QO(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Os(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.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 JO(e,t,r){var n=r.axesInfo=[];P(t,function(i,a){var o=i.axisPointerModel.option,s=e[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 tk(e,t,r,n){if(du(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function ek(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=__(n)[i]||{},o=__(n)[i]={};P(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&P(c.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=h})});var s=[],l=[];P(a,function(u,f){!o[f]&&l.push(u)}),P(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function rk(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function S_(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function du(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function nk(e){EO.registerAxisPointerClass("CartesianAxisPointer",HO),e.registerComponentModel(GO),e.registerComponentView(qO),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!j(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=CO(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},KO)}var w_=ir,j1=function(e){tt(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new xi,n._rawTransformable=new xi,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,i,a){return this._rect=new wt(r,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,i,a){this._transformTo(r,n,i,a),this._viewRect=new wt(r,n,i,a)},t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new wt(r,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){r&&(this._center=[le(r[0],n.getWidth()),le(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,i=r.y+r.height/2;return[n,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=ir([],a,r),i=ir([],i,r),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),mS(this.transform||(this.transform=[]),n.transform||Bn()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Xv(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,i=new xi;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?w_(i,r,a):Ie(i,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?w_([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,i){var a=T_(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=T_(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(xi);function T_(e){var t=e.seriesModel;return t?t.coordinateSystem:null}function x_(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function ik(e,t,r,n){var i=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(x_(e,s),n)),o!=null){e.scaleX*=o,e.scaleY*=o;var l=(t.originX-e.x)*(o-1),u=(t.originY-e.y)*(o-1);e.x-=l,e.y-=u,e.updateTransform(),e.setCenter(x_(e,s),n),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var C_="\0_ec_interaction_mutex";function D_(e,t){return!!ak(e)[t]}function ak(e){return e[C_]||(e[C_]={})}ta({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ae);var Z1=function(e){tt(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var i=bt(n._mousedownHandler,n),a=bt(n._mousemoveHandler,n),o=bt(n._mouseupHandler,n),s=bt(n._mousewheelHandler,n),l=bt(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=Ut(gt(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",i),r.on("mousemove",a),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",i),r.off("mousemove",a),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!Vg(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this.pointerChecker&&this.pointerChecker(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!vu("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||D_(this._zr,"globalPan"))){var n=r.offsetX,i=r.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&If(r.event),Q1(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){Vg(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=vu("zoomOnMouseWheel",r,this._opt),i=vu("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;vh(this,"zoom","zoomOnMouseWheel",r,{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);vh(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!D_(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;vh(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Lr);function vh(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(If(n.event),Q1(e,t,r,n,i))}function Q1(e,t,r,n,i){i.isAvailableBehavior=bt(vu,null,r,n),e.trigger(t,i)}function vu(e,t,r){var n=r[e];return!e||n&&(!rt(n)||t.event[n+"Key"])}function ok(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function sk(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.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/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var lk={axisPointer:1,tooltip:1,brush:1};function uk(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!lk.hasOwnProperty(n.mainType)&&i&&i.model!==r}function fk(e,t){var r=Qs(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new we({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var ck=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(Pt);function J1(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function tT(e){if(lt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var eT=tT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),hk=tT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function rT(e,t){if(!e)return t;t=Mw(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function dk(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var vk=rT(hk,"transition"),Op=rT(eT,"transform"),pk="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(lt.transform3dSupported?"will-change:transform;":"");function gk(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function mk(e,t,r){if(!rt(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=As(t);var a=gk(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Op+":",u;Mt(["left","right"],a)>-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)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+d+"px";var v=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function yk(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=lt.transformSupported?","+Op+n:",left"+n+",top"+n),vk+":"+i}function I_(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!lt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=lt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Op+":"+o+";":[["top",0],["left",0],[eT,o]]}function _k(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var i=ht(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),P(["decoration","align"],function(u){var f=e.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function bk(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),f=e.getModel("textStyle"),c=e1(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(yk(i,r)),a&&n.push("background-color:"+a),P(["width","color","radius"],function(d){var v="border-"+d,p=Mw(v),g=e.get(p);g!=null&&n.push(v+":"+g+(d==="color"?"":"px"))}),n.push(_k(f)),c!=null&&n.push("padding:"+Qs(c).join("px ")+"px"),n.join(";")+";"}function A_(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&WI(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Sk=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,lt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(rt(a)?document.querySelector(a):_s(a)?a:St(a)&&a(t.getDom()));A_(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();fr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=dk(r,"position"),i=r.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")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=pk+bk(t,!this._firstShow,this._longHide)+I_(a[0],a[1],!0)+("border-color:"+As(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(rt(a)&&n.get("trigger")==="item"&&!J1(n)&&(s=mk(n,i,a)),rt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",j(t)||(t=[t]);for(var l=0;l<t.length;l++)_s(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(A_(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=I_(n[0],n[1]);P(a,function(o){i[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",lt.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(bt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),wk=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),L_(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;it(t)&&Ge(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new xe({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:e1(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),P(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),P(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=M_(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;L_(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Dn(a.borderWidth||0),s=M_(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(bt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Dn(e){return Math.max(0,e)}function M_(e){var t=Dn(e.shadowBlur||0),r=Dn(e.shadowOffsetX||0),n=Dn(e.shadowOffsetY||0);return{left:Dn(t-r),right:Dn(t+r),top:Dn(t-n),bottom:Dn(t+n)}}function L_(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Tk=new we({shape:{x:-1,y:-1,width:2,height:2}}),xk=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(lt.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=dM(i.get("renderMode"));this._tooltipContent=a==="richText"?new wk(n):new Sk(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(lt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?a1(this,"_updatePosition",50,"fixRate"):Vd(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");q1("itemTooltip",this._api,bt(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.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(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||lt.node||!i.getDom())){var o=P_(a,i);this._ticket="";var s=a.dataByCoordSys,l=Ak(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=Tk;f.x=a.x,f.y=a.y,f.update(),Ct(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(r,n,i,a))return;var c=K1(a,n),h=c.point[0],d=c.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,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(r,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(P_(a,i))},t.prototype._manuallyAxisShowTip=function(r,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=Mo([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(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Ct(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ho(i,function(f){if(Ct(f).dataIndex!=null)return l=f,!0;if(Ct(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=bt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Mo([n.tooltipOption],a),l=this._renderMode,u=[],f=Wi("section",{blocks:[],noHeader:!0}),c=[],h=new Jc;P(r,function(_){P(_.dataByAxis,function(y){var b=i.getComponent(y.axisDim+"Axis",y.axisIndex),S=y.value;if(!(!b||S==null)){var w=Y1(S,b.axis,i,y.seriesDataIndices,y.valueLabelOpt),T=Wi("section",{header:w,noHeader:!zr(w),sortBlocks:!0,blocks:[]});f.blocks.push(T),P(y.seriesDataIndices,function(C){var x=i.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,A=x.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=y.axisDim,A.axisIndex=y.axisIndex,A.axisType=y.axisType,A.axisId=y.axisId,A.axisValue=G1(b.axis,{value:S}),A.axisValueLabel=w,A.marker=h.makeTooltipMarker("item",As(A.color),l);var M=yy(x.formatTooltip(D,!0,null)),E=M.frag;if(E){var O=Mo([x],a).get("valueFormatter");T.blocks.push(O?G({valueFormatter:O},E):E)}M.text&&c.push(M.text),u.push(A)}})}})}),f.blocks.reverse(),c.reverse();var d=n.position,v=s.get("order"),p=Ty(f,h,l,v,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
|
|
57
|
-
|
|
58
|
-
`:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],d,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Ct(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),d=this._renderMode,v=r.positionDefault,p=Mo([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),_=new Jc;m.marker=_.makeTooltipMarker("item",As(m.color),d);var y=yy(u.formatTooltip(f,!1,c)),b=p.get("order"),S=p.get("valueFormatter"),w=y.frag,T=w?Ty(S?G({valueFormatter:S},w):w,_,d,b,a.get("useUTC"),p.get("textStyle")):y.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,m,C,r.offsetX,r.offsetY,r.position,r.target,_)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Ct(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(rt(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=gt(l),l.content=Pe(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var d=r.positionDefault,v=Mo(c,this._tooltipModel,d?{position:d}:null),p=v.get("content"),g=Math.random()+"",m=new Jc;this._showOrMove(v,function(){var _=gt(v.get("formatterParams")||{});this._showTooltipContent(v,p,_,g,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(h)if(rt(h)){var g=r.ecModel.get("useUTC"),m=j(i)?i[0]:i,_=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,_&&(d=Iw(m.axisValue,d,g)),d=Lw(d,i,!0)}else if(St(h)){var y=bt(function(b,S){b===this._ticket&&(c.setContent(S,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,d=h(i,a,y)}else d=h;c.setContent(d,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||j(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!j(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),St(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),j(n))i=le(n[0],u),a=le(n[1],f);else if(it(n)){var p=n;p.width=c[0],p.height=c[1];var g=Ui(p,{width:u,height:f});i=g.x,a=g.y,h=null,d=null}else if(rt(n)&&l){var m=Ik(n,v,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=Ck(i,a,o,u,f,h?null:20,d?null:20);i=m[0],a=m[1]}if(h&&(i-=E_(h)?c[0]/2:h==="right"?c[0]:0),d&&(a-=E_(d)?c[1]/2:d==="bottom"?c[1]:0),J1(r)){var m=Dk(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&P(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&P(u,function(h,d){var v=c[d]||{},p=h.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&p.length===g.length,o&&P(p,function(m,_){var y=g[_];o=o&&m.seriesIndex===y.seriesIndex&&m.dataIndex===y.dataIndex}),a&&P(h.seriesDataIndices,function(m){var _=m.seriesIndex,y=n[_],b=a[_];y&&b&&b.data!==y.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){lt.node||!n.getDom()||(Vd(this,"_updatePosition"),this._tooltipContent.dispose(),Kd("itemTooltip",n))},t.type="tooltip",t}(Yr);function Mo(e,t,r){var n=t.ecModel,i;r?(i=new Ft(r,n,n),i=new Ft(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Ft&&(o=o.get("tooltip",!0)),rt(o)&&(o={formatter:o}),o&&(i=new Ft(o,i,n)))}return i}function P_(e,t){return e.dispatchAction||bt(t.dispatchAction,t)}function Ck(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function Dk(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Ik(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){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 E_(e){return e==="center"||e==="middle"}function Ak(e,t,r){var n=Zv(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ks(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=Ct(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function nT(e){Yi(nk),e.registerComponentModel(ck),e.registerComponentView(xk),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ae),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ae)}var ks=P,Mk=it,Qu=-1,kp=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=gt(t);this.type=n,this.mappingMethod=r,this._normalizeData=Ek[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(ph(i),Lk(i)):r==="category"?i.categories?Pk(i):ph(i,!0):(Ar(r!=="linear"||i.dataExtent),ph(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return bt(this._normalizeData,this)},e.listVisualTypes=function(){return Kt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){it(t)?P(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=j(t)?[]:it(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&ks(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(j(t))t=t.slice();else if(Mk(t)){var r=[];ks(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||rt(l)&&l===t+"")return o;n&&h(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Ul(c[1],t,f[1]))return o}else if(f[1]===1/0){if(Ul(c[0],f[0],t))return o}else if(Ul(c[0],f[0],t)&&Ul(c[1],t,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:i;function h(d,v){var p=Math.abs(d-t);p<a&&(a=p,i=v)}},e.visualHandlers={color:{applyVisual:Lo("color"),getColorMapper:function(){var t=this.option;return bt(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),zo.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=gc(r,t.parsedVisual,i),a?i:Hn(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Hn(gc(t,this.option.parsedVisual),"rgba")},category:zo,piecewise:function(t,r){var n=Zd.call(this,r);return n==null&&(n=Hn(gc(t,this.option.parsedVisual),"rgba")),n},fixed:yi}},colorHue:$l(function(t,r){return Jo(t,r)}),colorSaturation:$l(function(t,r){return Jo(t,null,r)}),colorLightness:$l(function(t,r){return Jo(t,null,null,r)}),colorAlpha:$l(function(t,r){return PS(t,r)}),decal:{applyVisual:Lo("decal"),_normalizedToVisual:{linear:null,category:zo,piecewise:null,fixed:null}},opacity:{applyVisual:Lo("opacity"),_normalizedToVisual:jd([0,1])},liftZ:{applyVisual:Lo("liftZ"),_normalizedToVisual:{linear:yi,category:yi,piecewise:yi,fixed:yi}},symbol:{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:R_,category:zo,piecewise:function(t,r){var n=Zd.call(this,r);return n==null&&(n=R_.call(this,t)),n},fixed:yi}},symbolSize:{applyVisual:Lo("symbolSize"),_normalizedToVisual:jd([0,1])}},e}();function Lk(e){var t=e.pieceList;e.hasSpecialVisual=!1,P(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function Pk(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(ks(t,function(o,s){r[o]=s}),!j(n)){var i=[];it(n)?ks(n,function(o,s){var l=r[s];i[l??Qu]=o}):i[Qu]=n,n=iT(e,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function ph(e,t){var r=e.visual,n=[];it(r)?ks(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),iT(e,n)}function $l(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:jd([0,1])}}function R_(e){var t=this.option.visual;return t[Math.round($i(e,[0,1],[0,t.length-1],!0))]||{}}function Lo(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function zo(e){var t=this.option.visual;return t[this.option.loop&&e!==Qu?e%t.length:e]}function yi(){return this.option.visual[0]}function jd(e){return{linear:function(t){return $i(t,e,this.option.visual,!0)},category:zo,piecewise:function(t,r){var n=Zd.call(this,r);return n==null&&(n=$i(t,e,this.option.visual,!0)),n},fixed:yi}}function Zd(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=kp.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function iT(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Tt(t,function(r){var n=$r(r);return n||[0,0,0,1]})),t}var Ek={linear:function(e){return $i(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=kp.findPieceIndex(e,t,!0);if(r!=null)return $i(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??Qu},fixed:ae};function Ul(e,t,r){return e?t<=r:t<r}var Rk=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}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}(Pt),Ok=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ht(r.get("textBaseline"),r.get("textVerticalAlign")),f=new xe({style:Wr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),d=new xe({style:Wr(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!v&&!g,d.silent=!p&&!g,v&&f.on("click",function(){Rd(v,"_"+r.get("target"))}),p&&d.on("click",function(){Rd(p,"_"+r.get("subtarget"))}),Ct(f).eventData=Ct(d).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(d);var m=a.getBoundingRect(),_=r.getBoxLayoutParams();_.width=m.width,_.height=m.height;var y=Ui(_,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?y.x+=y.width:l==="center"&&(y.x+=y.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?y.y+=y.height:u==="middle"&&(y.y+=y.height/2),u=u||"top"),a.x=y.x,a.y=y.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),d.setStyle(b),m=a.getBoundingRect();var S=y.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var T=new we({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(T)}},t.type="title",t}(Yr);function aT(e){e.registerComponentModel(Rk),e.registerComponentView(Ok)}function kk(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Za(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Za(e,t,r[o]));return a.join(" ")}}var Nk=function(e){tt(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Js(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Bk,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Cs(this.childAt(0))},t.prototype.downplay=function(){Ds(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(d):Xn(h,d,s,n),lP(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!f){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,cp(h,d,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,h,d,v,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,d=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var _=a&&a.itemModel?a.itemModel:r.getItemModel(n),y=_.getModel("emphasis");u=y.getModel("itemStyle").getItemStyle(),c=_.getModel(["select","itemStyle"]).getItemStyle(),f=_.getModel(["blur","itemStyle"]).getItemStyle(),h=y.get("focus"),d=y.get("blurScope"),v=y.get("disabled"),p=Zs(_),g=y.getShallow("scale"),m=_.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=Wf(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var w=r.getItemVisual(n,"style"),T=w.fill;if(s instanceof Yn){var C=s.style;s.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(G({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var x=r.getItemVisual(n,"liftZ"),D=this._z2;x!=null?D==null&&(this._z2=s.z2,s.z2+=x):D!=null&&(s.z2=D,this._z2=null);var A=o&&o.useNameLabel;Hf(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:M,inheritColor:T,defaultOpacity:w.opacity});function M(V){return A?r.getName(V):kk(r,V)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var E=s.ensureState("emphasis");E.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var O=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;E.scaleX=this._sizeX*O,E.scaleY=this._sizeY*O,this.setSymbolScale(1),ap(this,h,d,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Ct(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&zu(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();zu(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Dp(r.getItemVisual(n,"symbolSize"))},t}(oe);function Bk(e,t){this.parent.drift(e,t)}function gh(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function O_(e){return e!=null&&!it(e)&&(e={isIgnore:e}),e||{}}function k_(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Zs(t),cursorStyle:t.get("cursor")}}var Fk=function(){function e(t){this.group=new oe,this._SymbolCtor=t||Nk}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=O_(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=k_(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};a||n.removeAll(),t.diff(a).add(function(c){var h=f(c);if(gh(t,h,c,r)){var d=new o(t,c,l,u);d.setPosition(h),t.setItemGraphicEl(c,d),n.add(d)}}).update(function(c,h){var d=a.getItemGraphicEl(h),v=f(c);if(!gh(t,v,c,r)){n.remove(d);return}var p=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),d=new o(t,c,l,u),d.setPosition(v);else{d.updateData(t,c,l,u);var m={x:v[0],y:v[1]};s?d.attr(m):Xn(d,m,i)}n.add(d),t.setItemGraphicEl(c,d)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=k_(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=O_(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(gh(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Ff(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e}(),N_=Ji.prototype,mh=kf.prototype,oT=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){tt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(oT);function yh(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Vk=function(e){tt(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new oT},t.prototype.buildPath=function(r,n){yh(n)?N_.buildPath.call(this,r,n):mh.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return yh(this.shape)?N_.pointAt.call(this,r):mh.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,i=yh(n)?[n.x2-n.x1,n.y2-n.y1]:mh.tangentAt.call(this,r);return no(i,i)},t}(Ht),_h=["fromSymbol","toSymbol"];function B_(e){return"_"+e+"Type"}function F_(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Dp(i),u=Wf(o||0,l);return n+l+u+(a||"")+(s||"")}function V_(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Dp(i),u=Wf(o||0,l),f=Js(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=e,f}}function Hk(e){var t=new Vk({name:"line",subPixelOptimize:!0});return Qd(t.shape,e),t}function Qd(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var zk=function(e){tt(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createLine(r,n,i),a}return t.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=Hk(o);s.shape.percent=0,cp(s,{shape:{percent:1}},a,n),this.add(s),P(_h,function(l){var u=V_(l,r,n);this.add(u),this[B_(l)]=F_(l,r,n)},this),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};Qd(l.shape,s),Xn(o,l,a,n),P(_h,function(u){var f=F_(u,r,n),c=B_(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=V_(u,r,n);this.add(h)}this[c]=f},this),this._updateCommonStl(r,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,h=i&&i.focus,d=i&&i.blurScope;if(!i||r.hasItemOption){var v=r.getItemModel(n),p=v.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),d=p.get("blurScope"),f=Zs(v)}var g=r.getItemVisual(n,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,P(_h,function(w){var T=this.childOfName(w);if(T){T.setColor(m),T.style.opacity=g.opacity;for(var C=0;C<Ur.length;C++){var x=Ur[C],D=o.getState(x);if(D){var A=D.style||{},M=T.ensureState(x),E=M.style||(M.style={});A.stroke!=null&&(E[T.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(E.opacity=A.opacity)}}T.markRedraw()}},this);var _=a.getRawValue(n);Hf(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(w,T){return a.getFormattedLabel(w,T,r.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(_==null?r.getName(n):isFinite(_)?HS(_):_)+""});var y=this.getTextContent();if(y){var b=f.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=b.get("position")||"middle";var S=b.get("distance");j(S)||(S=[S,S]),y.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),ap(this,h,d,c)},t.prototype.highlight=function(){Cs(this)},t.prototype.downplay=function(){Ds(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");Qd(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=Ti([],c,f);no(h,h);function d(D,A){var M=D.__specifiedRotation;if(M==null){var E=l.tangentAt(A);D.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(E[1],E[0]))}else D.attr("rotation",M)}if(n&&(n.setPosition(f),d(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(c),d(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,p=void 0,g=a.__labelDistance,m=g[0]*o,_=g[1]*o,y=u/2,b=l.tangentAt(y),S=[b[1],-b[0]],w=l.pointAt(y);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var T=b[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(b[1],b[0]);c[0]<f[0]&&(C=Math.PI+C),a.rotation=C}var x=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-_,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=_,p="top";break;default:x=0,p="middle"}switch(a.__position){case"end":a.x=h[0]*m+c[0],a.y=h[1]*_+c[1],v=h[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]*m+f[0],a.y=-h[1]*_+f[1],v=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=m*T+f[0],a.y=f[1]+x,v=b[0]<0?"right":"left",a.originX=-m*T,a.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=w[0],a.y=w[1]+x,v="center",a.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*T+c[0],a.y=c[1]+x,v=b[0]>=0?"right":"left",a.originX=m*T,a.originY=-x;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||v})}},t}(oe),Gk=function(){function e(t){this.group=new oe,this._LineCtor=t||zk}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=H_(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=H_(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!$k(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=r.getItemLayout(i);if(bh(a)){var o=new this._LineCtor(r,i,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Ff(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var i=t.getItemLayout(r);if(bh(i)){var a=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,a),this.group.add(a)}},e.prototype._doUpdate=function(t,r,n,i,a){var o=t.getItemGraphicEl(n);if(!bh(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},e}();function $k(e){return e.animators&&e.animators.length>0}function H_(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Zs(t)}}function z_(e){return isNaN(e[0])||isNaN(e[1])}function bh(e){return e&&!z_(e[0])&&!z_(e[1])}var Uk=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},Jd=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),j(n)&&P(n,function(a,o){rt(a)&&(a={type:a}),n[o]=qt(a,Uk(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&jv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ft(),s=Tt(a,function(l){return(rt(l)||jt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ft(l,this,this.ecModel))},this);this._data=tr(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;P(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;P(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;P(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Mt(this._availableNames,r)>=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}(Pt),ya=Yt,tv=P,Wl=oe,sT=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Wl),this.group.add(this._selectorGroup=new Wl),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),d=Ui(f,c,h),v=this.layoutInner(r,o,d,a,l,u),p=Ui(Ut({width:v.width,height:v.height},f),c,h);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=fk(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=ft(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),tv(n.getData(),function(d,v){var p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
|
|
59
|
-
`)){var g=new Wl;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var _=m.getData(),y=_.getVisual("legendLineStyle")||{},b=_.getVisual("legendIcon"),S=_.getVisual("style"),w=this._createItem(m,p,v,d,n,r,y,S,b,c,a);w.on("click",ya(G_,p,null,a,h)).on("mouseover",ya(ev,m.name,null,a,h)).on("mouseout",ya(rv,m.name,null,a,h)),i.ssr&&w.eachChild(function(T){var C=Ct(T);C.seriesIndex=m.seriesIndex,C.dataIndex=v,C.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(T){if(!f.get(p)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(p))return;var x=C.indexOfName(p),D=C.getItemVisual(x,"style"),A=C.getItemVisual(x,"legendIcon"),M=$r(D.fill);M&&M[3]===0&&(M[3]=.2,D=G(G({},D),{fill:Hn(M,"rgba")}));var E=this._createItem(T,p,v,d,n,r,{},D,A,c,a);E.on("click",ya(G_,null,p,a,h)).on("mouseover",ya(ev,null,p,a,h)).on("mouseout",ya(rv,null,p,a,h)),i.ssr&&E.eachChild(function(O){var V=Ct(O);V.seriesIndex=T.seriesIndex,V.dataIndex=v,V.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();tv(r,function(u){var f=u.type,c=new xe({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"),d=n.getModel(["emphasis","selectorLabel"]);Hf(c,{normal:h,emphasis:d},{defaultText:u.title}),Id(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,h){var d=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),_=a.get("symbolKeepAspect"),y=a.get("icon");f=y||f||"roundRect";var b=Wk(f,a,l,u,d,g,h),S=new Wl,w=a.getModel("textStyle");if(St(r.getLegendIcon)&&(!y||y==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:_}));else{var T=y==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;S.add(Yk({itemWidth:v,itemHeight:p,icon:f,iconRotate:T,itemStyle:b.itemStyle,symbolKeepAspect:_}))}var C=s==="left"?v+5:-5,x=s,D=o.get("formatter"),A=n;rt(D)&&D?A=D.replace("{name}",n??""):St(D)&&(A=D(n));var M=g?w.getTextColor():a.get("inactiveColor");S.add(new xe({style:Wr(w,{text:A,x:C,y:p/2,fill:M,align:x,verticalAlign:"middle"},{inheritColor:M})}));var E=new we({shape:S.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&Bf({el:E,componentModel:o,itemName:n,itemTooltipOption:O.option}),S.add(E),S.eachChild(function(V){V.silent=!0}),E.silent=!c,this.getContentGroup().add(S),Id(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();as(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){as("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",_=p===0?"y":"x";s==="end"?d[p]+=f[g]+v:c[p]+=h[g]+v,d[1-p]+=f[m]/2-h[m]/2,u.x=d[0],u.y=d[1],l.x=c[0],l.y=c[1];var y={x:0,y:0};return y[g]=f[g]+v+h[g],y[m]=Math.max(f[m],h[m]),y[_]=Math.min(0,h[_]+d[1-p]),y}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}(Yr);function Wk(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),tv(g,function(_,y){g[y]==="inherit"&&(g[y]=m[y])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Ud(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function Yk(e){var t=e.icon||"roundRect",r=Js(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function G_(e,t,r,n){rv(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),ev(e,t,r,n)}function lT(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function ev(e,t,r,n){lT(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function rv(e,t,r,n){lT(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function Xk(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Po(e,t,r){var n=e==="allSelect"||e==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),$_(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){P(i,function(l,u){s[l?"select":"unSelect"](u)}),$_(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function $_(e,t){var r=t||{};return P(e.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
60
|
-
`||i==="")){var a=e.isSelected(i);Gi(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function qk(e){e.registerAction("legendToggleSelect","legendselectchanged",Yt(Po,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Yt(Po,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Yt(Po,"inverseSelect")),e.registerAction("legendSelect","legendselected",Yt(Po,"select")),e.registerAction("legendUnSelect","legendunselected",Yt(Po,"unSelect"))}function uT(e){e.registerComponentModel(Jd),e.registerComponentView(sT),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Xk),e.registerSubTypeDefaulter("legend",function(){return"plain"}),qk(e)}var Kk=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=_p(r);e.prototype.init.call(this,r,n,i),U_(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),U_(this,this.option,r)},t.type="legend.scroll",t.defaultOption=VP(Jd.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Jd);function U_(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ms(t,r,{type:"box",ignoreSize:!!i})}var W_=oe,Sh=["width","height"],wh=["x","y"],jk=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new W_),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new W_)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=j(c)?c:[c,c];v("pagePrev",0);var d=n.getModel("pageTextStyle");f.add(new xe({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",_=pp(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:bt(u._pageGo,u,m,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});_.name=p,f.add(_)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Sh[u],c=wh[u],h=Sh[1-u],d=wh[1-u];o&&as("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=gt(i);o&&(m[f]=i[f]-p[f]-v);var _=this._layoutContentAndController(r,a,m,u,f,h,d,c);if(o){if(s==="end")g[u]+=_[f]+v;else{var y=p[f]+v;g[u]-=y,_[c]-=y}_[f]+=p[f]+v,g[1-u]+=_[d]+_[h]/2-p[h]/2,_[h]=Math.max(_[h],p[h]),_[d]=Math.min(_[d],p[d]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return _},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;as(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),as("horizontal",h,r.get("pageButtonItemGap",!0));var d=f.getBoundingRect(),v=h.getBoundingRect(),p=this._showController=d[o]>i[o],g=[-d.x,-d.y];n||(g[a]=f[u]);var m=[0,0],_=[-v.x,-v.y],y=ht(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?_[a]+=i[o]-v[o]:m[a]+=v[o]+y}_[1-a]+=d[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),h.setPosition(_);var S={x:0,y:0};if(S[o]=p?i[o]:d[o],S[s]=Math.max(d[s],v[s]),S[l]=Math.min(0,v[l]+_[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-y,0),w[s]=S[s],c.setClipPath(new we({shape:w})),c.__rectSize=w[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Xn(f,{x:T.contentPosition[0],y:T.contentPosition[1]},p?r:null),this._updatePageInfoView(r,T),S},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;P(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,d=i.childOfName(f);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",rt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Sh[o],l=wh[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var p=b(c);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,_=p,y=null;g<=h;++g)y=b(f[g]),(!y&&_.e>m.s+a||y&&!S(y,m.s))&&(_.i>m.i?m=_:m=y,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),_=y;for(var g=u-1,m=p,_=p,y=null;g>=-1;--g)y=b(f[g]),(!y||!S(_,y.s))&&m.i<_.i&&(_=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=y;return v;function b(w){if(w){var T=w.getBoundingRect(),C=T[l]+w[l];return{s:C,e:C+T[s],i:w.__legendDataIndex}}}function S(w,T){return w.e>=T&&w.s<=T+a}},t.prototype._findTargetItemIndex=function(r){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===r&&(n=s)}),n??a},t.type="legend.scroll",t}(sT);function Zk(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Qk(e){Yi(uT),e.registerComponentModel(Kk),e.registerComponentView(jk),Zk(e)}function Jk(e){Yi(uT),Yi(Qk)}var tN=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),gr=ee();function fT(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,cT(t,r,e),P(r,function(n){P(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,Yt(eN,e))})}),t.wrapMethod("cloneShallow",Yt(nN,e)),P(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,Yt(rN,e))}),Ar(r[t.dataType]===t)}function eN(e,t){if(oN(this)){var r=G({},gr(this).datas);r[this.dataType]=t,cT(t,r,e)}else Np(t,this.dataType,gr(this).mainData,e);return t}function rN(e,t){return e.struct&&e.struct.update(),t}function nN(e,t){return P(gr(t).datas,function(r,n){r!==t&&Np(r.cloneShallow(),n,t,e)}),t}function iN(e){var t=gr(this).mainData;return e==null||t==null?t:gr(t).datas[e]}function aN(){var e=gr(this).mainData;return e==null?[{data:e}]:Tt(Kt(gr(e).datas),function(t){return{type:t,data:gr(e).datas[t]}})}function oN(e){return gr(e).mainData===e}function cT(e,t,r){gr(e).datas={},P(t,function(n,i){Np(n,i,e,r)})}function Np(e,t,r,n){gr(r).datas[t]=e,gr(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=iN,e.getLinkedDataAll=aN}var sN=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){St(t)&&(n=r,r=t,t=null),t=t||{},rt(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,r,n);i==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>r&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].getNodeById(t);if(a)return a}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].contains(t);if(a)return a}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),lN=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,i=r.length;n<i;n++)r[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var i=new e(r),a=[],o=1;s(t);function s(f,c){var h=f.value;o=Math.max(o,j(h)?h.length:1),a.push(f);var d=new sN(Xe(f.name,""),i);c?uN(d,c):i.root=d,i._nodes.push(d);var v=f.children;if(v)for(var p=0;p<v.length;p++)s(v[p],d)}i.root.updateDepthAndHeight(0);var l=Ep(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Rs(l,r);return u.initData(a),n&&n(u),fT({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e}();function uN(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}function Bp(e,t,r){if(e&&Mt(t,e.type)>=0){var n=r.getData().tree.root,i=e.targetNode;if(rt(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function hT(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function dT(e,t){var r=hT(e);return Mt(r,t)>=0}function vT(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var Y_=["treemapZoomToNode","treemapRender","treemapMove"];function fN(e){for(var t=0;t<Y_.length;t++)e.registerAction({type:Y_[t],update:"updateView"},ae);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Bp(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=dT(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function cN(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=dE(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var hN=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};pT(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new Ft({itemStyle:o},this,n);a=r.levels=dN(a,n);var l=Tt(a||[],function(c){return new Ft(c,s,n)},this),u=lN.createTree(i,this,f);function f(c){c.wrapMethod("getItemModel",function(h,d){var v=u.getNodeByDataIndex(d),p=v?l[v.depth]:null;return h.parentModel=p||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Wi("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=vT(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},G(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ft(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){cN(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}(hn);function pT(e){var t=0;P(e.children,function(n){pT(n);var i=n.value;j(i)&&(i=i[0]),t+=i});var r=e.value;j(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),j(e.value)?e.value[0]=r:e.value=r}function dN(e,t){var r=ue(t.get("color")),n=ue(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;P(e,function(s){var l=new Ft(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=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}var vN=8,X_=8,Th=5,pN=function(){function e(t){this.group=new oe,t.add(this.group)}return e.prototype.render=function(t,r,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:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(t,c,s,l,u,f,i),eE(o,c.pos,c.box)}},e.prototype._prepare=function(t,r,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+vN*2,r.emptyItemWidth);r.totalWidth+=s+X_,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,f=t.get(["breadcrumb","height"]),c=tE(r.pos,r.box),h=r.totalWidth,d=r.renderList,v=i.getModel("itemStyle").getItemStyle(),p=d.length-1;p>=0;p--){var g=d[p],m=g.node,_=g.width,y=g.text;h>c.width&&(h-=_-u,_=u,y=null);var b=new Of({shape:{points:gN(l,0,_,f,p===d.length-1,p===0)},style:Ut(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new xe({style:Wr(a,{text:y})}),textConfig:{position:"inside"},z2:js*1e4,onclick:Yt(s,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=Wr(o,{text:y}),b.ensureState("emphasis").style=v,ap(b,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(b),mN(b,t,m),l+=_+X_}},e.prototype.remove=function(){this.group.removeAll()},e}();function gN(e,t,r,n,i,a){var o=[[i?e:e-Th,t],[e+r,t],[e+r,t+n],[i?e:e-Th,t+n]];return!a&&o.splice(2,0,[e+r+Th,t+n/2]),!i&&o.push([e,t+n/2]),o}function mN(e,t,r){Ct(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&vT(r,t)}}var yN=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function _N(){return new yN}var nv=oe,q_=we,K_=3,j_="label",Z_="upperLabel",bN=js*10,SN=js*2,wN=js*3,_i=Ka([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Q_=function(e){var t=_i(e);return t.stroke=t.fill=t.lineWidth=null,t},Ju=ee(),TN=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=Eo(),r}return t.prototype.render=function(r,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(Mt(o,r)<0)){this.seriesModel=r,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Bp(a,s,r),u=a&&a.type,f=r.layoutInfo,c=!this._oldTree,h=this._storage,d=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,v=this._giveContainerGroup(f),p=r.get("animation"),g=this._doRender(v,r,d);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,g,r,d):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(r,i,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new nv,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,i){var a=n.getData().tree,o=this._oldTree,s=Eo(),l=Eo(),u=this._storage,f=[];function c(_,y,b,S){return xN(n,l,u,i,s,f,_,y,b,S)}p(a.root?[a.root]:[],o&&o.root?[o.root]:[],r,a===o||!o,0);var h=g(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var d=this.seriesModel.layoutInfo,v=a.root.getLayout();v.width===d.width&&v.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:m};function p(_,y,b,S,w){S?(y=_,P(_,function(x,D){!x.isRemoved()&&C(D,D)})):new N1(y,_,T,T).add(C).update(C).remove(Yt(C,null)).execute();function T(x){return x.getId()}function C(x,D){var A=x!=null?_[x]:null,M=D!=null?y[D]:null,E=c(A,M,b,w);E&&p(A&&A.viewChildren||[],M&&M.viewChildren||[],E,S,w+1)}}function g(_){var y=Eo();return _&&P(_,function(b,S){var w=y[S];P(b,function(T){T&&(w.push(T),Ju(T).willDelete=!0)})}),y}function m(){P(h,function(_){P(_,function(y){y.parent&&y.parent.remove(y)})}),P(f,function(_){_.invisible=!0,_.dirty()})}},t.prototype._doAnimation=function(r,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(St(o)?0:o)||0,u=(St(s)?null:s)||"cubicOut",f=_N();P(n.willDeleteEls,function(c,h){P(c,function(d,v){if(!d.invisible){var p=d.parent,g,m=Ju(p);if(a&&a.direction==="drillDown")g=p===a.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var _=0,y=0;m.willDelete||(_=m.nodeWidth/2,y=m.nodeHeight/2),g=h==="nodeGroup"?{x:_,y,style:{opacity:0}}:{shape:{x:_,y,width:0,height:0},style:{opacity:0}}}g&&f.add(d,g,l,0,u)}})}),P(this._storage,function(c,h){P(c,function(d,v){var p=n.lastsForAnimation[h][v],g={};p&&(d instanceof oe?p.oldX!=null&&(g.x=d.x,g.y=d.y,d.x=p.oldX,d.y=p.oldY):(p.oldShape&&(g.shape=G({},d.shape),d.setShape(p.oldShape)),p.fadein?(d.setStyle("opacity",0),g.style={opacity:1}):d.style.opacity!==1&&(g.style={opacity:1})),f.add(d,g,l,0,u))})},this),this._state="animating",f.finished(bt(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new Z1(r.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",bt(this._onPan,this)),n.on("zoom",bt(this._onZoom,this)));var a=new wt(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},t.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>K_||Math.abs(r.dy)>K_)){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+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.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 wt(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,d=u.max||1/0;c=Math.max(Math.min(d,c),h)}var v=c/f.zoom;f.zoom=c;var p=this.seriesModel.layoutInfo;n-=p.x,i-=p.y;var g=Bn();bs(g,g,[-n,-i]),yS(g,g,[v,v]),bs(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(r){var n=this;r.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&&Rd(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new pN(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(dT(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Eo(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,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(r,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}(on);function Eo(){return{nodeGroup:[],background:[],content:[]}}function xN(e,t,r,n,i,a,o,s,l,u){if(!o)return;var f=o.getLayout(),c=e.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var d=f.width,v=f.height,p=f.borderWidth,g=f.invisible,m=o.getRawIndex(),_=s&&s.getRawIndex(),y=o.viewChildren,b=f.upperHeight,S=y&&y.length,w=h.getModel("itemStyle"),T=h.getModel(["emphasis","itemStyle"]),C=h.getModel(["blur","itemStyle"]),x=h.getModel(["select","itemStyle"]),D=w.get("borderRadius")||0,A=ke("nodeGroup",nv);if(!A)return;if(l.add(A),A.x=f.x||0,A.y=f.y||0,A.markRedraw(),Ju(A).nodeWidth=d,Ju(A).nodeHeight=v,f.isAboveViewRoot)return A;var M=ke("background",q_,u,SN);M&&kt(A,M,S&&f.upperLabelHeight);var E=h.getModel("emphasis"),O=E.get("focus"),V=E.get("blurScope"),k=E.get("disabled"),K=O==="ancestor"?o.getAncestorsIndices():O==="descendant"?o.getDescendantIndices():O;if(S)Is(A)&&Pa(A,!1),M&&(Pa(M,!k),c.setItemGraphicEl(o.dataIndex,M),Ad(M,K,V));else{var $=ke("content",q_,u,wN);$&&zt(A,$),M.disableMorphing=!0,M&&Is(M)&&Pa(M,!1),Pa(A,!k),c.setItemGraphicEl(o.dataIndex,A);var ot=h.getShallow("cursor");ot&&$.attr("cursor",ot),Ad(A,K,V)}return A;function kt(pt,et,ut){var q=Ct(et);if(q.dataIndex=o.dataIndex,q.seriesIndex=e.seriesIndex,et.setShape({x:0,y:0,width:d,height:v,r:D}),g)vt(et);else{et.invisible=!1;var Q=o.getVisual("style"),I=Q.stroke,L=Q_(w);L.fill=I;var R=_i(T);R.fill=T.get("borderColor");var B=_i(C);B.fill=C.get("borderColor");var N=_i(x);if(N.fill=x.get("borderColor"),ut){var F=d-2*p;se(et,I,Q.opacity,{x:p,y:0,width:F,height:b})}else et.removeTextContent();et.setStyle(L),et.ensureState("emphasis").style=R,et.ensureState("blur").style=B,et.ensureState("select").style=N,xd(et)}pt.add(et)}function zt(pt,et){var ut=Ct(et);ut.dataIndex=o.dataIndex,ut.seriesIndex=e.seriesIndex;var q=Math.max(d-2*p,0),Q=Math.max(v-2*p,0);if(et.culling=!0,et.setShape({x:p,y:p,width:q,height:Q,r:D}),g)vt(et);else{et.invisible=!1;var I=o.getVisual("style"),L=I.fill,R=Q_(w);R.fill=L,R.decal=I.decal;var B=_i(T),N=_i(C),F=_i(x);se(et,L,I.opacity,null),et.setStyle(R),et.ensureState("emphasis").style=B,et.ensureState("blur").style=N,et.ensureState("select").style=F,xd(et)}pt.add(et)}function vt(pt){!pt.invisible&&a.push(pt)}function se(pt,et,ut,q){var Q=h.getModel(q?Z_:j_),I=Xe(h.get("name"),null),L=Q.getShallow("show");Hf(pt,Zs(h,q?Z_:j_),{defaultText:L?I:null,inheritColor:et,defaultOpacity:ut,labelFetcher:e,labelDataIndex:o.dataIndex});var R=pt.getTextContent();if(R){var B=R.style,N=$v(B.padding||0);q&&(pt.setTextConfig({layoutRect:q}),R.disableLabelLayout=!0),R.beforeUpdate=function(){var Y=Math.max((q?q.width:pt.shape.width)-N[1]-N[3],0),U=Math.max((q?q.height:pt.shape.height)-N[0]-N[2],0);(B.width!==Y||B.height!==U)&&R.setStyle({width:Y,height:U})},B.truncateMinChar=2,B.lineOverflow="truncate",fe(B,q,f);var F=R.getState("emphasis");fe(F?F.style:null,q,f)}}function fe(pt,et,ut){var q=pt?pt.text:null;if(!et&&ut.isLeafRoot&&q!=null){var Q=e.get("drillDownIcon",!0);pt.text=Q?Q+" "+q:q}}function ke(pt,et,ut,q){var Q=_!=null&&r[pt][_],I=i[pt];return Q?(r[pt][_]=null,Ce(I,Q)):g||(Q=new et,Q instanceof io&&(Q.z2=CN(ut,q)),Ne(I,Q)),t[pt][m]=Q}function Ce(pt,et){var ut=pt[m]={};et instanceof nv?(ut.oldX=et.x,ut.oldY=et.y):ut.oldShape=G({},et.shape)}function Ne(pt,et){var ut=pt[m]={},q=o.parentNode,Q=et instanceof oe;if(q&&(!n||n.direction==="drillDown")){var I=0,L=0,R=i.background[q.getRawIndex()];!n&&R&&R.oldShape&&(I=R.oldShape.width,L=R.oldShape.height),Q?(ut.oldX=0,ut.oldY=L):ut.oldShape={x:I,y:L,width:0,height:0}}ut.fadein=!Q}}function CN(e,t){return e*bN+t}var DN="itemStyle",gT=ee();const IN={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||mT(r,{},e.getViewRoot().getAncestors(),e)}};function mT(e,t,r,n){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(DN),l=AN(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=J_(l),f=MN(c,h)),u.stroke=f;var d=e.viewChildren;if(!d||!d.length)h=J_(l),u.fill=h;else{var v=LN(e,i,a,s,l,d);P(d,function(p,g){if(p.depth>=r.length||p===r[p.depth]){var m=PN(i,l,p,g,v,n);mT(p,m,r,n)}})}}}function AN(e,t,r){var n=G({},t),i=r.designatedVisualItemStyle;return P(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function J_(e){var t=xh(e,"color");if(t){var r=xh(e,"colorAlpha"),n=xh(e,"colorSaturation");return n&&(t=Jo(t,null,null,n)),r&&(t=PS(t,r)),t}}function MN(e,t){return t!=null?Jo(t,null,null,e):null}function xh(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function LN(e,t,r,n,i,a){if(!(!a||!a.length)){var o=Ch(t,"color")||i.color!=null&&i.color!=="none"&&(Ch(t,"colorAlpha")||Ch(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[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 kp(c);return gT(h).drColorMappingBy=f,h}}}function Ch(e,t){var r=e.get(t);return j(r)&&r.length?{name:t,range:r}:null}function PN(e,t,r,n,i,a){var o=G({},t);if(i){var s=i.type,l=s==="color"&&gT(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Ns=Math.max,tf=Math.min,t0=Wn,Fp=P,yT=["itemStyle","borderWidth"],EN=["itemStyle","gapWidth"],RN=["upperLabel","show"],ON=["upperLabel","height"];const kN={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=Ui(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=le(t0(s.width,l[0]),i),f=le(t0(s.height,l[1]),a),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],d=Bp(n,h,e),v=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,p=e.getViewRoot(),g=hT(p);if(c!=="treemapMove"){var m=c==="treemapZoomToNode"?zN(e,d,p,u,f):v?[v.width,v.height]:[u,f],_=o.sort;_&&_!=="asc"&&_!=="desc"&&(_="desc");var y={squareRatio:o.squareRatio,sort:_,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(b),_T(p,y,!1,0),b=p.getLayout(),Fp(g,function(w,T){var C=(g[T+1]||p).getValue();w.setLayout(G({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var S=e.getData().tree.root;S.setLayout(GN(s,v,d),!0),e.setLayoutInfo(s),bT(S,new wt(-s.x,-s.y,i,a),g,p,0)}};function _T(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(yT),u=s.get(EN)/2,f=ST(s),c=Math.max(l,f),h=l-u,d=c-u;e.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),i=Ns(i-2*h,0),a=Ns(a-h-d,0);var v=i*a,p=NN(e,s,v,t,r,n);if(p.length){var g={x:h,y:d,width:i,height:a},m=tf(i,a),_=1/0,y=[];y.area=0;for(var b=0,S=p.length;b<S;){var w=p[b];y.push(w),y.area+=w.getLayout().area;var T=HN(y,m,t.squareRatio);T<=_?(b++,_=T):(y.area-=y.pop().getLayout().area,e0(y,m,g,u,!1),m=tf(g.width,g.height),y.length=y.area=0,_=1/0)}if(y.length&&e0(y,m,g,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&v<C&&(r=!0)}for(var b=0,S=p.length;b<S;b++)_T(p[b],t,r,n+1)}}}function NN(e,t,r,n,i,a){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return e.viewChildren=[];o=tr(o,function(d){return!d.isRemoved()}),FN(o,s);var u=VN(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=BN(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var h=o[f].getValue()/u.sum*r;o[f].setLayout({area:h})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function BN(e,t,r,n,i){if(!n)return r;for(var a=e.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*t<a&&(s=l,r-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),r}function FN(e,t){return t&&e.sort(function(r,n){var i=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return i===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:i}),e}function VN(e,t,r){for(var n=0,i=0,a=t.length;i<a;i++)n+=t[i].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],Fp(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function HN(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Ns(u*n/l,l/(u*i)):1/0}function e0(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],f=t?e.area/t:0;(i||f>r[l[o]])&&(f=r[l[o]]);for(var c=0,h=e.length;c<h;c++){var d=e[c],v={},p=f?d.getLayout().area/f:0,g=v[l[o]]=Ns(f-2*n,0),m=r[s[a]]+r[l[a]]-u,_=c===h-1||m<p?m:p,y=v[l[a]]=Ns(_-2*n,0);v[s[o]]=r[s[o]]+tf(n,g/2),v[s[a]]=u+tf(n,y/2),u+=_,d.setLayout(v,!0)}r[s[o]]+=f,r[l[o]]-=f}function zN(e,t,r,n,i){var a=(t||{}).node,o=[n,i];if(!a||a===r)return o;for(var s,l=n*i,u=l*e.option.zoomToNodeRatio;s=a.parentNode;){for(var f=0,c=s.children,h=0,d=c.length;h<d;h++)f+=c[h].getValue();var v=a.getValue();if(v===0)return o;u*=f/v;var p=s.getModel(),g=p.get(yT),m=Math.max(g,ST(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>hm&&(u=hm),a=s}u<l&&(u=l);var _=Math.pow(u/l,.5);return[n*_,i*_]}function GN(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var i=r.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function bT(e,t,r,n,i){var a=e.getLayout(),o=r[i],s=o&&o===e;if(!(o&&!s||i===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new wt(t.x-a.x,t.y-a.y,t.width,t.height);Fp(e.viewChildren||[],function(u){bT(u,l,r,n,i+1)})}}function ST(e){return e.get(RN)?e.get(ON):0}function $N(e){e.registerSeriesModel(hN),e.registerChartView(TN),e.registerVisual(IN),e.registerLayout(kN),fN(e)}function UN(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){jt(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}function WN(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&n.setItemVisual(o,f[c],h)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){rt(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),f=i.ensureUniqueItemVisual(o,"style");G(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)i.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function Yl(e){return e instanceof Array||(e=[e,e]),e}function YN(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),i=Yl(t.get("edgeSymbol")),a=Yl(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=Yl(s.getShallow("symbol",!0)),f=Yl(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(G(h,c),h.stroke){case"source":{var d=l.node1.getVisual("style");h.stroke=d&&d.fill;break}case"target":{var d=l.node2.getVisual("style");h.stroke=d&&d.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var iv="-->",Xf=function(e){return e.get("autoCurveness")||null},wT=function(e,t){var r=Xf(e),n=20,i=[];if(jt(r))n=r;else if(j(r)){e.__curvenessList=r;return}t>n&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},Bs=function(e,t,r){var n=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[r.uid,n,i].join(iv)},TT=function(e){var t=e.split(iv);return[t[0],t[2],t[1]].join(iv)},XN=function(e,t){var r=Bs(e.node1,e.node2,t);return t.__edgeMap[r]},qN=function(e,t){var r=av(Bs(e.node1,e.node2,t),t),n=av(Bs(e.node2,e.node1,t),t);return r+n},av=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function KN(e){Xf(e)&&(e.__curvenessList=[],e.__edgeMap={},wT(e))}function jN(e,t,r,n){if(Xf(r)){var i=Bs(e,t,r),a=r.__edgeMap,o=a[TT(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function Vp(e,t,r,n){var i=Xf(t),a=j(i);if(!i)return null;var o=XN(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=qN(e,t);wT(t,u),e.lineStyle=e.lineStyle||{};var f=Bs(e.node1,e.node2,t),c=t.__curvenessList,h=a||u%2?0:1;if(o.isForward)return c[h+s];var d=TT(f),v=av(d,t),p=c[s+v+h];return n?a?i&&i[0]===0?(v+h)%2?p:-p:((v%2?0:1)+h)%2?p:-p:(v+h)%2?p:-p:c[s+v+h]}function xT(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),Hp(r,e)}}function Hp(e,t){e.eachEdge(function(r,n){var i=Ei(r.getModel().get(["lineStyle","curveness"]),-Vp(r,t,n,!0),0),a=nn(r.node1.getLayout()),o=nn(r.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),r.setLayout(s)})}function ZN(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),i=r.coordinateSystem;if(i&&i.type!=="view"){var a=r.getData(),o=[];P(i.dimensions,function(h){o=o.concat(a.mapDimensionsAll(h))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=a.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}Hp(a.graph,r)}else(!n||n==="none")&&xT(r)})}function Go(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,i=t.getZoom(),a=(i-1)*r+1;return a/n}function $o(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var r0=Math.PI,Dh=[];function zp(e,t,r,n){var i=e.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,f=Math.min(a.width,a.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(r){var h=i.pointToData(n),d=h[0],v=h[1],p=[d-l,v-u];no(p,p),tu(p,p,f),r.setLayout([l+p[0],u+p[1]],!0);var g=e.get(["circular","rotateLabel"]);CT(r,g,l,u)}QN[t](e,s,o,f,l,u,c),s.eachEdge(function(m,_){var y=Ei(m.getModel().get(["lineStyle","curveness"]),Vp(m,e,_),0),b=nn(m.node1.getLayout()),S=nn(m.node2.getLayout()),w,T=(b[0]+S[0])/2,C=(b[1]+S[1])/2;+y&&(y*=3,w=[l*y+T*(1-y),u*y+C*(1-y)]),m.setLayout([b,S,w])})}}}var QN={value:function(e,t,r,n,i,a,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=h})},symbolSize:function(e,t,r,n,i,a,o){var s=0;Dh.length=o;var l=Go(e);t.eachNode(function(c){var h=$o(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var d=Math.asin(h/2/n);isNaN(d)&&(d=r0/2),Dh[c.dataIndex]=d,s+=d*2});var u=(2*r0-s)/o/2,f=0;t.eachNode(function(c){var h=u+Dh[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+i,n*Math.sin(f)+a]),f+=h})}};function CT(e,t,r,n){var i=e.getGraphicEl();if(i){var a=e.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var f=l[0]<r;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");G(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function JN(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&zp(t,"symbolSize")})}var _a=id;function tB(e,t,r){for(var n=e,i=t,a=r.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=Qi(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=nn(c.p),c.edges=null}var h=r.friction==null?.6:r.friction,d=h,v,p;return{warmUp:function(){d=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){v=g},afterStep:function(g){p=g},step:function(g){v&&v(n,i);for(var m=[],_=n.length,y=0;y<i.length;y++){var b=i[y];if(!b.ignoreForceLayout){var S=b.n1,w=b.n2;Ti(m,w.p,S.p);var T=ad(m)-b.d,C=w.w/(S.w+w.w);isNaN(C)&&(C=0),no(m,m),!S.fixed&&_a(S.p,S.p,m,C*T*d),!w.fixed&&_a(w.p,w.p,m,-(1-C)*T*d)}}for(var y=0;y<_;y++){var x=n[y];x.fixed||(Ti(m,l,x.p),_a(x.p,x.p,m,u*d))}for(var y=0;y<_;y++)for(var S=n[y],D=y+1;D<_;D++){var w=n[D];Ti(m,w.p,S.p);var T=ad(m);T===0&&(VI(m,Math.random()-.5,Math.random()-.5),T=1);var A=(S.rep+w.rep)/T/T;!S.fixed&&_a(S.pp,S.pp,m,A),!w.fixed&&_a(w.pp,w.pp,m,-A)}for(var M=[],y=0;y<_;y++){var x=n[y];x.fixed||(Ti(M,x.p,x.pp),_a(x.p,x.p,M,d),Ie(x.pp,x.p))}d=d*.992;var E=d<.01;p&&p(n,i,E),g&&g(E)}}}function eB(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(y){var b=a.getId(y);a.setItemLayout(y,n[b]||[NaN,NaN])}):!l||l==="none"?xT(t):l==="circular"&&zp(t,"value");var u=a.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),d=j(c)?c:[c,c],v=j(h)?h:[h,h];v=[v[1],v[0]];var p=a.mapArray("value",function(y,b){var S=a.getItemLayout(b),w=$i(y,u,d);return isNaN(w)&&(w=(d[0]+d[1])/2),{w,rep:w,fixed:a.getItemModel(b).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),g=o.mapArray("value",function(y,b){var S=i.getEdgeByIndex(b),w=$i(y,f,v);isNaN(w)&&(w=(v[0]+v[1])/2);var T=S.getModel(),C=Ei(S.getModel().get(["lineStyle","curveness"]),-Vp(S,t,b,!0),0);return{n1:p[S.node1.dataIndex],n2:p[S.node2.dataIndex],d:w,curveness:C,ignoreForceLayout:T.get("ignoreForceLayout")}}),m=r.getBoundingRect(),_=tB(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});_.beforeStep(function(y,b){for(var S=0,w=y.length;S<w;S++)y[S].fixed&&Ie(y[S].p,i.getNodeByIndex(S).getLayout())}),_.afterStep(function(y,b,S){for(var w=0,T=y.length;w<T;w++)y[w].fixed||i.getNodeByIndex(w).setLayout(y[w].p),n[a.getId(w)]=y[w].p;for(var w=0,T=b.length;w<T;w++){var C=b[w],x=i.getEdgeByIndex(w),D=C.n1.p,A=C.n2.p,M=x.getLayout();M=M?M.slice():[],M[0]=M[0]||[],M[1]=M[1]||[],Ie(M[0],D),Ie(M[1],A),+C.curveness&&(M[2]=[(D[0]+A[0])/2-(D[1]-A[1])*C.curveness,(D[1]+A[1])/2-(A[0]-D[0])*C.curveness]),x.setLayout(M)}}),t.forceLayout=_,t.preservedPoints=n,_.step()}else t.forceLayout=null})}function rB(e,t,r){var n=G(e.getBoxLayoutParams(),{aspect:r});return Ui(n,{width:t.getWidth(),height:t.getHeight()})}function nB(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(g){var m=a.getItemModel(g);return[+m.get("x"),+m.get("y")]}),s=[],l=[];BM(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=rB(n,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],d=f.width,v=f.height,p=n.coordinateSystem=new j1;p.zoomLimit=n.get("scaleLimit"),p.setBoundingRect(s[0],s[1],c,h),p.setViewRect(f.x,f.y,d,v),p.setCenter(n.get("center"),t),p.setZoom(n.get("zoom")),r.push(p)}}),r}var Ih=[],Ah=[],Mh=[],ba=Re,Lh=Ri,n0=Math.abs;function i0(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,f=.1;f<=.9;f+=.1){Ih[0]=ba(n[0],i[0],a[0],f),Ih[1]=ba(n[1],i[1],a[1],f);var c=n0(Lh(Ih,t)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var d=s+u;Ah[0]=ba(n[0],i[0],a[0],s),Ah[1]=ba(n[1],i[1],a[1],s),Mh[0]=ba(n[0],i[0],a[0],d),Mh[1]=ba(n[1],i[1],a[1],d);var c=Lh(Ah,t)-l;if(n0(c)<.01)break;var v=Lh(Mh,t)-l;u/=2,c<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function Ph(e,t){var r=[],n=Ss,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[nn(u[0]),nn(u[1])],u[2]&&u.__original.push(nn(u[2])));var h=u.__original;if(u[2]!=null){if(Ie(i[0],h[0]),Ie(i[1],h[2]),Ie(i[2],h[1]),f&&f!=="none"){var d=$o(s.node1),v=i0(i,h[0],d*t);n(i[0][0],i[1][0],i[2][0],v,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],v,r),i[0][1]=r[3],i[1][1]=r[4]}if(c&&c!=="none"){var d=$o(s.node2),v=i0(i,h[1],d*t);n(i[0][0],i[1][0],i[2][0],v,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],v,r),i[1][1]=r[1],i[2][1]=r[2]}Ie(u[0],i[0]),Ie(u[1],i[2]),Ie(u[2],i[1])}else{if(Ie(a[0],h[0]),Ie(a[1],h[1]),Ti(o,a[1],a[0]),no(o,o),f&&f!=="none"){var d=$o(s.node1);id(a[0],a[0],o,d*t)}if(c&&c!=="none"){var d=$o(s.node2);id(a[1],a[1],o,-d*t)}Ie(u[0],a[0]),Ie(u[1],a[1])}})}function a0(e){return e.type==="view"}var iB=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new Fk,a=new Gk,o=this.group;this._controller=new Z1(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(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(a0(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Xn(u,f,r)}Ph(r.getGraph(),Go(r));var c=r.getData();s.updateData(c);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var d=r.forceLayout,v=r.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,v);var p=r.get("layout");c.graph.eachNode(function(y){var b=y.dataIndex,S=y.getGraphicEl(),w=y.getModel();if(S){S.off("drag").off("dragend");var T=w.get("draggable");T&&S.on("drag",function(x){switch(p){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,v),d.setFixed(b),c.setItemLayout(b,[S.x,S.y]);break;case"circular":c.setItemLayout(b,[S.x,S.y]),y.setLayout({fixed:!0},!0),zp(r,"symbolSize",y,[x.offsetX,x.offsetY]),a.updateLayout(r);break;case"none":default:c.setItemLayout(b,[S.x,S.y]),Hp(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),S.setDraggable(T,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(Ct(S).focus=y.getAdjacentDataIndices())}}),c.graph.eachEdge(function(y){var b=y.getGraphicEl(),S=y.getModel().get(["emphasis","focus"]);b&&S==="adjacency"&&(Ct(b).focus={edge:[y.dataIndex],node:[y.node1.dataIndex,y.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(y){CT(y,g,m,_)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,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)&&!uk(u,i,r)}),!a0(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){ok(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){sk(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),Ph(r.getGraph(),Go(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=Go(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){Ph(r.getGraph(),Go(r)),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}(on);function Sa(e){return"_EC_"+e}var aB=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[Sa(t)]){var i=new bi(t,r);return i.hostGraph=this,this.nodes.push(i),n[Sa(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Sa(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(jt(t)&&(t=this.nodes[t]),jt(r)&&(r=this.nodes[r]),t instanceof bi||(t=i[Sa(t)]),r instanceof bi||(r=i[Sa(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new DT(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof bi&&(t=t.id),r instanceof bi&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof bi||(r=this._nodesMap[Sa(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(t.call(i,c,l))return;s.push(c),c.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=i[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=r.count();a<o;a++)i[r.getRawIndex(a)].dataIndex=a},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,i=0;i<r.length;i++)t.addNode(r[i].id,r[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),bi=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=ft(),r=ft(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var f=o[s];s++,r.set(f.dataIndex,!0);for(var u=0;u<f.outEdges.length;u++)t.set(f.outEdges[u].dataIndex,!0),o.push(f.outEdges[u].node2)}}}return{edge:t.keys(),node:r.keys()}},e}(),DT=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=ft(),r=ft();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:r.keys()}},e}();function IT(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Mr(bi,IT("hostGraph","data"));Mr(DT,IT("hostGraph","edgeData"));function oB(e,t,r,n,i){for(var a=new aB(n),o=0;o<e.length;o++)a.addNode(Wn(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],c=f.source,h=f.target;a.addEdge(c,h,u)&&(l.push(f),s.push(Wn(Xe(f.id,null),c+" > "+h)),u++)}var d=r.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=hO(e,r);else{var p=Gf.get(d),g=p?p.dimensions||[]:[];Mt(g,"value")<0&&g.concat(["value"]);var m=Ep(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;v=new Rs(m,r),v.initData(e)}var _=new Rs(["value"],r);return _.initData(l,s),i&&i(v,_),fT({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var sB=function(e){tt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new tN(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),bd(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){KN(this);var s=oB(a,i,this,!0,l);return P(s.edges,function(u){jN(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,g=v.getShallow("category"),m=p[g];return m&&(m.parentModel=v.parentModel,v.parentModel=m),v});var c=Ft.prototype.getModel;function h(v,p){var g=c.call(this,v,p);return g.resolveParentPath=d,g}f.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=h,v});function d(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Wi("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=r1({series:this,dataIndex:r,multipleSeries:n});return c},t.prototype._updateCategoriesData=function(){var r=Tt(this.option.categories||[],function(i){return i.value!=null?i:G({value:0},i)}),n=new Rs(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.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}(hn),lB={type:"graphRoam",event:"graphRoam",update:"none"};function uB(e){e.registerChartView(iB),e.registerSeriesModel(sB),e.registerProcessor(UN),e.registerVisual(WN),e.registerVisual(YN),e.registerLayout(ZN),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,JN),e.registerLayout(eB),e.registerCoordinateSystem("graphView",{dimensions:j1.dimensions,create:nB}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ae),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ae),e.registerAction(lB,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=ik(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function o0(e,t,r){var n=eo.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var Eh=function(e){tt(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Nu,typeof r=="string"?o=o0(r,n,i):it(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(pS(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=o0("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new wt(0,0,0,0);function f(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var y=new wt(0,0,0,0);y.copy(_),o.push(y)}else{for(var b=!1,S=1/0,w=0,T=0;T<o.length;++T){var C=o[T];if(C.intersect(_)){var x=new wt(0,0,0,0);x.copy(C),x.union(_),o[T]=x,b=!0;break}else if(l){u.copy(_),u.union(C);var D=_.width*_.height,A=C.width*C.height,M=u.width*u.height,E=M-D-A;E<S&&(S=E,w=T)}}if(l&&(o[w].union(_),b=!0),!b){var y=new wt(0,0,0,0);y.copy(_),o.push(y)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=r[c];if(h){var d=h.shouldBePainted(i,a,!0,!0),v=h.__isRendered&&(h.__dirty&er||!d)?h.getPrevPaintRect():null;v&&f(v);var p=d&&(h.__dirty&er||!h.__isRendered)?h.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],d=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&f(v)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var m=c+1;m<o.length;)o[c].intersect(o[m])?(g=!0,o[c].union(o[m]),o.splice(m,1)):m++;c++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var d=this.domBack;function v(p,g,m,_){if(o.clearRect(p,g,m,_),n&&n!=="transparent"){var y=void 0;if(Cf(n)){var b=n.global||n.__width===m&&n.__height===_;y=b&&n.__canvasGradient||Gd(o,n,{x:0,y:0,width:m,height:_}),n.__canvasGradient=y,n.__width=m,n.__height=_}else EI(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,y=$d(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=y||n,o.fillRect(p,g,m,_),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(d,p,g,m,_),o.restore())}!i||u?v(0,0,s,l):i.length&&P(i,function(p){v(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(Lr),s0=1e5,mi=314159,Xl=.01,fB=.001;function cB(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function hB(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var dB=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||Nu,this._singleCanvas=a,this.root=t;var o=t.style;o&&(pS(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var d=new Eh(f,this,this.dpr);d.__builtin__=!0,d.initContext(),l[mi]=d,d.zlevel=mi,s.push(mi),this._domRoot=t}else{this._width=Fl(t,0,n),this._height=Fl(t,1,n);var u=this._domRoot=hB(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(s0)),a||(a=n.ctx,a.save()),Ai(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(s0)},e.prototype.paintOne=function(t,r){g1(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Pu(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(mi).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,c=!1,h=function(p){var g=a[p],m=g.ctx,_=o&&g.createRepaintRects(t,r,d._width,d._height),y=n?g.__startIndex:g.__drawIndex,b=!n&&g.incremental&&Date.now,S=b&&Date.now(),w=g.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,_);else if(y===g.__startIndex){var T=t[y];(!T.incremental||!T.notClear||n)&&g.clear(!1,w,_)}y===-1&&(console.error("For some unknown reason. drawIndex is -1"),y=g.__startIndex);var C,x=function(E){var O={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=y;C<g.__endIndex;C++){var V=t[C];if(V.__inHover&&(c=!0),i._doPaintEl(V,g,o,E,O,C===g.__endIndex-1),b){var k=Date.now()-S;if(k>15)break}}O.prevElClipPaths&&m.restore()};if(_)if(_.length===0)C=g.__endIndex;else for(var D=d.dpr,A=0;A<_.length;++A){var M=_[A];m.save(),m.beginPath(),m.rect(M.x*D,M.y*D,M.width*D,M.height*D),m.clip(),x(M),m.restore()}else m.save(),x(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(f=!1)},d=this,v=0;v<a.length;v++)h(v);return lt.wxa&&P(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Ai(s,t,a,o),t.setPrevPaintRect(l))}else Ai(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=mi);var n=this._layers[t];return n||(n=new Eh("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?qt(n,this._layerConfig[t],!0):this._layerConfig[t-Xl]&&qt(n,this._layerConfig[t-Xl],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&cB(r)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+fB,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Xl:0),this._needsManuallyCompositing),f.__builtin__||zv("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,r(l),a=f),i.__dirty&er&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(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)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,P(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?qt(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+Xl){var o=this._layers[a];qt(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(Mt(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Fl(a,0,i),r=Fl(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(mi).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[mi].dom;var r=new Eh("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Ai(n,f,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function AT(e){e.registerPainter("canvas",dB)}Yi([aT,nT,Jk,uB,AT]);function vB(){return[{itemStyle:{gapWidth:10},upperLabel:{show:!1}},{itemStyle:{borderColor:"#d3d3d3",borderWidth:5,gapWidth:1}},{colorSaturation:[.35,.5],itemStyle:{borderWidth:5,gapWidth:1,borderColorSaturation:.6}}]}const pB=It({__name:"TreeMapView",props:{stats:{},options:{}},setup(e){const t=e,r=wv("main"),n=$1(r),i=Rt(()=>{if(!t.stats)return;const a=[];for(const l of t.stats.chunks){if(t.options.hiddenChunks.includes(l.fileName))continue;const u={value:0,name:l.fileName,path:l.fileName,children:[]};a.push(u);for(const f of l.modules){if(t.options.hiddenModules.includes(f.fileName))continue;const c=f.fileName.split("/");let h=u;for(let d=0;d<c.length;d+=1){const v=h.children.find(p=>p.name===c[d]);if(v)h=v;else{const p={name:c[d],path:c[d],value:f.renderedLength,children:[]};h.children.push(p),h=p}}}}function o(l){for(const u of l.children)o(u);l.children.length&&(l.value=l.children.reduce((u,f)=>u+f.value,0))}a.forEach(o);function s(l){for(const u of l.children)s(u);l.children.length===1&&(l.path=`${l.path}/${l.children[0].path}`,l.name=`${l.name}/${l.children[0].name}`,l.children=l.children[0].children)}return t.options.compact&&a.forEach(s),a});return de([n,()=>t.stats,()=>t.options],([a,o])=>{!a||!o||a.setOption({tooltip:{formatter(s){const l=s.value,u=s.treePathInfo,f=[];for(let g=1;g<u.length;g++)f.push(u[g].name);const c=[];c.push('<div class="tooltip-title">'+Pe(f.length===1?f:f.slice(1).join("/"))+"</div>","Rendered Size: "+Aw((l/1024).toFixed(2))+" KB");const h=f.slice(1).join("/"),d=t.stats.importGraph.nodes.findIndex(g=>g===h),p=(d>=0?t.stats.importGraph.edges.filter(([g,m])=>m===d):[]).map(g=>t.stats.importGraph.nodes[g[0]]).reduce((g,m)=>g.add(m),new Set);return p.size&&c.push('<div class="mt-2">Imported by:</div>',"<ul>",...[...p].map(g=>`<li>${g}</li>`),"</ul>"),c.join("")}},series:[{name:"Disk Usage",type:"treemap",visibleMin:300,label:{show:!0,formatter:"{b}"},upperLabel:{show:!0,height:30},itemStyle:{borderColor:"#fff"},levels:vB(),data:i.value}]})}),(a,o)=>(dt(),nr("div",{ref_key:"main",ref:r},null,512))}});function Gp(e){return e?e.flatMap(t=>t.type===te?Gp(t.children):[t]):[]}const gB=It({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:r}){return()=>{if(!r.default)return null;const n=Gp(r.default()),i=n.findIndex(l=>l.type!==Qt);if(i===-1)return n;const a=n[i];delete a.props?.ref;const o=a.props?$n(t,a.props):t,s=Ir({...a,props:{}},o);return n.length===1?s:(n[i]=s,n)}}}),mB=["area","img","input"],qn=It({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:r}){const n=e.asChild?"template":e.as;return typeof n=="string"&&mB.includes(n)?()=>za(n,t):n!=="template"?()=>za(e.as,t,{default:r.default}):()=>za(gB,t,{default:r.default})}}),yB=It({__name:"VisuallyHidden",props:{feature:{default:"focusable"},asChild:{type:Boolean},as:{default:"span"}},setup(e){return(t,r)=>(dt(),Wt(z(qn),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:$t(()=>[Te(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}});function _B(e){return cv()?(p0(e),!0):!1}const MT=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const bB=e=>typeof e<"u",SB=Object.prototype.toString,wB=e=>SB.call(e)==="[object Object]";function Rh(e){return Array.isArray(e)?e:[e]}const TB=Na;function xB(e,t,r){return de(e,t,{...r,immediate:!0})}const LT=MT?window:void 0;function tl(e){var t;const r=Na(e);return(t=r?.$el)!=null?t:r}function CB(...e){const t=[],r=()=>{t.forEach(s=>s()),t.length=0},n=(s,l,u,f)=>(s.addEventListener(l,u,f),()=>s.removeEventListener(l,u,f)),i=Rt(()=>{const s=Rh(Na(e[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),a=xB(()=>{var s,l;return[(l=(s=i.value)==null?void 0:s.map(u=>tl(u)))!=null?l:[LT].filter(u=>u!=null),Rh(Na(i.value?e[1]:e[0])),Rh(z(i.value?e[2]:e[1])),Na(i.value?e[3]:e[2])]},([s,l,u,f])=>{if(r(),!s?.length||!l?.length||!u?.length)return;const c=wB(f)?{...f}:f;t.push(...s.flatMap(h=>l.flatMap(d=>u.map(v=>n(h,d,v,c)))))},{flush:"post"}),o=()=>{a(),r()};return _B(r),o}function DB(e){return JSON.parse(JSON.stringify(e))}function $p(e,t,r,n={}){var i,a,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:f=!1,defaultValue:c,shouldEmit:h}=n,d=Oe(),v=r||d?.emit||((i=d?.$emit)==null?void 0:i.bind(d))||((o=(a=d?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(d?.proxy));let p=u;t||(t="modelValue"),p=p||`update:${t.toString()}`;const g=y=>s?typeof s=="function"?s(y):DB(y):y,m=()=>bB(e[t])?g(e[t]):c,_=y=>{h?h(y)&&v(p,y):v(p,y)};if(l){const y=m(),b=Zt(y);let S=!1;return de(()=>e[t],w=>{S||(S=!0,b.value=g(w),Ki(()=>S=!1))}),de(b,w=>{!S&&(w!==e[t]||f)&&_(w)},{deep:f}),b}else return Rt({get(){return m()},set(y){_(y)}})}function el(e,t){const r=typeof e=="string"&&!t?`${e}Context`:t,n=Symbol(r);return[o=>{const s=Va(n,o);if(s||s===null)return s;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>(Mv(n,o),o)]}function l0(e){return typeof e=="string"?`'${e}'`:new IB().serialize(e)}const IB=function(){class e{#t=new Map;compare(r,n){const i=typeof r,a=typeof n;return i==="string"&&a==="string"?r.localeCompare(n):i==="number"&&a==="number"?r-n:String.prototype.localeCompare.call(this.serialize(r,!0),this.serialize(n,!0))}serialize(r,n){if(r===null)return"null";switch(typeof r){case"string":return n?r:`'${r}'`;case"bigint":return`${r}n`;case"object":return this.$object(r);case"function":return this.$function(r)}return String(r)}serializeObject(r){const n=Object.prototype.toString.call(r);if(n!=="[object Object]")return this.serializeBuiltInType(n.length<10?`unknown:${n}`:n.slice(8,-1),r);const i=r.constructor,a=i===Object||i===void 0?"":i.name;if(a!==""&&globalThis[a]===i)return this.serializeBuiltInType(a,r);if(typeof r.toJSON=="function"){const o=r.toJSON();return a+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(a,Object.entries(r))}serializeBuiltInType(r,n){const i=this["$"+r];if(i)return i.call(this,n);if(typeof n?.entries=="function")return this.serializeObjectEntries(r,n.entries());throw new Error(`Cannot serialize ${r}`)}serializeObjectEntries(r,n){const i=Array.from(n).sort((o,s)=>this.compare(o[0],s[0]));let a=`${r}{`;for(let o=0;o<i.length;o++){const[s,l]=i[o];a+=`${this.serialize(s,!0)}:${this.serialize(l)}`,o<i.length-1&&(a+=",")}return a+"}"}$object(r){let n=this.#t.get(r);return n===void 0&&(this.#t.set(r,`#${this.#t.size}`),n=this.serializeObject(r),this.#t.set(r,n)),n}$function(r){const n=Function.prototype.toString.call(r);return n.slice(-15)==="[native code] }"?`${r.name||""}()[native]`:`${r.name}(${r.length})${n.replace(/\s*\n\s*/g,"")}`}$Array(r){let n="[";for(let i=0;i<r.length;i++)n+=this.serialize(r[i]),i<r.length-1&&(n+=",");return n+"]"}$Date(r){try{return`Date(${r.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(r){return`ArrayBuffer[${new Uint8Array(r).join(",")}]`}$Set(r){return`Set${this.$Array(Array.from(r).sort((n,i)=>this.compare(n,i)))}`}$Map(r){return this.serializeObjectEntries("Map",r.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(r){return`${t}(${r})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(r){return`${t}[${r.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(r){return`${t}[${r.join("n,")}${r.length>0?"n":""}]`};return e}();function ef(e,t){return e===t||l0(e)===l0(t)}function AB(e){return e==null}function MB(e,t){return AB(e)?!1:Array.isArray(e)?e.some(r=>ef(r,t)):ef(e,t)}function LB({type:e,defaultValue:t,modelValue:r}){const n=r||t;return r!==void 0||t!==void 0?Array.isArray(n)?"multiple":"single":e??"single"}function PB({type:e,defaultValue:t,modelValue:r}){return e||LB({type:e,defaultValue:t,modelValue:r})}function EB({type:e,defaultValue:t}){return t!==void 0?t:e==="single"?void 0:[]}function RB(e,t){const r=Rt(()=>PB(e)),n=$p(e,"modelValue",t,{defaultValue:EB(e),passive:e.modelValue===void 0,deep:!0});function i(o){if(r.value==="single")n.value=ef(o,n.value)?void 0:o;else{const s=Array.isArray(n.value)?[...n.value||[]]:[n.value].filter(Boolean);if(MB(s,o)){const l=s.findIndex(u=>ef(u,o));s.splice(l,1)}else s.push(o);n.value=s}}const a=Rt(()=>r.value==="single");return{modelValue:n,changeModelValue:i,isSingle:a}}const[PT,EF]=el("ConfigProvider");function OB(e){const t=PT({dir:Zt("ltr")});return Rt(()=>e?.value||t.dir?.value||"ltr")}function gn(){const e=Oe(),t=Zt(),r=Rt(()=>["#text","#comment"].includes(t.value?.$el.nodeName)?t.value?.$el.nextElementSibling:tl(t)),n=Object.assign({},e.exposed),i={};for(const o in e.props)Object.defineProperty(i,o,{enumerable:!0,configurable:!0,get:()=>e.props[o]});if(Object.keys(n).length>0)for(const o in n)Object.defineProperty(i,o,{enumerable:!0,configurable:!0,get:()=>n[o]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function a(o){t.value=o,o&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>o instanceof Element?o:o.$el}),e.exposed=i)}return{forwardRef:a,currentRef:t,currentElement:r}}const[qf,kB]=el("AccordionRoot"),NB=It({__name:"AccordionRoot",props:{collapsible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dir:{},orientation:{default:"vertical"},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,{dir:i,disabled:a,unmountOnHide:o}=zs(r),s=OB(i),{modelValue:l,changeModelValue:u,isSingle:f}=RB(r,n),{forwardRef:c,currentElement:h}=gn();return kB({disabled:a,direction:s,orientation:r.orientation,parentElement:h,isSingle:f,collapsible:r.collapsible,modelValue:l,changeModelValue:u,unmountOnHide:o}),(d,v)=>(dt(),Wt(z(qn),{ref:z(c),"as-child":d.asChild,as:d.as},{default:$t(()=>[Te(d.$slots,"default",{modelValue:z(l)})]),_:3},8,["as-child","as"]))}}),[ET,BB]=el("CollapsibleRoot"),FB=It({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(e,{expose:t,emit:r}){const n=e,a=$p(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),{disabled:o,unmountOnHide:s}=zs(n);return BB({contentId:"",disabled:o,open:a,unmountOnHide:s,onOpenToggle:()=>{o.value||(a.value=!a.value)}}),t({open:a}),gn(),(l,u)=>(dt(),Wt(z(qn),{as:l.as,"as-child":n.asChild,"data-state":z(a)?"open":"closed","data-disabled":z(o)?"":void 0},{default:$t(()=>[Te(l.$slots,"default",{open:z(a)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),VB=["INPUT","TEXTAREA"];function HB(e,t,r,n={}){if(!t||n.enableIgnoredElement&&VB.includes(t.nodeName))return null;const{arrowKeyOptions:i="both",attributeName:a="[data-reka-collection-item]",itemsArray:o=[],loop:s=!0,dir:l="ltr",preventScroll:u=!0,focus:f=!1}=n,[c,h,d,v,p,g]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],m=d||v,_=c||h;if(!p&&!g&&(!m&&!_||i==="vertical"&&_||i==="horizontal"&&m))return null;const y=r?Array.from(r.querySelectorAll(a)):o;if(!y.length)return null;u&&e.preventDefault();let b=null;return _||m?b=RT(y,t,{goForward:m?v:l==="ltr"?c:h,loop:s}):p?b=y.at(0)||null:g&&(b=y.at(-1)||null),f&&b?.focus(),b}function RT(e,t,r,n=e.length){if(--n===0)return null;const i=e.indexOf(t),a=r.goForward?i+1:i-1;if(!r.loop&&(a<0||a>=e.length))return null;const o=(a+e.length)%e.length,s=e[o];return s?s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"?RT(e,s,r,n):s:null}const[Up,zB]=el("AccordionItem"),GB=It({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e,{expose:t}){const r=e,n=qf(),i=Rt(()=>n.isSingle.value?r.value===n.modelValue.value:Array.isArray(n.modelValue.value)&&n.modelValue.value.includes(r.value)),a=Rt(()=>n.disabled.value||r.disabled),o=Rt(()=>a.value?"":void 0),s=Rt(()=>i.value?"open":"closed");t({open:i,dataDisabled:o});const{currentRef:l,currentElement:u}=gn();zB({open:i,dataState:s,disabled:a,dataDisabled:o,triggerId:"",currentRef:l,currentElement:u,value:Rt(()=>r.value)});function f(c){const h=c.target;if(Array.from(n.parentElement.value?.querySelectorAll("[data-reka-collection-item]")??[]).findIndex(p=>p===h)===-1)return null;HB(c,h,n.parentElement.value,{arrowKeyOptions:n.orientation,dir:n.direction.value,focus:!0})}return(c,h)=>(dt(),Wt(z(FB),{"data-orientation":z(n).orientation,"data-disabled":o.value,"data-state":s.value,disabled:a.value,open:i.value,as:r.as,"as-child":r.asChild,"unmount-on-hide":z(n).unmountOnHide.value,onKeydown:Bv(f,["up","down","left","right","home","end"])},{default:$t(()=>[Te(c.$slots,"default",{open:i.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child","unmount-on-hide"]))}});let $B=0;function OT(e,t="reka"){const r=PT({useId:void 0});return Object.hasOwn(hI,"useId")?`${t}-${j0?.()}`:r.useId?`${t}-${r.useId()}`:`${t}-${++$B}`}function UB(e,t){const r=Zt(e);function n(a){return t[r.value][a]??r.value}return{state:r,dispatch:a=>{r.value=n(a)}}}function WB(e,t){const r=Zt({}),n=Zt("none"),i=Zt(e),a=e.value?"mounted":"unmounted";let o;const s=t.value?.ownerDocument.defaultView??LT,{state:l,dispatch:u}=UB(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),f=g=>{if(MT){const m=new CustomEvent(g,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(m)}};de(e,async(g,m)=>{const _=m!==g;if(await Ki(),_){const y=n.value,b=ql(t.value);g?(u("MOUNT"),f("enter"),b==="none"&&f("after-enter")):b==="none"||b==="undefined"||r.value?.display==="none"?(u("UNMOUNT"),f("leave"),f("after-leave")):m&&y!==b?(u("ANIMATION_OUT"),f("leave")):(u("UNMOUNT"),f("after-leave"))}},{immediate:!0});const c=g=>{const m=ql(t.value),_=m.includes(g.animationName),y=l.value==="mounted"?"enter":"leave";if(g.target===t.value&&_&&(f(`after-${y}`),u("ANIMATION_END"),!i.value)){const b=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",o=s?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=b)})}g.target===t.value&&m==="none"&&u("ANIMATION_END")},h=g=>{g.target===t.value&&(n.value=ql(t.value))},d=de(t,(g,m)=>{g?(r.value=getComputedStyle(g),g.addEventListener("animationstart",h),g.addEventListener("animationcancel",c),g.addEventListener("animationend",c)):(u("ANIMATION_END"),o!==void 0&&s?.clearTimeout(o),m?.removeEventListener("animationstart",h),m?.removeEventListener("animationcancel",c),m?.removeEventListener("animationend",c))},{immediate:!0}),v=de(l,()=>{const g=ql(t.value);n.value=l.value==="mounted"?g:"none"});return to(()=>{d(),v()}),{isPresent:Rt(()=>["mounted","unmountSuspended"].includes(l.value))}}function ql(e){return e&&getComputedStyle(e).animationName||"none"}const YB=It({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:r}){const{present:n,forceMount:i}=zs(e),a=Zt(),{isPresent:o}=WB(n,a);r({present:o});let s=t.default({present:o.value});s=Gp(s||[]);const l=Oe();if(s&&s?.length>1){const u=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>` - ${f}`).join(`
|
|
61
|
-
`)].join(`
|
|
62
|
-
`))}return()=>i.value||n.value||o.value?za(t.default({present:o.value})[0],{ref:u=>{const f=tl(u);return typeof f?.hasAttribute>"u"||(f?.hasAttribute("data-reka-popper-content-wrapper")?a.value=f.firstElementChild:a.value=f),f}}):null}}),XB=It({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["contentFound"],setup(e,{emit:t}){const r=e,n=t,i=ET();i.contentId||=OT(void 0,"reka-collapsible-content");const a=Zt(),{forwardRef:o,currentElement:s}=gn(),l=Zt(0),u=Zt(0),f=Rt(()=>i.open.value),c=Zt(f.value),h=Zt();de(()=>[f.value,a.value?.present],async()=>{await Ki();const v=s.value;if(!v)return;h.value=h.value||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const p=v.getBoundingClientRect();u.value=p.height,l.value=p.width,c.value||(v.style.transitionDuration=h.value.transitionDuration,v.style.animationName=h.value.animationName)},{immediate:!0});const d=Rt(()=>c.value&&i.open.value);return ji(()=>{requestAnimationFrame(()=>{c.value=!1})}),CB(s,"beforematch",v=>{requestAnimationFrame(()=>{i.onOpenToggle(),n("contentFound")})}),(v,p)=>(dt(),Wt(z(YB),{ref_key:"presentRef",ref:a,present:v.forceMount||z(i).open.value,"force-mount":!0},{default:$t(({present:g})=>[ct(z(qn),$n(v.$attrs,{id:z(i).contentId,ref:z(o),"as-child":r.asChild,as:v.as,hidden:g?void 0:z(i).unmountOnHide.value?"":"until-found","data-state":d.value?void 0:z(i).open.value?"open":"closed","data-disabled":z(i).disabled?.value?"":void 0,style:{"--reka-collapsible-content-height":`${u.value}px`,"--reka-collapsible-content-width":`${l.value}px`}}),{default:$t(()=>[!z(i).unmountOnHide.value||g?Te(v.$slots,"default",{key:0}):ms("",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]),_:3},8,["present"]))}}),qB=It({__name:"AccordionContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,r=qf(),n=Up();return gn(),(i,a)=>(dt(),Wt(z(XB),{role:"region","as-child":t.asChild,as:i.as,"force-mount":t.forceMount,"aria-labelledby":z(n).triggerId,"data-state":z(n).dataState.value,"data-disabled":z(n).dataDisabled.value,"data-orientation":z(r).orientation,style:{"--reka-accordion-content-width":"var(--reka-collapsible-content-width)","--reka-accordion-content-height":"var(--reka-collapsible-content-height)"},onContentFound:a[0]||(a[0]=o=>z(r).changeModelValue(z(n).value.value))},{default:$t(()=>[Te(i.$slots,"default")]),_:3},8,["as-child","as","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),KB=It({__name:"AccordionHeader",props:{asChild:{type:Boolean},as:{default:"h3"}},setup(e){const t=e,r=qf(),n=Up();return gn(),(i,a)=>(dt(),Wt(z(qn),{as:t.as,"as-child":t.asChild,"data-orientation":z(r).orientation,"data-state":z(n).dataState.value,"data-disabled":z(n).dataDisabled.value},{default:$t(()=>[Te(i.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),jB=It({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;gn();const r=ET();return(n,i)=>(dt(),Wt(z(qn),{type:n.as==="button"?"button":void 0,as:n.as,"as-child":t.asChild,"aria-controls":z(r).contentId,"aria-expanded":z(r).open.value,"data-state":z(r).open.value?"open":"closed","data-disabled":z(r).disabled?.value?"":void 0,disabled:z(r).disabled?.value,onClick:z(r).onOpenToggle},{default:$t(()=>[Te(n.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"]))}}),ZB=It({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,r=qf(),n=Up();n.triggerId||=OT(void 0,"reka-accordion-trigger");function i(){const a=r.isSingle.value&&n.open.value&&!r.collapsible;n.disabled.value||a||r.changeModelValue(n.value.value)}return(a,o)=>(dt(),Wt(z(jB),{id:z(n).triggerId,ref:z(n).currentRef,"data-reka-collection-item":"",as:t.as,"as-child":t.asChild,"aria-disabled":z(n).disabled.value||void 0,"aria-expanded":z(n).open.value||!1,"data-disabled":z(n).dataDisabled.value,"data-orientation":z(r).orientation,"data-state":z(n).dataState.value,disabled:z(n).disabled.value,onClick:i},{default:$t(()=>[Te(a.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}});function QB(){const e=Zt(),t=Rt(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:tl(e));return{primitiveElement:e,currentElement:t}}function JB(e){return Rt(()=>TB(e)?!!tl(e)?.closest("form"):!0)}const u0=It({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:r,currentElement:n}=QB(),i=Rt(()=>t.checked??t.value);return de(i,(a,o)=>{if(!n.value)return;const s=n.value,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(f&&a!==o){const c=new Event("input",{bubbles:!0}),h=new Event("change",{bubbles:!0});f.call(s,a),s.dispatchEvent(c),s.dispatchEvent(h)}}),(a,o)=>(dt(),Wt(yB,$n({ref_key:"primitiveElement",ref:r},{...t,...a.$attrs},{as:"input"}),null,16))}}),tF=It({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:"fully-hidden"}},setup(e){const t=e,r=Rt(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),n=Rt(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((i,a)=>typeof i=="object"?Object.entries(i).map(([o,s])=>({name:`[${t.name}][${a}][${o}]`,value:s})):{name:`[${t.name}][${a}]`,value:i}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([i,a])=>({name:`[${t.name}][${i}]`,value:a})):[]);return(i,a)=>r.value?(dt(),Wt(u0,$n({key:i.name},{...t,...i.$attrs},{name:i.name,value:i.value}),null,16,["name","value"])):(dt(!0),nr(te,{key:1},Dv(n.value,o=>(dt(),Wt(u0,$n({key:o.name,ref_for:!0},{...t,...i.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))}}),[eF,rF]=el("SwitchRoot"),nF=It({__name:"SwitchRoot",props:{defaultValue:{type:Boolean},modelValue:{type:[Boolean,null],default:void 0},disabled:{type:Boolean},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"},name:{},required:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,{disabled:i}=zs(r),a=$p(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0});function o(){i.value||(a.value=!a.value)}const{forwardRef:s,currentElement:l}=gn(),u=JB(l),f=Rt(()=>r.id&&l.value?document.querySelector(`[for="${r.id}"]`)?.innerText:void 0);return rF({modelValue:a,toggleCheck:o,disabled:i}),(c,h)=>(dt(),Wt(z(qn),$n(c.$attrs,{id:c.id,ref:z(s),role:"switch",type:c.as==="button"?"button":void 0,value:c.value,"aria-label":c.$attrs["aria-label"]||f.value,"aria-checked":z(a),"aria-required":c.required,"data-state":z(a)?"checked":"unchecked","data-disabled":z(i)?"":void 0,"as-child":c.asChild,as:c.as,disabled:z(i),onClick:o,onKeydown:Bv(rS(o,["prevent"]),["enter"])}),{default:$t(()=>[Te(c.$slots,"default",{modelValue:z(a)}),z(u)&&c.name?(dt(),Wt(z(tF),{key:0,type:"checkbox",name:c.name,disabled:z(i),required:c.required,value:c.value,checked:!!z(a)},null,8,["name","disabled","required","value","checked"])):ms("",!0)]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]))}}),iF=It({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=eF();return gn(),(r,n)=>(dt(),Wt(z(qn),{"data-state":z(t).modelValue?.value?"checked":"unchecked","data-disabled":z(t).disabled.value?"":void 0,"as-child":r.asChild,as:r.as},{default:$t(()=>[Te(r.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"]))}}),aF=It({__name:"BaseAccordion",setup(e){return(t,r)=>(dt(),Wt(z(NB),{type:"single",collapsible:!0},{default:$t(()=>[ct(z(GB),{value:"1"},{default:$t(()=>[ct(z(KB),{class:"my-2"},{default:$t(()=>[ct(z(ZB),{class:"flex justify-between items-center w-full border-none py-2 bg-white c-slate-800 hover:bg-indigo-300 group"},{default:$t(()=>[Gt("span",null,[Te(t.$slots,"header")]),r[0]||(r[0]=Gt("span",{class:"i-mdi:chevron-down group-data-[state=open]:rotate-180"},null,-1))]),_:3,__:[0]})]),_:3}),ct(z(qB),{class:"border border-solid border-gray-300 p-1"},{default:$t(()=>[Gt("div",null,[Te(t.$slots,"default")])]),_:3})]),_:3})]),_:3}))}}),oF=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},sF={},lF={type:"button",class:"px-2 py-1 bg-indigo-700 c-white rounded-md border border-solid border-indigo-700 text-sm cursor-pointer"};function uF(e,t){return dt(),nr("button",lF,[Te(e.$slots,"default")])}const fF=oF(sF,[["render",uF]]),cF=It({__name:"BaseSwitch",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=Zi(e,"modelValue");return(r,n)=>(dt(),Wt(z(nF),{id:"airplane-mode",modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=i=>t.value=i),class:"w-[32px] h-[20px] shadow-sm flex data-[state=unchecked]:bg-stone-300 data-[state=checked]:bg-indigo-700 border border-stone-300 data-[state=checked]:border-indigo-700 rounded-full relative"},{default:$t(()=>[ct(z(iF),{class:"w-3.5 h-3.5 my-auto bg-white rounded-full transition-transform translate-x-0.5 will-change-transform data-[state=checked]:translate-x-full"})]),_:1},8,["modelValue"]))}}),hF={class:"flex justify-between"},dF={class:"max-h-400px overflow-auto"},vF={class:"flex gap-1"},pF=["checked","onChange"],gF={class:"flex-grow-1 flex-shrink-1 min-w-0 truncate"},mF={class:"ml-auto whitespace-nowrap"},yF=It({__name:"ChunkFilter",props:bf({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:["update:options"],setup(e){const t=e,r=Zi(e,"options");function n(u,f){f?r.value={...r.value,hiddenChunks:r.value.hiddenChunks.filter(c=>c!==u.fileName)}:r.value={...r.value,hiddenChunks:[...r.value.hiddenChunks,u.fileName]}}function i(){r.value.hiddenChunks.length===0?r.value={...r.value,hiddenChunks:t.stats.chunks.map(u=>u.fileName)}:r.value={...r.value,hiddenChunks:[]}}function a(u){return u.modules.reduce((f,c)=>f+c.renderedLength,0)}function o(u){return`${(u/1024).toFixed(2)} KB`}const s=Zt(""),l=Rt(()=>s.value==="size-asc"?t.stats.chunks.sort((u,f)=>a(u)-a(f)):s.value==="size-desc"?t.stats.chunks.sort((u,f)=>a(f)-a(u)):s.value==="name-asc"?t.stats.chunks.sort((u,f)=>u.fileName.localeCompare(f.fileName)):s.value==="name-desc"?t.stats.chunks.sort((u,f)=>f.fileName.localeCompare(u.fileName)):t.stats.chunks);return(u,f)=>(dt(),nr("div",null,[ct(z(aF),null,{header:$t(()=>[Nn(" Chunks ("+wi(u.stats.chunks.length-r.value.hiddenChunks.length)+" / "+wi(u.stats.chunks.length)+") ",1)]),default:$t(()=>[Gt("div",hF,[ct(z(fF),{onClick:i},{default:$t(()=>f[1]||(f[1]=[Nn("Toggle all")])),_:1,__:[1]}),Gt("label",null,[f[3]||(f[3]=Nn(" Sort by ")),yv(Gt("select",{"onUpdate:modelValue":f[0]||(f[0]=c=>s.value=c)},f[2]||(f[2]=[Gt("option",{value:""},"-",-1),Gt("option",{value:"name-asc"},"Name asc",-1),Gt("option",{value:"name-desc"},"Name desc",-1),Gt("option",{value:"size-asc"},"Size asc",-1),Gt("option",{value:"size-desc"},"Size desc",-1)]),512),[[Nv,s.value]])])]),Gt("div",dF,[(dt(!0),nr(te,null,Dv(l.value,c=>(dt(),nr("div",vF,[Gt("input",{type:"checkbox",checked:!r.value.hiddenChunks.includes(c.fileName),onChange:h=>n(c,h.target.checked)},null,40,pF),Gt("div",gF,wi(c.fileName),1),Gt("div",mF,wi(o(a(c))),1)]))),256))])]),_:1})]))}}),_F={class:"c-slate-800 flex justify-between my-2"},bF=It({__name:"TreeMapViewOptions",props:bf({stats:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Zi(e,"modelValue"),r=Rt({get:()=>t.value.compact,set:n=>t.value={...t.value,compact:n}});return(n,i)=>(dt(),nr("div",null,[Gt("div",_F,[i[2]||(i[2]=Nn(" Compact ")),ct(z(cF),{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value=a)},null,8,["modelValue"])]),ct(yF,{options:t.value,"onUpdate:options":i[1]||(i[1]=a=>t.value=a),stats:n.stats},null,8,["options","stats"])]))}}),SF=()=>({compact:!0,hiddenModules:[],hiddenChunks:[]}),Oh={ViewComponent:pB,OptionsComponent:bF,optionsFactory:()=>SF()};function f0(e,t){for(const r of t.chunks)for(const n of r.modules)if(n.fileName===e)return n.renderedLength}Yi([aT,nT,$N,AT]);const wF=It({__name:"GraphView",props:{stats:{},options:{}},setup(e){const t=e,r=wv("main"),n=$1(r);return de([n,()=>t.stats,()=>t.options],([i,a,o])=>{if(!i)return;const s=[];for(const u of a.importGraph.nodes)u.startsWith("node_modules")&&s.push(u.split("/").slice(1,2).join("/"));const l={src:!0};for(const u of s)l[u]=!1;i.setOption({title:{text:"Module Import Graph"},animationDurationUpdate:1500,animationEasingUpdate:"quinticInOut",legend:{data:["src",...s],selected:l,top:20,icon:"circle"},series:[{type:"graph",layout:"force",force:{friction:o.forceFriction,repulsion:o.forceRepulsion,edgeLength:o.forceEdgeLength,gravity:o.forceGravity},categories:[{name:"src"},...s.map(u=>({name:u}))],data:a.importGraph.nodes.map((u,f)=>({category:u.startsWith("node_modules")?s.findIndex(c=>u.startsWith(`node_modules/${c}`))+1:0,id:f,name:u,symbolSize:Math.min((f0(u,a)??0)/1024,100),emphasis:{label:{show:!0}}})),emphasis:{focus:"adjacency",label:{position:"right",show:!0}},label:{show:!1,formatter(u){const f=u.data.name;return`${f}
|
|
63
|
-
${((f0(f,a)??0)/1024).toFixed(2)} KB`}},edges:a.importGraph.edges.map(u=>({source:u[0],target:u[1]})),roam:!0,lineStyle:{width:.5,opacity:.7}}]})}),(i,a)=>(dt(),nr("div",{ref_key:"main",ref:r},null,512))}}),TF={class:"c-slate-800 flex justify-between my-2"},xF=It({__name:"Option",props:{title:{}},setup(e){return(t,r)=>(dt(),nr("div",TF,[Nn(wi(t.title)+" ",1),Te(t.$slots,"default")]))}}),CF=["step"],Kl=It({__name:"NumberOption",props:bf({title:{},step:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Zi(e,"modelValue");return(r,n)=>(dt(),Wt(xF,{title:r.title},{default:$t(()=>[yv(Gt("input",{type:"number","onUpdate:modelValue":n[0]||(n[0]=i=>t.value=i),step:r.step},null,8,CF),[[ys,t.value,void 0,{number:!0}]])]),_:1},8,["title"]))}}),DF=It({__name:"GraphViewOptions",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=Zi(e,"modelValue"),r=Gl(t,"forceRepulsion"),n=Gl(t,"forceEdgeLength"),i=Gl(t,"forceFriction"),a=Gl(t,"forceGravity");return(o,s)=>(dt(),nr("div",null,[ct(z(Kl),{title:"Repulsion",modelValue:z(r),"onUpdate:modelValue":s[0]||(s[0]=l=>Xt(r)?r.value=l:null)},null,8,["modelValue"]),ct(z(Kl),{title:"Edge length",modelValue:z(n),"onUpdate:modelValue":s[1]||(s[1]=l=>Xt(n)?n.value=l:null)},null,8,["modelValue"]),ct(z(Kl),{title:"Friction",modelValue:z(i),"onUpdate:modelValue":s[2]||(s[2]=l=>Xt(i)?i.value=l:null)},null,8,["modelValue"]),ct(z(Kl),{title:"Gravity",modelValue:z(a),"onUpdate:modelValue":s[3]||(s[3]=l=>Xt(a)?a.value=l:null)},null,8,["modelValue"])]))}});function IF(){return{forceRepulsion:50,forceGravity:.1,forceEdgeLength:30,forceFriction:.6}}const AF={ViewComponent:wF,OptionsComponent:DF,optionsFactory:()=>IF()},MF={class:"w-screen h-screen flex bg-gray-200"},LF={class:"w-1/3 max-w-[350px] bg-white rounded-lg m-5 p-2"},PF=It({__name:"App",setup(e){const t=vf();fetch("stats.json").then(a=>a.json()).then(a=>{t.value=a});const r=Zt("treemap"),n=Zt(Oh.optionsFactory()),i=Rt(()=>r.value==="treemap"?Oh:r.value==="graph"?AF:Oh);return de(i,a=>{n.value=a.optionsFactory()}),(a,o)=>(dt(),nr("div",MF,[Gt("div",LF,[ct(gI,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value=s)},null,8,["modelValue"]),t.value?(dt(),Wt(z(i).OptionsComponent,{key:0,modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=s=>n.value=s),stats:t.value},null,8,["modelValue","stats"])):ms("",!0)]),t.value?(dt(),Wt(z(i).ViewComponent,{key:0,stats:t.value,options:n.value,class:"flex-grow-1 flex-shrink-1"},null,8,["stats","options"])):ms("",!0)]))}});Lu(PF).mount("#app");
|