文件
chengduzhongchuliang/public/data/assets/index-Czxm_s3t.js

62 行
650 KiB
JavaScript

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

(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)}})();/**
* @vue/shared v3.5.4
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function qv(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Bt={},wa=[],Gr=()=>{},TT=()=>!1,Mu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Kv=e=>e.startsWith("onUpdate:"),ae=Object.assign,jv=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},CT=Object.prototype.hasOwnProperty,Dt=(e,t)=>CT.call(e,t),at=Array.isArray,Sa=e=>Eu(e)==="[object Map]",P_=e=>Eu(e)==="[object Set]",vt=e=>typeof e=="function",Zt=e=>typeof e=="string",$n=e=>typeof e=="symbol",Wt=e=>e!==null&&typeof e=="object",L_=e=>(Wt(e)||vt(e))&&vt(e.then)&&vt(e.catch),R_=Object.prototype.toString,Eu=e=>R_.call(e),AT=e=>Eu(e).slice(8,-1),I_=e=>Eu(e)==="[object Object]",Zv=e=>Zt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Do=qv(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},DT=/-(\w)/g,un=Pu(e=>e.replace(DT,(t,r)=>r?r.toUpperCase():"")),MT=/\B([A-Z])/g,Ji=Pu(e=>e.replace(MT,"-$1").toLowerCase()),Jv=Pu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Df=Pu(e=>e?`on${Jv(e)}`:""),Wn=(e,t)=>!Object.is(e,t),Mf=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},O_=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},ET=e=>{const t=parseFloat(e);return isNaN(t)?e:t},PT=e=>{const t=Zt(e)?Number(e):NaN;return isNaN(t)?e:t};let qp;const k_=()=>qp||(qp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Lu(e){if(at(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=Zt(n)?OT(n):Lu(n);if(i)for(const a in i)t[a]=i[a]}return t}else if(Zt(e)||Wt(e))return e}const LT=/;(?![^(]*\))/g,RT=/:([^]+)/,IT=/\/\*[^]*?\*\//g;function OT(e){const t={};return e.replace(IT,"").split(LT).forEach(r=>{if(r){const n=r.split(RT);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Uo(e){let t="";if(Zt(e))t=e;else if(at(e))for(let r=0;r<e.length;r++){const n=Uo(e[r]);n&&(t+=n+" ")}else if(Wt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const kT="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",BT=qv(kT);function B_(e){return!!e||e===""}const N_=e=>!!(e&&e.__v_isRef===!0),U=e=>Zt(e)?e:e==null?"":at(e)||Wt(e)&&(e.toString===R_||!vt(e.toString))?N_(e)?U(e.value):JSON.stringify(e,F_,2):String(e),F_=(e,t)=>N_(t)?F_(e,t.value):Sa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[Ef(n,a)+" =>"]=i,r),{})}:P_(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Ef(r))}:$n(t)?Ef(t):Wt(t)&&!at(t)&&!I_(t)?String(t):t,Ef=(e,t="")=>{var r;return $n(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
* @vue/reactivity v3.5.4
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let $e;class NT{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$e,!t&&$e&&(this.index=($e.scopes||($e.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=$e;try{return $e=this,t()}finally{$e=r}}}on(){$e=this}off(){$e=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!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,this._active=!1}}}function FT(){return $e}let It;const Pf=new WeakSet;class z_{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,$e&&$e.active&&$e.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pf.has(this)&&(Pf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=Mo,Mo=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Kp(this),V_(this);const t=It,r=Sr;It=this,Sr=!0;try{return this.fn()}finally{G_(this),It=t,Sr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ed(t);this.deps=this.depsTail=void 0,Kp(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){mh(this)&&this.run()}get dirty(){return mh(this)}}let H_=0,Mo;function Qv(){H_++}function td(){if(--H_>0)return;let e;for(;Mo;){let t=Mo;for(Mo=void 0;t;){const r=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function V_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function G_(e){let t,r=e.depsTail;for(let n=r;n;n=n.prevDep)n.version===-1?(n===r&&(r=n.prevDep),ed(n),zT(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0;e.deps=t,e.depsTail=r}function mh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&U_(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function U_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wo))return;e.globalVersion=Wo;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!mh(e)){e.flags&=-3;return}const r=It,n=Sr;It=e,Sr=!0;try{V_(e);const i=e.fn(e._value);(t.version===0||Wn(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{It=r,Sr=n,G_(e),e.flags&=-3}}function ed(e){const{dep:t,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),t.subs===e&&(t.subs=r),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)ed(i)}}function zT(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Sr=!0;const W_=[];function Xn(){W_.push(Sr),Sr=!1}function qn(){const e=W_.pop();Sr=e===void 0?!0:e}function Kp(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=It;It=void 0;try{t()}finally{It=r}}}let Wo=0;class rd{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!It||!Sr||It===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==It)r=this.activeLink={dep:this,sub:It,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},It.deps?(r.prevDep=It.depsTail,It.depsTail.nextDep=r,It.depsTail=r):It.deps=It.depsTail=r,It.flags&4&&Y_(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=It.depsTail,r.nextDep=void 0,It.depsTail.nextDep=r,It.depsTail=r,It.deps===r&&(It.deps=n)}return r}trigger(t){this.version++,Wo++,this.notify(t)}notify(t){Qv();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()}finally{td()}}}function Y_(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Y_(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}const yh=new WeakMap,Ri=Symbol(""),_h=Symbol(""),Yo=Symbol("");function ye(e,t,r){if(Sr&&It){let n=yh.get(e);n||yh.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new rd),i.track()}}function an(e,t,r,n,i,a){const o=yh.get(e);if(!o){Wo++;return}const s=l=>{l&&l.trigger()};if(Qv(),t==="clear")o.forEach(s);else{const l=at(e),u=l&&Zv(r);if(l&&r==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===Yo||!$n(h)&&h>=f)&&s(c)})}else switch(r!==void 0&&s(o.get(r)),u&&s(o.get(Yo)),t){case"add":l?u&&s(o.get("length")):(s(o.get(Ri)),Sa(e)&&s(o.get(_h)));break;case"delete":l||(s(o.get(Ri)),Sa(e)&&s(o.get(_h)));break;case"set":Sa(e)&&s(o.get(Ri));break}}td()}function ta(e){const t=Ct(e);return t===e?t:(ye(t,"iterate",Yo),hr(e)?t:t.map(pe))}function Ru(e){return ye(e=Ct(e),"iterate",Yo),e}const HT={__proto__:null,[Symbol.iterator](){return Lf(this,Symbol.iterator,pe)},concat(...e){return ta(this).concat(...e.map(t=>at(t)?ta(t):t))},entries(){return Lf(this,"entries",e=>(e[1]=pe(e[1]),e))},every(e,t){return Kr(this,"every",e,t,void 0,arguments)},filter(e,t){return Kr(this,"filter",e,t,r=>r.map(pe),arguments)},find(e,t){return Kr(this,"find",e,t,pe,arguments)},findIndex(e,t){return Kr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Kr(this,"findLast",e,t,pe,arguments)},findLastIndex(e,t){return Kr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Kr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Rf(this,"includes",e)},indexOf(...e){return Rf(this,"indexOf",e)},join(e){return ta(this).join(e)},lastIndexOf(...e){return Rf(this,"lastIndexOf",e)},map(e,t){return Kr(this,"map",e,t,void 0,arguments)},pop(){return qa(this,"pop")},push(...e){return qa(this,"push",e)},reduce(e,...t){return jp(this,"reduce",e,t)},reduceRight(e,...t){return jp(this,"reduceRight",e,t)},shift(){return qa(this,"shift")},some(e,t){return Kr(this,"some",e,t,void 0,arguments)},splice(...e){return qa(this,"splice",e)},toReversed(){return ta(this).toReversed()},toSorted(e){return ta(this).toSorted(e)},toSpliced(...e){return ta(this).toSpliced(...e)},unshift(...e){return qa(this,"unshift",e)},values(){return Lf(this,"values",pe)}};function Lf(e,t,r){const n=Ru(e),i=n[t]();return n!==e&&!hr(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const VT=Array.prototype;function Kr(e,t,r,n,i,a){const o=Ru(e),s=o!==e&&!hr(e),l=o[t];if(l!==VT[t]){const c=l.apply(e,a);return s?pe(c):c}let u=r;o!==e&&(s?u=function(c,h){return r.call(this,pe(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=Ru(e);let a=r;return i!==e&&(hr(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,pe(s),l,e)}),i[t](a,...n)}function Rf(e,t,r){const n=Ct(e);ye(n,"iterate",Yo);const i=n[t](...r);return(i===-1||i===!1)&&sd(r[0])?(r[0]=Ct(r[0]),n[t](...r)):i}function qa(e,t,r=[]){Xn(),Qv();const n=Ct(e)[t].apply(e,r);return td(),qn(),n}const GT=qv("__proto__,__v_isRef,__isVue"),$_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($n));function UT(e){$n(e)||(e=String(e));const t=Ct(this);return ye(t,"has",e),t.hasOwnProperty(e)}class X_{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){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?rC:Z_:a?j_:K_).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=at(t);if(!i){let l;if(o&&(l=HT[r]))return l;if(r==="hasOwnProperty")return UT}const s=Reflect.get(t,r,ge(t)?t:n);return($n(r)?$_.has(r):GT(r))||(i||ye(t,"get",r),a)?s:ge(s)?o&&Zv(r)?s:s.value:Wt(s)?i?J_(s):ad(s):s}}class q_ extends X_{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._isShallow){const l=Hi(a);if(!hr(n)&&!Hi(n)&&(a=Ct(a),n=Ct(n)),!at(t)&&ge(a)&&!ge(n))return l?!1:(a.value=n,!0)}const o=at(t)&&Zv(r)?Number(r)<t.length:Dt(t,r),s=Reflect.set(t,r,n,ge(t)?t:i);return t===Ct(i)&&(o?Wn(n,a)&&an(t,"set",r,n):an(t,"add",r,n)),s}deleteProperty(t,r){const n=Dt(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&an(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!$n(r)||!$_.has(r))&&ye(t,"has",r),n}ownKeys(t){return ye(t,"iterate",at(t)?"length":Ri),Reflect.ownKeys(t)}}class WT extends X_{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const YT=new q_,$T=new WT,XT=new q_(!0);const nd=e=>e,Iu=e=>Reflect.getPrototypeOf(e);function Bs(e,t,r=!1,n=!1){e=e.__v_raw;const i=Ct(e),a=Ct(t);r||(Wn(t,a)&&ye(i,"get",t),ye(i,"get",a));const{has:o}=Iu(i),s=n?nd:r?ld:pe;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function Ns(e,t=!1){const r=this.__v_raw,n=Ct(r),i=Ct(e);return t||(Wn(e,i)&&ye(n,"has",e),ye(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function Fs(e,t=!1){return e=e.__v_raw,!t&&ye(Ct(e),"iterate",Ri),Reflect.get(e,"size",e)}function Zp(e,t=!1){!t&&!hr(e)&&!Hi(e)&&(e=Ct(e));const r=Ct(this);return Iu(r).has.call(r,e)||(r.add(e),an(r,"add",e,e)),this}function Jp(e,t,r=!1){!r&&!hr(t)&&!Hi(t)&&(t=Ct(t));const n=Ct(this),{has:i,get:a}=Iu(n);let o=i.call(n,e);o||(e=Ct(e),o=i.call(n,e));const s=a.call(n,e);return n.set(e,t),o?Wn(t,s)&&an(n,"set",e,t):an(n,"add",e,t),this}function Qp(e){const t=Ct(this),{has:r,get:n}=Iu(t);let i=r.call(t,e);i||(e=Ct(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&an(t,"delete",e,void 0),a}function tg(){const e=Ct(this),t=e.size!==0,r=e.clear();return t&&an(e,"clear",void 0,void 0),r}function zs(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Ct(o),l=t?nd:e?ld:pe;return!e&&ye(s,"iterate",Ri),o.forEach((u,f)=>n.call(i,l(u),l(f),a))}}function Hs(e,t,r){return function(...n){const i=this.__v_raw,a=Ct(i),o=Sa(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),f=r?nd:t?ld:pe;return!t&&ye(a,"iterate",l?_h:Ri),{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 _n(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function qT(){const e={get(a){return Bs(this,a)},get size(){return Fs(this)},has:Ns,add:Zp,set:Jp,delete:Qp,clear:tg,forEach:zs(!1,!1)},t={get(a){return Bs(this,a,!1,!0)},get size(){return Fs(this)},has:Ns,add(a){return Zp.call(this,a,!0)},set(a,o){return Jp.call(this,a,o,!0)},delete:Qp,clear:tg,forEach:zs(!1,!0)},r={get(a){return Bs(this,a,!0)},get size(){return Fs(this,!0)},has(a){return Ns.call(this,a,!0)},add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear"),forEach:zs(!0,!1)},n={get(a){return Bs(this,a,!0,!0)},get size(){return Fs(this,!0)},has(a){return Ns.call(this,a,!0)},add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear"),forEach:zs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=Hs(a,!1,!1),r[a]=Hs(a,!0,!1),t[a]=Hs(a,!1,!0),n[a]=Hs(a,!0,!0)}),[e,r,t,n]}const[KT,jT,ZT,JT]=qT();function id(e,t){const r=t?e?JT:ZT:e?jT:KT;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Dt(r,i)&&i in n?r:n,i,a)}const QT={get:id(!1,!1)},tC={get:id(!1,!0)},eC={get:id(!0,!1)};const K_=new WeakMap,j_=new WeakMap,Z_=new WeakMap,rC=new WeakMap;function nC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function iC(e){return e.__v_skip||!Object.isExtensible(e)?0:nC(AT(e))}function ad(e){return Hi(e)?e:od(e,!1,YT,QT,K_)}function aC(e){return od(e,!1,XT,tC,j_)}function J_(e){return od(e,!0,$T,eC,Z_)}function od(e,t,r,n,i){if(!Wt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=iC(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function Ta(e){return Hi(e)?Ta(e.__v_raw):!!(e&&e.__v_isReactive)}function Hi(e){return!!(e&&e.__v_isReadonly)}function hr(e){return!!(e&&e.__v_isShallow)}function sd(e){return e?!!e.__v_raw:!1}function Ct(e){const t=e&&e.__v_raw;return t?Ct(t):e}function oC(e){return!Dt(e,"__v_skip")&&Object.isExtensible(e)&&O_(e,"__v_skip",!0),e}const pe=e=>Wt(e)?ad(e):e,ld=e=>Wt(e)?J_(e):e;function ge(e){return e?e.__v_isRef===!0:!1}function ve(e){return sC(e,!1)}function sC(e,t){return ge(e)?e:new lC(e,t)}class lC{constructor(t,r){this.dep=new rd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Ct(t),this._value=r?t:pe(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||hr(t)||Hi(t);t=n?t:Ct(t),Wn(t,r)&&(this._rawValue=t,this._value=n?t:pe(t),this.dep.trigger())}}function Nr(e){return ge(e)?e.value:e}const uC={get:(e,t,r)=>t==="__v_raw"?e:Nr(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return ge(i)&&!ge(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function Q_(e){return Ta(e)?e:new Proxy(e,uC)}class fC{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new rd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wo-1,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){this.flags|=16,It!==this&&this.dep.notify()}get value(){const t=this.dep.track();return U_(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cC(e,t,r=!1){let n,i;return vt(e)?n=e:(n=e.get,i=e.set),new fC(n,i,r)}const Vs={},$l=new WeakMap;let Si;function hC(e,t=!1,r=Si){if(r){let n=$l.get(r);n||$l.set(r,n=[]),n.push(e)}}function vC(e,t,r=Bt){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=b=>i?b:hr(b)||i===!1||i===0?rn(b,1):rn(b);let f,c,h,v,d=!1,g=!1;if(ge(e)?(c=()=>e.value,d=hr(e)):Ta(e)?(c=()=>u(e),d=!0):at(e)?(g=!0,d=e.some(b=>Ta(b)||hr(b)),c=()=>e.map(b=>{if(ge(b))return b.value;if(Ta(b))return u(b);if(vt(b))return l?l(b,2):b()})):vt(e)?t?c=l?()=>l(e,2):e:c=()=>{if(h){Xn();try{h()}finally{qn()}}const b=Si;Si=f;try{return l?l(e,3,[v]):e(v)}finally{Si=b}}:c=Gr,t&&i){const b=c,w=i===!0?1/0:i;c=()=>rn(b(),w)}const p=FT(),m=()=>{f.stop(),p&&jv(p.effects,f)};if(a)if(t){const b=t;t=(...w)=>{b(...w),m()}}else{const b=c;c=()=>{b(),m()}}let y=g?new Array(e.length).fill(Vs):Vs;const x=b=>{if(!(!(f.flags&1)||!f.dirty&&!b))if(t){const w=f.run();if(i||d||(g?w.some((_,T)=>Wn(_,y[T])):Wn(w,y))){h&&h();const _=Si;Si=f;try{const T=[w,y===Vs?void 0:g&&y[0]===Vs?[]:y,v];l?l(t,3,T):t(...T),y=w}finally{Si=_}}}else f.run()};return s&&s(x),f=new z_(c),f.scheduler=o?()=>o(x,!1):x,v=b=>hC(b,!1,f),h=f.onStop=()=>{const b=$l.get(f);if(b){if(l)l(b,4);else for(const w of b)w();$l.delete(f)}},t?n?x(!0):y=f.run():o?o(x.bind(null,!0),!0):f.run(),m.pause=f.pause.bind(f),m.resume=f.resume.bind(f),m.stop=m,m}function rn(e,t=1/0,r){if(t<=0||!Wt(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,ge(e))rn(e.value,t,r);else if(at(e))for(let n=0;n<e.length;n++)rn(e[n],t,r);else if(P_(e)||Sa(e))e.forEach(n=>{rn(n,t,r)});else if(I_(e)){for(const n in e)rn(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&rn(e[n],t,r)}return e}/**
* @vue/runtime-core v3.5.4
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function gs(e,t,r,n){try{return n?e(...n):e()}catch(i){Ou(i,t,r)}}function Cr(e,t,r,n){if(vt(e)){const i=gs(e,t,r,n);return i&&L_(i)&&i.catch(a=>{Ou(a,t,r)}),i}if(at(e)){const i=[];for(let a=0;a<e.length;a++)i.push(Cr(e[a],t,r,n));return i}}function Ou(e,t,r,n=!0){const i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Bt;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){Xn(),gs(a,null,10,[e,l,u]),qn();return}}dC(e,r,i,n,o)}function dC(e,t,r,n=!0,i=!1){if(i)throw e;console.error(e)}let $o=!1,xh=!1;const Ce=[];let Br=0;const Ca=[];let In=null,ga=0;const t1=Promise.resolve();let ud=null;function e1(e){const t=ud||t1;return e?t.then(this?e.bind(this):e):t}function pC(e){let t=$o?Br+1:0,r=Ce.length;for(;t<r;){const n=t+r>>>1,i=Ce[n],a=Xo(i);a<e||a===e&&i.flags&2?t=n+1:r=n}return t}function fd(e){if(!(e.flags&1)){const t=Xo(e),r=Ce[Ce.length-1];!r||!(e.flags&2)&&t>=Xo(r)?Ce.push(e):Ce.splice(pC(t),0,e),e.flags|=1,r1()}}function r1(){!$o&&!xh&&(xh=!0,ud=t1.then(i1))}function gC(e){at(e)?Ca.push(...e):In&&e.id===-1?In.splice(ga+1,0,e):e.flags&1||(Ca.push(e),e.flags|=1),r1()}function eg(e,t,r=$o?Br+1:0){for(;r<Ce.length;r++){const n=Ce[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Ce.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&=-2}}}function n1(e){if(Ca.length){const t=[...new Set(Ca)].sort((r,n)=>Xo(r)-Xo(n));if(Ca.length=0,In){In.push(...t);return}for(In=t,ga=0;ga<In.length;ga++){const r=In[ga];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}In=null,ga=0}}const Xo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function i1(e){xh=!1,$o=!0;try{for(Br=0;Br<Ce.length;Br++){const t=Ce[Br];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),gs(t,t.i,t.i?15:14),t.flags&=-2)}}finally{for(;Br<Ce.length;Br++){const t=Ce[Br];t&&(t.flags&=-2)}Br=0,Ce.length=0,n1(),$o=!1,ud=null,(Ce.length||Ca.length)&&i1()}}let ne=null,a1=null;function Xl(e){const t=ne;return ne=e,a1=e&&e.type.__scopeId||null,t}function Ti(e,t=ne,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&cg(-1);const a=Xl(t);let o;try{o=e(...i)}finally{Xl(a),n._d&&cg(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function mC(e,t){if(ne===null)return e;const r=Vu(ne),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,o,s,l=Bt]=t[i];a&&(vt(a)&&(a={mounted:a,updated:a}),a.deep&&rn(o),n.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:l}))}return e}function Jn(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&&(Xn(),Cr(l,r,8,[e.el,s,e,t]),qn())}}const yC=Symbol("_vte"),o1=e=>e.__isTeleport,On=Symbol("_leaveCb"),Gs=Symbol("_enterCb");function _C(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Nu(()=>{e.isMounted=!0}),d1(()=>{e.isUnmounting=!0}),e}const tr=[Function,Array],s1={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:tr,onEnter:tr,onAfterEnter:tr,onEnterCancelled:tr,onBeforeLeave:tr,onLeave:tr,onAfterLeave:tr,onLeaveCancelled:tr,onBeforeAppear:tr,onAppear:tr,onAfterAppear:tr,onAppearCancelled:tr},l1=e=>{const t=e.subTree;return t.component?l1(t.component):t},xC={name:"BaseTransition",props:s1,setup(e,{slots:t}){const r=xA(),n=_C();return()=>{const i=t.default&&c1(t.default(),!0);if(!i||!i.length)return;const a=u1(i),o=Ct(e),{mode:s}=o;if(n.isLeaving)return If(a);const l=rg(a);if(!l)return If(a);let u=bh(l,o,n,r,h=>u=h);l.type!==De&&qo(l,u);const f=r.subTree,c=f&&rg(f);if(c&&c.type!==De&&!Ci(l,c)&&l1(r).type!==De){const h=bh(c,o,n,r);if(qo(c,h),s==="out-in"&&l.type!==De)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete h.afterLeave},If(a);s==="in-out"&&l.type!==De&&(h.delayLeave=(v,d,g)=>{const p=f1(n,c);p[String(c.key)]=c,v[On]=()=>{d(),v[On]=void 0,delete u.delayedLeave},u.delayedLeave=g})}return a}}};function u1(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==De){t=r;break}}return t}const bC=xC;function f1(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 bh(e,t,r,n,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:f,onEnterCancelled:c,onBeforeLeave:h,onLeave:v,onAfterLeave:d,onLeaveCancelled:g,onBeforeAppear:p,onAppear:m,onAfterAppear:y,onAppearCancelled:x}=t,b=String(e.key),w=f1(r,e),_=(D,E)=>{D&&Cr(D,n,9,E)},T=(D,E)=>{const P=E[1];_(D,E),at(D)?D.every(L=>L.length<=1)&&P():D.length<=1&&P()},C={mode:o,persisted:s,beforeEnter(D){let E=l;if(!r.isMounted)if(a)E=p||l;else return;D[On]&&D[On](!0);const P=w[b];P&&Ci(e,P)&&P.el[On]&&P.el[On](),_(E,[D])},enter(D){let E=u,P=f,L=c;if(!r.isMounted)if(a)E=m||u,P=y||f,L=x||c;else return;let I=!1;const k=D[Gs]=F=>{I||(I=!0,F?_(L,[D]):_(P,[D]),C.delayedLeave&&C.delayedLeave(),D[Gs]=void 0)};E?T(E,[D,k]):k()},leave(D,E){const P=String(e.key);if(D[Gs]&&D[Gs](!0),r.isUnmounting)return E();_(h,[D]);let L=!1;const I=D[On]=k=>{L||(L=!0,E(),k?_(g,[D]):_(d,[D]),D[On]=void 0,w[P]===e&&delete w[P])};w[P]=e,v?T(v,[D,I]):I()},clone(D){const E=bh(D,t,r,n,i);return i&&i(E),E}};return C}function If(e){if(ku(e))return e=Yn(e),e.children=null,e}function rg(e){if(!ku(e))return o1(e.type)&&e.children?u1(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&vt(r.default))return r.default()}}function qo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,qo(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 c1(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===re?(o.patchFlag&128&&i++,n=n.concat(c1(o.children,t,s))):(t||o.type!==De)&&n.push(s!=null?Yn(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}function h1(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function wh(e,t,r,n,i=!1){if(at(e)){e.forEach((d,g)=>wh(d,t&&(at(t)?t[g]:t),r,n,i));return}if(Aa(n)&&!i)return;const a=n.shapeFlag&4?Vu(n.component):n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,f=s.refs===Bt?s.refs={}:s.refs,c=s.setupState,h=Ct(c),v=c===Bt?()=>!1:d=>Dt(h,d);if(u!=null&&u!==l&&(Zt(u)?(f[u]=null,v(u)&&(c[u]=null)):ge(u)&&(u.value=null)),vt(l))gs(l,s,12,[o,f]);else{const d=Zt(l),g=ge(l);if(d||g){const p=()=>{if(e.f){const m=d?v(l)?c[l]:f[l]:l.value;i?at(m)&&jv(m,a):at(m)?m.includes(a)||m.push(a):d?(f[l]=[a],v(l)&&(c[l]=f[l])):(l.value=[a],e.k&&(f[e.k]=l.value))}else d?(f[l]=o,v(l)&&(c[l]=o)):g&&(l.value=o,e.k&&(f[e.k]=o))};o?(p.id=-1,We(p,r)):p()}}}const Aa=e=>!!e.type.__asyncLoader,ku=e=>e.type.__isKeepAlive;function wC(e,t){v1(e,"a",t)}function SC(e,t){v1(e,"da",t)}function v1(e,t,r=le){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Bu(t,n,r),r){let i=r.parent;for(;i&&i.parent;)ku(i.parent.vnode)&&TC(n,t,r,i),i=i.parent}}function TC(e,t,r,n){const i=Bu(t,e,n,!0);cd(()=>{jv(n[t],i)},r)}function Bu(e,t,r=le,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Xn();const s=ms(r),l=Cr(t,r,e,o);return s(),qn(),l});return n?i.unshift(a):i.push(a),a}}const pn=e=>(t,r=le)=>{(!Hu||e==="sp")&&Bu(e,(...n)=>t(...n),r)},CC=pn("bm"),Nu=pn("m"),AC=pn("bu"),DC=pn("u"),d1=pn("bum"),cd=pn("um"),MC=pn("sp"),EC=pn("rtg"),PC=pn("rtc");function LC(e,t=le){Bu("ec",e,t)}const RC="directives",IC=Symbol.for("v-ndc");function OC(e){return kC(RC,e)}function kC(e,t,r=!0,n=!1){const i=ne||le;if(i){const a=i.type,o=ng(i[e]||a[e],t)||ng(i.appContext[e],t);return!o&&n?a:o}}function ng(e,t){return e&&(e[t]||e[un(t)]||e[Jv(un(t))])}function Of(e,t,r,n){let i;const a=r,o=at(e);if(o||Zt(e)){const s=o&&Ta(e);let l=!1;s&&(l=!hr(e),e=Ru(e)),i=new Array(e.length);for(let u=0,f=e.length;u<f;u++)i[u]=t(l?pe(e[u]):e[u],u,void 0,a)}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)}else if(Wt(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,a));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)}}else i=[];return i}function BC(e,t,r={},n,i){if(ne.ce||ne.parent&&Aa(ne.parent)&&ne.parent.ce)return Ot(),Kl(re,null,[Xt("slot",r,n)],64);let a=e[t];a&&a._c&&(a._d=!1),Ot();const o=a&&p1(a(r)),s=Kl(re,{key:(r.key||o&&o.key||`_${t}`)+(!o&&n?"_fb":"")},o||[],o&&e._===1?64:-2);return s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function p1(e){return e.some(t=>jl(t)?!(t.type===De||t.type===re&&!p1(t.children)):!0)?e:null}const Sh=e=>e?k1(e)?Vu(e):Sh(e.parent):null,Eo=ae(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=>Sh(e.parent),$root:e=>Sh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>hd(e),$forceUpdate:e=>e.f||(e.f=()=>{fd(e.update)}),$nextTick:e=>e.n||(e.n=e1.bind(e.proxy)),$watch:e=>iA.bind(e)}),kf=(e,t)=>e!==Bt&&!e.__isScriptSetup&&Dt(e,t),NC={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 v=o[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(kf(n,t))return o[t]=1,n[t];if(i!==Bt&&Dt(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&Dt(u,t))return o[t]=3,a[t];if(r!==Bt&&Dt(r,t))return o[t]=4,r[t];Th&&(o[t]=0)}}const f=Eo[t];let c,h;if(f)return t==="$attrs"&&ye(e.attrs,"get",""),f(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(r!==Bt&&Dt(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,Dt(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return kf(i,t)?(i[t]=r,!0):n!==Bt&&Dt(n,t)?(n[t]=r,!0):Dt(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!==Bt&&Dt(e,o)||kf(t,o)||(s=a[0])&&Dt(s,o)||Dt(n,o)||Dt(Eo,o)||Dt(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Dt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function ig(e){return at(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Th=!0;function FC(e){const t=hd(e),r=e.proxy,n=e.ctx;Th=!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:v,updated:d,activated:g,deactivated:p,beforeDestroy:m,beforeUnmount:y,destroyed:x,unmounted:b,render:w,renderTracked:_,renderTriggered:T,errorCaptured:C,serverPrefetch:D,expose:E,inheritAttrs:P,components:L,directives:I,filters:k}=t;if(u&&zC(u,n,null),o)for(const J in o){const W=o[J];vt(W)&&(n[J]=W.bind(r))}if(i){const J=i.call(r,r);Wt(J)&&(e.data=ad(J))}if(Th=!0,a)for(const J in a){const W=a[J],Z=vt(W)?W.bind(r,r):vt(W.get)?W.get.bind(r,r):Gr,ct=!vt(W)&&vt(W.set)?W.set.bind(r):Gr,xt=AA({get:Z,set:ct});Object.defineProperty(n,J,{enumerable:!0,configurable:!0,get:()=>xt.value,set:yt=>xt.value=yt})}if(s)for(const J in s)g1(s[J],n,r,J);if(l){const J=vt(l)?l.call(r):l;Reflect.ownKeys(J).forEach(W=>{YC(W,J[W])})}f&&ag(f,e,"c");function N(J,W){at(W)?W.forEach(Z=>J(Z.bind(r))):W&&J(W.bind(r))}if(N(CC,c),N(Nu,h),N(AC,v),N(DC,d),N(wC,g),N(SC,p),N(LC,C),N(PC,_),N(EC,T),N(d1,y),N(cd,b),N(MC,D),at(E))if(E.length){const J=e.exposed||(e.exposed={});E.forEach(W=>{Object.defineProperty(J,W,{get:()=>r[W],set:Z=>r[W]=Z})})}else e.exposed||(e.exposed={});w&&e.render===Gr&&(e.render=w),P!=null&&(e.inheritAttrs=P),L&&(e.components=L),I&&(e.directives=I),D&&h1(e)}function zC(e,t,r=Gr){at(e)&&(e=Ch(e));for(const n in e){const i=e[n];let a;Wt(i)?"default"in i?a=Dl(i.from||n,i.default,!0):a=Dl(i.from||n):a=Dl(i),ge(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){Cr(at(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function g1(e,t,r,n){let i=n.includes(".")?P1(r,n):()=>r[n];if(Zt(e)){const a=t[e];vt(a)&&Nf(i,a)}else if(vt(e))Nf(i,e.bind(r));else if(Wt(e))if(at(e))e.forEach(a=>g1(a,t,r,n));else{const a=vt(e.handler)?e.handler.bind(r):t[e.handler];vt(a)&&Nf(i,a,e)}}function hd(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=>ql(l,u,o,!0)),ql(l,t,o)),Wt(t)&&a.set(t,l),l}function ql(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&ql(e,a,r,!0),i&&i.forEach(o=>ql(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=HC[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const HC={data:og,props:sg,emits:sg,methods:yo,computed:yo,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:yo,directives:yo,watch:GC,provide:og,inject:VC};function og(e,t){return t?e?function(){return ae(vt(e)?e.call(this,this):e,vt(t)?t.call(this,this):t)}:t:e}function VC(e,t){return yo(Ch(e),Ch(t))}function Ch(e){if(at(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function be(e,t){return e?[...new Set([].concat(e,t))]:t}function yo(e,t){return e?ae(Object.create(null),e,t):t}function sg(e,t){return e?at(e)&&at(t)?[...new Set([...e,...t])]:ae(Object.create(null),ig(e),ig(t??{})):t}function GC(e,t){if(!e)return t;if(!t)return e;const r=ae(Object.create(null),e);for(const n in t)r[n]=be(e[n],t[n]);return r}function m1(){return{app:null,config:{isNativeTag:TT,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 UC=0;function WC(e,t){return function(n,i=null){vt(n)||(n=ae({},n)),i!=null&&!Wt(i)&&(i=null);const a=m1(),o=new WeakSet,s=[];let l=!1;const u=a.app={_uid:UC++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:DA,get config(){return a.config},set config(f){},use(f,...c){return o.has(f)||(f&&vt(f.install)?(o.add(f),f.install(u,...c)):vt(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 v=u._ceVNode||Xt(n,i);return v.appContext=a,h===!0?h="svg":h===!1&&(h=void 0),c&&t?t(v,f):e(v,f,h),l=!0,u._container=f,f.__vue_app__=u,Vu(v.component)}},onUnmount(f){s.push(f)},unmount(){l&&(Cr(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=Da;Da=u;try{return f()}finally{Da=c}}};return u}}let Da=null;function YC(e,t){if(le){let r=le.provides;const n=le.parent&&le.parent.provides;n===r&&(r=le.provides=Object.create(n)),r[e]=t}}function Dl(e,t,r=!1){const n=le||ne;if(n||Da){const i=Da?Da._context.provides:n?n.parent==null?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&&vt(t)?t.call(n&&n.proxy):t}}const y1={},_1=()=>Object.create(y1),x1=e=>Object.getPrototypeOf(e)===y1;function $C(e,t,r,n=!1){const i={},a=_1();e.propsDefaults=Object.create(null),b1(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:aC(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function XC(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Ct(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(Fu(e.emitsOptions,h))continue;const v=t[h];if(l)if(Dt(a,h))v!==a[h]&&(a[h]=v,u=!0);else{const d=un(h);i[d]=Ah(l,s,d,v,e,!1)}else v!==a[h]&&(a[h]=v,u=!0)}}}else{b1(e,t,i,a)&&(u=!0);let f;for(const c in s)(!t||!Dt(t,c)&&((f=Ji(c))===c||!Dt(t,f)))&&(l?r&&(r[c]!==void 0||r[f]!==void 0)&&(i[c]=Ah(l,s,c,void 0,e,!0)):delete i[c]);if(a!==s)for(const c in a)(!t||!Dt(t,c))&&(delete a[c],u=!0)}u&&an(e.attrs,"set","")}function b1(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(Do(l))continue;const u=t[l];let f;i&&Dt(i,f=un(l))?!a||!a.includes(f)?r[f]=u:(s||(s={}))[f]=u:Fu(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Ct(r),u=s||Bt;for(let f=0;f<a.length;f++){const c=a[f];r[c]=Ah(i,l,c,u[c],e,!Dt(u,c))}}return o}function Ah(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=Dt(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&vt(l)){const{propsDefaults:u}=i;if(r in u)n=u[r];else{const f=ms(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===Ji(r))&&(n=!0))}return n}const qC=new WeakMap;function w1(e,t,r=!1){const n=r?qC:t.propsCache,i=n.get(e);if(i)return i;const a=e.props,o={},s=[];let l=!1;if(!vt(e)){const f=c=>{l=!0;const[h,v]=w1(c,t,!0);ae(o,h),v&&s.push(...v)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!l)return Wt(e)&&n.set(e,wa),wa;if(at(a))for(let f=0;f<a.length;f++){const c=un(a[f]);lg(c)&&(o[c]=Bt)}else if(a)for(const f in a){const c=un(f);if(lg(c)){const h=a[f],v=o[c]=at(h)||vt(h)?{type:h}:ae({},h),d=v.type;let g=!1,p=!0;if(at(d))for(let m=0;m<d.length;++m){const y=d[m],x=vt(y)&&y.name;if(x==="Boolean"){g=!0;break}else x==="String"&&(p=!1)}else g=vt(d)&&d.name==="Boolean";v[0]=g,v[1]=p,(g||Dt(v,"default"))&&s.push(c)}}const u=[o,s];return Wt(e)&&n.set(e,u),u}function lg(e){return e[0]!=="$"&&!Do(e)}const S1=e=>e[0]==="_"||e==="$stable",vd=e=>at(e)?e.map(Fr):[Fr(e)],KC=(e,t,r)=>{if(t._n)return t;const n=Ti((...i)=>vd(t(...i)),r);return n._c=!1,n},T1=(e,t,r)=>{const n=e._ctx;for(const i in e){if(S1(i))continue;const a=e[i];if(vt(a))t[i]=KC(i,a,n);else if(a!=null){const o=vd(a);t[i]=()=>o}}},C1=(e,t)=>{const r=vd(t);e.slots.default=()=>r},A1=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},jC=(e,t,r)=>{const n=e.slots=_1();if(e.vnode.shapeFlag&32){const i=t._;i?(A1(n,t,r),r&&O_(n,"_",i,!0)):T1(t,n)}else t&&C1(e,t)},ZC=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=Bt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:A1(i,t,r):(a=!t.$stable,T1(t,i)),o=t}else t&&(C1(e,t),o={default:1});if(a)for(const s in i)!S1(s)&&o[s]==null&&delete i[s]},We=cA;function JC(e){return QC(e)}function QC(e,t){const r=k_();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:v=Gr,insertStaticContent:d}=e,g=(M,R,B,H=null,z=null,V=null,K=void 0,X=null,$=!!R.dynamicChildren)=>{if(M===R)return;M&&!Ci(M,R)&&(H=Le(M),yt(M,z,V,!0),M=null),R.patchFlag===-2&&($=!1,R.dynamicChildren=null);const{type:G,ref:it,shapeFlag:j}=R;switch(G){case zu:p(M,R,B,H);break;case De:m(M,R,B,H);break;case zf:M==null&&y(R,B,H,K);break;case re:L(M,R,B,H,z,V,K,X,$);break;default:j&1?w(M,R,B,H,z,V,K,X,$):j&6?I(M,R,B,H,z,V,K,X,$):(j&64||j&128)&&G.process(M,R,B,H,z,V,K,X,$,Yt)}it!=null&&z&&wh(it,M&&M.ref,V,R||M,!R)},p=(M,R,B,H)=>{if(M==null)n(R.el=s(R.children),B,H);else{const z=R.el=M.el;R.children!==M.children&&u(z,R.children)}},m=(M,R,B,H)=>{M==null?n(R.el=l(R.children||""),B,H):R.el=M.el},y=(M,R,B,H)=>{[M.el,M.anchor]=d(M.children,R,B,H,M.el,M.anchor)},x=({el:M,anchor:R},B,H)=>{let z;for(;M&&M!==R;)z=h(M),n(M,B,H),M=z;n(R,B,H)},b=({el:M,anchor:R})=>{let B;for(;M&&M!==R;)B=h(M),i(M),M=B;i(R)},w=(M,R,B,H,z,V,K,X,$)=>{R.type==="svg"?K="svg":R.type==="math"&&(K="mathml"),M==null?_(R,B,H,z,V,K,X,$):D(M,R,z,V,K,X,$)},_=(M,R,B,H,z,V,K,X)=>{let $,G;const{props:it,shapeFlag:j,transition:rt,dirs:st}=M;if($=M.el=o(M.type,V,it&&it.is,it),j&8?f($,M.children):j&16&&C(M.children,$,null,H,z,Bf(M,V),K,X),st&&Jn(M,null,H,"created"),T($,M,M.scopeId,K,H),it){for(const zt in it)zt!=="value"&&!Do(zt)&&a($,zt,null,it[zt],V,H);"value"in it&&a($,"value",null,it.value,V),(G=it.onVnodeBeforeMount)&&Lr(G,H,M)}st&&Jn(M,null,H,"beforeMount");const bt=tA(z,rt);bt&&rt.beforeEnter($),n($,R,B),((G=it&&it.onVnodeMounted)||bt||st)&&We(()=>{G&&Lr(G,H,M),bt&&rt.enter($),st&&Jn(M,null,H,"mounted")},z)},T=(M,R,B,H,z)=>{if(B&&v(M,B),H)for(let V=0;V<H.length;V++)v(M,H[V]);if(z){let V=z.subTree;if(R===V||R1(V.type)&&(V.ssContent===R||V.ssFallback===R)){const K=z.vnode;T(M,K,K.scopeId,K.slotScopeIds,z.parent)}}},C=(M,R,B,H,z,V,K,X,$=0)=>{for(let G=$;G<M.length;G++){const it=M[G]=X?kn(M[G]):Fr(M[G]);g(null,it,R,B,H,z,V,K,X)}},D=(M,R,B,H,z,V,K)=>{const X=R.el=M.el;let{patchFlag:$,dynamicChildren:G,dirs:it}=R;$|=M.patchFlag&16;const j=M.props||Bt,rt=R.props||Bt;let st;if(B&&Qn(B,!1),(st=rt.onVnodeBeforeUpdate)&&Lr(st,B,R,M),it&&Jn(R,M,B,"beforeUpdate"),B&&Qn(B,!0),(j.innerHTML&&rt.innerHTML==null||j.textContent&&rt.textContent==null)&&f(X,""),G?E(M.dynamicChildren,G,X,B,H,Bf(R,z),V):K||W(M,R,X,null,B,H,Bf(R,z),V,!1),$>0){if($&16)P(X,j,rt,B,z);else if($&2&&j.class!==rt.class&&a(X,"class",null,rt.class,z),$&4&&a(X,"style",j.style,rt.style,z),$&8){const bt=R.dynamicProps;for(let zt=0;zt<bt.length;zt++){const Pt=bt[zt],Ve=j[Pt],fe=rt[Pt];(fe!==Ve||Pt==="value")&&a(X,Pt,Ve,fe,z,B)}}$&1&&M.children!==R.children&&f(X,R.children)}else!K&&G==null&&P(X,j,rt,B,z);((st=rt.onVnodeUpdated)||it)&&We(()=>{st&&Lr(st,B,R,M),it&&Jn(R,M,B,"updated")},H)},E=(M,R,B,H,z,V,K)=>{for(let X=0;X<R.length;X++){const $=M[X],G=R[X],it=$.el&&($.type===re||!Ci($,G)||$.shapeFlag&70)?c($.el):B;g($,G,it,null,H,z,V,K,!0)}},P=(M,R,B,H,z)=>{if(R!==B){if(R!==Bt)for(const V in R)!Do(V)&&!(V in B)&&a(M,V,R[V],null,z,H);for(const V in B){if(Do(V))continue;const K=B[V],X=R[V];K!==X&&V!=="value"&&a(M,V,X,K,z,H)}"value"in B&&a(M,"value",R.value,B.value,z)}},L=(M,R,B,H,z,V,K,X,$)=>{const G=R.el=M?M.el:s(""),it=R.anchor=M?M.anchor:s("");let{patchFlag:j,dynamicChildren:rt,slotScopeIds:st}=R;st&&(X=X?X.concat(st):st),M==null?(n(G,B,H),n(it,B,H),C(R.children||[],B,it,z,V,K,X,$)):j>0&&j&64&&rt&&M.dynamicChildren?(E(M.dynamicChildren,rt,B,z,V,K,X),(R.key!=null||z&&R===z.subTree)&&D1(M,R,!0)):W(M,R,B,it,z,V,K,X,$)},I=(M,R,B,H,z,V,K,X,$)=>{R.slotScopeIds=X,M==null?R.shapeFlag&512?z.ctx.activate(R,B,H,K,$):k(R,B,H,z,V,K,$):F(M,R,$)},k=(M,R,B,H,z,V,K)=>{const X=M.component=_A(M,H,z);if(ku(M)&&(X.ctx.renderer=Yt),bA(X,!1,K),X.asyncDep){if(z&&z.registerDep(X,N,K),!M.el){const $=X.subTree=Xt(De);m(null,$,R,B)}}else N(X,M,R,B,z,V,K)},F=(M,R,B)=>{const H=R.component=M.component;if(uA(M,R,B))if(H.asyncDep&&!H.asyncResolved){J(H,R,B);return}else H.next=R,H.update();else R.el=M.el,H.vnode=R},N=(M,R,B,H,z,V,K)=>{const X=()=>{if(M.isMounted){let{next:j,bu:rt,u:st,parent:bt,vnode:zt}=M;{const Ge=M1(M);if(Ge){j&&(j.el=zt.el,J(M,j,K)),Ge.asyncDep.then(()=>{M.isUnmounted||X()});return}}let Pt=j,Ve;Qn(M,!1),j?(j.el=zt.el,J(M,j,K)):j=zt,rt&&Mf(rt),(Ve=j.props&&j.props.onVnodeBeforeUpdate)&&Lr(Ve,bt,j,zt),Qn(M,!0);const fe=Ff(M),gr=M.subTree;M.subTree=fe,g(gr,fe,c(gr.el),Le(gr),M,z,V),j.el=fe.el,Pt===null&&fA(M,fe.el),st&&We(st,z),(Ve=j.props&&j.props.onVnodeUpdated)&&We(()=>Lr(Ve,bt,j,zt),z)}else{let j;const{el:rt,props:st}=R,{bm:bt,m:zt,parent:Pt,root:Ve,type:fe}=M,gr=Aa(R);if(Qn(M,!1),bt&&Mf(bt),!gr&&(j=st&&st.onVnodeBeforeMount)&&Lr(j,Pt,R),Qn(M,!0),rt&&gt){const Ge=()=>{M.subTree=Ff(M),gt(rt,M.subTree,M,z,null)};gr&&fe.__asyncHydrate?fe.__asyncHydrate(rt,M,Ge):Ge()}else{Ve.ce&&Ve.ce._injectChildStyle(fe);const Ge=M.subTree=Ff(M);g(null,Ge,B,H,M,z,V),R.el=Ge.el}if(zt&&We(zt,z),!gr&&(j=st&&st.onVnodeMounted)){const Ge=R;We(()=>Lr(j,Pt,Ge),z)}(R.shapeFlag&256||Pt&&Aa(Pt.vnode)&&Pt.vnode.shapeFlag&256)&&M.a&&We(M.a,z),M.isMounted=!0,R=B=H=null}};M.scope.on();const $=M.effect=new z_(X);M.scope.off();const G=M.update=$.run.bind($),it=M.job=$.runIfDirty.bind($);it.i=M,it.id=M.uid,$.scheduler=()=>fd(it),Qn(M,!0),G()},J=(M,R,B)=>{R.component=M;const H=M.vnode.props;M.vnode=R,M.next=null,XC(M,R.props,H,B),ZC(M,R.children,B),Xn(),eg(M),qn()},W=(M,R,B,H,z,V,K,X,$=!1)=>{const G=M&&M.children,it=M?M.shapeFlag:0,j=R.children,{patchFlag:rt,shapeFlag:st}=R;if(rt>0){if(rt&128){ct(G,j,B,H,z,V,K,X,$);return}else if(rt&256){Z(G,j,B,H,z,V,K,X,$);return}}st&8?(it&16&&Et(G,z,V),j!==G&&f(B,j)):it&16?st&16?ct(G,j,B,H,z,V,K,X,$):Et(G,z,V,!0):(it&8&&f(B,""),st&16&&C(j,B,H,z,V,K,X,$))},Z=(M,R,B,H,z,V,K,X,$)=>{M=M||wa,R=R||wa;const G=M.length,it=R.length,j=Math.min(G,it);let rt;for(rt=0;rt<j;rt++){const st=R[rt]=$?kn(R[rt]):Fr(R[rt]);g(M[rt],st,B,null,z,V,K,X,$)}G>it?Et(M,z,V,!0,!1,j):C(R,B,H,z,V,K,X,$,j)},ct=(M,R,B,H,z,V,K,X,$)=>{let G=0;const it=R.length;let j=M.length-1,rt=it-1;for(;G<=j&&G<=rt;){const st=M[G],bt=R[G]=$?kn(R[G]):Fr(R[G]);if(Ci(st,bt))g(st,bt,B,null,z,V,K,X,$);else break;G++}for(;G<=j&&G<=rt;){const st=M[j],bt=R[rt]=$?kn(R[rt]):Fr(R[rt]);if(Ci(st,bt))g(st,bt,B,null,z,V,K,X,$);else break;j--,rt--}if(G>j){if(G<=rt){const st=rt+1,bt=st<it?R[st].el:H;for(;G<=rt;)g(null,R[G]=$?kn(R[G]):Fr(R[G]),B,bt,z,V,K,X,$),G++}}else if(G>rt)for(;G<=j;)yt(M[G],z,V,!0),G++;else{const st=G,bt=G,zt=new Map;for(G=bt;G<=rt;G++){const Ue=R[G]=$?kn(R[G]):Fr(R[G]);Ue.key!=null&&zt.set(Ue.key,G)}let Pt,Ve=0;const fe=rt-bt+1;let gr=!1,Ge=0;const Xa=new Array(fe);for(G=0;G<fe;G++)Xa[G]=0;for(G=st;G<=j;G++){const Ue=M[G];if(Ve>=fe){yt(Ue,z,V,!0);continue}let Pr;if(Ue.key!=null)Pr=zt.get(Ue.key);else for(Pt=bt;Pt<=rt;Pt++)if(Xa[Pt-bt]===0&&Ci(Ue,R[Pt])){Pr=Pt;break}Pr===void 0?yt(Ue,z,V,!0):(Xa[Pr-bt]=G+1,Pr>=Ge?Ge=Pr:gr=!0,g(Ue,R[Pr],B,null,z,V,K,X,$),Ve++)}const $p=gr?eA(Xa):wa;for(Pt=$p.length-1,G=fe-1;G>=0;G--){const Ue=bt+G,Pr=R[Ue],Xp=Ue+1<it?R[Ue+1].el:H;Xa[G]===0?g(null,Pr,B,Xp,z,V,K,X,$):gr&&(Pt<0||G!==$p[Pt]?xt(Pr,B,Xp,2):Pt--)}}},xt=(M,R,B,H,z=null)=>{const{el:V,type:K,transition:X,children:$,shapeFlag:G}=M;if(G&6){xt(M.component.subTree,R,B,H);return}if(G&128){M.suspense.move(R,B,H);return}if(G&64){K.move(M,R,B,Yt);return}if(K===re){n(V,R,B);for(let j=0;j<$.length;j++)xt($[j],R,B,H);n(M.anchor,R,B);return}if(K===zf){x(M,R,B);return}if(H!==2&&G&1&&X)if(H===0)X.beforeEnter(V),n(V,R,B),We(()=>X.enter(V),z);else{const{leave:j,delayLeave:rt,afterLeave:st}=X,bt=()=>n(V,R,B),zt=()=>{j(V,()=>{bt(),st&&st()})};rt?rt(V,bt,zt):zt()}else n(V,R,B)},yt=(M,R,B,H=!1,z=!1)=>{const{type:V,props:K,ref:X,children:$,dynamicChildren:G,shapeFlag:it,patchFlag:j,dirs:rt,cacheIndex:st}=M;if(j===-2&&(z=!1),X!=null&&wh(X,null,B,M,!0),st!=null&&(R.renderCache[st]=void 0),it&256){R.ctx.deactivate(M);return}const bt=it&1&&rt,zt=!Aa(M);let Pt;if(zt&&(Pt=K&&K.onVnodeBeforeUnmount)&&Lr(Pt,R,M),it&6)xe(M.component,B,H);else{if(it&128){M.suspense.unmount(B,H);return}bt&&Jn(M,null,R,"beforeUnmount"),it&64?M.type.remove(M,R,B,Yt,H):G&&!G.hasOnce&&(V!==re||j>0&&j&64)?Et(G,R,B,!1,!0):(V===re&&j&384||!z&&it&16)&&Et($,R,B),H&&Rt(M)}(zt&&(Pt=K&&K.onVnodeUnmounted)||bt)&&We(()=>{Pt&&Lr(Pt,R,M),bt&&Jn(M,null,R,"unmounted")},B)},Rt=M=>{const{type:R,el:B,anchor:H,transition:z}=M;if(R===re){Ft(B,H);return}if(R===zf){b(M);return}const V=()=>{i(B),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(M.shapeFlag&1&&z&&!z.persisted){const{leave:K,delayLeave:X}=z,$=()=>K(B,V);X?X(M.el,V,$):$()}else V()},Ft=(M,R)=>{let B;for(;M!==R;)B=h(M),i(M),M=B;i(R)},xe=(M,R,B)=>{const{bum:H,scope:z,job:V,subTree:K,um:X,m:$,a:G}=M;ug($),ug(G),H&&Mf(H),z.stop(),V&&(V.flags|=8,yt(K,M,R,B)),X&&We(X,R),We(()=>{M.isUnmounted=!0},R),R&&R.pendingBranch&&!R.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===R.pendingId&&(R.deps--,R.deps===0&&R.resolve())},Et=(M,R,B,H=!1,z=!1,V=0)=>{for(let K=V;K<M.length;K++)yt(M[K],R,B,H,z)},Le=M=>{if(M.shapeFlag&6)return Le(M.component.subTree);if(M.shapeFlag&128)return M.suspense.next();const R=h(M.anchor||M.el),B=R&&R[yC];return B?h(B):R};let Er=!1;const ue=(M,R,B)=>{M==null?R._vnode&&yt(R._vnode,null,null,!0):g(R._vnode||null,M,R,null,null,null,B),R._vnode=M,Er||(Er=!0,eg(),n1(),Er=!1)},Yt={p:g,um:yt,m:xt,r:Rt,mt:k,mc:C,pc:W,pbc:E,n:Le,o:e};let ot,gt;return{render:ue,hydrate:ot,createApp:WC(ue,ot)}}function Bf({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 Qn({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tA(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function D1(e,t,r=!1){const n=e.children,i=t.children;if(at(n)&&at(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]=kn(i[a]),s.el=o.el),!r&&s.patchFlag!==-2&&D1(o,s)),s.type===zu&&(s.el=o.el)}}function eA(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 M1(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:M1(t)}function ug(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const rA=Symbol.for("v-scx"),nA=()=>Dl(rA);function Nf(e,t,r){return E1(e,t,r)}function E1(e,t,r=Bt){const{immediate:n,deep:i,flush:a,once:o}=r,s=ae({},r);let l;if(Hu)if(a==="sync"){const h=nA();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||n)s.once=!0;else return{stop:Gr,resume:Gr,pause:Gr};const u=le;s.call=(h,v,d)=>Cr(h,u,v,d);let f=!1;a==="post"?s.scheduler=h=>{We(h,u&&u.suspense)}:a!=="sync"&&(f=!0,s.scheduler=(h,v)=>{v?h():fd(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=vC(e,t,s);return l&&l.push(c),c}function iA(e,t,r){const n=this.proxy,i=Zt(e)?e.includes(".")?P1(n,e):()=>n[e]:e.bind(n,n);let a;vt(t)?a=t:(a=t.handler,r=t);const o=ms(this),s=E1(i,a.bind(n),r);return o(),s}function P1(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}}const aA=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${un(t)}Modifiers`]||e[`${Ji(t)}Modifiers`];function oA(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Bt;let i=r;const a=t.startsWith("update:"),o=a&&aA(n,t.slice(7));o&&(o.trim&&(i=r.map(f=>Zt(f)?f.trim():f)),o.number&&(i=r.map(ET)));let s,l=n[s=Df(t)]||n[s=Df(un(t))];!l&&a&&(l=n[s=Df(Ji(t))]),l&&Cr(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,Cr(u,e,6,i)}}function L1(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(!vt(e)){const l=u=>{const f=L1(u,t,!0);f&&(s=!0,ae(o,f))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Wt(e)&&n.set(e,null),null):(at(a)?a.forEach(l=>o[l]=null):ae(o,a),Wt(e)&&n.set(e,o),o)}function Fu(e,t){return!e||!Mu(t)?!1:(t=t.slice(2).replace(/Once$/,""),Dt(e,t[0].toLowerCase()+t.slice(1))||Dt(e,Ji(t))||Dt(e,t))}function Ff(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:v,ctx:d,inheritAttrs:g}=e,p=Xl(e);let m,y;try{if(r.shapeFlag&4){const b=i||n,w=b;m=Fr(u.call(w,b,f,c,v,h,d)),y=s}else{const b=t;m=Fr(b.length>1?b(c,{attrs:s,slots:o,emit:l}):b(c,null)),y=t.props?s:sA(s)}}catch(b){Po.length=0,Ou(b,e,1),m=Xt(De)}let x=m;if(y&&g!==!1){const b=Object.keys(y),{shapeFlag:w}=x;b.length&&w&7&&(a&&b.some(Kv)&&(y=lA(y,a)),x=Yn(x,y,!1,!0))}return r.dirs&&(x=Yn(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(r.dirs):r.dirs),r.transition&&qo(x,r.transition),m=x,Xl(p),m}const sA=e=>{let t;for(const r in e)(r==="class"||r==="style"||Mu(r))&&((t||(t={}))[r]=e[r]);return t},lA=(e,t)=>{const r={};for(const n in e)(!Kv(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function uA(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?fg(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]&&!Fu(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?fg(n,o,u):!0:!!o;return!1}function fg(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]&&!Fu(r,a))return!0}return!1}function fA({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 R1=e=>e.__isSuspense;function cA(e,t){t&&t.pendingBranch?at(e)?t.effects.push(...e):t.effects.push(e):gC(e)}const re=Symbol.for("v-fgt"),zu=Symbol.for("v-txt"),De=Symbol.for("v-cmt"),zf=Symbol.for("v-stc"),Po=[];let qe=null;function Ot(e=!1){Po.push(qe=e?null:[])}function hA(){Po.pop(),qe=Po[Po.length-1]||null}let Ko=1;function cg(e){Ko+=e,e<0&&qe&&(qe.hasOnce=!0)}function I1(e){return e.dynamicChildren=Ko>0?qe||wa:null,hA(),Ko>0&&qe&&qe.push(e),e}function $t(e,t,r,n,i,a){return I1(S(e,t,r,n,i,a,!0))}function Kl(e,t,r,n,i){return I1(Xt(e,t,r,n,i,!0))}function jl(e){return e?e.__v_isVNode===!0:!1}function Ci(e,t){return e.type===t.type&&e.key===t.key}const O1=({key:e})=>e??null,Ml=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Zt(e)||ge(e)||vt(e)?{i:ne,r:e,k:t,f:!!r}:e:null);function S(e,t=null,r=null,n=0,i=null,a=e===re?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&O1(t),ref:t&&Ml(t),scopeId:a1,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:ne};return s?(dd(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Zt(r)?8:16),Ko>0&&!o&&qe&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&qe.push(l),l}const Xt=vA;function vA(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===IC)&&(e=De),jl(e)){const s=Yn(e,t,!0);return r&&dd(s,r),Ko>0&&!a&&qe&&(s.shapeFlag&6?qe[qe.indexOf(e)]=s:qe.push(s)),s.patchFlag=-2,s}if(CA(e)&&(e=e.__vccOpts),t){t=dA(t);let{class:s,style:l}=t;s&&!Zt(s)&&(t.class=Uo(s)),Wt(l)&&(sd(l)&&!at(l)&&(l=ae({},l)),t.style=Lu(l))}const o=Zt(e)?1:R1(e)?128:o1(e)?64:Wt(e)?4:vt(e)?2:0;return S(e,t,r,n,i,o,a,!0)}function dA(e){return e?sd(e)||x1(e)?ae({},e):e:null}function Yn(e,t,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?gA(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&O1(u),ref:t&&t.ref?r&&a?at(a)?a.concat(Ml(t)):[a,Ml(t)]:Ml(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!==re?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&&Yn(e.ssContent),ssFallback:e.ssFallback&&Yn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&qo(f,l.clone(f)),f}function pA(e=" ",t=0){return Xt(zu,null,e,t)}function _o(e="",t=!1){return t?(Ot(),Kl(De,null,e)):Xt(De,null,e)}function Fr(e){return e==null||typeof e=="boolean"?Xt(De):at(e)?Xt(re,null,e.slice()):typeof e=="object"?kn(e):Xt(zu,null,String(e))}function kn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yn(e)}function dd(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(at(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),dd(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!x1(t)?t._ctx=ne:i===3&&ne&&(ne.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else vt(t)?(t={default:t,_ctx:ne},r=32):(t=String(t),n&64?(r=16,t=[pA(t)]):r=8);e.children=t,e.shapeFlag|=r}function gA(...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=Uo([t.class,n.class]));else if(i==="style")t.style=Lu([t.style,n.style]);else if(Mu(i)){const a=t[i],o=n[i];o&&a!==o&&!(at(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function Lr(e,t,r,n=null){Cr(e,t,7,[r,n])}const mA=m1();let yA=0;function _A(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||mA,a={uid:yA++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new NT(!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:w1(n,i),emitsOptions:L1(n,i),emit:null,emitted:null,propsDefaults:Bt,inheritAttrs:n.inheritAttrs,ctx:Bt,data:Bt,props:Bt,attrs:Bt,slots:Bt,refs:Bt,setupState:Bt,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=oA.bind(null,a),e.ce&&e.ce(a),a}let le=null;const xA=()=>le||ne;let Zl,Dh;{const e=k_(),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)}};Zl=t("__VUE_INSTANCE_SETTERS__",r=>le=r),Dh=t("__VUE_SSR_SETTERS__",r=>Hu=r)}const ms=e=>{const t=le;return Zl(e),e.scope.on(),()=>{e.scope.off(),Zl(t)}},hg=()=>{le&&le.scope.off(),Zl(null)};function k1(e){return e.vnode.shapeFlag&4}let Hu=!1;function bA(e,t=!1,r=!1){t&&Dh(t);const{props:n,children:i}=e.vnode,a=k1(e);$C(e,n,a,t),jC(e,i,r);const o=a?wA(e,t):void 0;return t&&Dh(!1),o}function wA(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,NC);const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?TA(e):null,a=ms(e);Xn();const o=gs(n,e,0,[e.props,i]);if(qn(),a(),L_(o)){if(Aa(e)||h1(e),o.then(hg,hg),t)return o.then(s=>{vg(e,s,t)}).catch(s=>{Ou(s,e,0)});e.asyncDep=o}else vg(e,o,t)}else B1(e,t)}function vg(e,t,r){vt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Wt(t)&&(e.setupState=Q_(t)),B1(e,r)}let dg;function B1(e,t,r){const n=e.type;if(!e.render){if(!t&&dg&&!n.render){const i=n.template||hd(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=ae(ae({isCustomElement:a,delimiters:s},o),l);n.render=dg(i,u)}}e.render=n.render||Gr}{const i=ms(e);Xn();try{FC(e)}finally{qn(),i()}}}const SA={get(e,t){return ye(e,"get",""),e[t]}};function TA(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,SA),slots:e.slots,emit:e.emit,expose:t}}function Vu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Q_(oC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Eo)return Eo[r](e)},has(t,r){return r in t||r in Eo}})):e.proxy}function CA(e){return vt(e)&&"__vccOpts"in e}const AA=(e,t)=>cC(e,t,Hu);function N1(e,t,r){const n=arguments.length;return n===2?Wt(t)&&!at(t)?jl(t)?Xt(e,null,[t]):Xt(e,t):Xt(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&jl(r)&&(r=[r]),Xt(e,t,r))}const DA="3.5.4";/**
* @vue/runtime-dom v3.5.4
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Mh;const pg=typeof window<"u"&&window.trustedTypes;if(pg)try{Mh=pg.createPolicy("vue",{createHTML:e=>e})}catch{}const F1=Mh?e=>Mh.createHTML(e):e=>e,MA="http://www.w3.org/2000/svg",EA="http://www.w3.org/1998/Math/MathML",Qr=typeof document<"u"?document:null,gg=Qr&&Qr.createElement("template"),PA={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"?Qr.createElementNS(MA,e):t==="mathml"?Qr.createElementNS(EA,e):r?Qr.createElement(e,{is:r}):Qr.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Qr.createTextNode(e),createComment:e=>Qr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qr.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{gg.innerHTML=F1(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const s=gg.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]}},xn="transition",Ka="animation",jo=Symbol("_vtc"),z1={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},LA=ae({},s1,z1),RA=e=>(e.displayName="Transition",e.props=LA,e),Hf=RA((e,{slots:t})=>N1(bC,IA(e),t)),ti=(e,t=[])=>{at(e)?e.forEach(r=>r(...t)):e&&e(...t)},mg=e=>e?at(e)?e.some(t=>t.length>1):e.length>1:!1;function IA(e){const t={};for(const L in e)L in z1||(t[L]=e[L]);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:v=`${r}-leave-to`}=e,d=OA(i),g=d&&d[0],p=d&&d[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:x,onLeave:b,onLeaveCancelled:w,onBeforeAppear:_=m,onAppear:T=y,onAppearCancelled:C=x}=t,D=(L,I,k)=>{ei(L,I?f:s),ei(L,I?u:o),k&&k()},E=(L,I)=>{L._isLeaving=!1,ei(L,c),ei(L,v),ei(L,h),I&&I()},P=L=>(I,k)=>{const F=L?T:y,N=()=>D(I,L,k);ti(F,[I,N]),yg(()=>{ei(I,L?l:a),bn(I,L?f:s),mg(F)||_g(I,n,g,N)})};return ae(t,{onBeforeEnter(L){ti(m,[L]),bn(L,a),bn(L,o)},onBeforeAppear(L){ti(_,[L]),bn(L,l),bn(L,u)},onEnter:P(!1),onAppear:P(!0),onLeave(L,I){L._isLeaving=!0;const k=()=>E(L,I);bn(L,c),bn(L,h),NA(),yg(()=>{L._isLeaving&&(ei(L,c),bn(L,v),mg(b)||_g(L,n,p,k))}),ti(b,[L,k])},onEnterCancelled(L){D(L,!1),ti(x,[L])},onAppearCancelled(L){D(L,!0),ti(C,[L])},onLeaveCancelled(L){E(L),ti(w,[L])}})}function OA(e){if(e==null)return null;if(Wt(e))return[Vf(e.enter),Vf(e.leave)];{const t=Vf(e);return[t,t]}}function Vf(e){return PT(e)}function bn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[jo]||(e[jo]=new Set)).add(t)}function ei(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[jo];r&&(r.delete(t),r.size||(e[jo]=void 0))}function yg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kA=0;function _g(e,t,r,n){const i=e._endId=++kA,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=BA(e,t);if(!o)return n();const u=o+"end";let f=0;const c=()=>{e.removeEventListener(u,h),a()},h=v=>{v.target===e&&++f>=l&&c()};setTimeout(()=>{f<l&&c()},s+1),e.addEventListener(u,h)}function BA(e,t){const r=window.getComputedStyle(e),n=d=>(r[d]||"").split(", "),i=n(`${xn}Delay`),a=n(`${xn}Duration`),o=xg(i,a),s=n(`${Ka}Delay`),l=n(`${Ka}Duration`),u=xg(s,l);let f=null,c=0,h=0;t===xn?o>0&&(f=xn,c=o,h=a.length):t===Ka?u>0&&(f=Ka,c=u,h=l.length):(c=Math.max(o,u),f=c>0?o>u?xn:Ka:null,h=f?f===xn?a.length:l.length:0);const v=f===xn&&/\b(transform|all)(,|$)/.test(n(`${xn}Property`).toString());return{type:f,timeout:c,propCount:h,hasTransform:v}}function xg(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>bg(r)+bg(e[n])))}function bg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function NA(){return document.body.offsetHeight}function FA(e,t,r){const n=e[jo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const wg=Symbol("_vod"),zA=Symbol("_vsh"),HA=Symbol(""),VA=/(^|;)\s*display\s*:/;function GA(e,t,r){const n=e.style,i=Zt(r);let a=!1;if(r&&!i){if(t)if(Zt(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&El(n,s,"")}else for(const o in t)r[o]==null&&El(n,o,"");for(const o in r)o==="display"&&(a=!0),El(n,o,r[o])}else if(i){if(t!==r){const o=n[HA];o&&(r+=";"+o),n.cssText=r,a=VA.test(r)}}else t&&e.removeAttribute("style");wg in e&&(e[wg]=a?n.display:"",e[zA]&&(n.display="none"))}const Sg=/\s*!important$/;function El(e,t,r){if(at(r))r.forEach(n=>El(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=UA(e,t);Sg.test(r)?e.setProperty(Ji(n),r.replace(Sg,""),"important"):e[n]=r}}const Tg=["Webkit","Moz","ms"],Gf={};function UA(e,t){const r=Gf[t];if(r)return r;let n=un(t);if(n!=="filter"&&n in e)return Gf[t]=n;n=Jv(n);for(let i=0;i<Tg.length;i++){const a=Tg[i]+n;if(a in e)return Gf[t]=a}return t}const Cg="http://www.w3.org/1999/xlink";function Ag(e,t,r,n,i,a=BT(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Cg,t.slice(6,t.length)):e.setAttributeNS(Cg,t,r):r==null||a&&!B_(r)?e.removeAttribute(t):e.setAttribute(t,a?"":$n(r)?String(r):r)}function WA(e,t,r,n){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?F1(r):r);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,s=r==null?e.type==="checkbox"?"on":"":String(r);(o!==s||!("_value"in e))&&(e.value=s),r==null&&e.removeAttribute(t),e._value=r;return}let a=!1;if(r===""||r==null){const o=typeof e[t];o==="boolean"?r=B_(r):r==null&&o==="string"?(r="",a=!0):o==="number"&&(r=0,a=!0)}try{e[t]=r}catch{}a&&e.removeAttribute(t)}function YA(e,t,r,n){e.addEventListener(t,r,n)}function $A(e,t,r,n){e.removeEventListener(t,r,n)}const Dg=Symbol("_vei");function XA(e,t,r,n,i=null){const a=e[Dg]||(e[Dg]={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=qA(t);if(n){const u=a[t]=ZA(n,i);YA(e,s,u,l)}else o&&($A(e,s,o,l),a[t]=void 0)}}const Mg=/(?:Once|Passive|Capture)$/;function qA(e){let t;if(Mg.test(e)){t={};let n;for(;n=e.match(Mg);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ji(e.slice(2)),t]}let Uf=0;const KA=Promise.resolve(),jA=()=>Uf||(KA.then(()=>Uf=0),Uf=Date.now());function ZA(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Cr(JA(n,r.value),t,5,[n])};return r.value=e,r.attached=jA(),r}function JA(e,t){if(at(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 Eg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,QA=(e,t,r,n,i,a)=>{const o=i==="svg";t==="class"?FA(e,n,o):t==="style"?GA(e,r,n):Mu(t)?Kv(t)||XA(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):t2(e,t,n,o))?(WA(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ag(e,t,n,o,a,t!=="value")):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ag(e,t,n,o))};function t2(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Eg(t)&&vt(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Eg(t)&&Zt(r)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Zt(r)))}const e2=["ctrl","shift","alt","meta"],r2={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)=>e2.some(r=>e[`${r}Key`]&&!t.includes(r))},Pg=(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=r2[t[o]];if(s&&s(i,t))return}return e(i,...a)})},n2=ae({patchProp:QA},PA);let Lg;function H1(){return Lg||(Lg=JC(n2))}const Rg=(...e)=>{H1().render(...e)},i2=(...e)=>{const t=H1().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=o2(n);if(!i)return;const a=t._component;!vt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,a2(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function a2(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function o2(e){return Zt(e)?document.querySelector(e):e}const s2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA11JREFUWEfFl12IVVUUx3//ssBIhDQlSx8kJLAs6UUoRSUV9cHIslAaoXwRCkEag1F8EAv8QBAFX1IoMdLJwAdLHDGxgl4kv4IQ8cGPQpkCKepBx9X+yz5xuTP3nnNmEtfLuZy7916/tfb6OuI+i+6zfmoDRMRkYC4wFRiTDbgB/AQclfRzHaMqA0TEc8BaYEaJgpPAR5LOVQGpBBARy4CP08EPATeT9YcAK7qalTyVwRYBIxPoLaBL0r4yiFKAiFgBbMgH7Qa2SjJEP4kIK/8AeDf/uV7SJ+0g2gJExDTgywTwANBZxSIryx7bAtwBXpf0YyuIlgAR8SDQAzwDdEtaVRySwVYCz+d3Z4BdjYoiYjvwBvALMEdS30AQ7QBeAT4DrqX7ni3pz2ydQdZAvwwKYLMkK7YXRqS4OA48CXRIOlYXYCfwGrBTkgPQh/pKvspBZhd350NtaScwDFhceCIiuoD3vEeSn/2knQe+Tx6YCCyR5N8G+NTudEZIMuB/EhFWYIU9kpbn9S8DB5IHLiUP+HctgCuA4+BpSX/nA0/n4jNV0vUmgLG5GN2Q9EJe/whwEeiTNL4uwK95w5Tkvt5BAjwOOECRNK4uwNl0/6OBmZIuDPIKJqX9J1Ic9EqaUhdgPzAdWCnJla8IwoPAbaBKELoy7gK+k/RmXYB3UlRvtAXJA0uLzRFRKQ0z8Of2YAJeJ2lPXYDHAFewRxszocETZYWoyIC/gGmS/qgFkBUVqXU5F6O72VAmEeHodxGaMFDKNu4v6wXufodTP3gW2CvpwzLlGXwT8HbqA+eBhZLcHQeUKt3QveBIsuRhYKkkR3VLiQjfue/eSudJci9oKaUATVfxW76Kdu3Yrn+izPUFUVUAt2On4ovAQUnvD2RSROxwLwBOAa+26oCVY6BxYUS4L7g9D/fAIembpv/nAx5Y/snt91KVeKnkgeKgiChqw++5QvrpAjUqVzw/W+Z87TRs3hARBnZ3ewn4WpLHNQN47FqQLP8h1wzPBpWklgeyMg+gDjQXqCIWfPcuOB5cikH13gBkiLeAbXlC9isPo6slfVFJa8Oi2h5oiAePax7bLMckddRV7vVDAfBX0bdZ6SxJ/jqqLYMGyFdx99NssMqH5IHaprbYMCQP/B8Q/wLjj1YwLbjPtQAAAABJRU5ErkJggg==",l2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAApZJREFUWEfFl02ITmEUx39/HxvZWPlYUJiljQWR2UgG2VGUWWjCQkpiUhbEghglH1kIWRDKUvlINkQsZmOhZBQLHysbY4XjPTkz7lx37vPcaXSfuou3+7zP+T3n/M/HFS0vtWyfRgBmtgRYBywH5sTjd/gczwvgvqRXuRfLAjCzjcBBYFHmwUPASUl3U/trAcxsPnARWBoHfQIeAI+A93Frf+XeWACsAXqAubF/ENgt6cN4IOMCmNkK4DIwC/gCnAZuSfpZdyszmwpsBQ4As4GvwA5Jz6v+VwkQxm8D04CHwB5J31LuLL43s5nABWAt8APYUgXxD0C4/V7c/ApwRNKvJsZH9prZFOAY0BeeWF8ORxWAC8dj7jfvqzNuZh/dmKR54wEGxNXwxKAkF/ToGgMQar8UMe9OuT0HwC1FOJ6EJnYVs6MM4Js81fol3Ui5PRcgILYBA8CQpO6Rs0cBosh4inmqLUupPQ5NhqCgB8+Ol5GiPSPFqgjQD+wDrkk6lLp9U4DYfxzYDpyR5N74W4rN7E5HeCuBXkmP/xPAauB6R5DPJG0uAzwFFgIuPi+lydVEA+EB15fr7J2kVWWAt8AMoEvScNL6H3Vna6CQDW+A75IWTwaA94PpwHlJJ1LQkY4OMNzJsq7JCMEGwOuGVzzvfmfrIMysNgSNRRhu3QScC0EfluQNrHKZWa0IG6dhIcd7O/o5Fb/3S7pZRWBmtWno006jQlQ0YmY7O1446tr0uUDS69L7+kIU7mxUisu3NLO9LkpJPjuMWWZWX4oDwDtVdjNKqb4QIp8N0s0oILLbcQ5Ao3YcAD4HtjeQBITPg+2MZIW4tTeUFiDaG8tLOdzOh0lFLrfzaZaTbhPdk/VtONHDc/73G/EbYDBWEQRoAAAAAElFTkSuQmCC",V1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAdNJREFUSEut1r9Lw1AQB/DvvVJt0UGwDiIIbl0EsR1EFGx1cVDRP6AojqKLk1tHN1HcC26ODiIKtoKV4tBV3ARxUBBBEEqF5iTR1iZtfrxrM2TK5ZN7791dCIIruZ3PGAanlofSm9ksGYJXgHSDTLTGnANDgehkJZbakOBasB1FFYxeKR4YbkYVYQ9KFY0aXwDcL8EDwU60fDy/b25RYqcwI8V94XYoM4cBDBLRqxT3hF3RCk4BTIAwR1F6luCusCfKvGpVA9GTFG8LB0LrdSjEW2AttAPcBotQId6AO0IFuAV3BdXEqauoBk6TW9c5BtZBqCqlFspHqSIzD6OCOzCP6Q6RvzL7hsISRegqsVuIcZVvmTkOwkMkHJ0tHUx/UDbL6uy9kANzBqAvFaJFC6/wKBg32jiRia5RhM5/USPPjHET7Qn1pe8Pp96sFmDeuoYHRBtwV3AN1AZ3hGuiLbAIF6BtYS1ciLrCgXBgJMjpdStHz3nsedoJ8f86bV8yXj3A9w/EDbd+fTzq1K/x+MJuy44wHt2agx/qucfOYGfmRHipt8HmjhQE1YJbM7f6nq0NBkW1YRsOTkoybQwwna+sP2su++VnacCcMpJ4UcZSyBn3A4wolT3bTCMbAAAAAElFTkSuQmCC",G1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAUCAYAAADY6P5TAAAAAXNSR0IArs4c6QAAAShJREFUWEfl2DsOgkAQBuBdlUoTPQGJlnISLsAZOAn3sPUSUlDa6kmsNDAGBMJjH8MyLDFQs8l8/AOzC2fI6/IA9/1Jo72zDgOPv5DLyG87X+/uCrIo49vwGXjaOjimghJ3A4AT4yw5OBt/DmSO4ywr6uCcJcB2vg6pBbZw1dOYAdnE1WUgkEqgEDcDUoTDIqXAEhcDwFHaxhaS/OHSGIBJ61C1qxCIwllIEoPTJdkDDsJNiByCUyFbQCPcBEgTnAxZA0fhCJFjcCJkASTBESApcF3kMoBkKRKMDYoUm2NjOR+ZqneN3keC5LqbCZMkRQN/eYN+UJITJGeS5OCtGgppAVfVoWpX3bEJe1xqb7ot4lRIHS5fqwX2RsgMOBESg0MDG8i/+2XxBeihqo6WfP/pAAAAAElFTkSuQmCC",u2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAd1JREFUSEu9ljuvTVEUhb/RqPwAEQpChISgUii4ohESFW7UQtAg0VBoNBIUHkEvblQSoRGiUKgQEgVCQfADNKrhTpnrZtln73P2vskxu7Me81t7zLnGOmLKoT75ba8AtgDLc/134LWkb5P2jwXYPgYcB1a3JDLwBbgp6VYXqBVgey3wCFgGPAPmgOeSfkYi2zG+EzgIzAA/gL2SPjZBIwDbu4D7QMhwWNLbcTLY3gTcTfkOSHpar/8HkCd/CbyStHuSvvW87SfAVmBb/SVNwAfgt6SNQ5KnbJErvnaJpHVl/wIgC3oJ2F7LYntGUtRhJJpzKdcL4GwpfA0I+mdJ+0umSAA8Bi5LOteQ5CJwBthTH8D2g+g6SVEb/gJsrwTeA0ckRccshO1IdBK4XiBtY9WhZucLfme+UTZI+loA+4B7wJrSih2Qqzl+qgY21kYLfwJmJT0sgKMpw9Ku4tq+AJzI+RuS4ndr2P4V8km6PRQQUkWEXIMAfSW6koDTQyXqU+Rrks5nU4wUvqXI68MM/0+b5qnCOad30RKyaKvI/e86rSIXhE1Pz+wSMj27rjqhz4OzAzg0+MFpXPvyZK4qvlXb1KKfzOb9TzPc3Hj034SZddlFGe/1r2JSknHzfwADVR4oQ1sMJAAAAABJRU5ErkJggg==",f2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA+CAYAAAAiVZsnAAAAAXNSR0IArs4c6QAABR9JREFUWEeFlzuMVUUYx38z5z7OfbDLIhFEUaJAQBQMBIEEjSRIY0OhhRY0WmhhY6GFjY2FFlrY0FBooYWNFjZKogkEIYhZQQJBiLgJ8giysFz23t17z4z5ZuacvbuwZyaZ3Htyzvzmm//MfA/Fos0qbHip5FflT/NGuFeuWTv3H6pIv+1+YSl9KLr/XnmgHzQ3WJ6r9HorSdJHMDzs3mtukPWukqbXAshbo5SYWcwsgxOgzoDN9M12rH02fHgGzG/cq5xmOT0gk2m9BR4gXQMVoM1sthul9mLUrrC+X8nsYZrJUaADDAAjkBwgg2X2Gh2aVNmCNS9i7XPBgnEyfQTLOG2mgdlghRkGiGACqKN5nMTsAJ4JEv9Jpk9gmKDNTACIsAVAZhdAnQ41eowxyi6MeT6IfJJOcoyUSVkgOIgAstwCb/4UKX0aMLuEVm0XylkBVp+gzzFm6VCly4gT0i0jB4h4YkFKjyUMaFPJdqDU9gA4yYATVOiQchccQCwY3A+YYhkJLUy2nVqyFWsUxp7CJiepcI86t8oBHVagaaCzrSi1NVjwOwbpXdpcLwfc41EPMLKFfhszxlF63AFaXCkHTLMGRYo1cgq3OEDCHxh9BkuPJpdjGqxDy1kwm9D4o2w4g9FnMcwwwl/lgC4byahTZQOGTeEynaXPeRJmaHAuJuJmFDUqrMeap1FaLs05BlzAMkub0zERt6GoYliLNhv8XdDnsVzE0qfFqZgGO6lQwZqnsKx3d9RyAaUvuVvY5Hg54C4vUCFBswbLWndrLZfI9GUsA5ZwJCbiHjKqJKzGmifR2pLxN5YJEgY0+Dkm4j5nQWYeI9FPhIP0D3DFWdDmx5iIr7ijk5hVoFd7x6MnyLjqzmSLH2IncT+ZA6wEVgWH8i+ZviZ20eS7GOA17x/NCtACkaN4DbRcIkOTb2MavOEA2ixHa+/WjbmB0TcdoM3XsV04gEGjeAjN8nAXbqL4D4OlxZcxEd9ybl4zhmKZ9wfcwjCJxtDgUEyDt90SLKMoMxYAk1h9xwGaHIwB3nUWKEawZjTchTsoptwSmnwRA7znI5ZpAyNhG6dQWiKSAD6LafBB0KCJchBx6x2Mi0gi4iexXfjQW0ATa1repekOlq4DNPg4BvgoaCB+sRE06Dp/6AHyviQuTLsZJFpLjKwHDSSUySAJPWJhCaDHp2HramA8wDCL0hLKZGHvxyz43HkhCXXW1rwFVgASyiwpskulFsg+S6tgQ46kfBwMS5BzUgKY4SDGaZCAlagtksjgzFlWR05qCaDLobAEn7WIU1dkGOdZoMGbsSV85Sct8iZZucuHwhIOxADfBA3kx8vp/ZpvKa/HAOJx8hbyyPAoTymvxgDfF+YOkYYs2B8DiNddvKWI1y7dRvH7i7c6+2IAiTwLpfPP/hzsiS3haEjB56wYTvRTdscsOI5dgJirHMSCnTGAxP8yDbbFAJKBlAE2xwDn5pc6C1h1NsYAF++bfliDGuseBJhLtutILrB4m+GJByXbPt2/Q0rKT0WdMDyzR56ly8uMFiexyNbliFSZpM4YK5jhHWAvitXBlAkUh6lykEmuM1bUC0XBIfdMUn7xgTWmnUeukobr3HPupE+zqFbEwYqXKmqm4aLL14weOOwPZEBePw4VXWKjr9zk47z4Ek0SbgfAUudQpNTLuzwbXzfOAfLrksPyctB9EXru2ryHKgDzIXkJrPgl3ImXCkAOW1D6Du/6/Br6/vMQaub8xf8x38Imq19V1gAAAABJRU5ErkJggg==",c2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAVCAYAAAAq05ytAAAAAXNSR0IArs4c6QAAA3FJREFUSEvNlttrHGUYh5/3/Xb2lNQ2lWjrYhGtFmuteAKhiBVUEAW9CYj+Ab3wylspNIHirVde+Acowt5YaBFUsCIFwRNqjbQekEpstdhYTfYws9/3NvNl0nZXs91EKPlgdnbZmW+e+f3ek7DmZcI0wiGgicTbpwY2aRa/pzBmlr5PYyC2lkctbzxsmQkzEUT4AqWGUEaoojiE7cDvCFpABoybMc4CHqNDIMVoYzxIYAbj0BKwDAddBeyyKsIsjnoEcvyDo4xjAqWFQ1HGIpDQLsBquToYixiBQB3PfITzbMLTxtMisBsfIVdRcwCsAHoMZT/KWUpUSShRohuREpQSWTzneuWHkqEkhewZkJDrlh+egCchI9DDk1EhpUePDhnb6XGcwMeEQcArYLllTZSpCJREoCx+VvBUcVQps00T7pf8fYWGQUNgAiHXqRbRcu2MtsG8wBzGnCmzIeMrUs7h6eAiVpeETgGY0SQwtWR1YfEy2BUox3nKVKnSo07CGMod6ngW4SkxtgDfGHyHcEaE37xwHiJMpwCrAjVnTJpxC8YOgXuAvSb8hfF+8Bwl8BMZi5RoRbxJUpr4FbgVMAVyqAq1GBWbKHGnK/Eywj6EYx4+BE5eK1eu8f8eB09gPINxwvd4gx4/xOht02KSbkwZkSBgwkc4dlFmnDqBzVrmeVEOGrwdHO9gtPoeaOxU4VEJ3GewQ4QbgUpxTdeMPwXOmPJ1MD5B+LHvfqGunhcEXrTA4ZDyLspFFmhxipTH8RJtnCVhG7kFm12dJ014TYRXvHC6b8NAwxkHzXG7BD435VRwMY7mobASqggT6mlIYJcpD4nnZy8cRpm7ej9n3GXG62K86lt8AFzkHB12kwnTprxEwk2M0WWr3sAR4M2gnBi0RUNMj0+D8h4sZdJoSzXwNIFHQp5aA0sD+4AD4W+eo8IF/mCRt3IwM+UXylQYZ5ytrsy33rEfI70eYHm5dp7jPuVeFrhAlwVuI12TYlxtpfGZCaeDMIcMWGlMqNGQ3Crh4dWszF98mGKjx9iKhP83+It9hsfYerJytNha/aqRsnK5wG7EOraOyq+cxPh1pMov3CqBPeur/P1taXivdDwgcPe/eiVFr1xuT/29Er4Pni/X3isvR8NGnC76e87KlLpR5rH/SKSNNcEOnbWvy8x/CeSXSDSNMROpAAAAAElFTkSuQmCC";function U1(e,t){return function(){return e.apply(t,arguments)}}const{toString:h2}=Object.prototype,{getPrototypeOf:pd}=Object,Gu=(e=>t=>{const r=h2.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Dr=e=>(e=e.toLowerCase(),t=>Gu(t)===e),Uu=e=>t=>typeof t===e,{isArray:Ha}=Array,Zo=Uu("undefined");function v2(e){return e!==null&&!Zo(e)&&e.constructor!==null&&!Zo(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const W1=Dr("ArrayBuffer");function d2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&W1(e.buffer),t}const p2=Uu("string"),Ke=Uu("function"),Y1=Uu("number"),Wu=e=>e!==null&&typeof e=="object",g2=e=>e===!0||e===!1,Pl=e=>{if(Gu(e)!=="object")return!1;const t=pd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},m2=Dr("Date"),y2=Dr("File"),_2=Dr("Blob"),x2=Dr("FileList"),b2=e=>Wu(e)&&Ke(e.pipe),w2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=Gu(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},S2=Dr("URLSearchParams"),[T2,C2,A2,D2]=["ReadableStream","Request","Response","Headers"].map(Dr),M2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ys(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ha(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(n=0;n<o;n++)s=a[n],t.call(null,e[s],s,e)}}function $1(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Di=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,X1=e=>!Zo(e)&&e!==Di;function Eh(){const{caseless:e}=X1(this)&&this||{},t={},r=(n,i)=>{const a=e&&$1(t,i)||i;Pl(t[a])&&Pl(n)?t[a]=Eh(t[a],n):Pl(n)?t[a]=Eh({},n):Ha(n)?t[a]=n.slice():t[a]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ys(arguments[n],r);return t}const E2=(e,t,r,{allOwnKeys:n}={})=>(ys(t,(i,a)=>{r&&Ke(i)?e[a]=U1(i,r):e[a]=i},{allOwnKeys:n}),e),P2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),L2=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},R2=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&pd(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},I2=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},O2=e=>{if(!e)return null;if(Ha(e))return e;let t=e.length;if(!Y1(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},k2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pd(Uint8Array)),B2=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},N2=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},F2=Dr("HTMLFormElement"),z2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),Ig=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),H2=Dr("RegExp"),q1=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ys(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},V2=e=>{q1(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},G2=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Ha(e)?n(e):n(String(e).split(t)),r},U2=()=>{},W2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Wf="abcdefghijklmnopqrstuvwxyz",Og="0123456789",K1={DIGIT:Og,ALPHA:Wf,ALPHA_DIGIT:Wf+Wf.toUpperCase()+Og},Y2=(e=16,t=K1.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function $2(e){return!!(e&&Ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const X2=e=>{const t=new Array(10),r=(n,i)=>{if(Wu(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const a=Ha(n)?[]:{};return ys(n,(o,s)=>{const l=r(o,i+1);!Zo(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},q2=Dr("AsyncFunction"),K2=e=>e&&(Wu(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),j1=((e,t)=>e?setImmediate:t?((r,n)=>(Di.addEventListener("message",({source:i,data:a})=>{i===Di&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Di.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke(Di.postMessage)),j2=typeof queueMicrotask<"u"?queueMicrotask.bind(Di):typeof process<"u"&&process.nextTick||j1,O={isArray:Ha,isArrayBuffer:W1,isBuffer:v2,isFormData:w2,isArrayBufferView:d2,isString:p2,isNumber:Y1,isBoolean:g2,isObject:Wu,isPlainObject:Pl,isReadableStream:T2,isRequest:C2,isResponse:A2,isHeaders:D2,isUndefined:Zo,isDate:m2,isFile:y2,isBlob:_2,isRegExp:H2,isFunction:Ke,isStream:b2,isURLSearchParams:S2,isTypedArray:k2,isFileList:x2,forEach:ys,merge:Eh,extend:E2,trim:M2,stripBOM:P2,inherits:L2,toFlatObject:R2,kindOf:Gu,kindOfTest:Dr,endsWith:I2,toArray:O2,forEachEntry:B2,matchAll:N2,isHTMLForm:F2,hasOwnProperty:Ig,hasOwnProp:Ig,reduceDescriptors:q1,freezeMethods:V2,toObjectSet:G2,toCamelCase:z2,noop:U2,toFiniteNumber:W2,findKey:$1,global:Di,isContextDefined:X1,ALPHABET:K1,generateString:Y2,isSpecCompliantForm:$2,toJSONObject:X2,isAsyncFn:q2,isThenable:K2,setImmediate:j1,asap:j2};function ht(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}O.inherits(ht,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.status}}});const Z1=ht.prototype,J1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{J1[e]={value:e}});Object.defineProperties(ht,J1);Object.defineProperty(Z1,"isAxiosError",{value:!0});ht.from=(e,t,r,n,i,a)=>{const o=Object.create(Z1);return O.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),ht.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Z2=null;function Ph(e){return O.isPlainObject(e)||O.isArray(e)}function Q1(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function kg(e,t,r){return e?e.concat(t).map(function(i,a){return i=Q1(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function J2(e){return O.isArray(e)&&!e.some(Ph)}const Q2=O.toFlatObject(O,{},null,function(t){return/^is[A-Z]/.test(t)});function Yu(e,t,r){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=O.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!O.isUndefined(p[g])});const n=r.metaTokens,i=r.visitor||f,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(t);if(!O.isFunction(i))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(O.isDate(d))return d.toISOString();if(!l&&O.isBlob(d))throw new ht("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(d)||O.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,g,p){let m=d;if(d&&!p&&typeof d=="object"){if(O.endsWith(g,"{}"))g=n?g:g.slice(0,-2),d=JSON.stringify(d);else if(O.isArray(d)&&J2(d)||(O.isFileList(d)||O.endsWith(g,"[]"))&&(m=O.toArray(d)))return g=Q1(g),m.forEach(function(x,b){!(O.isUndefined(x)||x===null)&&t.append(o===!0?kg([g],b,a):o===null?g:g+"[]",u(x))}),!1}return Ph(d)?!0:(t.append(kg(p,g,a),u(d)),!1)}const c=[],h=Object.assign(Q2,{defaultVisitor:f,convertValue:u,isVisitable:Ph});function v(d,g){if(!O.isUndefined(d)){if(c.indexOf(d)!==-1)throw Error("Circular reference detected in "+g.join("."));c.push(d),O.forEach(d,function(m,y){(!(O.isUndefined(m)||m===null)&&i.call(t,m,O.isString(y)?y.trim():y,g,h))===!0&&v(m,g?g.concat(y):[y])}),c.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Bg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function gd(e,t){this._pairs=[],e&&Yu(e,this,t)}const tx=gd.prototype;tx.append=function(t,r){this._pairs.push([t,r])};tx.toString=function(t){const r=t?function(n){return t.call(this,n,Bg)}:Bg;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function tD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ex(e,t,r){if(!t)return e;const n=r&&r.encode||tD,i=r&&r.serialize;let a;if(i?a=i(t,r):a=O.isURLSearchParams(t)?t.toString():new gd(t,r).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Ng{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){O.forEach(this.handlers,function(n){n!==null&&t(n)})}}const rx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eD=typeof URLSearchParams<"u"?URLSearchParams:gd,rD=typeof FormData<"u"?FormData:null,nD=typeof Blob<"u"?Blob:null,iD={isBrowser:!0,classes:{URLSearchParams:eD,FormData:rD,Blob:nD},protocols:["http","https","file","blob","url","data"]},md=typeof window<"u"&&typeof document<"u",Lh=typeof navigator=="object"&&navigator||void 0,aD=md&&(!Lh||["ReactNative","NativeScript","NS"].indexOf(Lh.product)<0),oD=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sD=md&&window.location.href||"http://localhost",lD=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:md,hasStandardBrowserEnv:aD,hasStandardBrowserWebWorkerEnv:oD,navigator:Lh,origin:sD},Symbol.toStringTag,{value:"Module"})),Fe={...lD,...iD};function uD(e,t){return Yu(e,new Fe.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return Fe.isNode&&O.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function fD(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function cD(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}function nx(e){function t(r,n,i,a){let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&O.isArray(i)?i.length:o,l?(O.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!O.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&O.isArray(i[o])&&(i[o]=cD(i[o])),!s)}if(O.isFormData(e)&&O.isFunction(e.entries)){const r={};return O.forEachEntry(e,(n,i)=>{t(fD(n),i,r,0)}),r}return null}function hD(e,t,r){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const _s={transitional:rx,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=O.isObject(t);if(a&&O.isHTMLForm(t)&&(t=new FormData(t)),O.isFormData(t))return i?JSON.stringify(nx(t)):t;if(O.isArrayBuffer(t)||O.isBuffer(t)||O.isStream(t)||O.isFile(t)||O.isBlob(t)||O.isReadableStream(t))return t;if(O.isArrayBufferView(t))return t.buffer;if(O.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return uD(t,this.formSerializer).toString();if((s=O.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Yu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),hD(t)):t}],transformResponse:[function(t){const r=this.transitional||_s.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(O.isResponse(t)||O.isReadableStream(t))return t;if(t&&O.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?ht.from(s,ht.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fe.classes.FormData,Blob:Fe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],e=>{_s.headers[e]={}});const vD=O.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dD=e=>{const t={};let r,n,i;return e&&e.split(`
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&vD[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Fg=Symbol("internals");function ja(e){return e&&String(e).trim().toLowerCase()}function Ll(e){return e===!1||e==null?e:O.isArray(e)?e.map(Ll):String(e)}function pD(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const gD=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yf(e,t,r,n,i){if(O.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!O.isString(t)){if(O.isString(n))return t.indexOf(n)!==-1;if(O.isRegExp(n))return n.test(t)}}function mD(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function yD(e,t){const r=O.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}class ze{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const f=ja(l);if(!f)throw new Error("header name must be a non-empty string");const c=O.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=Ll(s))}const o=(s,l)=>O.forEach(s,(u,f)=>a(u,f,l));if(O.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(O.isString(t)&&(t=t.trim())&&!gD(t))o(dD(t),r);else if(O.isHeaders(t))for(const[s,l]of t.entries())a(l,s,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=ja(t),t){const n=O.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return pD(i);if(O.isFunction(r))return r.call(this,i,n);if(O.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ja(t),t){const n=O.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Yf(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=ja(o),o){const s=O.findKey(n,o);s&&(!r||Yf(n,n[s],s,r))&&(delete n[s],i=!0)}}return O.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||Yf(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return O.forEach(this,(i,a)=>{const o=O.findKey(n,a);if(o){r[o]=Ll(i),delete r[a];return}const s=t?mD(a):String(a).trim();s!==a&&delete r[a],r[s]=Ll(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return O.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&O.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[Fg]=this[Fg]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=ja(o);n[s]||(yD(i,o),n[s]=!0)}return O.isArray(t)?t.forEach(a):a(t),this}}ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(ze.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});O.freezeMethods(ze);function $f(e,t){const r=this||_s,n=t||r,i=ze.from(n.headers);let a=n.data;return O.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function ix(e){return!!(e&&e.__CANCEL__)}function Va(e,t,r){ht.call(this,e??"canceled",ht.ERR_CANCELED,t,r),this.name="CanceledError"}O.inherits(Va,ht,{__CANCEL__:!0});function ax(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ht("Request failed with status code "+r.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function _D(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xD(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=n[a];o||(o=u),r[i]=l,n[i]=u;let c=a,h=0;for(;c!==i;)h+=r[c++],c=c%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const v=f&&u-f;return v?Math.round(h*1e3/v):void 0}}function bD(e,t){let r=0,n=1e3/t,i,a;const o=(u,f=Date.now())=>{r=f,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const f=Date.now(),c=f-r;c>=n?o(u,f):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-c)))},()=>i&&o(i)]}const Jl=(e,t,r=3)=>{let n=0;const i=xD(50,250);return bD(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),f=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},r)},zg=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Hg=e=>(...t)=>O.asap(()=>e(...t)),wD=Fe.hasStandardBrowserEnv?function(){const t=Fe.navigator&&/(msie|trident)/i.test(Fe.navigator.userAgent),r=document.createElement("a");let n;function i(a){let o=a;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){const s=O.isString(o)?i(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),SD=Fe.hasStandardBrowserEnv?{write(e,t,r,n,i,a){const o=[e+"="+encodeURIComponent(t)];O.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),O.isString(n)&&o.push("path="+n),O.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function TD(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function CD(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ox(e,t){return e&&!TD(t)?CD(e,t):t}const Vg=e=>e instanceof ze?{...e}:e;function Vi(e,t){t=t||{};const r={};function n(u,f,c){return O.isPlainObject(u)&&O.isPlainObject(f)?O.merge.call({caseless:c},u,f):O.isPlainObject(f)?O.merge({},f):O.isArray(f)?f.slice():f}function i(u,f,c){if(O.isUndefined(f)){if(!O.isUndefined(u))return n(void 0,u,c)}else return n(u,f,c)}function a(u,f){if(!O.isUndefined(f))return n(void 0,f)}function o(u,f){if(O.isUndefined(f)){if(!O.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function s(u,f,c){if(c in t)return n(u,f);if(c in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,f)=>i(Vg(u),Vg(f),!0)};return O.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=l[f]||i,h=c(e[f],t[f],f);O.isUndefined(h)&&c!==s||(r[f]=h)}),r}const sx=e=>{const t=Vi({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=ze.from(o),t.url=ex(ox(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(O.isFormData(r)){if(Fe.hasStandardBrowserEnv||Fe.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...f]=l?l.split(";").map(c=>c.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...f].join("; "))}}if(Fe.hasStandardBrowserEnv&&(n&&O.isFunction(n)&&(n=n(t)),n||n!==!1&&wD(t.url))){const u=i&&a&&SD.read(a);u&&o.set(i,u)}return t},AD=typeof XMLHttpRequest<"u",DD=AD&&function(e){return new Promise(function(r,n){const i=sx(e);let a=i.data;const o=ze.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,f,c,h,v,d;function g(){v&&v(),d&&d(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let p=new XMLHttpRequest;p.open(i.method.toUpperCase(),i.url,!0),p.timeout=i.timeout;function m(){if(!p)return;const x=ze.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:x,config:e,request:p};ax(function(T){r(T),g()},function(T){n(T),g()},w),p=null}"onloadend"in p?p.onloadend=m:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(m)},p.onabort=function(){p&&(n(new ht("Request aborted",ht.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new ht("Network Error",ht.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||rx;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),n(new ht(b,w.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,e,p)),p=null},a===void 0&&o.setContentType(null),"setRequestHeader"in p&&O.forEach(o.toJSON(),function(b,w){p.setRequestHeader(w,b)}),O.isUndefined(i.withCredentials)||(p.withCredentials=!!i.withCredentials),s&&s!=="json"&&(p.responseType=i.responseType),u&&([h,d]=Jl(u,!0),p.addEventListener("progress",h)),l&&p.upload&&([c,v]=Jl(l),p.upload.addEventListener("progress",c),p.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(f=x=>{p&&(n(!x||x.type?new Va(null,e,p):x),p.abort(),p=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const y=_D(i.url);if(y&&Fe.protocols.indexOf(y)===-1){n(new ht("Unsupported protocol "+y+":",ht.ERR_BAD_REQUEST,e));return}p.send(a||null)})},MD=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const f=u instanceof Error?u:this.reason;n.abort(f instanceof ht?f:new Va(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new ht(`timeout ${t} of ms exceeded`,ht.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>O.asap(s),l}},ED=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},PD=async function*(e,t){for await(const r of LD(e))yield*ED(r,t)},LD=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Gg=(e,t,r,n)=>{const i=PD(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await i.next();if(u){s(),l.close();return}let c=f.byteLength;if(r){let h=a+=c;r(h)}l.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},$u=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lx=$u&&typeof ReadableStream=="function",RD=$u&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ux=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ID=lx&&ux(()=>{let e=!1;const t=new Request(Fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ug=64*1024,Rh=lx&&ux(()=>O.isReadableStream(new Response("").body)),Ql={stream:Rh&&(e=>e.body)};$u&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ql[t]&&(Ql[t]=O.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new ht(`Response type '${t}' is not supported`,ht.ERR_NOT_SUPPORT,n)})})})(new Response);const OD=async e=>{if(e==null)return 0;if(O.isBlob(e))return e.size;if(O.isSpecCompliantForm(e))return(await new Request(Fe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(O.isArrayBufferView(e)||O.isArrayBuffer(e))return e.byteLength;if(O.isURLSearchParams(e)&&(e=e+""),O.isString(e))return(await RD(e)).byteLength},kD=async(e,t)=>{const r=O.toFiniteNumber(e.getContentLength());return r??OD(t)},BD=$u&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:f,withCredentials:c="same-origin",fetchOptions:h}=sx(e);u=u?(u+"").toLowerCase():"text";let v=MD([i,a&&a.toAbortSignal()],o),d;const g=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let p;try{if(l&&ID&&r!=="get"&&r!=="head"&&(p=await kD(f,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),_;if(O.isFormData(n)&&(_=w.headers.get("content-type"))&&f.setContentType(_),w.body){const[T,C]=zg(p,Jl(Hg(l)));n=Gg(w.body,Ug,T,C)}}O.isString(c)||(c=c?"include":"omit");const m="credentials"in Request.prototype;d=new Request(t,{...h,signal:v,method:r.toUpperCase(),headers:f.normalize().toJSON(),body:n,duplex:"half",credentials:m?c:void 0});let y=await fetch(d);const x=Rh&&(u==="stream"||u==="response");if(Rh&&(s||x&&g)){const w={};["status","statusText","headers"].forEach(D=>{w[D]=y[D]});const _=O.toFiniteNumber(y.headers.get("content-length")),[T,C]=s&&zg(_,Jl(Hg(s),!0))||[];y=new Response(Gg(y.body,Ug,T,()=>{C&&C(),g&&g()}),w)}u=u||"text";let b=await Ql[O.findKey(Ql,u)||"text"](y,e);return!x&&g&&g(),await new Promise((w,_)=>{ax(w,_,{data:b,headers:ze.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(m){throw g&&g(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new ht("Network Error",ht.ERR_NETWORK,e,d),{cause:m.cause||m}):ht.from(m,m&&m.code,e,d)}}),Ih={http:Z2,xhr:DD,fetch:BD};O.forEach(Ih,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wg=e=>`- ${e}`,ND=e=>O.isFunction(e)||e===null||e===!1,fx={getAdapter:e=>{e=O.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let a=0;a<t;a++){r=e[a];let o;if(n=r,!ND(r)&&(n=Ih[(o=String(r)).toLowerCase()],n===void 0))throw new ht(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+a]=n}if(!n){const a=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since :
`+a.map(Wg).join(`
`):" "+Wg(a[0]):"as no adapter specified";throw new ht("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Ih};function Xf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Va(null,e)}function Yg(e){return Xf(e),e.headers=ze.from(e.headers),e.data=$f.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fx.getAdapter(e.adapter||_s.adapter)(e).then(function(n){return Xf(e),n.data=$f.call(e,e.transformResponse,n),n.headers=ze.from(n.headers),n},function(n){return ix(n)||(Xf(e),n&&n.response&&(n.response.data=$f.call(e,e.transformResponse,n.response),n.response.headers=ze.from(n.response.headers))),Promise.reject(n)})}const cx="1.7.7",yd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const $g={};yd.transitional=function(t,r,n){function i(a,o){return"[Axios v"+cx+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new ht(i(o," has been removed"+(r?" in "+r:"")),ht.ERR_DEPRECATED);return r&&!$g[o]&&($g[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};function FD(e,t,r){if(typeof e!="object")throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new ht("option "+a+" must be "+l,ht.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ht("Unknown option "+a,ht.ERR_BAD_OPTION)}}const Oh={assertOptions:FD,validators:yd},wn=Oh.validators;class Ii{constructor(t){this.defaults=t,this.interceptors={request:new Ng,response:new Ng}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Vi(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&Oh.assertOptions(n,{silentJSONParsing:wn.transitional(wn.boolean),forcedJSONParsing:wn.transitional(wn.boolean),clarifyTimeoutError:wn.transitional(wn.boolean)},!1),i!=null&&(O.isFunction(i)?r.paramsSerializer={serialize:i}:Oh.assertOptions(i,{encode:wn.function,serialize:wn.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&O.merge(a.common,a[r.method]);a&&O.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),r.headers=ze.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let f,c=0,h;if(!l){const d=[Yg.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,u),h=d.length,f=Promise.resolve(r);c<h;)f=f.then(d[c++],d[c++]);return f}h=s.length;let v=r;for(c=0;c<h;){const d=s[c++],g=s[c++];try{v=d(v)}catch(p){g.call(this,p);break}}try{f=Yg.call(this,v)}catch(d){return Promise.reject(d)}for(c=0,h=u.length;c<h;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=Vi(this.defaults,t);const r=ox(t.baseURL,t.url);return ex(r,t.params,t.paramsSerializer)}}O.forEach(["delete","get","head","options"],function(t){Ii.prototype[t]=function(r,n){return this.request(Vi(n||{},{method:t,url:r,data:(n||{}).data}))}});O.forEach(["post","put","patch"],function(t){function r(n){return function(a,o,s){return this.request(Vi(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Ii.prototype[t]=r(),Ii.prototype[t+"Form"]=r(!0)});class _d{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new Va(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new _d(function(i){t=i}),cancel:t}}}function zD(e){return function(r){return e.apply(null,r)}}function HD(e){return O.isObject(e)&&e.isAxiosError===!0}const kh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kh).forEach(([e,t])=>{kh[t]=e});function hx(e){const t=new Ii(e),r=U1(Ii.prototype.request,t);return O.extend(r,Ii.prototype,t,{allOwnKeys:!0}),O.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return hx(Vi(e,i))},r}const Qt=hx(_s);Qt.Axios=Ii;Qt.CanceledError=Va;Qt.CancelToken=_d;Qt.isCancel=ix;Qt.VERSION=cx;Qt.toFormData=Yu;Qt.AxiosError=ht;Qt.Cancel=Qt.CanceledError;Qt.all=function(t){return Promise.all(t)};Qt.spread=zD;Qt.isAxiosError=HD;Qt.mergeConfig=Vi;Qt.AxiosHeaders=ze;Qt.formToJSON=e=>nx(O.isHTMLForm(e)?new FormData(e):e);Qt.getAdapter=fx.getAdapter;Qt.HttpStatusCode=kh;Qt.default=Qt;function Bh(e,t){switch(e){case 400:t=t??"请求参数错误";break;case 401:t=t??"登录已过期";break;case 403:t=t??"没有权限";break;case 404:t=t??"资源或接口不存在";break;case 500:t=t??"服务器异常";break;default:t=t??`【${e}】: 未知异常!`;break}return t}function VD(e){return e}function GD(e){return Promise.reject(e)}function UD(e){const{data:t,status:r,statusText:n}=e;if((t==null?void 0:t.code)!==1){const i=(t==null?void 0:t.code)??r,a=Bh(i,(t==null?void 0:t.message)??n);return Promise.reject({code:i,message:a,error:t||e})}return Promise.resolve(t)}function WD(e){var a;if(!e||!e.response){const o=e==null?void 0:e.code,s=Bh(o,e.message);return Promise.reject({code:o,message:s,error:e})}const{data:t,status:r}=e.response,n=(t==null?void 0:t.code)??r,i=Bh(n,(t==null?void 0:t.message)??e.message);return Promise.reject({code:n,message:i,error:((a=e.response)==null?void 0:a.data)||e.response})}const YD="https://grain.gynhc.com";function $D(e={}){const t={timeout:12e3},r=Qt.create({...t,...e});return r.interceptors.request.use(VD,GD),r.interceptors.response.use(UD,WD),r}const qf=$D({baseURL:YD}),vx=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},XD={},qD={class:"loader absolute wh-full flex items-center j-c bg-[rgba(0,0,0,.5)] z-99 top-0 left-0 bottom-0 right-0"};function KD(e,t){return Ot(),$t("div",qD,t[0]||(t[0]=[S("span",{class:"ant-spin-dot"},[S("i"),S("i"),S("i"),S("i")],-1)]))}const jD=vx(XD,[["render",KD],["__scopeId","data-v-01350c5e"]]);function ZD(e){e.directive("loading",JD())}function JD(){let e=N1(jD);return{mounted(t,{value:r}){t.className.indexOf("relative")<0&&(t.className=t.className+=" relative");const n=Array.from(t.children).find(i=>i.className.indexOf("loader")>=0);if(r)Rg(e,t),t.append(e.el);else try{e.el&&n&&t.removeChild(n)}catch(i){console.log("remove err mounted",i)}},updated(t,{value:r}){const n=Array.from(t.children).find(i=>i.className.indexOf("loader")>=0);if(r)Rg(e,t),t.append(e.el);else try{e.el&&n&&t.removeChild(n)}catch{}}}}const Kf={getGranaryList:()=>qf.get("/api/index/granaryList"),getDetail:e=>qf.get("/api/index/granaryDetail",e),getContent:e=>qf.get("/api/index/contentDetail",e)};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Nh=function(e,t){return Nh=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])},Nh(e,t)};function q(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var QD=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),t5=function(){function e(){this.browser=new QD,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 t5;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(lt.wxa=!0,lt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?lt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(lt.node=!0,lt.svgSupported=!0):e5(navigator.userAgent,lt);function e5(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 xd=12,r5="sans-serif",Gi=xd+"px "+r5,n5=20,i5=100,a5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function o5(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)-n5)/i5;t[n]=i}return t}var s5=o5(a5),fn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=fn.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Gi),e.measureText(r);r=r||"",n=n||Gi;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||xd,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=s5[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}};function dx(e){for(var t in fn)e[t]&&(fn[t]=e[t])}var px=Wr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),gx=Wr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Ga=Object.prototype.toString,Xu=Array.prototype,l5=Xu.forEach,u5=Xu.filter,bd=Xu.slice,f5=Xu.map,Xg=(function(){}).constructor,Us=Xg?Xg.prototype:null,wd="__proto__",c5=2311;function Sd(){return c5++}function qu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ut(e){if(e==null||typeof e!="object")return e;var t=e,r=Ga.call(e);if(r==="[object Array]"){if(!Ma(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=ut(e[n])}}else if(gx[r]){if(!Ma(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(!px[r]&&!Ma(e)&&!Ia(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==wd&&(t[o]=ut(e[o]))}return t}function pt(e,t,r){if(!nt(t)||!nt(e))return r?ut(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==wd){var i=e[n],a=t[n];nt(a)&&nt(i)&&!Q(a)&&!Q(i)&&!Ia(a)&&!Ia(i)&&!Fh(a)&&!Fh(i)&&!Ma(a)&&!Ma(i)?pt(i,a,r):(r||!(n in e))&&(e[n]=ut(t[n]))}return e}function h5(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=pt(r,e[n],t);return r}function Y(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==wd&&(e[r]=t[r]);return e}function St(e,t,r){for(var n=Gt(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}var v5=fn.createCanvas;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 Td(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 Qe(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"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else St(e,t,r)}function Ee(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function A(e,t,r){if(e&&t)if(e.forEach&&e.forEach===l5)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 et(e,t,r){if(!e)return[];if(!t)return Ku(e);if(e.map&&e.map===f5)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 Wr(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 ee(e,t,r){if(!e)return[];if(!t)return Ku(e);if(e.filter&&e.filter===u5)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 d5(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function Gt(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 p5(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(bd.call(arguments)))}}var Lt=Us&&ft(Us.bind)?Us.call.bind(Us.bind):p5;function Ht(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(bd.call(arguments)))}}function Q(e){return Array.isArray?Array.isArray(e):Ga.call(e)==="[object Array]"}function ft(e){return typeof e=="function"}function tt(e){return typeof e=="string"}function tu(e){return Ga.call(e)==="[object String]"}function Ut(e){return typeof e=="number"}function nt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Fh(e){return!!px[Ga.call(e)]}function Pe(e){return!!gx[Ga.call(e)]}function Ia(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function xs(e){return e.colorStops!=null}function mx(e){return e.image!=null}function g5(e){return Ga.call(e)==="[object RegExp]"}function Jo(e){return e!==e}function Oa(){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 mt(e,t){return e??t}function Lo(e,t,r){return e??t??r}function Ku(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return bd.apply(e,t)}function Cd(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 Yr(e,t){if(!e)throw new Error(t)}function wr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var yx="__ec_primitive__";function eu(e){e[yx]=!0}function Ma(e){return e[yx]}var m5=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 Gt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),_x=typeof Map=="function";function y5(){return _x?new Map:new m5}var xx=function(){function e(t){var r=Q(t);this.data=y5();var n=this;t instanceof e?t.each(i):t&&A(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 _x?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function dt(e){return new xx(e)}function bx(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 bs(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&Y(r,t),r}function Ad(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ui(e,t){return e.hasOwnProperty(t)}function me(){}var Sx=180/Math.PI;const _5=Object.freeze(Object.defineProperty({__proto__:null,HashMap:xx,RADIAN_TO_DEGREE:Sx,assert:Yr,bind:Lt,clone:ut,concatArray:bx,createCanvas:v5,createHashMap:dt,createObject:bs,curry:Ht,defaults:St,disableUserSelect:Ad,each:A,eqNaN:Jo,extend:Y,filter:ee,find:d5,guid:Sd,hasOwn:Ui,indexOf:Mt,inherits:Td,isArray:Q,isArrayLike:Ee,isBuiltInObject:Fh,isDom:Ia,isFunction:ft,isGradientObject:xs,isImagePatternObject:mx,isNumber:Ut,isObject:nt,isPrimitive:Ma,isRegExp:g5,isString:tt,isStringSafe:tu,isTypedArray:Pe,keys:Gt,logError:qu,map:et,merge:pt,mergeAll:h5,mixin:Qe,noop:me,normalizeCssArray:Cd,reduce:Wr,retrieve:Oa,retrieve2:mt,retrieve3:Lo,setAsPrimitive:eu,slice:Ku,trim:wr},Symbol.toStringTag,{value:"Module"}));function Qi(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function x5(e,t){return e[0]=t[0],e[1]=t[1],e}function Tx(e){return[e[0],e[1]]}function b5(e,t,r){return e[0]=t,e[1]=r,e}function zh(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function w5(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function Cx(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Dd(e){return Math.sqrt(Md(e))}var S5=Dd;function Md(e){return e[0]*e[0]+e[1]*e[1]}var T5=Md;function C5(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function A5(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function D5(e,t){return e[0]*t[0]+e[1]*t[1]}function Rl(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Ax(e,t){var r=Dd(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function ru(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Dx=ru;function Mx(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Oi=Mx;function M5(e,t){return e[0]=-t[0],e[1]=-t[1],e}function E5(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Me(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 Bn(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Nn(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const P5=Object.freeze(Object.defineProperty({__proto__:null,add:zh,applyTransform:Me,clone:Tx,copy:x5,create:Qi,dist:Dx,distSquare:Oi,distance:ru,distanceSquare:Mx,div:A5,dot:D5,len:Dd,lenSquare:Md,length:S5,lengthSquare:T5,lerp:E5,max:Nn,min:Bn,mul:C5,negate:M5,normalize:Ax,scale:Rl,scaleAndAdd:w5,set:b5,sub:Cx},Symbol.toStringTag,{value:"Module"}));var ea=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),L5=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 ea(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 ea(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 ea(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new ea(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ea(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ea(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Mr=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}(),R5=Math.log(2);function Hh(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)/R5);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&i||(c+=(v%2?-1:1)*e[r][h]*Hh(e,t-1,f,u,i|d,a),v++)}return a[o]=c,c}function qg(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=Hh(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)*Hh(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 Kg="___zrEVENTSAVED",jf=[];function I5(e,t,r,n,i){return Vh(jf,t,n,i,!0)&&Vh(e,r,jf[0],jf[1])}function Vh(e,t,r,n,i){if(t.getBoundingClientRect&&lt.domSupported&&!Ex(t)){var a=t[Kg]||(t[Kg]={}),o=O5(t,a),s=k5(o,a,i);if(s)return s(e,r,n),!0}return!1}function O5(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 k5(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,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?qg(s,o):qg(o,s))}function Ex(e){return e.nodeName.toUpperCase()==="CANVAS"}var B5=/([&<>"'])/g,N5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Oe(e){return e==null?"":(e+"").replace(B5,function(t,r){return N5[r]})}var F5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zf=[],z5=lt.browser.firefox&&+lt.browser.version.split(".")[0]<39;function Gh(e,t,r,n){return r=r||{},n?jg(e,t,r):z5&&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):jg(e,t,r),r}function jg(e,t,r){if(lt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Ex(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Vh(Zf,e,n,i)){r.zrX=Zf[0],r.zrY=Zf[1];return}}r.zrX=r.zrY=0}function Ed(e){return e||window.event}function ir(e,t,r){if(t=Ed(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&&Gh(e,o,t,r)}else{Gh(e,t,t,r);var a=H5(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&F5.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function H5(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 V5(e,t,r,n){e.addEventListener(t,r,n)}function G5(e,t,r,n){e.removeEventListener(t,r,n)}var Px=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},U5=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=Gh(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 Jf)if(Jf.hasOwnProperty(r)){var n=Jf[r](this._track,t);if(n)return n}},e}();function Zg(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function W5(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Jf={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=Zg(n)/Zg(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=W5(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function on(){return[1,0,0,1,0,0]}function ws(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Pd(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 Vn(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 Qo(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 Ss(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 Lx(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 Ts(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}function Y5(e){var t=on();return Pd(t,e),t}const $5=Object.freeze(Object.defineProperty({__proto__:null,clone:Y5,copy:Pd,create:on,identity:ws,invert:Ts,mul:Vn,rotate:Ss,scale:Lx,translate:Qo},Symbol.toStringTag,{value:"Module"}));var kt=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}(),Ws=Math.min,Ys=Math.max,ri=new kt,ni=new kt,ii=new kt,ai=new kt,Za=new kt,Ja=new kt,_t=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=Ws(t.x,this.x),n=Ws(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ys(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ys(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=on();return Qo(a,a,[-r.x,-r.y]),Lx(a,a,[n,i]),Qo(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 v=1/0,d=0,g=Math.abs(a-l),p=Math.abs(u-i),m=Math.abs(s-f),y=Math.abs(c-o),x=Math.min(g,p),b=Math.min(m,y);a<l||u<i?x>d&&(d=x,g<p?kt.set(Ja,-g,0):kt.set(Ja,p,0)):x<v&&(v=x,g<p?kt.set(Za,g,0):kt.set(Za,-p,0)),s<f||c<o?b>d&&(d=b,m<y?kt.set(Ja,0,-m):kt.set(Ja,0,y)):x<v&&(v=x,m<y?kt.set(Za,0,m):kt.set(Za,0,-y))}return r&&kt.copy(r,h?Za:Ja),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}ri.x=ii.x=r.x,ri.y=ai.y=r.y,ni.x=ai.x=r.x+r.width,ni.y=ii.y=r.y+r.height,ri.transform(n),ai.transform(n),ni.transform(n),ii.transform(n),t.x=Ws(ri.x,ni.x,ii.x,ai.x),t.y=Ws(ri.y,ni.y,ii.y,ai.y);var l=Ys(ri.x,ni.x,ii.x,ai.x),u=Ys(ri.y,ni.y,ii.y,ai.y);t.width=l-t.x,t.height=u-t.y},e}(),Rx="silent";function X5(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:q5}}function q5(){Px(this.event)}var K5=function(e){q(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}(Mr),Qa=function(){function e(t,r){this.x=t,this.y=r}return e}(),j5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qf=new _t(0,0,0,0),Ix=function(e){q(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Qa(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new K5,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new L5(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(A(j5,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=Ox(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 Qa(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 Qa(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=X5(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 Qa(r,n);if(Jg(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new _t(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)&&(Qf.copy(h.getBoundingRect()),h.transform&&Qf.applyTransform(h.transform),Qf.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=v)for(var m=0;m<g;m+=d){var y=r+p*Math.cos(m),x=n+p*Math.sin(m);if(Jg(s,o,y,x,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new U5);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 Qa;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Mr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Ix.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=Ox(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||Dx(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Z5(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?Rx:!0}return!1}function Jg(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=Z5(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==Rx)){t.target=o;break}}}function Ox(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var kx=32,to=7;function J5(e){for(var t=0;e>=kx;)t|=e&1,e>>=1;return e+t}function Qg(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++;Q5(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function Q5(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function tm(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 tc(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 ec(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 tM(e,t){var r=to,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],g=i[v],p=n[v+1],m=i[v+1];i[v]=g+m,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=ec(e[p],e,d,g,0,t);d+=y,g-=y,g!==0&&(m=tc(e[d+g-1],e,p,m,m-1,t),m!==0&&(g<=m?c(d,g,p,m):h(d,g,p,m)))}function c(v,d,g,p){var m=0;for(m=0;m<d;m++)o[m]=e[v+m];var y=0,x=g,b=v;if(e[b++]=e[x++],--p===0){for(m=0;m<d;m++)e[b+m]=o[y+m];return}if(d===1){for(m=0;m<p;m++)e[b+m]=e[x+m];e[b+p]=o[y];return}for(var w=r,_,T,C;;){_=0,T=0,C=!1;do if(t(e[x],o[y])<0){if(e[b++]=e[x++],T++,_=0,--p===0){C=!0;break}}else if(e[b++]=o[y++],_++,T=0,--d===1){C=!0;break}while((_|T)<w);if(C)break;do{if(_=ec(e[x],o,y,d,0,t),_!==0){for(m=0;m<_;m++)e[b+m]=o[y+m];if(b+=_,y+=_,d-=_,d<=1){C=!0;break}}if(e[b++]=e[x++],--p===0){C=!0;break}if(T=tc(o[y],e,x,p,0,t),T!==0){for(m=0;m<T;m++)e[b+m]=e[x+m];if(b+=T,x+=T,p-=T,p===0){C=!0;break}}if(e[b++]=o[y++],--d===1){C=!0;break}w--}while(_>=to||T>=to);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(m=0;m<p;m++)e[b+m]=e[x+m];e[b+p]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)e[b+m]=o[y+m]}}function h(v,d,g,p){var m=0;for(m=0;m<p;m++)o[m]=e[g+m];var y=v+d-1,x=p-1,b=g+p-1,w=0,_=0;if(e[b--]=e[y--],--d===0){for(w=b-(p-1),m=0;m<p;m++)e[w+m]=o[m];return}if(p===1){for(b-=d,y-=d,_=b+1,w=y+1,m=d-1;m>=0;m--)e[_+m]=e[w+m];e[b]=o[x];return}for(var T=r;;){var C=0,D=0,E=!1;do if(t(o[x],e[y])<0){if(e[b--]=e[y--],C++,D=0,--d===0){E=!0;break}}else if(e[b--]=o[x--],D++,C=0,--p===1){E=!0;break}while((C|D)<T);if(E)break;do{if(C=d-ec(o[x],e,v,d,d-1,t),C!==0){for(b-=C,y-=C,d-=C,_=b+1,w=y+1,m=C-1;m>=0;m--)e[_+m]=e[w+m];if(d===0){E=!0;break}}if(e[b--]=o[x--],--p===1){E=!0;break}if(D=p-tc(e[y],o,0,p,p-1,t),D!==0){for(b-=D,x-=D,p-=D,_=b+1,w=x+1,m=0;m<D;m++)e[_+m]=o[w+m];if(p<=1){E=!0;break}}if(e[b--]=e[y--],--d===0){E=!0;break}T--}while(C>=to||D>=to);if(E)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),p===1){for(b-=d,y-=d,_=b+1,w=y+1,m=d-1;m>=0;m--)e[_+m]=e[w+m];e[b]=o[x]}else{if(p===0)throw new Error;for(w=b-(p-1),m=0;m<p;m++)e[w+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Il(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<kx){a=Qg(e,r,n,t),tm(e,r,n,r+a,t);return}var o=tM(e,t),s=J5(i);do{if(a=Qg(e,r,n,t),a<s){var l=i;l>s&&(l=s),tm(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 Xe=1,xo=2,ma=4,em=!1;function rc(){em||(em=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rm(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var eM=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rm}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,Il(n,rm)},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|=Xe),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)&&(rc(),f.z=0),isNaN(f.z2)&&(rc(),f.z2=0),isNaN(f.zlevel)&&(rc(),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 v=t.getTextContent();v&&this._updateAndAddDisplayable(v,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}(),nu;nu=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 Ro={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-Ro.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?Ro.bounceIn(e*2)*.5:Ro.bounceOut(e*2-1)*.5+.5}},$s=Math.pow,Gn=Math.sqrt,iu=1e-8,Bx=1e-4,nm=Gn(3),Xs=1/3,zr=Qi(),sr=Qi(),Ea=Qi();function Fn(e){return e>-iu&&e<iu}function Nx(e){return e>iu||e<-iu}function se(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 im(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function au(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,v=0;if(Fn(f)&&Fn(c))if(Fn(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=c*c-4*f*h;if(Fn(g)){var p=c/f,d=-s/o+p,m=-p/2;d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m)}else if(g>0){var y=Gn(g),x=f*s+1.5*o*(-c+y),b=f*s+1.5*o*(-c-y);x<0?x=-$s(-x,Xs):x=$s(x,Xs),b<0?b=-$s(-b,Xs):b=$s(b,Xs);var d=(-s-(x+b))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*c)/(2*Gn(f*f*f)),_=Math.acos(w)/3,T=Gn(f),C=Math.cos(_),d=(-s-2*T*C)/(3*o),m=(-s+T*(C+nm*Math.sin(_)))/(3*o),D=(-s+T*(C-nm*Math.sin(_)))/(3*o);d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m),D>=0&&D<=1&&(a[v++]=D)}}return v}function Fx(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(Fn(o)){if(Nx(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Fn(f))i[0]=-a/(2*o);else if(f>0){var c=Gn(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 ou(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 rM(e,t,r,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,g,p,m;zr[0]=l,zr[1]=u;for(var y=0;y<1;y+=.05)sr[0]=se(e,r,i,o,y),sr[1]=se(t,n,a,s,y),p=Oi(zr,sr),p<v&&(c=y,v=p);v=1/0;for(var x=0;x<32&&!(h<Bx);x++)d=c-h,g=c+h,sr[0]=se(e,r,i,o,d),sr[1]=se(t,n,a,s,d),p=Oi(sr,zr),d>=0&&p<v?(c=d,v=p):(Ea[0]=se(e,r,i,o,g),Ea[1]=se(t,n,a,s,g),m=Oi(Ea,zr),g<=1&&m<v?(c=g,v=m):h*=.5);return Gn(v)}function nM(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,c=0,h=1/l,v=1;v<=l;v++){var d=v*h,g=se(e,r,i,o,d),p=se(t,n,a,s,d),m=g-u,y=p-f;c+=Math.sqrt(m*m+y*y),u=g,f=p}return c}function ke(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function am(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function iM(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Fn(a)){if(Nx(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Fn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Gn(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 zx(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function su(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 aM(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;zr[0]=o,zr[1]=s;for(var h=0;h<1;h+=.05){sr[0]=ke(e,r,i,h),sr[1]=ke(t,n,a,h);var v=Oi(zr,sr);v<c&&(u=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<Bx);d++){var g=u-f,p=u+f;sr[0]=ke(e,r,i,g),sr[1]=ke(t,n,a,g);var v=Oi(sr,zr);if(g>=0&&v<c)u=g,c=v;else{Ea[0]=ke(e,r,i,p),Ea[1]=ke(t,n,a,p);var m=Oi(Ea,zr);p<=1&&m<c?(u=p,c=m):f*=.5}}return Gn(c)}function oM(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,v=ke(e,r,i,h),d=ke(t,n,a,h),g=v-s,p=d-l;u+=Math.sqrt(g*g+p*p),s=v,l=d}return u}var sM=/cubic-bezier\(([0-9,\.e ]+)\)/;function Hx(e){var t=e&&sM.exec(e);if(t){var r=t[1].split(","),n=+wr(r[0]),i=+wr(r[1]),a=+wr(r[2]),o=+wr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:au(0,n,a,1,l,s)&&se(0,i,o,1,s[0])}}}var lM=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||me,this.ondestroy=t.ondestroy||me,this.onrestart=t.onrestart||me,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=ft(t)?t:Ro[t]||Hx(t)},e}(),Vx=function(){function e(t){this.value=t}return e}(),uM=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Vx(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}(),Cs=function(){function e(t){this._list=new uM,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 Vx(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}(),om={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 Tr(e){return e=Math.round(e),e<0?0:e>255?255:e}function fM(e){return e=Math.round(e),e<0?0:e>360?360:e}function ts(e){return e<0?0:e>1?1:e}function nc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Tr(parseFloat(t)/100*255):Tr(parseInt(t,10))}function ki(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ts(parseFloat(t)/100):ts(parseFloat(t))}function ic(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 zn(e,t,r){return e+(t-e)*r}function nr(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Uh(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Gx=new Cs(20),qs=null;function ra(e,t){qs&&Uh(qs,t),qs=Gx.put(e,qs||t.slice())}function je(e,t){if(e){t=t||[];var r=Gx.get(e);if(r)return Uh(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in om)return Uh(t,om[n]),ra(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)){nr(t,0,0,0,1);return}return nr(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),ra(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){nr(t,0,0,0,1);return}return nr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ra(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?nr(t,+u[0],+u[1],+u[2],1):nr(t,0,0,0,1);f=ki(u.pop());case"rgb":if(u.length>=3)return nr(t,nc(u[0]),nc(u[1]),nc(u[2]),u.length===3?f:ki(u[3])),ra(e,t),t;nr(t,0,0,0,1);return;case"hsla":if(u.length!==4){nr(t,0,0,0,1);return}return u[3]=ki(u[3]),Wh(u,t),ra(e,t),t;case"hsl":if(u.length!==3){nr(t,0,0,0,1);return}return Wh(u,t),ra(e,t),t;default:return}}nr(t,0,0,0,1)}}function Wh(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=ki(e[1]),i=ki(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],nr(t,Tr(ic(o,a,r+1/3)*255),Tr(ic(o,a,r)*255),Tr(ic(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function cM(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 v=[l*360,u,s];return e[3]!=null&&v.push(e[3]),v}}function Yh(e,t){var r=je(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Kn(r,r.length===4?"rgba":"rgb")}}function hM(e){var t=je(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Ux(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]=Tr(zn(o[0],s[0],l)),r[1]=Tr(zn(o[1],s[1],l)),r[2]=Tr(zn(o[2],s[2],l)),r[3]=ts(zn(o[3],s[3],l)),r}}var vM=Ux;function Ld(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=je(t[i]),s=je(t[a]),l=n-i,u=Kn([Tr(zn(o[0],s[0],l)),Tr(zn(o[1],s[1],l)),Tr(zn(o[2],s[2],l)),ts(zn(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var dM=Ld;function pM(e,t,r,n){var i=je(e);if(e)return i=cM(i),t!=null&&(i[0]=fM(t)),r!=null&&(i[1]=ki(r)),n!=null&&(i[2]=ki(n)),Kn(Wh(i),"rgba")}function gM(e,t){var r=je(e);if(r&&t!=null)return r[3]=ts(t),Kn(r,"rgba")}function Kn(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 es(e,t){var r=je(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function mM(){return Kn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var sm=new Cs(100);function $h(e){if(tt(e)){var t=sm.get(e);return t||(t=Yh(e,-.1),sm.put(e,t)),t}else if(xs(e)){var r=Y({},e);return r.colorStops=et(e.colorStops,function(n){return{offset:n.offset,color:Yh(n.color,-.1)}}),r}return e}const yM=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Ux,fastMapToColor:vM,lerp:Ld,lift:Yh,liftColor:$h,lum:es,mapToColor:dM,modifyAlpha:gM,modifyHSL:pM,parse:je,random:mM,stringify:Kn,toHex:hM},Symbol.toStringTag,{value:"Module"}));function _M(e){return e.type==="linear"}function xM(e){return e.type==="radial"}(function(){return lt.hasGlobalWindow&&ft(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 Xh=Array.prototype.slice;function tn(e,t,r){return(t-e)*r+e}function ac(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=tn(t[a],r[a],n);return e}function bM(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]=tn(t[o][s],r[o][s],n)}return e}function Ks(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function lm(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 wM(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 SM(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]:Xh.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 Ol(e){if(Ee(e)){var t=e.length;if(Ee(e[0])){for(var r=[],n=0;n<t;n++)r.push(Xh.call(e[n]));return r}return Xh.call(e)}return e}function kl(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 TM(e){return Ee(e&&e[0])?2:1}var js=0,Bl=1,Wx=2,bo=3,qh=4,Kh=5,um=6;function fm(e){return e===qh||e===Kh}function Zs(e){return e===Bl||e===Wx}var eo=[0,0,0,0],CM=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=um,l=r;if(Ee(r)){var u=TM(r);s=u,(u===1&&!Ut(r[0])||u===2&&!Ut(r[0][0]))&&(o=!0)}else if(Ut(r)&&!Jo(r))s=js;else if(tt(r))if(!isNaN(+r))s=js;else{var f=je(r);f&&(l=f,s=bo)}else if(xs(r)){var c=Y({},l);c.colorStops=et(r.colorStops,function(v){return{offset:v.offset,color:je(v.color)}}),_M(r)?s=qh:xM(r)&&(s=Kh),l=c}a===0?this.valType=s:(s!==this.valType||s===um)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=ft(n)?n:Ro[n]||Hx(n)),i.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Zs(i),u=fm(i),f=0;f<a;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/t,s||(l&&f!==a-1?SM(h,v,i):u&&wM(h.colorStops,v.colorStops))}if(!s&&i!==Kh&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===js?n[f].additiveValue=n[f].value-d:i===bo?n[f].additiveValue=Ks([],n[f].value,d,-1):Zs(i)&&(n[f].additiveValue=i===Bl?Ks([],n[f].value,d,-1):lm([],n[f].value,d,-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===bo,f,c=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=h(c+1,s-1);for(f=g;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)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,m=p===0?1:h((r-v.percent)/p,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?eo:t[l];if((Zs(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?v.rawValue:d.rawValue;else if(Zs(a))a===Bl?ac(y,v[i],d[i],m):bM(y,v[i],d[i],m);else if(fm(a)){var x=v[i],b=d[i],w=a===qh;t[l]={type:w?"linear":"radial",x:tn(x.x,b.x,m),y:tn(x.y,b.y,m),colorStops:et(x.colorStops,function(T,C){var D=b.colorStops[C];return{offset:tn(T.offset,D.offset,m),color:kl(ac([],T.color,D.color,m))}}),global:b.global},w?(t[l].x2=tn(x.x2,b.x2,m),t[l].y2=tn(x.y2,b.y2,m)):t[l].r=tn(x.r,b.r,m)}else if(u)ac(y,v[i],d[i],m),n||(t[l]=kl(y));else{var _=tn(v[i],d[i],m);n?this._additiveValue=_:t[l]=_}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===js?t[n]=t[n]+i:r===bo?(je(t[n],eo),Ks(eo,eo,i,1),t[n]=kl(eo)):r===Bl?Ks(t[n],t[n],i,1):r===Wx&&lm(t[n],t[n],i,1)},e}(),Rd=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){qu("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,Gt(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 CM(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===bo&&u&&(u=kl(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Ol(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Ol(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 lM({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,v);var m=r._onframeCbs;if(m)for(var p=0;p<m.length;p++)m[p](r._target,v)},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 et(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]=Ol(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Gt(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 _a(){return new Date().getTime()}var AM=function(e){q(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=_a()-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&&(nu(n),!r._paused&&r.update())}nu(n)},t.prototype.start=function(){this._running||(this._time=_a(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=_a(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=_a()-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 Rd(r,n.loop);return this.addAnimator(i),i},t}(Mr),DM=300,oc=lt.domSupported,sc=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=et(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),cm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},hm=!1;function jh(e){var t=e.pointerType;return t==="pen"||t==="touch"}function MM(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 lc(e){e&&(e.zrByTouch=!0)}function EM(e,t){return ir(e.dom,new PM(e,t),!0)}function Yx(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 PM=function(){function e(t,r){this.stopPropagation=me,this.stopImmediatePropagation=me,this.preventDefault=me,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),xr={mousedown:function(e){e=ir(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ir(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=ir(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ir(this.dom,e);var t=e.toElement||e.relatedTarget;Yx(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){hm=!0,e=ir(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){hm||(e=ir(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ir(this.dom,e),lc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),xr.mousemove.call(this,e),xr.mousedown.call(this,e)},touchmove:function(e){e=ir(this.dom,e),lc(e),this.handler.processGesture(e,"change"),xr.mousemove.call(this,e)},touchend:function(e){e=ir(this.dom,e),lc(e),this.handler.processGesture(e,"end"),xr.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<DM&&xr.click.call(this,e)},pointerdown:function(e){xr.mousedown.call(this,e)},pointermove:function(e){jh(e)||xr.mousemove.call(this,e)},pointerup:function(e){xr.mouseup.call(this,e)},pointerout:function(e){jh(e)||xr.mouseout.call(this,e)}};A(["click","dblclick","contextmenu"],function(e){xr[e]=function(t){t=ir(this.dom,t),this.trigger(e,t)}});var Zh={pointermove:function(e){jh(e)||Zh.mousemove.call(this,e)},pointerup:function(e){Zh.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 LM(e,t){var r=t.domHandlers;lt.pointerEventsSupported?A(sc.pointer,function(n){Nl(t,n,function(i){r[n].call(e,i)})}):(lt.touchEventsSupported&&A(sc.touch,function(n){Nl(t,n,function(i){r[n].call(e,i),MM(t)})}),A(sc.mouse,function(n){Nl(t,n,function(i){i=Ed(i),t.touching||r[n].call(e,i)})}))}function RM(e,t){lt.pointerEventsSupported?A(cm.pointer,r):lt.touchEventsSupported||A(cm.mouse,r);function r(n){function i(a){a=Ed(a),Yx(e,a.target)||(a=EM(e,a),t.domHandlers[n].call(e,a))}Nl(t,n,i,{capture:!0})}}function Nl(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,V5(e.domTarget,t,r,n)}function uc(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&G5(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var vm=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),IM=function(e){q(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 vm(r,xr),oc&&(i._globalHandlerScope=new vm(document,Zh)),LM(i,i._localHandlerScope),i}return t.prototype.dispose=function(){uc(this._localHandlerScope),oc&&uc(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,oc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?RM(this,n):uc(n)}},t}(Mr),$x=1;lt.hasGlobalWindow&&($x=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var lu=$x,Jh=.4,Qh="#333",tv="#ccc",OM="#eee",dm=ws,pm=5e-5;function oi(e){return e>pm||e<-pm}var si=[],na=[],fc=on(),cc=Math.abs,kM=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 oi(this.rotation)||oi(this.x)||oi(this.y)||oi(this.scaleX-1)||oi(this.scaleY-1)||oi(this.skewX)||oi(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(dm(n),this.invTransform=null);return}n=n||on(),r?this.getLocalTransform(n):dm(n),t&&(r?Vn(n,t,n):Pd(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(si);var n=si[0]<0?-1:1,i=si[1]<0?-1:1,a=((si[0]-n)*r+n)/si[0]||0,o=((si[1]-i)*r+i)/si[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||on(),Ts(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||on(),Vn(na,t.invTransform,r),r=na);var n=this.originX,i=this.originY;(n||i)&&(fc[4]=n,fc[5]=i,Vn(na,r,fc),na[4]-=n,na[5]-=i,r=na),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&&Me(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Me(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&cc(t[0]-1)>1e-10&&cc(t[3]-1)>1e-10?Math.sqrt(cc(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){BM(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,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,g=i+l;r[4]=-d*a-h*g*o,r[5]=-g*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=h*o,u&&Ss(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}(),rs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function BM(e,t){for(var r=0;r<rs.length;r++){var n=rs[r];e[n]=t[n]}}const Id=kM;var gm={};function Ze(e,t){t=t||Gi;var r=gm[t];r||(r=gm[t]=new Cs(500));var n=r.get(e);return n==null&&(n=fn.measureText(e,t).width,r.put(e,n)),n}function mm(e,t,r,n){var i=Ze(e,t),a=kd(t),o=wo(0,i,r),s=ya(0,a,n),l=new _t(o,s,i,a);return l}function Od(e,t,r,n){var i=((e||"")+"").split(`
`),a=i.length;if(a===1)return mm(i[0],t,r,n);for(var o=new _t(0,0,0,0),s=0;s<i.length;s++){var l=mm(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function wo(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function ya(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function kd(e){return Ze("国",e)}function Wi(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Xx(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+=Wi(n[0],r.width),u+=Wi(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 hc="__zr_normal__",vc=rs.concat(["ignore"]),NM=Wr(rs,function(e,t){return e[t]=!0,e},{ignore:!1}),ia={},FM=new _t(0,0,0,0),ju=function(){function e(t){this.id=Sd(),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=FM;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ia,n,f):Xx(ia,n,f),a.x=ia.x,a.y=ia.y,o=ia.align,s=ia.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=Wi(c[0],f.width),v=Wi(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;g&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==p.fill||y!==p.stroke||x!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=m,p.stroke=y,p.autoStroke=x,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=Xe,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()?tv:Qh},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&je(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,Kn(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||{},Y(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(nt(t))for(var n=t,i=Gt(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!==hc)){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,vc)},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(hc,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===hc,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){qu("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&=~Xe),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 v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,r,h),p&&p.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xe)}},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];Y(r,a),a.textConfig&&(n=n||{},Y(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=Y({},i?this.textConfig:n.textConfig),Y(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<vc.length;f++){var c=vc[f],h=a&&NM[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 v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]: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 Id,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Y(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|=Xe;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 Rd(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=Xe;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}();Qe(ju,Mr);Qe(ju,Id);function dc(e,t,r,n,i){r=r||{};var a=[];qx(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(d,g){r.during(g)});for(var h=0;h<a.length;h++){var v=a[h];f&&v.done(f),c&&v.aborted(c),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function pc(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function zM(e){return Ee(e[0])}function HM(e,t,r){if(Ee(t[r]))if(Ee(e[r])||(e[r]=[]),Pe(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),pc(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(zM(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?pc(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else pc(a,i,o);a.length=i.length}else e[r]=t[r]}function VM(e,t){return e===t||Ee(e)&&Ee(t)&&GM(e,t)}function GM(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 qx(e,t,r,n,i,a,o,s){for(var l=Gt(n),u=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,v=!nt(a),d=e.animators,g=[],p=0;p<l.length;p++){var m=l[p],y=n[m];if(y!=null&&r[m]!=null&&(v||a[m]))if(nt(y)&&!Ee(y)&&!xs(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}qx(e,m,r[m],y,i,a&&a[m],o,s)}else g.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),g.push(m))}var x=g.length;if(!c&&x)for(var b=0;b<d.length;b++){var w=d[b];if(w.targetName===t){var _=w.stopTracks(g);if(_){var T=Mt(d,w);d.splice(T,1)}}}if(i.force||(g=ee(g,function(P){return!VM(n[P],r[P])}),x=g.length),x>0||i.force&&!o.length){var C=void 0,D=void 0,E=void 0;if(s){D={},h&&(C={});for(var b=0;b<x;b++){var m=g[b];D[m]=r[m],h?C[m]=n[m]:r[m]=n[m]}}else if(h){E={};for(var b=0;b<x;b++){var m=g[b];E[m]=Ol(r[m]),HM(r,n,m)}}var w=new Rd(r,!1,!1,c?ee(d,function(L){return L.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),h&&C&&w.whenWithKeys(0,C,g),E&&w.whenWithKeys(0,E,g),w.whenWithKeys(u??500,s?D:n,g).delay(f||0),e.addAnimator(w,t),o.push(w)}}var Jt=function(e){q(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 _t(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?(_t.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(ju);Jt.prototype.type="group";/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var Fl={},Mi={};function UM(e){delete Mi[e]}function WM(e){if(!e)return!1;if(typeof e=="string")return es(e,1)<Jh;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=es(t[i].color,1);return r/=n,r<Jh}return!1}var YM=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 eM,o=n.renderer||"canvas";Fl[o]||(o=Gt(Fl)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Fl[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!lt.node&&!lt.worker&&!l?new IM(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?lt.touchEventsSupported:!!f,h=44,v;c&&(v=mt(n.pointerSize,h)),this.handler=new Ix(a,s,u,s.root,v),this.animation=new AM({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=WM(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=_a();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=_a();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 Jt&&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,UM(this.id))},e}();function ev(e,t){var r=new YM(Sd(),e,t);return Mi[r.id]=r,r}function $M(e){e.dispose()}function XM(){for(var e in Mi)Mi.hasOwnProperty(e)&&Mi[e].dispose();Mi={}}function qM(e){return Mi[e]}function Kx(e,t){Fl[e]=t}var rv;function KM(e){if(typeof rv=="function")return rv(e)}function jx(e){rv=e}var jM="5.6.0";const ZM=Object.freeze(Object.defineProperty({__proto__:null,dispose:$M,disposeAll:XM,getElementSSRData:KM,getInstance:qM,init:ev,registerPainter:Kx,registerSSRDataGetter:jx,version:jM},Symbol.toStringTag,{value:"Module"}));var ym=1e-4,Zx=20;function JM(e){return e.replace(/^\s+|\s+$/g,"")}function nv(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 Ae(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 tt(e)?JM(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function qt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Zx),e=(+e).toFixed(t),r?e:+e}function Jx(e){return e.sort(function(t,r){return t-r}),e}function Hr(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 Qx(e)}function Qx(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 tb(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function QM(e,t,r){if(!e[t])return 0;var n=tE(e,r);return n[t]||0}function tE(e,t){var r=Wr(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=et(e,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=et(i,function(v){return Math.floor(v)}),s=Wr(o,function(v,d){return v+d},0),l=et(i,function(v,d){return v-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return et(o,function(v){return v/n})}function eE(e,t){var r=Math.max(Hr(e),Hr(t)),n=e+t;return r>Zx?n:qt(n,r)}var rE=9007199254740991;function Bd(e){var t=Math.PI*2;return(e%t+t)%t}function ns(e){return e>-ym&&e<ym}var nE=/^(?:(\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 vr(e){if(e instanceof Date)return e;if(tt(e)){var t=nE.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 eb(e){return Math.pow(10,Zu(e))}function Zu(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Nd(e,t){var r=Zu(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function iE(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function aE(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function is(e){var t=parseFloat(e);return t==e&&(t!==0||!tt(e)||e.indexOf("x")<=0)?t:NaN}function rb(e){return!isNaN(is(e))}function nb(){return Math.round(Math.random()*9)}function ib(e,t){return t===0?e:ib(t,e%t)}function _m(e,t){return e==null?t:t==null?e:e*t/ib(e,t)}function Be(e){throw new Error(e)}function xm(e,t,r){return(t-e)*r+e}var ab="series\0",oE="\0_ec_\0";function ie(e){return e instanceof Array?e:e==null?[]:[e]}function bm(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 wm=["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 As(e){return nt(e)&&!Q(e)&&!(e instanceof Date)?e.value:e}function sE(e){return nt(e)&&!(e instanceof Array)}function lE(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=dt();A(t,function(l,u){if(!nt(l)){t[u]=null;return}});var s=uE(e,o,r);return(n||i)&&fE(s,e,o,t),n&&cE(s,t),n||i?hE(s,t,i):a&&vE(s,t),dE(s),s}function uE(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"||as(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function fE(e,t,r,n){A(n,function(i,a){if(!(!i||i.id==null)){var o=Io(i.id),s=r.get(o);if(s!=null){var l=e[s];Yr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function cE(e,t){A(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)&&!as(r)&&!as(a)&&ob("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function hE(e,t,r){A(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||as(i.existing)||i.existing&&n.id!=null&&!ob("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function vE(e,t){A(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function dE(e){var t=dt();A(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),A(e,function(r){var n=r.newOption;Yr(!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={})}),A(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(nt(a)){if(o.name=a.name!=null?Io(a.name):i?i.name:ab+n,i)o.id=Io(i.id);else if(a.id!=null)o.id=Io(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 ob(e,t,r){var n=Ur(t[e],null),i=Ur(r[e],null);return n!=null&&i!=null&&n===i}function Io(e){return Ur(e,"")}function Ur(e,t){return e==null?t:tt(e)?e:Ut(e)||tu(e)?e+"":t}function Fd(e){var t=e.name;return!!(t&&t.indexOf(ab))}function as(e){return e&&e.id!=null&&Io(e.id).indexOf(oE)===0}function pE(e,t,r){A(e,function(n){var i=n.newOption;nt(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=gE(t,i,n.existing,r))})}function gE(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Yi(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Q(t.dataIndex)?et(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Q(t.name)?et(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function te(){var e="__ec_inner_"+mE++;return function(t){return t[e]||(t[e]={})}}var mE=nb();function gc(e,t,r){var n=zd(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=Ds(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 zd(e,t){var r;if(tt(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=dt(),a={},o=!1;return A(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 cr={useDefault:!0,enableAll:!1,enableNone:!1};function Ds(e,t,r,n){n=n||cr;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?(Yr(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Yr(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 sb(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function yE(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function _E(e){return e==="auto"?lt.domSupported?"html":"richText":e||"html"}function xE(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(Ut(n)){var o=xm(r||0,n,i);return qt(o,a?Math.max(Hr(r||0),Hr(n)):t)}else{if(tt(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=e.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=xm(v,d,i);s[c]=qt(o,a?Math.max(Hr(v),Hr(d)):t)}}return s}}var bE=".",li="___EC__COMPONENT__CONTAINER___",lb="___EC__EXTENDED_CLASS___";function Vr(e){var t={main:"",sub:""};if(e){var r=e.split(bE);t.main=r[0]||"",t.sub=r[1]||""}return t}function wE(e){Yr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function SE(e){return!!(e&&e[lb])}function Hd(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return TE(n)?i=function(a){q(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Td(i,this)),Y(i.prototype,r),i[lb]=!0,i.extend=this.extend,i.superCall=DE,i.superApply=ME,i.superClass=n,i}}function TE(e){return ft(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function ub(e,t){e.extend=t.extend}var CE=Math.round(Math.random()*10);function AE(e){var t=["__\0is_clz",CE++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function DE(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 ME(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Ju(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){wE(i),n.prototype.type=i;var a=Vr(i);if(!a.sub)t[a.main]=n;else if(a.sub!==li){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[li]&&(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=Vr(n),a=[],o=t[i.main];return o&&o[li]?A(o,function(s,l){l!==li&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Vr(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return A(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Vr(n),a=t[i.main];return a&&a[li]};function r(n){var i=t[n.main];return(!i||!i[li])&&(i=t[n.main]={},i[li]=!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 EE=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],PE=ka(EE),LE=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return PE(this,t,r)},e}(),iv=new Cs(50);function RE(e){if(typeof e=="string"){var t=iv.get(e);return t&&t.image}else return e}function fb(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=iv.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Qu(t)&&a.pending.push(o)):(t=fn.loadImage(e,Sm,Sm),t.__zrImageSrc=e,iv.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Sm(){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 Qu(e){return e&&e.width&&e.height}var mc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function cb(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
`);i=hb(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=vb(a[o],i);return a.join(`
`)}function hb(e,t,r,n){n=n||{};var i=Y({},n);i.font=t,r=mt(r,"..."),i.maxIterations=mt(n.maxIterations,2);var a=i.minChar=mt(n.minChar,0);i.cnCharWidth=Ze("国",t);var o=i.ascCharWidth=Ze("a",t);i.placeholder=mt(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=Ze(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 vb(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Ze(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?IE(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Ze(e,n)}return e===""&&(e=t.placeholder),e}function IE(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 OE(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=kd(i),s=mt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,c;f!=null&&(r==="break"||r==="breakAll")?c=e?db(e,t.font,f,r==="breakAll",0).lines:[]:c=e?e.split(`
`):[];var h=c.length*s,v=mt(t.height,h);if(h>v&&u){var d=Math.floor(v/s);c=c.slice(0,d)}if(e&&a&&f!=null)for(var g=hb(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<c.length;p++)c[p]=vb(c[p],g);for(var m=v,y=0,p=0;p<c.length;p++)y=Math.max(Ze(c[p],i),y);f==null&&(f=y);var x=y;return n&&(m+=n[0]+n[2],x+=n[1]+n[3],f+=n[1]+n[3]),l&&(x=f),{lines:c,height:v,outerWidth:x,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:h,width:f}}var kE=function(){function e(){}return e}(),Tm=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),BE=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function NE(e,t){var r=new BE;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&&yc(r,e.substring(s,u),t,o),yc(r,l[2],t,o,l[1]),s=mc.lastIndex}s<e.length&&yc(r,e.substring(s,e.length),t,o);var f=[],c=0,h=0,v=t.padding,d=a==="truncate",g=t.lineOverflow==="truncate";function p(W,Z,ct){W.width=Z,W.lineHeight=ct,c+=ct,h=Math.max(h,Z)}t:for(var m=0;m<r.lines.length;m++){for(var y=r.lines[m],x=0,b=0,w=0;w<y.tokens.length;w++){var _=y.tokens[w],T=_.styleName&&t.rich[_.styleName]||{},C=_.textPadding=T.padding,D=C?C[1]+C[3]:0,E=_.font=T.font||t.font;_.contentHeight=kd(E);var P=mt(T.height,_.contentHeight);if(_.innerHeight=P,C&&(P+=C[0]+C[2]),_.height=P,_.lineHeight=Lo(T.lineHeight,t.lineHeight,P),_.align=T&&T.align||t.align,_.verticalAlign=T&&T.verticalAlign||"middle",g&&i!=null&&c+_.lineHeight>i){w>0?(y.tokens=y.tokens.slice(0,w),p(y,b,x),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break t}var L=T.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")_.percentWidth=L,f.push(_),_.contentWidth=Ze(_.text,E);else{if(I){var k=T.backgroundColor,F=k&&k.image;F&&(F=RE(F),Qu(F)&&(_.width=Math.max(_.width,F.width*P/F.height)))}var N=d&&n!=null?n-b:null;N!=null&&N<_.width?!I||N<D?(_.text="",_.width=_.contentWidth=0):(_.text=cb(_.text,N-D,E,t.ellipsis,{minChar:t.truncateMinChar}),_.width=_.contentWidth=Ze(_.text,E)):_.contentWidth=Ze(_.text,E)}_.width+=D,b+=_.width,T&&(x=Math.max(x,_.lineHeight))}p(y,b,x)}r.outerWidth=r.width=mt(n,h),r.outerHeight=r.height=mt(i,c),r.contentHeight=c,r.contentWidth=h,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var m=0;m<f.length;m++){var _=f[m],J=_.percentWidth;_.width=parseInt(J,10)/100*r.width}return r}function yc(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,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Wi(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),u=!0),n.accumWidth=d}else{var g=db(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,c=g.linesWidths,f=g.lines}}else f=t.split(`
`);for(var p=0;p<f.length;p++){var m=f[p],y=new kE;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=c?c[p]:Ze(m,l),!p&&!u){var x=(s[s.length-1]||(s[0]=new Tm)).tokens,b=x.length;b===1&&x[0].isLineHolder?x[0]=y:(m||!b||a)&&x.push(y)}else s.push(new Tm([y]))}}function FE(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var zE=Wr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function HE(e){return FE(e)?!!zE[e]:!0}function db(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===`
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Ze(h,t),d=n?!1:!HE(h);if(a.length?f+v>r:i+f+v>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=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 av="__zr_style_"+Math.round(Math.random()*10),Bi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},tf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Bi[av]=!0;var Cm=["z","z2","invisible"],VE=["invisible"],GE=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Gt(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&&UE(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 _t(0,0,0,0)),n?_t.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 _t(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:Y(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=xo,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&xo)},t.prototype.styleUpdated=function(){this.__dirty&=~xo},t.prototype.createStyle=function(r){return bs(Bi,r)},t.prototype.useStyle=function(r){r[av]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[av]},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,Cm)},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=Gt(f),h=0;h<c.length;h++){var v=c[h];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=Gt(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?VE:Cm,h=0;h<g.length;h++){var v=g[h];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},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 Y(r,n),r},t.prototype.getAnimationStyleProps=function(){return tf},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=Xe|xo}(),t}(ju),_c=new _t(0,0,0,0),xc=new _t(0,0,0,0);function UE(e,t,r){return _c.copy(e.getBoundingRect()),e.transform&&_c.applyTransform(e.transform),xc.width=t,xc.height=r,!_c.intersect(xc)}const Ms=GE;var lr=Math.min,ur=Math.max,bc=Math.sin,wc=Math.cos,ui=Math.PI*2,Js=Qi(),Qs=Qi(),tl=Qi();function Am(e,t,r,n,i,a){i[0]=lr(e,r),i[1]=lr(t,n),a[0]=ur(e,r),a[1]=ur(t,n)}var Dm=[],Mm=[];function WE(e,t,r,n,i,a,o,s,l,u){var f=Fx,c=se,h=f(e,r,i,o,Dm);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=c(e,r,i,o,Dm[v]);l[0]=lr(d,l[0]),u[0]=ur(d,u[0])}h=f(t,n,a,s,Mm);for(var v=0;v<h;v++){var g=c(t,n,a,s,Mm[v]);l[1]=lr(g,l[1]),u[1]=ur(g,u[1])}l[0]=lr(e,l[0]),u[0]=ur(e,u[0]),l[0]=lr(o,l[0]),u[0]=ur(o,u[0]),l[1]=lr(t,l[1]),u[1]=ur(t,u[1]),l[1]=lr(s,l[1]),u[1]=ur(s,u[1])}function YE(e,t,r,n,i,a,o,s){var l=zx,u=ke,f=ur(lr(l(e,r,i),1),0),c=ur(lr(l(t,n,a),1),0),h=u(e,r,i,f),v=u(t,n,a,c);o[0]=lr(e,i,h),o[1]=lr(t,a,v),s[0]=ur(e,i,h),s[1]=ur(t,a,v)}function $E(e,t,r,n,i,a,o,s,l){var u=Bn,f=Nn,c=Math.abs(i-a);if(c%ui<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Js[0]=wc(i)*r+e,Js[1]=bc(i)*n+t,Qs[0]=wc(a)*r+e,Qs[1]=bc(a)*n+t,u(s,Js,Qs),f(l,Js,Qs),i=i%ui,i<0&&(i=i+ui),a=a%ui,a<0&&(a=a+ui),i>a&&!o?a+=ui:i<a&&o&&(i+=ui),o){var h=a;a=i,i=h}for(var v=0;v<a;v+=Math.PI/2)v>i&&(tl[0]=wc(v)*r+e,tl[1]=bc(v)*n+t,u(s,tl,s),f(l,tl,l))}var At={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fi=[],ci=[],Rr=[],Sn=[],Ir=[],Or=[],Sc=Math.min,Tc=Math.max,hi=Math.cos,vi=Math.sin,jr=Math.abs,ov=Math.PI,Ln=ov*2,Cc=typeof Float32Array<"u",ro=[];function Ac(e){var t=Math.round(e/ov*1e8)/1e8;return t%2*ov}function XE(e,t){var r=Ac(e[0]);r<0&&(r+=Ln);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Ln?i=r+Ln:t&&r-i>=Ln?i=r-Ln:!t&&r>i?i=r+(Ln-Ac(r-i)):t&&r<i&&(i=r-(Ln-Ac(i-r))),e[0]=r,e[1]=i}var $i=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=jr(n/lu/t)||0,this._uy=jr(n/lu/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(At.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=jr(t-this._xi),i=jr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(At.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(At.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(At.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(),ro[0]=i,ro[1]=a,XE(ro,o),i=ro[0],a=ro[1];var s=a-i;return this.addData(At.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=hi(a)*n+t,this._yi=vi(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(At.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(At.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)&&Cc&&(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();Cc&&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,Cc&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Rr[0]=Rr[1]=Ir[0]=Ir[1]=Number.MAX_VALUE,Sn[0]=Sn[1]=Or[0]=Or[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 At.M:r=i=t[o++],n=a=t[o++],Ir[0]=i,Ir[1]=a,Or[0]=i,Or[1]=a;break;case At.L:Am(r,n,t[o],t[o+1],Ir,Or),r=t[o++],n=t[o++];break;case At.C:WE(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ir,Or),r=t[o++],n=t[o++];break;case At.Q:YE(r,n,t[o++],t[o++],t[o],t[o+1],Ir,Or),r=t[o++],n=t[o++];break;case At.A:var u=t[o++],f=t[o++],c=t[o++],h=t[o++],v=t[o++],d=t[o++]+v;o+=1;var g=!t[o++];l&&(i=hi(v)*c+u,a=vi(v)*h+f),$E(u,f,c,h,v,d,g,Ir,Or),r=hi(d)*c+u,n=vi(d)*h+f;break;case At.R:i=r=t[o++],a=n=t[o++];var p=t[o++],m=t[o++];Am(i,a,i+p,a+m,Ir,Or);break;case At.Z:r=i,n=a;break}Bn(Rr,Rr,Ir),Nn(Sn,Sn,Or)}return o===0&&(Rr[0]=Rr[1]=Sn[0]=Sn[1]=0),new _t(Rr[0],Rr[1],Sn[0]-Rr[0],Sn[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 v=t[h++],d=h===1;d&&(a=t[h],o=t[h+1],s=a,l=o);var g=-1;switch(v){case At.M:a=s=t[h++],o=l=t[h++];break;case At.L:{var p=t[h++],m=t[h++],y=p-a,x=m-o;(jr(y)>n||jr(x)>i||h===r-1)&&(g=Math.sqrt(y*y+x*x),a=p,o=m);break}case At.C:{var b=t[h++],w=t[h++],p=t[h++],m=t[h++],_=t[h++],T=t[h++];g=nM(a,o,b,w,p,m,_,T,10),a=_,o=T;break}case At.Q:{var b=t[h++],w=t[h++],p=t[h++],m=t[h++];g=oM(a,o,b,w,p,m,10),a=p,o=m;break}case At.A:var C=t[h++],D=t[h++],E=t[h++],P=t[h++],L=t[h++],I=t[h++],k=I+L;h+=1,d&&(s=hi(L)*E+C,l=vi(L)*P+D),g=Tc(E,P)*Sc(Ln,Math.abs(I)),a=hi(k)*E+C,o=vi(k)*P+D;break;case At.R:{s=a=t[h++],l=o=t[h++];var F=t[h++],N=t[h++];g=F*2+N*2;break}case At.Z:{var y=s-a,x=l-o;g=Math.sqrt(y*y+x*x),a=s,o=l;break}}g>=0&&(u[c++]=g,f+=g)}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,v=r<1,d,g,p=0,m=0,y,x=0,b,w;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=r*g,!y)))t:for(var _=0;_<o;){var T=n[_++],C=_===1;switch(C&&(u=n[_],f=n[_+1],s=u,l=f),T!==At.L&&x>0&&(t.lineTo(b,w),x=0),T){case At.M:s=u=n[_++],l=f=n[_++],t.moveTo(u,f);break;case At.L:{c=n[_++],h=n[_++];var D=jr(c-u),E=jr(h-f);if(D>i||E>a){if(v){var P=d[m++];if(p+P>y){var L=(y-p)/P;t.lineTo(u*(1-L)+c*L,f*(1-L)+h*L);break t}p+=P}t.lineTo(c,h),u=c,f=h,x=0}else{var I=D*D+E*E;I>x&&(b=c,w=h,x=I)}break}case At.C:{var k=n[_++],F=n[_++],N=n[_++],J=n[_++],W=n[_++],Z=n[_++];if(v){var P=d[m++];if(p+P>y){var L=(y-p)/P;ou(u,k,N,W,L,fi),ou(f,F,J,Z,L,ci),t.bezierCurveTo(fi[1],ci[1],fi[2],ci[2],fi[3],ci[3]);break t}p+=P}t.bezierCurveTo(k,F,N,J,W,Z),u=W,f=Z;break}case At.Q:{var k=n[_++],F=n[_++],N=n[_++],J=n[_++];if(v){var P=d[m++];if(p+P>y){var L=(y-p)/P;su(u,k,N,L,fi),su(f,F,J,L,ci),t.quadraticCurveTo(fi[1],ci[1],fi[2],ci[2]);break t}p+=P}t.quadraticCurveTo(k,F,N,J),u=N,f=J;break}case At.A:var ct=n[_++],xt=n[_++],yt=n[_++],Rt=n[_++],Ft=n[_++],xe=n[_++],Et=n[_++],Le=!n[_++],Er=yt>Rt?yt:Rt,ue=jr(yt-Rt)>.001,Yt=Ft+xe,ot=!1;if(v){var P=d[m++];p+P>y&&(Yt=Ft+xe*(y-p)/P,ot=!0),p+=P}if(ue&&t.ellipse?t.ellipse(ct,xt,yt,Rt,Et,Ft,Yt,Le):t.arc(ct,xt,Er,Ft,Yt,Le),ot)break t;C&&(s=hi(Ft)*yt+ct,l=vi(Ft)*Rt+xt),u=hi(Yt)*yt+ct,f=vi(Yt)*Rt+xt;break;case At.R:s=u=n[_],l=f=n[_+1],c=n[_++],h=n[_++];var gt=n[_++],M=n[_++];if(v){var P=d[m++];if(p+P>y){var R=y-p;t.moveTo(c,h),t.lineTo(c+Sc(R,gt),h),R-=gt,R>0&&t.lineTo(c+gt,h+Sc(R,M)),R-=M,R>0&&t.lineTo(c+Tc(gt-R,0),h+M),R-=gt,R>0&&t.lineTo(c,h+Tc(M-R,0));break t}p+=P}t.rect(c,h,gt,M);break;case At.Z:if(v){var P=d[m++];if(p+P>y){var L=(y-p)/P;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}p+=P}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=At,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function aa(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 qE(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=rM(e,t,r,n,i,a,o,s,u,f);return h<=c/2}function KE(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=aM(e,t,r,n,i,a,s,l);return f<=u/2}var Em=Math.PI*2;function el(e){return e%=Em,e<0&&(e+=Em),e}var no=Math.PI*2;function jE(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)%no<1e-4)return!0;if(a){var c=n;n=el(i),i=el(c)}else n=el(n),i=el(i);n>i&&(i+=no);var h=Math.atan2(l,s);return h<0&&(h+=no),h>=n&&h<=i||h+no>=n&&h+no<=i}function en(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 Tn=$i.CMD,di=Math.PI*2,ZE=1e-4;function JE(e,t){return Math.abs(e-t)<ZE}var Se=[-1,-1,-1],or=[-1,-1];function QE(){var e=or[0];or[0]=or[1],or[1]=e}function tP(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=au(t,n,a,s,u,Se);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=Se[g],m=p===0||p===1?.5:1,y=se(e,r,i,o,p);y<l||(h<0&&(h=Fx(t,n,a,s,or),or[1]<or[0]&&h>1&&QE(),v=se(t,n,a,s,or[0]),h>1&&(d=se(t,n,a,s,or[1]))),h===2?p<or[0]?c+=v<t?m:-m:p<or[1]?c+=d<v?m:-m:c+=s<d?m:-m:p<or[0]?c+=v<t?m:-m:c+=s<v?m:-m)}return c}function eP(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=iM(t,n,a,s,Se);if(l===0)return 0;var u=zx(t,n,a);if(u>=0&&u<=1){for(var f=0,c=ke(t,n,a,u),h=0;h<l;h++){var v=Se[h]===0||Se[h]===1?.5:1,d=ke(e,r,i,Se[h]);d<o||(Se[h]<u?f+=c<t?v:-v:f+=a<c?v:-v)}return f}else{var v=Se[0]===0||Se[0]===1?.5:1,d=ke(e,r,i,Se[0]);return d<o?0:a<t?v:-v}}function rP(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);Se[0]=-l,Se[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=di-1e-4){n=0,i=di;var f=a?1:-1;return o>=Se[0]+e&&o<=Se[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=di,i+=di);for(var h=0,v=0;v<2;v++){var d=Se[v];if(d+e>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=di+g),(g>=n&&g<=i||g+di>=n&&g+di<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),h+=f)}}return h}function pb(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,h,v,d=0;d<o;){var g=a[d++],p=d===1;switch(g===Tn.M&&d>1&&(r||(s+=en(l,u,f,c,n,i))),p&&(l=a[d],u=a[d+1],f=l,c=u),g){case Tn.M:f=a[d++],c=a[d++],l=f,u=c;break;case Tn.L:if(r){if(aa(l,u,a[d],a[d+1],t,n,i))return!0}else s+=en(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tn.C:if(r){if(qE(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=tP(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tn.Q:if(r){if(KE(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=eP(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tn.A:var m=a[d++],y=a[d++],x=a[d++],b=a[d++],w=a[d++],_=a[d++];d+=1;var T=!!(1-a[d++]);h=Math.cos(w)*x+m,v=Math.sin(w)*b+y,p?(f=h,c=v):s+=en(l,u,h,v,n,i);var C=(n-m)*b/x+m;if(r){if(jE(m,y,b,w,w+_,T,t,C,i))return!0}else s+=rP(m,y,b,w,w+_,T,C,i);l=Math.cos(w+_)*x+m,u=Math.sin(w+_)*b+y;break;case Tn.R:f=l=a[d++],c=u=a[d++];var D=a[d++],E=a[d++];if(h=f+D,v=c+E,r){if(aa(f,c,h,c,t,n,i)||aa(h,c,h,v,t,n,i)||aa(h,v,f,v,t,n,i)||aa(f,v,f,c,t,n,i))return!0}else s+=en(h,c,h,v,n,i),s+=en(f,v,f,c,n,i);break;case Tn.Z:if(r){if(aa(l,u,f,c,t,n,i))return!0}else s+=en(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!JE(u,c)&&(s+=en(l,u,f,c,n,i)||0),s!==0}function nP(e,t,r){return pb(e,0,!1,t,r)}function iP(e,t,r,n){return pb(e,t,!0,r,n)}var gb=St({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Bi),aP={style:St({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},tf.style)},Dc=rs.concat(["invisible","culling","z","z2","zlevel","parent"]),Nt=function(e){q(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<Dc.length;++s)i[Dc[s]]=this[Dc[s]];i.__dirty|=Xe}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Gt(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?Y(this.style,s):this.useStyle(s):o==="shape"?Y(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(tt(r)){var n=es(r,0);return n>.5?Qh:n>.2?OM:tv}else if(r)return tv}return Qh},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(tt(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=es(r,0)<Jh;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~ma},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 $i(!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&ma)&&(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)),iP(s,l/u,r,n)))return!0}if(this.hasFill())return nP(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ma,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:Y(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ma)},t.prototype.createStyle=function(r){return bs(gb,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Y({},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=Y({},i.shape),Y(u,n.shape)):(u=Y({},a?this.shape:i.shape),Y(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Y({},this.shape);for(var f={},c=Gt(u),h=0;h<c.length;h++){var v=c[h];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}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 aP},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){q(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 ut(r.style)},o.prototype.getDefaultShape=function(){return ut(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=Xe|xo|ma}(),t}(Ms),oP=St({strokeFirst:!0,font:Gi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},gb),uu=function(e){q(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 bs(oP,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=Od(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}(Ms);uu.prototype.type="tspan";var sP=St({x:0,y:0},Bi),lP={style:St({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},tf.style)};function uP(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var gn=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return bs(sP,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=uP(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 lP},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new _t(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ms);gn.prototype.type="image";function fP(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 xa=Math.round;function mb(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&&(xa(n*2)===xa(i*2)&&(e.x1=e.x2=Ei(n,s,!0)),xa(a*2)===xa(o*2)&&(e.y1=e.y2=Ei(a,s,!0))),e}}function yb(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=Ei(n,s,!0),e.y=Ei(i,s,!0),e.width=Math.max(Ei(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ei(i+o,s,!1)-e.y,o===0?0:1)),e}}function Ei(e,t,r){if(!t)return e;var n=xa(e*2);return(n+xa(t))%2===0?n/2:(n+(r?1:-1))/2}var cP=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),hP={},jt=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new cP},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=yb(hP,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?fP(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Nt);jt.prototype.type="rect";var Pm={fill:"#000"},Lm=2,vP={style:St({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},tf.style)},oe=function(e){q(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Pm,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,yP(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 _t(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||Pm},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return Y(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=Gt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},Y(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return vP},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||Gi,i=r.padding,a=Fm(r),o=OE(a,r),s=Mc(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,v=o.lineHeight,d=this._defaultStyle,g=r.x||0,p=r.y||0,m=r.align||d.align||"left",y=r.verticalAlign||d.verticalAlign||"top",x=g,b=ya(p,o.contentHeight,y);if(s||i){var w=wo(g,f,m),_=ya(p,u,y);s&&this._renderBackground(r,r,w,_,f,u)}b+=v/2,i&&(x=Nm(g,m,i),y==="top"?b+=i[0]:y==="bottom"&&(b-=i[2]));for(var T=0,C=!1,D=Bm("fill"in r?r.fill:(C=!0,d.fill)),E=km("stroke"in r?r.stroke:!l&&(!d.autoStroke||C)?(T=Lm,d.stroke):null),P=r.textShadowBlur>0,L=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,k=0;k<h.length;k++){var F=this._getOrCreateChild(uu),N=F.createStyle();F.useStyle(N),N.text=h[k],N.x=x,N.y=b,m&&(N.textAlign=m),N.textBaseline="middle",N.opacity=r.opacity,N.strokeFirst=!0,P&&(N.shadowBlur=r.textShadowBlur||0,N.shadowColor=r.textShadowColor||"transparent",N.shadowOffsetX=r.textShadowOffsetX||0,N.shadowOffsetY=r.textShadowOffsetY||0),N.stroke=E,N.fill=D,E&&(N.lineWidth=r.lineWidth||T,N.lineDash=r.lineDash,N.lineDashOffset=r.lineDashOffset||0),N.font=n,Im(N,r),b+=v,L&&F.setBoundingRect(new _t(wo(N.x,r.width,N.textAlign),ya(N.y,I,N.textBaseline),c,I))}},t.prototype._updateRichTexts=function(){var r=this.style,n=Fm(r),i=NE(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,v=r.verticalAlign||c.verticalAlign,d=wo(u,o,h),g=ya(f,s,v),p=d,m=g;l&&(p+=l[3],m+=l[0]);var y=p+a;Mc(r)&&this._renderBackground(r,r,d,g,o,s);for(var x=!!r.backgroundColor,b=0;b<i.lines.length;b++){for(var w=i.lines[b],_=w.tokens,T=_.length,C=w.lineHeight,D=w.width,E=0,P=p,L=y,I=T-1,k=void 0;E<T&&(k=_[E],!k.align||k.align==="left");)this._placeToken(k,r,C,m,P,"left",x),D-=k.width,P+=k.width,E++;for(;I>=0&&(k=_[I],k.align==="right");)this._placeToken(k,r,C,m,L,"right",x),D-=k.width,L-=k.width,I--;for(P+=(a-(P-p)-(y-L)-D)/2;E<=I;)k=_[E],this._placeToken(k,r,C,m,P+k.width/2,"center",x),P+=k.width,E++;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&&Mc(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 v=!!u.backgroundColor,d=r.textPadding;d&&(o=Nm(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(uu),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,x=0,b=Bm("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=km("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!m.autoStroke||y)?(x=Lm,m.stroke):null),_=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,_&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Gi,p.opacity=Lo(u.opacity,n.opacity,1),Im(p,u),w&&(p.lineWidth=Lo(u.lineWidth,n.lineWidth,x),p.lineDash=mt(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),b&&(p.fill=b);var T=r.contentWidth,C=r.contentHeight;g.setBoundingRect(new _t(wo(p.x,T,p.textAlign),ya(p.y,C,p.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,v=r.borderRadius,d=this,g,p;if(h||r.lineHeight||u&&f){g=this._getOrCreateChild(jt),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(h){var y=g.style;y.fill=l||null,y.fillOpacity=mt(r.fillOpacity,1)}else if(c){p=this._getOrCreateChild(gn),p.onload=function(){d.dirtyStyle()};var x=p.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&f){var y=g.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=mt(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(g||p).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Lo(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return mP(r)&&(n=[r.fontStyle,r.fontWeight,gP(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&wr(n)||r.textFont||r.font},t}(Ms),dP={left:!0,right:1,center:1},pP={top:1,bottom:1,middle:1},Rm=["fontStyle","fontWeight","fontSize","fontFamily"];function gP(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?xd+"px":e+"px"}function Im(e,t){for(var r=0;r<Rm.length;r++){var n=Rm[r],i=t[n];i!=null&&(e[n]=i)}}function mP(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function yP(e){return Om(e),A(e.rich,Om),e}function Om(e){if(e){e.font=oe.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||dP[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||pP[r]?r:"top";var n=e.padding;n&&(e.padding=Cd(e.padding))}}function km(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Bm(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Nm(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Fm(e){var t=e.text;return t!=null&&(t+=""),t}function Mc(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Tt=te(),_P=function(e,t,r,n){if(n){var i=Tt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Tt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},zm=1,Hm={},_b=te(),Vd=te(),Gd=0,ef=1,rf=2,$r=["emphasis","blur","select"],Vm=["normal","emphasis","blur","select"],xP=10,bP=9,Ni="highlight",zl="downplay",Oo="select",Hl="unselect",ko="toggleSelect";function oa(e){return e!=null&&e!=="none"}function nf(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function xb(e){nf(e,"emphasis",rf)}function bb(e){e.hoverState===rf&&nf(e,"normal",Gd)}function Ud(e){nf(e,"blur",ef)}function wb(e){e.hoverState===ef&&nf(e,"normal",Gd)}function wP(e){e.selected=!0}function SP(e){e.selected=!1}function Gm(e,t,r){t(e,r)}function mn(e,t,r){Gm(e,t,r),e.isGroup&&e.traverse(function(n){Gm(n,t,r)})}function Um(e,t){switch(t){case"emphasis":e.hoverState=rf;break;case"normal":e.hoverState=Gd;break;case"blur":e.hoverState=ef;break;case"select":e.selected=!0}}function TP(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 CP(e,t,r,n){var i=r&&Mt(r,"select")>=0,a=!1;if(e instanceof Nt){var o=_b(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(oa(s)||oa(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!oa(u.fill)&&oa(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=$h(s)):!oa(u.stroke)&&oa(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=$h(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??xP)}return n}function AP(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??bP)}return r}function DP(e,t,r){var n=Mt(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:TP(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Y({},r),o=Y({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ec(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return CP(this,e,t,r);if(e==="blur")return DP(this,e,r);if(e==="select")return AP(this,e,r)}return r}function MP(e){e.stateProxy=Ec;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ec),r&&(r.stateProxy=Ec)}function Wm(e,t){!Ab(e,t)&&!e.__highByOuter&&mn(e,xb)}function Ym(e,t){!Ab(e,t)&&!e.__highByOuter&&mn(e,bb)}function fu(e,t){e.__highByOuter|=1<<(t||0),mn(e,xb)}function cu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&mn(e,bb)}function EP(e){mn(e,Ud)}function Sb(e){mn(e,wb)}function Tb(e){mn(e,wP)}function Cb(e){mn(e,SP)}function Ab(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Db(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Vd(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){wb(u)}),s&&r.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function sv(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&&Sb(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 v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||Ud(p)}),Ee(t))a(u.getData(),t);else if(nt(t))for(var d=Gt(t),g=0;g<d.length;g++)a(u.getData(d[g]),t[d[g]]);l.push(u),Vd(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 lv(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Vd(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Ud(a)})}}}function PP(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Yi(i,t);a=(Q(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=Tt(o);sv(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&sv(n,f,c,r)}}}function Wd(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(Tt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function LP(e,t,r){var n=Tt(e),i=Wd(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&lv(n.componentMainType,n.componentIndex,r),A(a,function(s){return Wm(s,t)})):(sv(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&lv(n.componentMainType,n.componentIndex,r),Wm(e,t))}function RP(e,t,r){Db(r);var n=Tt(e),i=Wd(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?A(i,function(a){return Ym(a,t)}):Ym(e,t)}function IP(e,t,r){if(cv(t)){var n=t.dataType,i=e.getData(n),a=Yi(i,t);Q(a)||(a=[a]),e[t.type===ko?"toggleSelect":t.type===Oo?"select":"unselect"](a,n)}}function $m(e){var t=e.getAllData();A(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?Tb(a):Cb(a)})})}function OP(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();A(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 hu(e,t,r){Mb(e,!0),mn(e,MP),BP(e,t,r)}function kP(e){Mb(e,!1)}function uv(e,t,r,n){n?kP(e):hu(e,t,r)}function BP(e,t,r){var n=Tt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Xm=["emphasis","blur","select"],NP={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function qm(e,t,r,n){r=r||"itemStyle";for(var i=0;i<Xm.length;i++){var a=Xm[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=o[NP[r]]()}}function Mb(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 fv(e){return!!(e&&e.__highDownDispatcher)}function FP(e){var t=Hm[e];return t==null&&zm<=32&&(t=Hm[e]=zm++),t}function cv(e){var t=e.type;return t===Oo||t===Hl||t===ko}function Km(e){var t=e.type;return t===Ni||t===zl}function zP(e){var t=_b(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 sa=$i.CMD,HP=[[],[],[]],jm=Math.sqrt,VP=Math.atan2;function GP(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=sa.M,c=sa.C,h=sa.L,v=sa.R,d=sa.A,g=sa.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 g:a=2;break;case d:var p=t[4],m=t[5],y=jm(t[0]*t[0]+t[1]*t[1]),x=jm(t[2]*t[2]+t[3]*t[3]),b=VP(-t[1]/x,t[0]/y);r[o]*=y,r[o++]+=p,r[o]*=x,r[o++]+=m,r[o++]*=y,r[o++]*=x,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case v:u[0]=r[o++],u[1]=r[o++],Me(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Me(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var w=HP[l];w[0]=r[o++],w[1]=r[o++],Me(w,w,t),r[s++]=w[0],r[s++]=w[1]}}e.increaseVersion()}}var Pc=Math.sqrt,rl=Math.sin,nl=Math.cos,io=Math.PI;function Zm(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function hv(e,t){return(e[0]*t[0]+e[1]*t[1])/(Zm(e)*Zm(t))}function Jm(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(hv(e,t))}function Qm(e,t,r,n,i,a,o,s,l,u,f){var c=l*(io/180),h=nl(c)*(e-r)/2+rl(c)*(t-n)/2,v=-1*rl(c)*(e-r)/2+nl(c)*(t-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=Pc(d),s*=Pc(d));var g=(i===a?-1:1)*Pc((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,p=g*o*v/s,m=g*-s*h/o,y=(e+r)/2+nl(c)*p-rl(c)*m,x=(t+n)/2+rl(c)*p+nl(c)*m,b=Jm([1,0],[(h-p)/o,(v-m)/s]),w=[(h-p)/o,(v-m)/s],_=[(-1*h-p)/o,(-1*v-m)/s],T=Jm(w,_);if(hv(w,_)<=-1&&(T=io),hv(w,_)>=1&&(T=0),T<0){var C=Math.round(T/io*1e6)/1e6;T=io*2+C%2*io}f.addData(u,y,x,o,s,b,T,c,a)}var UP=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,WP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function YP(e){var t=new $i;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=$i.CMD,l=e.match(UP);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,v=f.match(WP)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var m=void 0,y=void 0,x=void 0,b=void 0,w=void 0,_=void 0,T=void 0,C=r,D=n,E=void 0,P=void 0;switch(c){case"l":r+=v[p++],n+=v[p++],h=s.L,t.addData(h,r,n);break;case"L":r=v[p++],n=v[p++],h=s.L,t.addData(h,r,n);break;case"m":r+=v[p++],n+=v[p++],h=s.M,t.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=v[p++],n=v[p++],h=s.M,t.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=v[p++],h=s.L,t.addData(h,r,n);break;case"H":r=v[p++],h=s.L,t.addData(h,r,n);break;case"v":n+=v[p++],h=s.L,t.addData(h,r,n);break;case"V":n=v[p++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":h=s.C,t.addData(h,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n),r+=v[p-2],n+=v[p-1];break;case"S":m=r,y=n,E=t.len(),P=t.data,o===s.C&&(m+=r-P[E-4],y+=n-P[E-3]),h=s.C,C=v[p++],D=v[p++],r=v[p++],n=v[p++],t.addData(h,m,y,C,D,r,n);break;case"s":m=r,y=n,E=t.len(),P=t.data,o===s.C&&(m+=r-P[E-4],y+=n-P[E-3]),h=s.C,C=r+v[p++],D=n+v[p++],r+=v[p++],n+=v[p++],t.addData(h,m,y,C,D,r,n);break;case"Q":C=v[p++],D=v[p++],r=v[p++],n=v[p++],h=s.Q,t.addData(h,C,D,r,n);break;case"q":C=v[p++]+r,D=v[p++]+n,r+=v[p++],n+=v[p++],h=s.Q,t.addData(h,C,D,r,n);break;case"T":m=r,y=n,E=t.len(),P=t.data,o===s.Q&&(m+=r-P[E-4],y+=n-P[E-3]),r=v[p++],n=v[p++],h=s.Q,t.addData(h,m,y,r,n);break;case"t":m=r,y=n,E=t.len(),P=t.data,o===s.Q&&(m+=r-P[E-4],y+=n-P[E-3]),r+=v[p++],n+=v[p++],h=s.Q,t.addData(h,m,y,r,n);break;case"A":x=v[p++],b=v[p++],w=v[p++],_=v[p++],T=v[p++],C=r,D=n,r=v[p++],n=v[p++],h=s.A,Qm(C,D,r,n,_,T,x,b,w,h,t);break;case"a":x=v[p++],b=v[p++],w=v[p++],_=v[p++],T=v[p++],C=r,D=n,r+=v[p++],n+=v[p++],h=s.A,Qm(C,D,r,n,_,T,x,b,w,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),r=i,n=a),o=h}return t.toStatic(),t}var Eb=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Nt);function Pb(e){return e.setData!=null}function Lb(e,t){var r=YP(e),n=Y({},t);return n.buildPath=function(i){if(Pb(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){GP(r,i),this.dirtyShape()},n}function $P(e,t){return new Eb(Lb(e,t))}function XP(e,t){var r=Lb(e,t),n=function(i){q(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(Eb);return n}function qP(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 Nt(t);return o.createPathProxy(),o.buildPath=function(s){if(Pb(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var KP=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Es=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new KP},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}(Nt);Es.prototype.type="circle";var jP=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),af=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new jP},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}(Nt);af.prototype.type="ellipse";var Rb=Math.PI,Lc=Rb*2,pi=Math.sin,la=Math.cos,ZP=Math.acos,ce=Math.atan2,ty=Math.abs,Bo=Math.sqrt,So=Math.max,kr=Math.min,_r=1e-4;function JP(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<_r))return h=(f*(t-a)-c*(e-i))/h,[e+h*l,t+h*u]}function il(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/Bo(s*s+l*l),f=u*l,c=-u*s,h=e+f,v=t+c,d=r+f,g=n+c,p=(h+d)/2,m=(v+g)/2,y=d-h,x=g-v,b=y*y+x*x,w=i-a,_=h*g-d*v,T=(x<0?-1:1)*Bo(So(0,w*w*b-_*_)),C=(_*x-y*T)/b,D=(-_*y-x*T)/b,E=(_*x+y*T)/b,P=(-_*y+x*T)/b,L=C-p,I=D-m,k=E-p,F=P-m;return L*L+I*I>k*k+F*F&&(C=E,D=P),{cx:C,cy:D,x0:-f,y0:-c,x1:C*(i/w-1),y1:D*(i/w-1)}}function QP(e){var t;if(Q(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 tL(e,t){var r,n=So(t.r,0),i=So(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,h=!!t.clockwise,v=ty(u-l),d=v>Lc&&v%Lc;if(d>_r&&(v=d),!(n>_r))e.moveTo(f,c);else if(v>Lc-_r)e.moveTo(f+n*la(l),c+n*pi(l)),e.arc(f,c,n,l,u,!h),i>_r&&(e.moveTo(f+i*la(u),c+i*pi(u)),e.arc(f,c,i,u,l,h));else{var g=void 0,p=void 0,m=void 0,y=void 0,x=void 0,b=void 0,w=void 0,_=void 0,T=void 0,C=void 0,D=void 0,E=void 0,P=void 0,L=void 0,I=void 0,k=void 0,F=n*la(l),N=n*pi(l),J=i*la(u),W=i*pi(u),Z=v>_r;if(Z){var ct=t.cornerRadius;ct&&(r=QP(ct),g=r[0],p=r[1],m=r[2],y=r[3]);var xt=ty(n-i)/2;if(x=kr(xt,m),b=kr(xt,y),w=kr(xt,g),_=kr(xt,p),D=T=So(x,b),E=C=So(w,_),(T>_r||C>_r)&&(P=n*la(u),L=n*pi(u),I=i*la(l),k=i*pi(l),v<Rb)){var yt=JP(F,N,I,k,P,L,J,W);if(yt){var Rt=F-yt[0],Ft=N-yt[1],xe=P-yt[0],Et=L-yt[1],Le=1/pi(ZP((Rt*xe+Ft*Et)/(Bo(Rt*Rt+Ft*Ft)*Bo(xe*xe+Et*Et)))/2),Er=Bo(yt[0]*yt[0]+yt[1]*yt[1]);D=kr(T,(n-Er)/(Le+1)),E=kr(C,(i-Er)/(Le-1))}}}if(!Z)e.moveTo(f+F,c+N);else if(D>_r){var ue=kr(m,D),Yt=kr(y,D),ot=il(I,k,F,N,n,ue,h),gt=il(P,L,J,W,n,Yt,h);e.moveTo(f+ot.cx+ot.x0,c+ot.cy+ot.y0),D<T&&ue===Yt?e.arc(f+ot.cx,c+ot.cy,D,ce(ot.y0,ot.x0),ce(gt.y0,gt.x0),!h):(ue>0&&e.arc(f+ot.cx,c+ot.cy,ue,ce(ot.y0,ot.x0),ce(ot.y1,ot.x1),!h),e.arc(f,c,n,ce(ot.cy+ot.y1,ot.cx+ot.x1),ce(gt.cy+gt.y1,gt.cx+gt.x1),!h),Yt>0&&e.arc(f+gt.cx,c+gt.cy,Yt,ce(gt.y1,gt.x1),ce(gt.y0,gt.x0),!h))}else e.moveTo(f+F,c+N),e.arc(f,c,n,l,u,!h);if(!(i>_r)||!Z)e.lineTo(f+J,c+W);else if(E>_r){var ue=kr(g,E),Yt=kr(p,E),ot=il(J,W,P,L,i,-Yt,h),gt=il(F,N,I,k,i,-ue,h);e.lineTo(f+ot.cx+ot.x0,c+ot.cy+ot.y0),E<C&&ue===Yt?e.arc(f+ot.cx,c+ot.cy,E,ce(ot.y0,ot.x0),ce(gt.y0,gt.x0),!h):(Yt>0&&e.arc(f+ot.cx,c+ot.cy,Yt,ce(ot.y0,ot.x0),ce(ot.y1,ot.x1),!h),e.arc(f,c,i,ce(ot.cy+ot.y1,ot.cx+ot.x1),ce(gt.cy+gt.y1,gt.cx+gt.x1),h),ue>0&&e.arc(f+gt.cx,c+gt.cy,ue,ce(gt.y1,gt.x1),ce(gt.y0,gt.x0),!h))}else e.lineTo(f+J,c+W),e.arc(f,c,i,u,l,h)}e.closePath()}}}var eL=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}(),Ps=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eL},t.prototype.buildPath=function(r,n){tL(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Nt);Ps.prototype.type="sector";var rL=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),of=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new rL},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}(Nt);of.prototype.type="ring";function nL(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,v=e.length;h<v;h++)Bn(f,f,e[h]),Nn(c,c,e[h]);Bn(f,f,n[0]),Nn(c,c,n[1])}for(var h=0,v=e.length;h<v;h++){var d=e[h];if(r)l=e[h?h-1:v-1],u=e[(h+1)%v];else if(h===0||h===v-1){i.push(Tx(e[h]));continue}else l=e[h-1],u=e[h+1];Cx(a,u,l),Rl(a,a,t);var g=ru(d,l),p=ru(d,u),m=g+p;m!==0&&(g/=m,p/=m),Rl(o,a,-g),Rl(s,a,p);var y=zh([],d,o),x=zh([],d,s);n&&(Nn(y,y,f),Bn(y,y,c),Nn(x,x,f),Bn(x,x,c)),i.push(y),i.push(x)}return r&&i.push(i.shift()),i}function Ib(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=nL(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 iL=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Ls=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new iL},t.prototype.buildPath=function(r,n){Ib(r,n,!0)},t}(Nt);Ls.prototype.type="polygon";var aL=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Rs=function(e){q(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 aL},t.prototype.buildPath=function(r,n){Ib(r,n,!1)},t}(Nt);Rs.prototype.type="polyline";var oL={},sL=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),cn=function(e){q(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 sL},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=mb(oL,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}(Nt);cn.prototype.type="line";var Re=[],lL=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 ey(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?im:se)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?im:se)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?am:ke)(e.x1,e.cpx1,e.x2,t),(r?am:ke)(e.y1,e.cpy1,e.y2,t)]}var sf=function(e){q(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 lL},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&&(su(i,l,o,h,Re),l=Re[1],o=Re[2],su(a,u,s,h,Re),u=Re[1],s=Re[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(ou(i,l,f,o,h,Re),l=Re[1],f=Re[2],o=Re[3],ou(a,u,c,s,h,Re),u=Re[1],c=Re[2],s=Re[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return ey(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=ey(this.shape,r,!0);return Ax(n,n)},t}(Nt);sf.prototype.type="bezier-curve";var uL=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}(),Is=function(e){q(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 uL},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}(Nt);Is.prototype.type="arc";var fL=function(e){q(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),Nt.prototype.getBoundingRect.call(this)},t}(Nt);const Ob=fL;var kb=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),Yd=function(e){q(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}(kb),cL=function(e){q(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}(kb);const Bb=cL;var gi=[0,0],mi=[0,0],al=new kt,ol=new kt,hL=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new kt;for(var n=0;n<2;n++)this._axes[n]=new kt;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);kt.sub(i[0],n[1],n[0]),kt.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 al.set(1/0,1/0),ol.set(0,0),!this._intersectCheckOneSide(this,t,al,ol,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,al,ol,i,-1)&&(n=!1,i)||i||kt.copy(r,n?al:ol),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,gi),this._getProjMinMaxOnAxis(l,r._corners,mi),gi[1]<mi[0]||gi[0]>mi[1]){if(s=!1,a)return s;var f=Math.abs(mi[0]-gi[1]),c=Math.abs(gi[0]-mi[1]);Math.min(f,c)>i.len()&&(f<c?kt.scale(i,u,-f*o):kt.scale(i,u,c*o))}else if(n){var f=Math.abs(mi[0]-gi[1]),c=Math.abs(gi[0]-mi[1]);Math.min(f,c)<n.len()&&(f<c?kt.scale(n,u,f*o):kt.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}();const vu=hL;var vL=[],dL=function(e){q(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 _t(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(vL)),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}(Ms);const Nb=dL;var pL=te();function gL(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=mt(n.duration,200),f=mt(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)),ft(c)&&(c=c(r,i)),ft(u)&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function $d(e,t,r,n,i,a,o){var s=!1,l;ft(i)?(o=a,a=i,i=null):nt(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=gL(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,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function hn(e,t,r,n,i,a){$d("update",e,t,r,n,i,a)}function Ua(e,t,r,n,i,a){$d("enter",e,t,r,n,i,a)}function No(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 du(e,t,r,n,i,a){No(e)||$d("leave",e,t,r,n,i,a)}function ry(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),du(e,{style:{opacity:0}},t,r,n)}function mL(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||ry(i,t,r,n)}):ry(e,t,r,n)}function yL(e){pL(e).oldStyle=e.style}var pu=Math.max,gu=Math.min,vv={};function Fb(e){return Nt.extend(e)}var _L=XP;function zb(e,t){return _L(e,t)}function dr(e,t){vv[e]=t}function Hb(e){if(vv.hasOwnProperty(e))return vv[e]}function lf(e,t,r,n){var i=$P(e,t);return r&&(n==="center"&&(r=Vb(r,i.getBoundingRect())),qd(i,r)),i}function Xd(e,t,r){var n=new gn({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(Vb(t,a))}}});return n}function Vb(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 Gb=qP;function qd(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function os(e,t){return mb(e,e,{lineWidth:t}),e}function xL(e){return yb(e.shape,e.shape,e.style),e}var bL=Ei;function Kd(e,t){for(var r=ws([]);e&&e!==t;)Vn(r,e.getLocalTransform(),r),e=e.parent;return r}function uf(e,t,r){return t&&!Ee(t)&&(t=Id.getLocalTransform(t)),r&&(t=Ts([],t)),Me([],e,t)}function Ub(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=uf(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function ny(e){return!e.isGroup}function wL(e){return e.shape!=null}function jd(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){ny(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return wL(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(ny(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),hn(o,l,r,Tt(o).dataIndex)}}})}function Zd(e,t){return et(e,function(r){var n=r[0];n=pu(n,t.x),n=gu(n,t.x+t.width);var i=r[1];return i=pu(i,t.y),i=gu(i,t.y+t.height),[n,i]})}function Wb(e,t){var r=pu(e.x,t.x),n=gu(e.x+e.width,t.x+t.width),i=pu(e.y,t.y),a=gu(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 ff(e,t,r){var n=Y({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),St(i,r),new gn(n)):lf(e.replace("path://",""),n,r,"center")}function SL(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Yb(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Yb(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,h=Rc(f,c,l,u);if(TL(h))return!1;var v=e-i,d=t-a,g=Rc(v,d,l,u)/h;if(g<0||g>1)return!1;var p=Rc(v,d,f,c)/h;return!(p<0||p>1)}function Rc(e,t,r,n){return e*n-r*t}function TL(e){return e<=1e-6&&e>=-1e-6}function Jd(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=tt(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&&A(Gt(l),function(f){Ui(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Tt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:St({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function iy(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Qd(e,t){if(e)if(Q(e))for(var r=0;r<e.length;r++)iy(e[r],t);else iy(e,t)}dr("circle",Es);dr("ellipse",af);dr("sector",Ps);dr("ring",of);dr("polygon",Ls);dr("polyline",Rs);dr("rect",jt);dr("line",cn);dr("bezierCurve",sf);dr("arc",Is);const CL=Object.freeze(Object.defineProperty({__proto__:null,Arc:Is,BezierCurve:sf,BoundingRect:_t,Circle:Es,CompoundPath:Ob,Ellipse:af,Group:Jt,Image:gn,IncrementalDisplayable:Nb,Line:cn,LinearGradient:Yd,OrientedBoundingRect:vu,Path:Nt,Point:kt,Polygon:Ls,Polyline:Rs,RadialGradient:Bb,Rect:jt,Ring:of,Sector:Ps,Text:oe,applyTransform:uf,clipPointsByRect:Zd,clipRectByRect:Wb,createIcon:ff,extendPath:zb,extendShape:Fb,getShapeClass:Hb,getTransform:Kd,groupTransition:jd,initProps:Ua,isElementRemoved:No,lineLineIntersect:Yb,linePolygonIntersect:SL,makeImage:Xd,makePath:lf,mergePath:Gb,registerShape:dr,removeElement:du,removeElementWithFadeOut:mL,resizePath:qd,setTooltipConfig:Jd,subPixelOptimize:bL,subPixelOptimizeLine:os,subPixelOptimizeRect:xL,transformDirection:Ub,traverseElements:Qd,updateProps:hn},Symbol.toStringTag,{value:"Module"}));var cf={};function AL(e,t){for(var r=0;r<$r.length;r++){var n=$r[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 ay(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=ft(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<$r.length;u++){var f=$r[u],c=t[f];l[f]=mt(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function tp(e,t,r,n){r=r||cf;for(var i=e instanceof oe,a=!1,o=0;o<Vm.length;o++){var s=t[Vm[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new oe,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=ay(r,t),f=t.normal,c=!!f.getShallow("show"),h=vn(f,n&&n.normal,r,!1,!i);h.text=u.normal,i||e.setTextConfig(oy(f,r,!1));for(var o=0;o<$r.length;o++){var v=$r[o],s=t[v];if(s){var d=l.ensureState(v),g=!!mt(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=vn(s,n&&n[v],r,!0,!i),d.style.text=u[v],!i){var p=e.ensureState(v);p.textConfig=oy(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&&($b(l).setLabelText=function(m){var y=ay(r,t,m);AL(l,y)})}else l&&(l.ignore=!0);e.dirty()}function ep(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<$r.length;n++){var i=$r[n];r[i]=e.getModel([i,t])}return r}function vn(e,t,r,n,i){var a={};return DL(a,e,r,n,i),t&&Y(a,t),a}function oy(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=mt(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 DL(e,t,r,n,i){r=r||cf;var a=t.ecModel,o=a&&a.option.textStyle,s=ML(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);fy(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),fy(e,t,o,r,n,i,!0,!1)}function ML(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||cf).rich;if(r){t=t||{};for(var n=Gt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var sy=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ly=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],uy=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function fy(e,t,r,n,i,a,o,s){r=!i&&r||cf;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=mt(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=mt(t.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(e.lineWidth=h);var v=mt(t.getShallow("textBorderType"),r.textBorderType);v!=null&&(e.lineDash=v);var d=mt(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(e.lineDashOffset=d),!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 g=0;g<sy.length;g++){var p=sy[g],m=mt(t.getShallow(p),r[p]);m!=null&&(e[p]=m)}for(var g=0;g<ly.length;g++){var p=ly[g],m=t.getShallow(p);m!=null&&(e[p]=m)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!n.disableBox){for(var g=0;g<uy.length;g++){var p=uy[g],m=t.getShallow(p);m!=null&&(e[p]=m)}var x=t.getShallow("borderType");x!=null&&(e.borderDash=x),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function EL(e,t){var r=t&&t.getModel("textStyle");return wr([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 $b=te(),PL=["textStyle","color"],Ic=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Oc=new oe,LL=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(PL):null)},e.prototype.getFont=function(){return EL({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<Ic.length;n++)r[Ic[n]]=this.getShallow(Ic[n]);return Oc.useStyle(r),Oc.update(),Oc.getBoundingRect()},e}(),Xb=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],RL=ka(Xb),IL=function(){function e(){}return e.prototype.getLineStyle=function(t){return RL(this,t)},e}(),qb=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],OL=ka(qb),kL=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return OL(this,t,r)},e}(),Vt=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){pt(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(ut(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}();Hd(Vt);AE(Vt);Qe(Vt,IL);Qe(Vt,kL);Qe(Vt,LE);Qe(Vt,LL);var BL=Math.round(Math.random()*10);function hf(e){return[e||"",BL++].join("_")}function NL(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Vr(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Vr(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function FL(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(A(a,function(y){h[y]=!0});c.length;){var v=c.pop(),d=f[v],g=!!h[v];g&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),A(d.successor,g?m:p)}A(h,function(){var y="";throw new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){h[y]=!0,p(y)}};function r(a){var o={},s=[];return A(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),A(c,function(h){Mt(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);Mt(v.successor,h)<0&&v.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 A(a,function(l){Mt(o,l)>=0&&s.push(l)}),s}}function zL(e,t){return pt(pt({},e,!0),t,!0)}const HL={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:". "}}}},VL={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 mu="ZH",rp="EN",Pa=rp,Vl={},np={},Kb=lt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Pa).toUpperCase();return e.indexOf(mu)>-1?mu:Pa}():Pa;function ip(e,t){e=e.toUpperCase(),np[e]=new Vt(t),Vl[e]=t}function GL(e){if(tt(e)){var t=Vl[e.toUpperCase()]||{};return e===mu||e===rp?ut(t):pt(ut(t),ut(Vl[Pa]),!1)}else return pt(ut(e),ut(Vl[Pa]),!1)}function UL(e){return np[e]}function WL(){return np[Pa]}ip(rp,HL);ip(mu,VL);var ap=1e3,op=ap*60,Fo=op*60,fr=Fo*24,cy=fr*365,To={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},sl="{yyyy}-{MM}-{dd}",hy={year:"{yyyy}",month:"{yyyy}-{MM}",day:sl,hour:sl+" "+To.hour,minute:sl+" "+To.minute,second:sl+" "+To.second,millisecond:To.none},kc=["year","month","day","hour","minute","second","millisecond"],jb=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Te(e,t){return e+="","0000".substr(0,t-e.length)+e}function La(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function YL(e){return e===La(e)}function $L(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Os(e,t,r,n){var i=vr(e),a=i[sp(r)](),o=i[Ra(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[vf(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[ss(r)](),c=(f-1)%12+1,h=i[df(r)](),v=i[pf(r)](),d=i[gf(r)](),g=f>=12?"pm":"am",p=g.toUpperCase(),m=n instanceof Vt?n:UL(n||Kb)||WL(),y=m.getModel("time"),x=y.get("month"),b=y.get("monthAbbr"),w=y.get("dayOfWeek"),_=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Te(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Te(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Te(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Te(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Te(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Te(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Te(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Te(d,3)).replace(/{S}/g,d+"")}function XL(e,t,r,n,i){var a=null;if(tt(r))a=r;else if(ft(r))a=r(e.value,t,{level:e.level});else{var o=Y({},To);if(e.level>0)for(var s=0;s<kc.length;++s)o[kc[s]]="{primary|"+o[kc[s]]+"}";var l=r?r.inherit===!1?r:St(r,o):o,u=Zb(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=jb.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Q(a)){var c=e.level==null?0:e.level>=0?e.level:a.length+e.level;c=Math.min(c,a.length-1),a=a[c]}}return Os(new Date(e.value),a,i,n)}function Zb(e,t){var r=vr(e),n=r[Ra(t)]()+1,i=r[vf(t)](),a=r[ss(t)](),o=r[df(t)](),s=r[pf(t)](),l=r[gf(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function vy(e,t,r){var n=Ut(e)?vr(e):e;switch(t=t||Zb(e,r),t){case"year":return n[sp(r)]();case"half-year":return n[Ra(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ra(r)]()+1)/4);case"month":return n[Ra(r)]();case"day":return n[vf(r)]();case"half-day":return n[ss(r)]()/24;case"hour":return n[ss(r)]();case"minute":return n[df(r)]();case"second":return n[pf(r)]();case"millisecond":return n[gf(r)]()}}function sp(e){return e?"getUTCFullYear":"getFullYear"}function Ra(e){return e?"getUTCMonth":"getMonth"}function vf(e){return e?"getUTCDate":"getDate"}function ss(e){return e?"getUTCHours":"getHours"}function df(e){return e?"getUTCMinutes":"getMinutes"}function pf(e){return e?"getUTCSeconds":"getSeconds"}function gf(e){return e?"getUTCMilliseconds":"getMilliseconds"}function qL(e){return e?"setUTCFullYear":"setFullYear"}function Jb(e){return e?"setUTCMonth":"setMonth"}function Qb(e){return e?"setUTCDate":"setDate"}function tw(e){return e?"setUTCHours":"setHours"}function ew(e){return e?"setUTCMinutes":"setMinutes"}function rw(e){return e?"setUTCSeconds":"setSeconds"}function nw(e){return e?"setUTCMilliseconds":"setMilliseconds"}function KL(e,t,r,n,i,a,o,s){var l=new oe({style:{text:e,font:t,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function lp(e){if(!rb(e))return tt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function up(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 ks=Cd;function dv(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&wr(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?vr(e):e;if(isNaN(+l)){if(s)return"-"}else return Os(l,n,r)}if(t==="ordinal")return tu(e)?i(e):Ut(e)&&a(e)?e+"":"-";var u=is(e);return a(u)?lp(u):tu(e)?i(e):typeof e=="boolean"?e+"":"-"}var dy=["a","b","c","d","e","f","g"],Bc=function(e,t){return"{"+e+(t??"")+"}"};function fp(e,t,r){Q(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=dy[a];e=e.replace(Bc(o),Bc(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(Bc(dy[l],s),r?Oe(u):u)}return e}function iw(e,t){var r=tt(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:'+Oe(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Oe(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 jL(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
yyyy`);var n=vr(t),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return e=e.replace("MM",Te(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Te(a%100+"",2)).replace("dd",Te(s,2)).replace("d",s).replace("hh",Te(l,2)).replace("h",l).replace("mm",Te(u,2)).replace("m",u).replace("ss",Te(f,2)).replace("s",f).replace("SSS",Te(c,3)),e}function ZL(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Xi(e,t){return t=t||"transparent",tt(e)?e:nt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function py(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Gl=A,JL=["left","right","top","bottom","width","height"],ll=[["width","left","right"],["height","top","bottom"]];function cp(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(),v,d;if(e==="horizontal"){var g=f.width+(h?-h.x+f.x:0);v=a+g,v>n||l.newline?(a=0,v=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(h?-h.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var zo=cp;Ht(cp,"vertical");Ht(cp,"horizontal");function qi(e,t,r){r=ks(r||0);var n=t.width,i=t.height,a=Ae(e.left,n),o=Ae(e.top,i),s=Ae(e.right,n),l=Ae(e.bottom,i),u=Ae(e.width,n),f=Ae(e.height,i),c=r[2]+r[0],h=r[1]+r[3],v=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),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 d=new _t(a+r[3],o+r[0],u,f);return d.margin=r,d}function ls(e){var t=e.layoutMode||e.constructor.layoutMode;return nt(t)?t:t?{type:t}:null}function Ba(e,t,r){var n=r&&r.ignoreSize;!Q(n)&&(n=[n,n]);var i=o(ll[0],0),a=o(ll[1],1);u(ll[0],e,i),u(ll[1],e,a);function o(f,c){var h={},v=0,d={},g=0,p=2;if(Gl(f,function(x){d[x]=e[x]}),Gl(f,function(x){s(t,x)&&(h[x]=d[x]=t[x]),l(h,x)&&v++,l(d,x)&&g++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return h;for(var m=0;m<f.length;m++){var y=f[m];if(!s(h,y)&&s(e,y)){h[y]=e[y];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){Gl(f,function(v){c[v]=h[v]})}}function mf(e){return QL({},e)}function QL(e,t){return t&&e&&Gl(JL,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var tR=te(),wt=function(e){q(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=hf("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ls(this),a=i?mf(r):{},o=n.getTheme();pt(r,o.get(this.mainType)),pt(r,this.getDefaultOption()),i&&Ba(r,a,i)},t.prototype.mergeOption=function(r,n){pt(this.option,r,!0);var i=ls(this);i&&Ba(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!SE(r))return r.defaultOption;var n=tR(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=pt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Ds(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}(Vt);ub(wt,Vt);Ju(wt);NL(wt);FL(wt,eR);function eR(e){var t=[];return A(wt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=et(t,function(r){return Vr(r).main}),e!=="dataset"&&Mt(t,"dataset")<=0&&t.unshift("dataset"),t}var aw="";typeof navigator<"u"&&(aw=navigator.platform||"");var ua="rgba(0, 0, 0, 0.2)";const rR={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ua,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ua,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ua,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ua,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ua,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ua,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:aw.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 ow=dt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),pr="original",He="arrayRows",Xr="objectRows",yn="keyedColumns",Un="typedArray",sw="unknown",sn="column",Wa="row",Ye={Must:1,Might:2,Not:3},lw=te();function nR(e){lw(e).datasetMap=dt()}function iR(e,t,r){var n={},i=uw(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=lw(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),A(e,function(g,p){var m=nt(g)?g:e[p]={name:g};m.type==="ordinal"&&f==null&&(f=p,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});A(e,function(g,p){var m=g.name,y=d(g);if(f==null){var x=h.valueWayDim;v(n[m],x,y),v(o,x,y),h.valueWayDim+=y}else if(f===p)v(n[m],0,y),v(a,0,y);else{var x=h.categoryWayDim;v(n[m],x,y),v(o,x,y),h.categoryWayDim+=y}});function v(g,p,m){for(var y=0;y<m;y++)g.push(p+y)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function uw(e){var t=e.get("data",!0);if(!t)return Ds(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},cr).models[0]}function aR(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Ds(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},cr).models}function fw(e,t){return oR(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function oR(e,t,r,n,i,a){var o,s=5;if(Pe(e))return Ye.Not;var l,u;if(n){var f=n[a];nt(f)?(l=f.name,u=f.type):tt(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ye.Must:Ye.Not;if(t===He){var c=e;if(r===Wa){for(var h=c[a],v=0;v<(h||[]).length&&v<s;v++)if((o=b(h[i+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[i+v];if(d&&(o=b(d[a]))!=null)return o}}else if(t===Xr){var g=e;if(!l)return Ye.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=b(p[l]))!=null)return o}}else if(t===yn){var m=e;if(!l)return Ye.Not;var h=m[l];if(!h||Pe(h))return Ye.Not;for(var v=0;v<h.length&&v<s;v++)if((o=b(h[v]))!=null)return o}else if(t===pr)for(var y=e,v=0;v<y.length&&v<s;v++){var p=y[v],x=As(p);if(!Q(x))return Ye.Not;if((o=b(x[a]))!=null)return o}function b(w){var _=tt(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return _?Ye.Might:Ye.Not;if(_&&w!=="-")return Ye.Must}return Ye.Not}var sR=dt();function lR(e,t,r){var n=sR.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var gy=te(),uR=te(),hp=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=ie(this.get("color",!0)),a=this.get("colorLayer",!0);return cw(this,gy,i,a,t,r,n)},e.prototype.clearColorPalette=function(){cR(this,gy)},e}();function my(e,t,r,n){var i=ie(e.get(["aria","decal","decals"]));return cw(e,uR,i,null,t,r,n)}function fR(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 cw(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:fR(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 cR(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var ul,ao,yy,_y="\0_ec_inner",hR=1,vp=function(e){q(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 Vt(a),this._locale=new Vt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=wy(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,wy(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"?yy(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&&A(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=dt(),u=n&&n.replaceMergeMainTypeMap;nR(this),A(r,function(c,h){c!=null&&(wt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?ut(c):pt(i[h],c,!0))}),u&&u.each(function(c,h){wt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),f,this);function f(c){var h=lR(this,c,ie(r[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=lE(v,h,d);pE(g,c,wt),i[c]=null,a.set(c,null),o.set(c,0);var p=[],m=[],y=0,x;A(g,function(b,w){var _=b.existing,T=b.newOption;if(!T)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var C=c==="series",D=wt.getClass(c,b.keyInfo.subType,!C);if(!D)return;if(c==="tooltip"){if(x)return;x=!0}if(_&&_.constructor===D)_.name=b.keyInfo.name,_.mergeOption(T,this),_.optionUpdated(T,!1);else{var E=Y({componentIndex:w},b.keyInfo);_=new D(T,this,this,E),Y(_,E),b.brandNew&&(_.__requireNewView=!0),_.init(T,this,this),_.optionUpdated(null,!0)}}_?(p.push(_.option),m.push(_),y++):(p.push(void 0),m.push(void 0))},this),i[c]=p,a.set(c,m),o.set(c,y),c==="series"&&ul(this)}this._seriesIndices||ul(this)},t.prototype.getOption=function(){var r=ut(this.option);return A(r,function(n,i){if(wt.hasClass(i)){for(var a=ie(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!as(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[_y],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=[],A(ie(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=xy("id",a,s):o!=null?l=xy("name",o,s):l=ee(s,function(u){return!!u}),by(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):ee(this._componentsMap.get(i),function(u){return!!u});return l(by(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?ee(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(ft(r)){var o=n,s=r;a.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=tt(r)?a.get(r):nt(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=Ur(r,null);return ee(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 ee(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return ee(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){ao(this),A(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){A(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){ao(this),A(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 A(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return ao(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){ao(this);var i=[];A(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=dt(i)},t.prototype.restoreData=function(r){ul(this);var n=this._componentsMap,i=[];n.each(function(a,o){wt.hasClass(o)&&i.push(o)}),wt.topologicalTravel(i,wt.getAllClassMainTypes(),function(a){A(n.get(a),function(o){o&&(a!=="series"||!vR(o,r))&&o.restoreData()})})},t.internalField=function(){ul=function(r){var n=r._seriesIndices=[];A(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=dt(n)},ao=function(r){},yy=function(r,n){r.option={},r.option[_y]=hR,r._componentsMap=dt({series:[]}),r._componentsCount=dt();var i=n.aria;nt(i)&&i.enabled==null&&(i.enabled=!0),dR(n,r._theme.option),pt(n,rR,!1),r._mergeOption(n,null)}}(),t}(Vt);function vR(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 dR(e,t){var r=e.color&&!e.colorLayer;A(t,function(n,i){i==="colorLayer"&&r||wt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?pt(e[i],n,!1):ut(n):e[i]==null&&(e[i]=n))})}function xy(e,t,r){if(Q(t)){var n=dt();return A(t,function(a){if(a!=null){var o=Ur(a,null);o!=null&&n.set(a,!0)}}),ee(r,function(a){return a&&n.get(a[e])})}else{var i=Ur(t,null);return ee(r,function(a){return a&&i!=null&&a[e]===i})}}function by(e,t){return t.hasOwnProperty("subType")?ee(e,function(r){return r&&r.subType===t.subType}):e}function wy(e){var t=dt();return e&&A(ie(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Qe(vp,hp);var pR=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],hw=function(){function e(t){A(pR,function(r){this[r]=Lt(t[r],t)},this)}return e}(),Nc={},yf=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];A(Nc,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){A(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Nc[t]=r},e.get=function(t){return Nc[t]},e}(),gR=/^(min|max)?(.+)$/,mR=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(A(ie(t.series),function(o){o&&o.data&&Pe(o.data)&&eu(o.data)}),A(ie(t.dataset),function(o){o&&o.source&&Pe(o.source)&&eu(o.source)})),t=ut(t);var i=this._optionBackup,a=yR(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=[],ut(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=ut(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++)_R(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!bR(o,this._currentMediaIndices)&&(s=et(o,function(f){return ut(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function yR(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&&Q(u)&&A(u,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),h(a),A(l,function(v){return h(v)}),A(n,function(v){return h(v.option)});function h(v){A(t,function(d){d(v,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function _R(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return A(e,function(a,o){var s=o.match(gR);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();xR(n[u],a,l)||(i=!1)}}),i}function xR(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function bR(e,t){return e.join(",")===t.join(",")}var mr=A,us=nt,Sy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Fc(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?pt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?pt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function de(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,St(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 Co(e){de(e,"itemStyle"),de(e,"lineStyle"),de(e,"areaStyle"),de(e,"label"),de(e,"labelLine"),de(e,"upperLabel"),de(e,"edgeLabel")}function Kt(e,t){var r=us(e)&&e[t],n=us(r)&&r.textStyle;if(n)for(var i=0,a=wm.length;i<a;i++){var o=wm[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function ar(e){e&&(Co(e),Kt(e,"label"),e.emphasis&&Kt(e.emphasis,"label"))}function wR(e){if(us(e)){Fc(e),Co(e),Kt(e,"label"),Kt(e,"upperLabel"),Kt(e,"edgeLabel"),e.emphasis&&(Kt(e.emphasis,"label"),Kt(e.emphasis,"upperLabel"),Kt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Fc(t),ar(t));var r=e.markLine;r&&(Fc(r),ar(r));var n=e.markArea;n&&ar(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Pe(a))for(var o=0;o<a.length;o++)ar(a[o]);A(e.categories,function(u){Co(u)})}if(i&&!Pe(i))for(var o=0;o<i.length;o++)ar(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ar(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Q(l[o])?(ar(l[o][0]),ar(l[o][1])):ar(l[o]);e.type==="gauge"?(Kt(e,"axisLabel"),Kt(e,"title"),Kt(e,"detail")):e.type==="treemap"?(de(e.breadcrumb,"itemStyle"),A(e.levels,function(u){Co(u)})):e.type==="tree"&&Co(e.leaves)}}function Zr(e){return Q(e)?e:e?[e]:[]}function Ty(e){return(Q(e)?e[0]:e)||{}}function SR(e,t){mr(Zr(e.series),function(n){us(n)&&wR(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),mr(r,function(n){mr(Zr(e[n]),function(i){i&&(Kt(i,"axisLabel"),Kt(i.axisPointer,"label"))})}),mr(Zr(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Kt(i,"axisLabel"),Kt(i&&i.axisPointer,"label")}),mr(Zr(e.calendar),function(n){de(n,"itemStyle"),Kt(n,"dayLabel"),Kt(n,"monthLabel"),Kt(n,"yearLabel")}),mr(Zr(e.radar),function(n){Kt(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)}),mr(Zr(e.geo),function(n){us(n)&&(ar(n),mr(Zr(n.regions),function(i){ar(i)}))}),mr(Zr(e.timeline),function(n){ar(n),de(n,"label"),de(n,"itemStyle"),de(n,"controlStyle",!0);var i=n.data;Q(i)&&A(i,function(a){nt(a)&&(de(a,"label"),de(a,"itemStyle"))})}),mr(Zr(e.toolbox),function(n){de(n,"iconStyle"),mr(n.feature,function(i){de(i,"iconStyle")})}),Kt(Ty(e.axisPointer),"label"),Kt(Ty(e.tooltip).axisPointer,"label")}function TR(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 CR(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 Cy(e){e&&A(AR,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var AR=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],DR=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],zc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function oo(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<zc.length;r++){var n=zc[r][1],i=zc[r][0];t[n]!=null&&(t[i]=t[n])}}function Ay(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Dy(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function MR(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 dw(e,t){SR(e,t),e.series=ie(e.series),A(e.series,function(r){if(nt(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),Ay(r.label);var i=r.data;if(i&&!Pe(i))for(var a=0;a<i.length;a++)Ay(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=TR(r,"pointer.color");o!=null&&CR(r,"itemStyle.color",o)}else if(n==="bar"){oo(r),oo(r.backgroundStyle),oo(r.emphasis);var i=r.data;if(i&&!Pe(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(oo(i[a]),oo(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)),Dy(r),vw(r.data,Dy)}else n==="graph"||n==="sankey"?MR(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&St(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Cy(r)}}),e.dataRange&&(e.visualMap=e.dataRange),A(DR,function(r){var n=e[r];n&&(Q(n)||(n=[n]),A(n,function(i){Cy(i)}))})}function ER(e){var t=dt();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(PR)}function PR(e){A(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 v,d;s?d=o.getRawIndex(c):v=o.get(t.stackedByDimension,c);for(var g=NaN,p=r-1;p>=0;p--){var m=e[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=eE(h,y),g=y;break}}}return n[0]=h,n[1]=g,n})})}var _f=function(){function e(t){this.data=t.data||(t.sourceFormat===yn?{}:[]),this.sourceFormat=t.sourceFormat||sw,this.seriesLayoutBy=t.seriesLayoutBy||sn,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&&fw(this,n)===Ye.Must&&(i.type="ordinal")}}return e}();function dp(e){return e instanceof _f}function pv(e,t,r){r=r||gw(e);var n=t.seriesLayoutBy,i=RR(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:ut(t)});return a}function pw(e){return new _f({data:e,sourceFormat:Pe(e)?Un:pr})}function LR(e){return new _f({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ut(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function gw(e){var t=sw;if(Pe(e))t=Un;else if(Q(e)){e.length===0&&(t=He);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(Q(i)||Pe(i)){t=He;break}else if(nt(i)){t=Xr;break}}}}else if(nt(e)){for(var a in e)if(Ui(e,a)&&Ee(e[a])){t=yn;break}}return t}function RR(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:My(i),startIndex:o,dimensionsDetectedCount:a};if(t===He){var s=e;n==="auto"||n==null?Ey(function(u){u!=null&&u!=="-"&&(tt(u)?o==null&&(o=1):o=0)},r,s,10):o=Ut(n)?n:n?1:0,!i&&o===1&&(i=[],Ey(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Wa?s.length:s[0]?s[0].length:null}else if(t===Xr)i||(i=IR(e));else if(t===yn)i||(i=[],A(e,function(u,f){i.push(f)}));else if(t===pr){var l=As(e[0]);a=Q(l)&&l.length||1}return{startIndex:o,dimensionsDefine:My(i),dimensionsDetectedCount:a}}function IR(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Gt(r)}function My(e){if(e){var t=dt();return et(e,function(r,n){r=nt(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 Ey(e,t,r,n){if(t===Wa)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 mw(e){var t=e.sourceFormat;return t===Xr||t===yn}var yi,_i,xi,Py,Ly,yw=function(){function e(t,r){var n=dp(t)?t:pw(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Un&&(this._offset=0,this._dimSize=r,this._data=i),Ly(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;Ly=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=Py[pp(u,f)];if(Y(o,v),u===Un)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=_w(u,f);o.getItem=Lt(d,null,s,c,h);var g=xw(u,f);o.count=Lt(g,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 v=u[h],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],p=s-o,m=l[h],y=0;y<p;y++){var x=f[y*c+h];m[o+y]=x,x<d&&(d=x),x>g&&(g=x)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Py=(t={},t[He+"_"+sn]={pure:!0,appendData:a},t[He+"_"+Wa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Xr]={pure:!0,appendData:a},t[yn]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[pr]={appendData:a},t[Un]={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}(),Ry=function(e,t,r,n){return e[n]},OR=(yi={},yi[He+"_"+sn]=function(e,t,r,n){return e[n+t]},yi[He+"_"+Wa]=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},yi[Xr]=Ry,yi[yn]=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},yi[pr]=Ry,yi);function _w(e,t){var r=OR[pp(e,t)];return r}var Iy=function(e,t,r){return e.length},kR=(_i={},_i[He+"_"+sn]=function(e,t,r){return Math.max(0,e.length-t)},_i[He+"_"+Wa]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},_i[Xr]=Iy,_i[yn]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},_i[pr]=Iy,_i);function xw(e,t){var r=kR[pp(e,t)];return r}var Hc=function(e,t,r){return e[t]},BR=(xi={},xi[He]=Hc,xi[Xr]=function(e,t,r){return e[r]},xi[yn]=Hc,xi[pr]=function(e,t,r){var n=As(e);return n instanceof Array?n[t]:n},xi[Un]=Hc,xi);function bw(e){var t=BR[e];return t}function pp(e,t){return e===He?e+"_"+t:e}function Na(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 bw(a)(n,o,s)}else{var l=n;return a===pr&&(l=As(n)),l}}}}var NR=/\{@(.+?)\}/g,FR=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",v=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:v?v.fullDimensions:null,encode:v?v.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&&Q(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ft(a))return l.status=r,l.dimensionIndex=i,a(l);if(tt(a)){var f=fp(a,l);return f.replace(NR,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var g=Na(s,t,d);if(o&&Q(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return Na(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function Oy(e){var t,r;return nt(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Ho(e){return new zR(e)}var zR=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(y){return!(y>=1)&&(y=1),y}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 v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var g=this._progress;if(Q(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,l,u);else this._doProgress(g,v,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;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){ky.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:ky.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),Q(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}(),ky=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 Ul(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Ut(e)&&e!=null&&e!=="-"&&(e=+vr(e)),e==null||e===""?NaN:Number(e))}dt({number:function(e){return parseFloat(e)},time:function(e){return+vr(e)},trim:function(e){return tt(e)?wr(e):e}});var HR=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=Ut(t)?t:is(t),i=Ut(r)?r:is(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=tt(t),l=tt(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),VR=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 Ul(t,r)},e}();function GR(e,t){var r=new VR,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==sn&&Be(o);var s=[],l={},u=e.dimensionsDefine;if(u)A(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var x="";Ui(l,m)&&Be(x),l[m]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=_w(i,sn);t.__isBuiltIn&&(r.getRawDataItem=function(g){return c(n,a,s,g)},r.getRawData=Lt(UR,null,e)),r.cloneRawData=Lt(WR,null,e);var h=xw(i,sn);r.count=Lt(h,null,n,a,s);var v=bw(i);r.retrieveValue=function(g,p){var m=c(n,a,s,g);return d(m,p)};var d=r.retrieveValueFromItem=function(g,p){if(g!=null){var m=s[p];if(m)return v(g,p,m.name)}};return r.getDimensionInfo=Lt(YR,null,s,l),r.cloneAllDimensionInfo=Lt($R,null,s),r}function UR(e){var t=e.sourceFormat;if(!gp(t)){var r="";Be(r)}return e.data}function WR(e){var t=e.sourceFormat,r=e.data;if(!gp(t)){var n="";Be(n)}if(t===He){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(Y({},r[a]));return i}}function YR(e,t,r){if(r!=null){if(Ut(r)||!isNaN(r)&&!Ui(t,r))return e[r];if(Ui(t,r))return t[r]}}function $R(e){return ut(e)}var ww=dt();function XR(e){e=ut(e);var t=e.type,r="";t||Be(r);var n=t.split(":");n.length!==2&&Be(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,ww.set(t,e)}function qR(e,t,r){var n=ie(e),i=n.length,a="";i||Be(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=KR(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function KR(e,t,r,n){var i="";t.length||Be(i),nt(e)||Be(i);var a=e.type,o=ww.get(a);o||Be(i);var s=et(t,function(u){return GR(u,o)}),l=ie(o.transform({upstream:s[0],upstreamList:s,config:ut(e.config)}));return et(l,function(u,f){var c="";nt(u)||Be(c),u.data||Be(c);var h=gw(u.data);gp(h)||Be(c);var v,d=t[0];if(d&&f===0&&!u.dimensions){var g=d.startIndex;g&&(u.data=d.data.slice(0,g).concat(u.data)),v={seriesLayoutBy:sn,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:sn,sourceHeader:0,dimensions:u.dimensions};return pv(u.data,v,null)})}function gp(e){return e===He||e===Xr}var xf="undefined",jR=typeof Uint32Array===xf?Array:Uint32Array,ZR=typeof Uint16Array===xf?Array:Uint16Array,Sw=typeof Int32Array===xf?Array:Int32Array,By=typeof Float64Array===xf?Array:Float64Array,Tw={float:By,int:Sw,ordinal:Array,number:Array,time:By},Vc;function so(e){return e>65535?jR:ZR}function fa(){return[1/0,-1/0]}function JR(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Ny(e,t,r,n,i){var a=Tw[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 gv=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=dt()}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=Vc[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],mw(i),this._dimensions=et(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 Tw[r||"float"](this._rawCount),this._rawExtent[a]=fa(),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]=fa());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];Ny(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<a;d++){var f=i[d],g=Vc.arrayRows.call(this,t[v]||c,f.property,v,d);n[d][h]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}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=et(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=fa()),Ny(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var h=[],v=t;v<r;v++){h=i.getItem(v,h);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(h,u[d],v,d);g[v]=p;var m=l[d];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}!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),v=r-a[h],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===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=so(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=so(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<i;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=r(h);else if(l===1){var g=c[f][d];v=r(g,h)}else{for(var p=0;p<l;p++)s[p]=c[t[p]][d];s[p]=h,v=r.apply(null,s)}v&&(o[u++]=d)}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=Gt(t),a=i.length;if(!a)return this;var o=r.count(),s=so(r._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],h=t[f][1],v=r._chunks,d=!1;if(!r._indices){var g=0;if(a===1){for(var p=v[i[0]],m=0;m<n;m++){var y=p[m];(y>=c&&y<=h||isNaN(y))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],x=v[i[1]],b=t[i[1]][0],w=t[i[1]][1],m=0;m<n;m++){var y=p[m],_=x[m];(y>=c&&y<=h||isNaN(y))&&(_>=b&&_<=w||isNaN(_))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),y=v[i[0]][T];(y>=c&&y<=h||isNaN(y))&&(l[u++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=r.getRawIndex(m),D=0;D<a;D++){var E=i[D],y=v[E][T];(y<t[E][0]||y>t[E][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]]=fa();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=i[r[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var g=r[f],p=d[f],m=u[g],y=i[g];y&&(y[h]=p),p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}}},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,v=new(so(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var g=Math.min(d+l,o-1),p=Math.min(d+l*2,o),m=(p+g)/2,y=0,x=g;x<p;x++){var b=this.getRawIndex(x),w=a[b];isNaN(w)||(y+=w)}y/=p-g;var _=d,T=Math.min(d+l,o),C=d-1,D=a[u];f=-1,h=_;for(var E=-1,P=0,x=_;x<T;x++){var b=this.getRawIndex(x),w=a[b];if(isNaN(w)){P++,E<0&&(E=b);continue}c=Math.abs((C-m)*(w-D)-(C-x)*(y-D)),c>f&&(f=c,h=b)}P>0&&P<T-_&&(v[s++]=Math.min(E,h),h=Math.max(E,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,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]=fa(),h=new(so(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(d+g);s[g]=u[p]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[v++]=y}return a._count=v,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=fa();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&&Wr(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?JR(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=ut(this._extent),t._rawExtent=ut(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 Ul(r[a],this._dimensions[a])}Vc={arrayRows:t,objectRows:function(r,n,i,a){return Ul(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ul(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),QR=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(fl(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=Pe(s)?Un:pr,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=mt(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=mt(c.sourceHeader,h.sourceHeader),g=mt(c.dimensions,h.dimensions),p=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||g;i=p?[pv(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var x=m.get("source",!0);i=[pv(x,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&&Fy(a)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&Fy(c),s.push(f),l.push(u._getVersionSign())}),n?o=qR(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[LR(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];fl(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new gv,s.initData(new yw(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(fl(t)){var r=uw(t);return r?[r.getSourceManager()]:[]}else return et(aR(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(fl(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 fl(e){return e.mainType==="series"}function Fy(e){throw new Error(e)}var Cw="line-height:1";function Aw(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:"+Oe(n+"")+"px;color:"+Oe(r)+";font-weight:"+Oe(i+""),valueStyle:"font-size:"+Oe(o+"")+"px;color:"+Oe(a)+";font-weight:"+Oe(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var tI=[0,10,20,30],eI=["",`
`,`
`,`
`];function fs(e,t){return t.type=e,t}function mv(e){return e.type==="section"}function Dw(e){return mv(e)?rI:nI}function Mw(e){if(mv(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return A(e.blocks,function(i){var a=Mw(i);a>=t&&(t=a+ +(n&&(!a||mv(i)&&!i.noHeader)))}),t}return 0}function rI(e,t,r,n){var i=t.noHeader,a=iI(Mw(t)),o=[],s=t.blocks||[];Yr(!s||Q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ui(u,l)){var f=new HR(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,g){var p=t.valueFormatter,m=Dw(d)(p?Y(Y({},e),{valueFormatter:p}):e,d,g>0?a.html:0,n);m!=null&&o.push(m)});var c=e.renderMode==="richText"?o.join(a.richText):yv(o.join(""),i?r:a.html);if(i)return c;var h=dv(t.header,"ordinal",e.useUTC),v=Aw(n,e.renderMode).nameStyle;return e.renderMode==="richText"?Ew(e,h,v)+a.richText+c:yv('<div style="'+v+";"+Cw+';">'+Oe(h)+"</div>"+c,r)}function nI(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=Q(b)?b:[b],et(b,function(w,_){return dv(w,Q(v)?v[_]:v,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":dv(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!a,p=!s&&a,m=Aw(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":Ew(e,h,y))+(o?"":sI(e,d,g,p,x)):yv((s?"":c)+(a?"":aI(h,!s,y))+(o?"":oI(d,g,p,x)),r)}}function zy(e,t,r,n,i,a){if(e){var o=Dw(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function iI(e){return{html:tI[e],richText:eI[e]}}function yv(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+Cw+';">'+e+r+"</div>"}function aI(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Oe(e)+"</span>"}function oI(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Q(e)?e:[e],'<span style="'+a+";"+n+'">'+et(e,function(o){return Oe(o)}).join("&nbsp;&nbsp;")+"</span>"}function Ew(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function sI(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(Q(t)?t.join(" "):t,a)}function lI(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Xi(n)}function Pw(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Gc=function(){function e(){this.richTextStyles={},this._nextStyleNameId=nb()}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=iw({color:r,type:t,renderMode:n,markerId:i});return tt(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Q(r)?A(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function uI(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=Q(s),u=lI(t,r),f,c,h,v;if(o>1||l&&!o){var d=fI(s,t,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=Na(i,r,a[0]),c=g.type}else v=f=l?s[0]:s;var p=Fd(t),m=p&&t.name||"",y=i.getName(r),x=n?m:y;return fs("section",{header:m,noHeader:n||!p,sortParam:v,blocks:[fs("nameValue",{markerType:"item",markerColor:u,name:x,noName:!wr(x),value:f,valueType:c,dataIndex:r})].concat(h||[])})}function fI(e,t,r,n,i){var a=t.getData(),o=Wr(e,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(c){f(Na(a,r,c),c)}):A(e,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(fs("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Cn=te();function cl(e,t){return e.getName(t)||e.getId(t)}var cI="__universalTransitionEnabled",Ar=function(e){q(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=Ho({count:vI,reset:dI}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Cn(this).sourceManager=new QR(this);a.prepareSource();var o=this.getInitialData(r,i);Vy(o,this),this.dataTask.context.data=o,Cn(this).dataBeforeProcessed=o,Hy(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ls(this),a=i?mf(r):{},o=this.subType;wt.hasClass(o)&&(o+="Series"),pt(r,n.getTheme().get(this.subType)),pt(r,this.getDefaultOption()),bm(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ba(r,a,i)},t.prototype.mergeOption=function(r,n){r=pt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=ls(this);i&&Ba(this.option,r,i);var a=Cn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Vy(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Cn(this).dataBeforeProcessed=o,Hy(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Pe(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&bm(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=_v(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Cn(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=_v(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Cn(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return dt(r)},t.prototype.getSourceManager=function(){return Cn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Cn(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 uI({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=hp.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=cl(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=Gt(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[cl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[cI])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"){nt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=cl(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=cl(r,v);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(v),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 wt.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}(wt);Qe(Ar,FR);Qe(Ar,hp);ub(Ar,wt);function Hy(e){var t=e.name;Fd(e)||(e.name=hI(e)||t)}function hI(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return A(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function vI(e){return e.model.getRawData().count()}function dI(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),pI}function pI(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Vy(e,t){A(bx(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ht(gI,t))})}function gI(e,t){var r=_v(e);return r&&r.setOutputEnd((t||this).count()),t}function _v(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 _e=function(){function e(){this.group=new Jt,this.uid=hf("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}();Hd(_e);Ju(_e);function Lw(){var e=te();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 Rw=te(),mI=Lw(),Je=function(){function e(){this.group=new Jt,this.uid=hf("viewChart"),this.renderTask=Ho({plan:yI,reset:_I}),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&&Uy(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Uy(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){Qd(this.group,t)},e.markUpdateMethod=function(t,r){Rw(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Gy(e,t,r){e&&fv(e)&&(t==="emphasis"?fu:cu)(e,r)}function Uy(e,t,r){var n=Yi(e,t),i=t&&t.highlightKey!=null?FP(t.highlightKey):null;n!=null?A(ie(n),function(a){Gy(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){Gy(a,r,i)})}Hd(Je);Ju(Je);function yI(e){return mI(e.model)}function _I(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Rw(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),xI[l]}var xI={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",Wy="\0__throttleRate",Yy="\0__throttleType";function mp(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 v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var g=f||t,p=f||r;f=null,s=n-(p?i:a)-g,clearTimeout(o),p?o=setTimeout(c,g):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function yp(e,t,r,n){var i=e[t];if(i){var a=i[yu]||i,o=i[Yy],s=i[Wy];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=mp(a,r,n==="debounce"),i[yu]=a,i[Yy]=n,i[Wy]=r}return i}}function _u(e,t){var r=e[t];r&&r[yu]&&(r.clear&&r.clear(),e[t]=r[yu])}var $y=te(),Xy={itemStyle:ka(qb,!0),lineStyle:ka(Xb,!0)},bI={lineStyle:"stroke",itemStyle:"fill"};function Iw(e,t){var r=e.visualStyleMapper||Xy[t];return r||(console.warn("Unknown style type '"+t+"'."),Xy.itemStyle)}function Ow(e,t){var r=e.visualDrawType||bI[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var wI={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=Iw(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Ow(e,n),u=o[l],f=ft(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"||ft(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||ft(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(v,d){var g=e.getDataParams(d),p=Y({},o);p[l]=f(g),v.setItemVisual(d,"style",p)}}}},lo=new Vt,SI={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=Iw(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){lo.option=l[n];var u=i(lo),f=o.ensureUniqueItemVisual(s,"style");Y(f,u),lo.option.decal&&(o.setItemVisual(s,"decal",lo.option.decal),lo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},TI={performRawSeries:!0,overallReset:function(e){var t=dt();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)),$y(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=$y(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Ow(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"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},hl=Math.PI;function CI(e,t){t=t||{},St(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 Jt,n=new jt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new oe({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 jt({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 Is({shape:{startAngle:-hl/2,endAngle:-hl/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:hl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:hl*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 kw=function(){function e(t,r,n,i){this._stageTaskMap=dt(),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=dt();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;A(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Yr(!(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;A(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);d.each(function(p){p.perform(g)}),h.perform(g)&&(a=!0)}else c&&c.each(function(p,m){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(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=dt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Ho({plan:PI,reset:LI,count:II}));v.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ho({reset:AI});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=dt(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";Yr(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,A(n.getSeries(),d));function d(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(h=!0,Ho({reset:DI,onDirty:EI})));m.context={model:g,overallProgress:c},m.agent=o,m.__block=c,a._pipe(g,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 ft(t)&&(t={overallReset:t,seriesType:OI(t)}),t.uid=hf("stageHandler"),r&&(t.visualType=r),t},e}();function AI(e){e.overallReset(e.ecModel,e.api,e.payload)}function DI(e){return e.overallProgress&&MI}function MI(){this.agent.dirty(),this.getDownstream().dirty()}function EI(){this.agent&&this.agent.dirty()}function PI(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function LI(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ie(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?et(t,function(r,n){return Bw(n)}):RI}var RI=Bw(0);function Bw(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 II(e){return e.data.count()}function OI(e){xu=null;try{e(cs,Nw)}catch{}return xu}var cs={},Nw={},xu;Fw(cs,vp);Fw(Nw,hw);cs.eachSeriesByType=cs.eachRawSeriesByType=function(e){xu=e};cs.eachComponent=function(e){e.mainType==="series"&&e.subType&&(xu=e.subType)};function Fw(e,t){for(var r in t.prototype)e[r]=me}var qy=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const kI={color:qy,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],qy]};var we="#B9B8CE",Ky="#100C2A",vl=function(){return{axisLine:{lineStyle:{color:we}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},jy=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],zw={darkMode:!0,color:jy,backgroundColor:Ky,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:we}},textStyle:{color:we},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:we}},dataZoom:{borderColor:"#71708A",textStyle:{color:we},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:we}},timeline:{lineStyle:{color:we},label:{color:we},controlStyle:{color:we,borderColor:we}},calendar:{itemStyle:{color:Ky},dayLabel:{color:we},monthLabel:{color:we},yearLabel:{color:we}},timeAxis:vl(),logAxis:vl(),valueAxis:vl(),categoryAxis:vl(),line:{symbol:"circle"},graph:{color:jy},gauge:{title:{color:we},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:we},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};zw.categoryAxis.splitLine.show=!1;var BI=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(tt(t)){var a=Vr(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,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,v,d){return c[v]==null||h[d||v]===c[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),xv=["symbol","symbolSize","symbolRotate","symbolOffset"],Zy=xv.concat(["symbolKeepAspect"]),NI={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<xv.length;o++){var s=xv[o],l=e.get(s);ft(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Y({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Gt(i);function f(c,h){for(var v=e.getRawValue(h),d=e.getDataParams(h),g=0;g<u.length;g++){var p=u[g];c.setItemVisual(h,p,i[p](v,d))}}return{dataEach:a?f:null}}},FI={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<Zy.length;s++){var l=Zy[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function zI(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 HI(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 ca(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=Yi(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:Q(h)?c.getName(h[0]):c.getName(h),selected:tt(l)?l:Y({},l)})}})}function VI(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(ca("map","selectchanged",t,i,n),ca("pie","selectchanged",t,i,n)):n.fromAction==="select"?(ca("map","selected",t,i,n),ca("pie","selected",t,i,n)):n.fromAction==="unselect"&&(ca("map","unselected",t,i,n),ca("pie","unselected",t,i,n))})}function Ao(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var GI=Math.round(Math.random()*9),UI=typeof Object.defineProperty=="function",WI=function(){function e(){this._id="__ec_inner_"+GI++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return UI?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}(),YI=Nt.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()}}),$I=Nt.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()}}),XI=Nt.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),v=o*.6,d=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*v,l+s+h*v,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+c*v,l+s+h*v,r-f,l+s),e.closePath()}}),qI=Nt.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()}}),KI={line:cn,rect:jt,roundRect:jt,square:jt,circle:Es,diamond:$I,pin:XI,arrow:qI,triangle:YI},jI={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}},bv={};A(KI,function(e,t){bv[t]=new e});var ZI=Nt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Xx(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=bv[n];i||(n="rect",i=bv[n]),jI[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function JI(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 Ki(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=Xd(e.slice(8),new _t(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=lf(e.slice(7),{},new _t(t,r,n,i),o?"center":"cover"):l=new ZI({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=JI,a&&l.setColor(a),l}function QI(e){return Q(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Hw(e,t){if(e!=null)return Q(e)||(e=[e,e]),[Ae(e[0],t[0])||0,Ae(mt(e[1],e[0]),t[1])||0]}function Pi(e){return isFinite(e)}function tO(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=Pi(n)?n:0,i=Pi(i)?i:1,a=Pi(a)?a:0,o=Pi(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function eO(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=Pi(o)?o:.5,s=Pi(s)?s:.5,l=l>=0&&Pi(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function wv(e,t,r){for(var n=t.type==="radial"?eO(e,t,r):tO(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function rO(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 dl(e){return parseInt(e,10)}function pl(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]||dl(s[n])||dl(e.style[n]))-(dl(s[a])||0)-(dl(s[o])||0)|0}function nO(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Ut(e)?[e]:Q(e)?e:null}function Vw(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&nO(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=et(r,function(a){return a/i}),n/=i)}return[r,n]}var iO=new $i(!0);function bu(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Jy(e){return typeof e=="string"&&e!=="none"}function wu(e){var t=e.fill;return t!=null&&t!=="none"}function Qy(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 t0(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 Sv(e,t,r){var n=fb(t.image,t.__image,r);if(Qu(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)*Sx),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function aO(e,t,r,n){var i,a=bu(r),o=wu(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||iO,c=t.__dirty;if(!n){var h=r.fill,v=r.stroke,d=o&&!!h.colorStops,g=a&&!!v.colorStops,p=o&&!!h.image,m=a&&!!v.image,y=void 0,x=void 0,b=void 0,w=void 0,_=void 0;(d||g)&&(_=t.getBoundingRect()),d&&(y=c?wv(e,h,_):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(x=c?wv(e,v,_):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),p&&(b=c||!t.__canvasFillPattern?Sv(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(w=c||!t.__canvasStrokePattern?Sv(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),d?e.fillStyle=y:p&&(b?e.fillStyle=b:o=!1),g?e.strokeStyle=x:m&&(w?e.strokeStyle=w:a=!1)}var T=t.getGlobalScale();f.setScale(T[0],T[1],t.segmentIgnoreThreshold);var C,D;e.setLineDash&&r.lineDash&&(i=Vw(t),C=i[0],D=i[1]);var E=!0;(u||c&ma)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),E=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),E&&f.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=D),n||(r.strokeFirst?(a&&t0(e,r),o&&Qy(e,r)):(o&&Qy(e,r),a&&t0(e,r))),C&&e.setLineDash([])}function oO(e,t,r){var n=t.__image=fb(r.image,t.__image,t,t.onload);if(!(!n||!Qu(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 sO(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Gi,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=Vw(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(bu(r)&&e.strokeText(i,r.x,r.y),wu(r)&&e.fillText(i,r.x,r.y)):(wu(r)&&e.fillText(i,r.x,r.y),bu(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var e0=["shadowBlur","shadowOffsetX","shadowOffsetY"],r0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Gw(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Ne(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Bi.opacity:o}(n||t.blend!==r.blend)&&(a||(Ne(e,i),a=!0),e.globalCompositeOperation=t.blend||Bi.blend);for(var s=0;s<e0.length;s++){var l=e0[s];(n||t[l]!==r[l])&&(a||(Ne(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(Ne(e,i),a=!0),e.shadowColor=t.shadowColor||Bi.shadowColor),a}function n0(e,t,r,n,i){var a=hs(t,i.inHover),o=n?null:r&&hs(r,i.inHover)||{};if(a===o)return!1;var s=Gw(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Ne(e,i),s=!0),Jy(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Ne(e,i),s=!0),Jy(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Ne(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||(Ne(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<r0.length;f++){var c=r0[f],h=c[0];(n||a[h]!==o[h])&&(s||(Ne(e,i),s=!0),e[h]=a[h]||c[1])}return s}function lO(e,t,r,n,i){return Gw(e,hs(t,i.inHover),r&&hs(r,i.inHover),n,i)}function Uw(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 uO(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),Uw(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function fO(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 i0=1,a0=2,o0=3,s0=4;function cO(e){var t=wu(e),r=bu(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 Ne(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function hs(e,t){return t&&e.__hoverStyle||e.style}function _p(e,t){Li(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Li(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Xe,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||rO(a,o))&&(o&&o.length&&(Ne(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Ne(e,r),e.save(),uO(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 Nt&&t.autoBatch&&cO(t.style);s||fO(i,u.transform)?(Ne(e,r),Uw(e,t)):f||Ne(e,r);var c=hs(t,r.inHover);t instanceof Nt?(r.lastDrawType!==i0&&(l=!0,r.lastDrawType=i0),n0(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),aO(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof uu?(r.lastDrawType!==o0&&(l=!0,r.lastDrawType=o0),n0(e,t,u,l,r),sO(e,t,c)):t instanceof gn?(r.lastDrawType!==a0&&(l=!0,r.lastDrawType=a0),lO(e,t,u,l,r),oO(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==s0&&(l=!0,r.lastDrawType=s0),hO(e,t,r)),f&&n&&Ne(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function hO(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(),Li(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(),Li(e,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Uc=new WI,l0=new Cs(100),u0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Tv(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Uc.delete(e);var a=Uc.get(e);if(a)return a;var o=St(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,Uc.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<u0.length;++h){var v=o[u0[h]];if(v!=null&&!Q(v)&&!tt(v)&&!Ut(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(i?"-svg":"");var g=l0.get(d);g&&(i?u.svgElement=g:u.image=g)}var p=Yw(o.dashArrayX),m=vO(o.dashArrayY),y=Ww(o.symbol),x=dO(p),b=$w(m),w=!i&&fn.createCanvas(),_=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),C;w&&(w.width=T.width*r,w.height=T.height*r,C=w.getContext("2d")),E(),c&&l0.put(d,w||_),u.image=w,u.svgElement=_,u.svgWidth=T.width,u.svgHeight=T.height;function D(){for(var P=1,L=0,I=x.length;L<I;++L)P=_m(P,x[L]);for(var k=1,L=0,I=y.length;L<I;++L)k=_m(k,y[L].length);P*=k;var F=b*x.length*y.length;return{width:Math.max(1,Math.min(P,o.maxTileWidth)),height:Math.max(1,Math.min(F,o.maxTileHeight))}}function E(){C&&(C.clearRect(0,0,w.width,w.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,w.width,w.height)));for(var P=0,L=0;L<m.length;++L)P+=m[L];if(P<=0)return;for(var I=-b,k=0,F=0,N=0;I<T.height;){if(k%2===0){for(var J=F/2%y.length,W=0,Z=0,ct=0;W<T.width*2;){for(var xt=0,L=0;L<p[N].length;++L)xt+=p[N][L];if(xt<=0)break;if(Z%2===0){var yt=(1-o.symbolSize)*.5,Rt=W+p[N][Z]*yt,Ft=I+m[k]*yt,xe=p[N][Z]*o.symbolSize,Et=m[k]*o.symbolSize,Le=ct/2%y[J].length;Er(Rt,Ft,xe,Et,y[J][Le])}W+=p[N][Z],++ct,++Z,Z===p[N].length&&(Z=0)}++N,N===p.length&&(N=0)}I+=m[k],++F,++k,k===m.length&&(k=0)}function Er(ue,Yt,ot,gt,M){var R=i?1:r,B=Ki(M,ue*R,Yt*R,ot*R,gt*R,o.color,o.symbolKeepAspect);if(i){var H=n.painter.renderOneToVNode(B);H&&_.children.push(H)}else _p(C,B)}}}}function Ww(e){if(!e||e.length===0)return[["rect"]];if(tt(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!tt(e[r])){t=!1;break}if(t)return Ww([e]);for(var n=[],r=0;r<e.length;++r)tt(e[r])?n.push([e[r]]):n.push(e[r]);return n}function Yw(e){if(!e||e.length===0)return[[0,0]];if(Ut(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Ut(e[n])){r=!1;break}if(r)return Yw([e]);for(var i=[],n=0;n<e.length;++n)if(Ut(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=et(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function vO(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Ut(e)){var t=Math.ceil(e);return[t,t]}var r=et(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function dO(e){return et(e,function(t){return $w(t)})}function $w(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function pO(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=Tv(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Tv(i,t)}}})}var br=new Mr,Xw={};function gO(e,t){Xw[e]=t}function qw(e){return Xw[e]}var mO="5.5.1",yO={zrender:"5.6.0"},_O=1,xO=800,bO=900,wO=1e3,SO=2e3,TO=5e3,Kw=1e3,CO=1100,xp=2e3,jw=3e3,AO=4e3,bf=4500,DO=4600,MO=5e3,EO=6e3,Zw=7e3,Jw={PROCESSOR:{FILTER:wO,SERIES_FILTER:xO,STATISTIC:TO},VISUAL:{LAYOUT:Kw,PROGRESSIVE_LAYOUT:CO,GLOBAL:xp,CHART:jw,POST_CHART_LAYOUT:DO,COMPONENT:AO,BRUSH:MO,CHART_ITEM:bf,ARIA:EO,DECAL:Zw}},he="__flagInMainProcess",Ie="__pendingUpdate",Wc="__needsUpdateStatus",f0=/^[a-zA-Z0-9_]+$/,Yc="__connectUpdateStatus",c0=0,PO=1,LO=2;function Qw(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return eS(this,e,t)}}function tS(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return eS(this,e,t)}}function eS(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Mr.prototype[t].apply(e,r)}var rS=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Mr),nS=rS.prototype;nS.on=tS("on");nS.off=tS("off");var ha,$c,gl,An,Xc,qc,Kc,uo,fo,h0,v0,jc,d0,ml,p0,iS,er,g0,Su=function(e){q(t,e);function t(r,n,i){var a=e.call(this,new BI)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},tt(n)&&(n=aS[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr&&jx(function(h){var v=Tt(h),d=v.dataIndex;if(d!=null){var g=dt();return g.set("series_index",v.seriesIndex),g.set("data_index",d),v.ssrType&&g.set("ssr_type",v.ssrType),g}});var u=a._zr=ev(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:mt(i.useDirtyRect,l),useCoarsePointer:mt(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=mp(Lt(u.flush,u),17),n=ut(n),n&&dw(n,!0),a._theme=n,a._locale=GL(i.locale||Kb),a._coordSysMgr=new yf;var f=a._api=p0(a);function c(h,v){return h.__prio-v.__prio}return Il(Cu,c),Il(Cv,c),a._scheduler=new kw(a,f,Cv,Cu),a._messageCenter=new rS,a._initEvents(),a.resize=Lt(a.resize,a),u.animation.on("frame",a._onframe,a),h0(u,a),v0(u,a),eu(a),a}return t.prototype._onframe=function(){if(!this._disposed){g0(this);var r=this._scheduler;if(this[Ie]){var n=this[Ie].silent;this[he]=!0;try{ha(this),An.update.call(this,null,this[Ie].updateParams)}catch(l){throw this[he]=!1,this[Ie]=null,l}this._zr.flush(),this[he]=!1,this[Ie]=null,uo.call(this,n),fo.call(this,n)}else if(r.unfinished){var i=_O,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),qc(this,a),r.performVisualTasks(a),ml(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[he]){if(this._disposed){this.id;return}var a,o,s;if(nt(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[he]=!0,!this._model||n){var l=new mR(this._api),u=this._theme,f=this._model=new vp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Av);var c={seriesTransition:s,optionChanged:!0};if(i)this[Ie]={silent:a,updateParams:c},this[he]=!1,this.getZr().wakeUp();else{try{ha(this),An.update.call(this,null,c)}catch(h){throw this[Ie]=null,this[he]=!1,h}this._ssr||this._zr.flush(),this[Ie]=null,this[he]=!1,uo.call(this,a),fo.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 A(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;A(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 A(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(Au[i]){var l=s,u=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();A(Fi,function(x,b){if(x.group===i){var w=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(ut(r)),_=x.getDom().getBoundingClientRect();l=a(_.left,l),u=a(_.top,u),f=o(_.right,f),c=o(_.bottom,c),h.push({dom:w,left:_.left,top:_.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,g=c-u,p=fn.createCanvas(),m=ev(p,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:g}),n){var y="";return A(h,function(x){var b=x.left-l,w=x.top-u;y+='<g transform="translate('+b+","+w+')">'+x.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new jt({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),A(h,function(x){var b=new gn({style:{x:x.left*v-l,y:x.top*v-u,image:x.dom}});m.add(b)}),m.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Xc(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Xc(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=gc(i,r);return A(o,function(s,l){l.indexOf("Models")>=0&&A(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=gc(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?zI(s,l,n):HI(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;A(RO,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ao(s,function(d){var g=Tt(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=Y({},g.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),A(Vo,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),A(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),VI(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&&sb(this.getDom(),wp,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(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 Fi[n.id]},t.prototype.resize=function(r){if(!this[he]){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[Ie]&&(a==null&&(a=this[Ie].silent),i=!0,this[Ie]=null),this[he]=!0;try{i&&ha(this),An.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[he]=!1,o}this[he]=!1,uo.call(this,a),fo.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(nt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Dv[r]){var i=Dv[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=Y({},r);return n.type=Vo[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(nt(n)||(n={silent:!!n}),!!Tu[r.type]&&this._model){if(this[he]){this._pendingActions.push(r);return}var i=n.silent;Kc.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&lt.browser.weChat&&this._throttledZrFlush(),uo.call(this,i),fo.call(this,i)}},t.prototype.updateLabelLayout=function(){br.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(){ha=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),$c(c,!0),$c(c,!1),h.plan()},$c=function(c,h){for(var v=c._model,d=c._scheduler,g=h?c._componentsViews:c._chartsViews,p=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,x=0;x<g.length;x++)g[x].__alive=!1;h?v.eachComponent(function(_,T){_!=="series"&&b(T)}):v.eachSeries(b);function b(_){var T=_.__requireNewView;_.__requireNewView=!1;var C="_ec_"+_.id+"_"+_.type,D=!T&&p[C];if(!D){var E=Vr(_.type),P=h?_e.getClass(E.main,E.sub):Je.getClass(E.sub);D=new P,D.init(v,y),p[C]=D,g.push(D),m.add(D.group)}_.__viewId=D.__id=C,D.__alive=!0,D.__model=_,D.group.__ecComponentInfo={mainType:_.mainType,index:_.componentIndex},!h&&d.prepareView(D,_,v,y)}for(var x=0;x<g.length;){var w=g[x];w.__alive?x++:(!h&&w.renderTask.dispose(),m.remove(w.group),w.dispose(v,y),g.splice(x,1),p[w.__id]===w&&delete p[w.__id],w.__id=w.group.__ecComponentInfo=null)}},gl=function(c,h,v,d,g){var p=c._model;if(p.setUpdatePayload(v),!d){A([].concat(c._componentsViews).concat(c._chartsViews),w);return}var m={};m[d+"Id"]=v[d+"Id"],m[d+"Index"]=v[d+"Index"],m[d+"Name"]=v[d+"Name"];var y={mainType:d,query:m};g&&(y.subType=g);var x=v.excludeSeriesId,b;x!=null&&(b=dt(),A(ie(x),function(_){var T=Ur(_,null);T!=null&&b.set(T,!0)})),p&&p.eachComponent(y,function(_){var T=b&&b.get(_.id)!=null;if(!T)if(Km(v))if(_ instanceof Ar)v.type===Ni&&!v.notBlur&&!_.get(["emphasis","disabled"])&&PP(_,v,c._api);else{var C=Wd(_.mainType,_.componentIndex,v.name,c._api),D=C.focusSelf,E=C.dispatchers;v.type===Ni&&D&&!v.notBlur&&lv(_.mainType,_.componentIndex,c._api),E&&A(E,function(P){v.type===Ni?fu(P):cu(P)})}else cv(v)&&_ instanceof Ar&&(IP(_,v,c._api),$m(_),er(c))},c),p&&p.eachComponent(y,function(_){var T=b&&b.get(_.id)!=null;T||w(c[d==="series"?"_chartsMap":"_componentsMap"][_.__viewId])},c);function w(_){_&&_.__alive&&_[h]&&_[h](_.__model,p,c._api,v)}},An={prepareAndUpdate:function(c){ha(this),An.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,m=this._scheduler;if(v){v.setUpdatePayload(c),m.restoreData(v,c),m.performSeriesTasks(v),p.create(v,d),m.performDataProcessorTasks(v,c),qc(this,v),p.update(v,d),r(v),m.performVisualTasks(v,c),jc(this,v,d,c,h);var y=v.get("backgroundColor")||"transparent",x=v.get("darkMode");g.setBackgroundColor(y),x!=null&&x!=="auto"&&g.setDarkMode(x),br.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var g=[];v.eachComponent(function(m,y){if(m!=="series"){var x=h.getViewOfComponentModel(y);if(x&&x.__alive)if(x.updateTransform){var b=x.updateTransform(y,v,d,c);b&&b.update&&g.push(x)}else g.push(x)}});var p=dt();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId];if(y.updateTransform){var x=y.updateTransform(m,v,d,c);x&&x.update&&p.set(m.uid,1)}else p.set(m.uid,1)}),r(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:p}),ml(this,v,d,c,{},p),br.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Je.markUpdateMethod(c,"updateView"),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),jc(this,h,this._api,c,{}),br.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),Je.markUpdateMethod(c,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var p=h.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,v,h._api,c)}}),v.eachSeries(function(d){var g=h._chartsMap[d.__viewId];g.updateVisual(d,v,h._api,c)}),br.trigger("afterupdate",v,this._api))},updateLayout:function(c){An.update.call(this,c)}},Xc=function(c,h,v,d){if(c._disposed){c.id;return}for(var g=c._model,p=c._coordSysMgr.getCoordinateSystems(),m,y=gc(g,v),x=0;x<p.length;x++){var b=p[x];if(b[h]&&(m=b[h](g,y,d))!=null)return m}},qc=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},Kc=function(c,h){var v=this,d=this.getModel(),g=c.type,p=c.escapeConnect,m=Tu[g],y=m.actionInfo,x=(y.update||"update").split(":"),b=x.pop(),w=x[0]!=null&&Vr(x[0]);this[he]=!0;var _=[c],T=!1;c.batch&&(T=!0,_=et(c.batch,function(k){return k=St(Y({},k),c),k.batch=null,k}));var C=[],D,E=cv(c),P=Km(c);if(P&&Db(this._api),A(_,function(k){if(D=m.action(k,v._model,v._api),D=D||Y({},k),D.type=y.event||D.type,C.push(D),P){var F=zd(c),N=F.queryOptionMap,J=F.mainTypeSpecified,W=J?N.keys()[0]:"series";gl(v,b,k,W),er(v)}else E?(gl(v,b,k,"series"),er(v)):w&&gl(v,b,k,w.main,w.sub)}),b!=="none"&&!P&&!E&&!w)try{this[Ie]?(ha(this),An.update.call(this,c),this[Ie]=null):An[b].call(this,c)}catch(k){throw this[he]=!1,k}if(T?D={type:y.event||g,escapeConnect:p,batch:C}:D=C[0],this[he]=!1,!h){var L=this._messageCenter;if(L.trigger(D.type,D),E){var I={type:"selectchanged",escapeConnect:p,selected:OP(d),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};L.trigger(I.type,I)}}},uo=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Kc.call(this,v,c)}},fo=function(c){!c&&this.trigger("updated")},h0=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Ie]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},v0=function(c,h){c.on("mouseover",function(v){var d=v.target,g=Ao(d,fv);g&&(LP(g,v,h._api),er(h))}).on("mouseout",function(v){var d=v.target,g=Ao(d,fv);g&&(RP(g,v,h._api),er(h))}).on("click",function(v){var d=v.target,g=Ao(d,function(y){return Tt(y).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",m=Tt(g);h._api.dispatchAction({type:p,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=[],v=[],d=!1;if(c.eachComponent(function(y,x){var b=x.get("zlevel")||0,w=x.get("z")||0,_=x.getZLevelKey();d=d||!!_,(y==="series"?v:h).push({zlevel:b,z:w,idx:x.componentIndex,type:y,key:_})}),d){var g=h.concat(v),p,m;Il(g,function(y,x){return y.zlevel===x.zlevel?y.z-x.z:y.zlevel-x.zlevel}),A(g,function(y){var x=c.getComponent(y.type,y.idx),b=y.zlevel,w=y.key;p!=null&&(b=Math.max(p,b)),w?(b===p&&w!==m&&b++,m=w):m&&(b===p&&b++,m=""),p=b,x.setZLevel(b)})}}jc=function(c,h,v,d,g){n(h),d0(c,h,v,d,g),A(c._chartsViews,function(p){p.__alive=!1}),ml(c,h,v,d,g),A(c._chartsViews,function(p){p.__alive||p.remove(h,v)})},d0=function(c,h,v,d,g,p){A(p||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,h,v,d),s(y,m),f(y,m)})},ml=function(c,h,v,d,g,p){var m=c._scheduler;g=Y(g||{},{updatedSeries:h.getSeries()}),br.trigger("series:beforeupdate",h,v,g);var y=!1;h.eachSeries(function(x){var b=c._chartsMap[x.__viewId];b.__alive=!0;var w=b.renderTask;m.updatePayload(w,d),u(x,b),p&&p.get(x.uid)&&w.dirty(),w.perform(m.getPerformArgs(w))&&(y=!0),b.group.silent=!!x.get("silent"),o(x,b),$m(x)}),m.unfinished=y||m.unfinished,br.trigger("series:layoutlabels",h,v,g),br.trigger("series:transition",h,v,g),h.eachSeries(function(x){var b=c._chartsMap[x.__viewId];s(x,b),f(x,b)}),a(c,h),br.trigger("series:afterupdate",h,v,g)},er=function(c){c[Wc]=!0,c.getZr().wakeUp()},g0=function(c){c[Wc]&&(c.getZr().storage.traverse(function(h){No(h)||i(h)}),c[Wc]=!1)};function i(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}c.selected&&c.states.select&&h.push("select"),c.hoverState===rf&&c.states.emphasis?h.push("emphasis"):c.hoverState===ef&&c.states.blur&&h.push("blur"),c.useStates(h)}function a(c,h){var v=c._zr,d=v.storage,g=0;d.traverse(function(p){p.isGroup||g++}),g>h.get("hoverLayerThreshold")&&!lt.node&&!lt.worker&&h.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=c._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(g){return l(g,v,d,-1/0),!0})}}function l(c,h,v,d){var g=c.getTextContent(),p=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),x=0;x<y.length;x++)d=Math.max(l(y[x],h,v,d),d);else c.z=h,c.zlevel=v,d=Math.max(c.z2,d);if(g&&(g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+2)),p){var b=c.textGuideLineConfig;p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+(b&&b.showAbove?1:-1))}return d}function u(c,h){h.eachRendered(function(v){if(!No(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),g=v.get("duration"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(No(m))return;if(m instanceof Nt&&zP(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=p;var x=m.getTextContent(),b=m.getTextGuideLine();x&&(x.stateTransition=p),b&&(b.stateTransition=p)}m.__dirty&&i(m)}})}p0=function(c){return new(function(h){q(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){fu(d,g),er(c)},v.prototype.leaveEmphasis=function(d,g){cu(d,g),er(c)},v.prototype.enterBlur=function(d){EP(d),er(c)},v.prototype.leaveBlur=function(d){Sb(d),er(c)},v.prototype.enterSelect=function(d){Tb(d),er(c)},v.prototype.leaveSelect=function(d){Cb(d),er(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(hw))(c)},iS=function(c){function h(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[Yc]=d}}A(Vo,function(v,d){c._messageCenter.on(d,function(g){if(Au[c.group]&&c[Yc]!==c0){if(g&&g.escapeConnect)return;var p=c.makeActionFromEvent(g),m=[];A(Fi,function(y){y!==c&&y.group===c.group&&m.push(y)}),h(m,c0),A(m,function(y){y[Yc]!==PO&&y.dispatchAction(p)}),h(m,LO)}})})}}(),t}(Mr),bp=Su.prototype;bp.on=Qw("on");bp.off=Qw("off");bp.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 RO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Tu={},Vo={},Cv=[],Av=[],Cu=[],aS={},Dv={},Fi={},Au={},IO=+new Date-0,OO=+new Date-0,wp="_echarts_instance_";function kO(e,t,r){var n=!(r&&r.ssr);if(n){var i=Sp(e);if(i)return i}var a=new Su(e,t,r);return a.id="ec_"+IO++,Fi[a.id]=a,n&&sb(e,wp,a.id),iS(a),br.trigger("afterinit",a),a}function BO(e){if(Q(e)){var t=e;e=null,A(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+OO++,A(t,function(r){r.group=e})}return Au[e]=!0,e}function oS(e){Au[e]=!1}var NO=oS;function FO(e){tt(e)?e=Fi[e]:e instanceof Su||(e=Sp(e)),e instanceof Su&&!e.isDisposed()&&e.dispose()}function Sp(e){return Fi[yE(e,wp)]}function zO(e){return Fi[e]}function Tp(e,t){aS[e]=t}function Cp(e){Mt(Av,e)<0&&Av.push(e)}function Ap(e,t){Dp(Cv,e,t,SO)}function sS(e){wf("afterinit",e)}function lS(e){wf("afterupdate",e)}function wf(e,t){br.on(e,t)}function jn(e,t,r){ft(t)&&(r=t,t="");var n=nt(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Vo[t]&&(Yr(f0.test(n)&&f0.test(t)),Tu[n]||(Tu[n]={action:r,actionInfo:e}),Vo[t]=n)}function uS(e,t){yf.register(e,t)}function HO(e){var t=yf.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function fS(e,t){Dp(Cu,e,t,Kw,"layout")}function Zn(e,t){Dp(Cu,e,t,jw,"visual")}var m0=[];function Dp(e,t,r,n,i){if((ft(t)||nt(t))&&(r=t,t=n),!(Mt(m0,r)>=0)){m0.push(r);var a=kw.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function Mp(e,t){Dv[e]=t}function VO(e){dx({createCanvas:e})}function cS(e,t,r){var n=qw("registerMap");n&&n(e,t,r)}function GO(e){var t=qw("getMap");return t&&t(e)}var hS=XR;Zn(xp,wI);Zn(bf,SI);Zn(bf,TI);Zn(xp,NI);Zn(bf,FI);Zn(Zw,pO);Cp(dw);Ap(bO,ER);Mp("default",CI);jn({type:Ni,event:Ni,update:Ni},me);jn({type:zl,event:zl,update:zl},me);jn({type:Oo,event:Oo,update:Oo},me);jn({type:Hl,event:Hl,update:Hl},me);jn({type:ko,event:ko,update:ko},me);Tp("light",kI);Tp("dark",zw);var UO={};function co(e){return e==null?0:e.length||1}function y0(e){return e}var vS=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||y0,this._newKeyGetter=i||y0,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=co(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=co(u),h=co(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 v=0;v<c;v++)this._remove&&this._remove(u[v]);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=co(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=co(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),WO=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 YO(e,t){var r={},n=r.encode={},i=dt(),a=[],o=[],s={};A(e.dimensions,function(h){var v=e.getDimensionInfo(h),d=v.coordDim;if(d){var g=v.coordDimIndex;Zc(n,d)[g]=h,v.isExtraCoord||(i.set(d,1),XO(v.type)&&(a[0]=h),Zc(s,d)[g]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}ow.each(function(p,m){var y=Zc(n,m),x=v.otherDims[m];x!=null&&x!==!1&&(y[x]=v.name)})});var l=[],u={};i.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=et(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 WO(s,t),r}function Zc(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function $O(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function XO(e){return!(e==="ordinal"||e==="time")}var Wl=function(){function e(t){this.otherDims={},t!=null&&Y(this,t)}return e}(),qO=te(),KO={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},dS=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=mS(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return mt(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=mw(this.source),n=!yS(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+=KO[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},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 pS(e){return e instanceof dS}function gS(e){for(var t=dt(),r=0;r<(e||[]).length;r++){var n=e[r],i=nt(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function mS(e){var t=qO(e);return t.dimNameMap||(t.dimNameMap=gS(e.dimensionsDefine))}function yS(e){return e>30}var ho=nt,Dn=et,jO=typeof Int32Array>"u"?Array:Int32Array,ZO="e\0\0",_0=-1,JO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],QO=["_approximateExtent"],x0,yl,vo,po,Jc,_l,Qc,_S=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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;pS(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=tt(c)?new Wl({name:c}):c instanceof Wl?c:new Wl(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),a[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.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 g=this._dimIdxToName=dt();A(o,function(p){g.set(a[p].storeDimIndex,p)})}}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(Ut(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 gv&&(a=t),!a){var o=this.dimensions,s=dp(t)||Ee(t)?new yw(t,o.length):t;a=new gv;var l=Dn(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=YO(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.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&&Qc(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!==Un&&!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===pr;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&sE(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=Ur(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=Ur(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)Qc(this,f);x0(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){ho(t)?Y(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=vo(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 yl(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 Q(t)?i.getValues(Dn(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[r];return i==null||isNaN(i)?_0:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){ft(t)&&(n=r,r=t,t=[]);var i=n||this,a=Dn(po(t),this._getStoreDimIndex,this);this._store.each(a,i?Lt(r,i):r)},e.prototype.filterSelf=function(t,r,n){ft(t)&&(n=r,r=t,t=[]);var i=n||this,a=Dn(po(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Lt(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Gt(t);return A(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){ft(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=Dn(po(t),this._getStoreDimIndex,this),s=_l(this);return s._store=this._store.map(o,a?Lt(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Dn(po(t),this._getStoreDimIndex,this);this._store.modify(o,a?Lt(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=_l(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=_l(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 Vt(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new vS(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return yl(t,n)},function(n){return yl(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||{},ho(t)?Y(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),Q(a)?a=a.slice():ho(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ho(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){ho(t)?Y(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?Y(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;_P(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){A(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:Dn(this.dimensions,this._getDimInfo,this),this.hostModel)),Jc(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ft(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Ku(arguments)))})},e.internalField=function(){x0=function(t){var r=t._invertedIndicesMap;A(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new jO(o.categories.length);for(var l=0;l<n.length;l++)n[l]=_0;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},vo=function(t,r,n){return Ur(t._getCategory(r,n),null)},yl=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=vo(t,t._idDimIdx,r)),n==null&&(n=ZO+r),n},po=function(t){return Q(t)||(t=t!=null?[t]:[]),t},_l=function(t){var r=new e(t._schema?t._schema:Dn(t.dimensions,t._getDimInfo,t),t.hostModel);return Jc(r,t),r},Jc=function(t,r){A(JO.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,A(QO,function(n){t[n]=ut(r[n])}),t._calculationInfo=Y({},r._calculationInfo)},Qc=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=vo(t,a,r)),l==null&&o!=null&&(i[r]=l=vo(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 tk(e,t){return xS(e,t).dimensions}function xS(e,t){dp(e)||(e=pw(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=dt(),a=[],o=rk(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&yS(o),l=n===e.dimensionsDefine,u=l?mS(e):gS(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=dt(f),h=new Sw(o),v=0;v<h.length;v++)h[v]=-1;function d(D){var E=h[D];if(E<0){var P=n[D],L=nt(P)?P:{name:P},I=new Wl,k=L.name;k!=null&&u.get(k)!=null&&(I.name=I.displayName=k),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var F=a.length;return h[D]=F,I.storeDimIndex=D,a.push(I),I}return a[E]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(D,E){var P=ie(D).slice();if(P.length===1&&!tt(P[0])&&P[0]<0){c.set(E,!1);return}var L=c.set(E,[]);A(P,function(I,k){var F=tt(I)?u.get(I):I;F!=null&&F<o&&(L[k]=F,p(d(F),E,k))})});var g=0;A(r,function(D){var E,P,L,I;if(tt(D))E=D,I={};else{I=D,E=I.name;var k=I.ordinalMeta;I.ordinalMeta=null,I=Y({},I),I.ordinalMeta=k,P=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var F=c.get(E);if(F!==!1){if(F=ie(F),!F.length)for(var N=0;N<(P&&P.length||1);N++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&F.push(g++)}A(F,function(J,W){var Z=d(J);if(l&&I.type!=null&&(Z.type=I.type),p(St(Z,I),E,W),Z.name==null&&P){var ct=P[W];!nt(ct)&&(ct={name:ct}),Z.name=Z.displayName=ct.name,Z.defaultTooltip=ct.defaultTooltip}L&&St(Z.otherDims,L)})}});function p(D,E,P){ow.get(E)!=null?D.otherDims[E]=P:(D.coordDim=E,D.coordDimIndex=P,i.set(E,!0))}var m=t.generateCoord,y=t.generateCoordCount,x=y!=null;y=m?y||1:0;var b=m||"value";function w(D){D.name==null&&(D.name=D.coordDim)}if(s)A(a,function(D){w(D)}),a.sort(function(D,E){return D.storeDimIndex-E.storeDimIndex});else for(var _=0;_<o;_++){var T=d(_),C=T.coordDim;C==null&&(T.coordDim=nk(b,i,x),T.coordDimIndex=0,(!m||y<=0)&&(T.isExtraCoord=!0),y--),w(T),T.type==null&&(fw(e,_)===Ye.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return ek(a),new dS({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function ek(e){for(var t=dt(),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 rk(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return A(t,function(a){var o;nt(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function nk(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 ik=function(){function e(t){this.coordSysDims=[],this.axisMap=dt(),this.categoryAxisMap=dt(),this.coordSysName=t}return e}();function ak(e){var t=e.get("coordinateSystem"),r=new ik(t),n=ok[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var ok={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",cr).models[0],a=e.getReferringComponents("yAxis",cr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),va(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),va(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",cr).models[0];t.coordSysDims=["single"],r.set("single",i),va(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",cr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),va(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),va(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();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),va(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function va(e){return e.get("type")==="category"}function bS(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;sk(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,h;if(A(a,function(y,x){tt(y)&&(a[x]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;A(a,function(y){y.coordDim===v&&g++});var p={name:c,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(a.push(p),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function sk(e){return!pS(e.schema)}function Fa(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function wS(e,t){return Fa(e,t)?e.getCalculationInfo("stackResultDimension"):t}function lk(e,t){var r=e.get("coordinateSystem"),n=yf.get(r),i;return t&&t.coordSysDims&&(i=et(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=$O(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function uk(e,t,r){var n,i;return r&&A(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 SS(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===pr;var o=ak(t),s=lk(t,o),l=r.useEncodeDefaulter,u=ft(l)?l:l?Ht(iR,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=xS(i,f),h=uk(c.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=bS(t,{schema:c,store:v}),g=new _S(c,t);g.setCalculationInfo(d);var p=h!=null&&fk(i)?function(m,y,x,b){return b===h?x:this.defaultDimValueGetter(m,y,x,b)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function fk(e){if(e.sourceFormat===pr){var t=ck(e.data||[]);return!Q(As(t))}}function ck(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var qr=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Ju(qr);var hk=0,Mv=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++hk}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&et(n,vk);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!tt(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=dt(this.categories))},e}();function vk(e){return nt(e)&&e.value!=null?e.value:e+""}function Ev(e){return e.type==="interval"||e.type==="log"}function dk(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=Nd(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=TS(o),l=i.niceTickExtent=[qt(Math.ceil(e[0]/o)*o,s),qt(Math.floor(e[1]/o)*o,s)];return pk(l,e),i}function th(e){var t=Math.pow(10,Zu(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,qt(r*t)}function TS(e){return Hr(e)+2}function b0(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function pk(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),b0(e,0,t),b0(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Sf(e,t){return e>=t[0]&&e<=t[1]}function Tf(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Cf(e,t){return e*(t[1]-t[0])+t[0]}var Ep=function(e){q(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Mv({})),Q(i)&&(i=new Mv({categories:et(i,function(a){return nt(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:tt(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Sf(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Tf(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Cf(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(qr);qr.registerClass(Ep);var bi=qt,Ya=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return Sf(r,this._extent)},t.prototype.normalize=function(r){return Tf(r,this._extent)},t.prototype.scale=function(r){return Cf(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=TS(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:bi(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=bi(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:bi(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,h=c/r;u<r-1;){var v=bi(l.value+(u+1)*h);v>a[0]&&v<a[1]&&f.push(v),u++}i.push(f)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Hr(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=bi(r.value,i,!0);return lp(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=dk(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=bi(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=bi(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(qr);qr.registerClass(Ya);var CS=typeof Float32Array<"u",gk=CS?Float32Array:Array;function ba(e){return Q(e)?CS?new Float32Array(e):e:new gk(e)}var mk="__ec_stack_";function AS(e){return e.get("stack")||mk+e.seriesIndex}function DS(e){return e.dim+e.index}function yk(e,t){var r=[];return t.eachSeriesByType(e,function(n){Sk(n)&&r.push(n)}),r}function _k(e){var t={};A(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),g=0,p=d.count();g<p;++g){var m=d.get(v,g);t[h]?t[h].push(m):t[h]=[m]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function xk(e){var t=_k(e),r=[];return A(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Ae(n.get("barWidth"),s),g=Ae(n.get("barMaxWidth"),s),p=Ae(n.get("barMinWidth")||(Tk(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:y,axisKey:DS(a),stackId:AS(n)})}),bk(r)}function bk(e){var t={};A(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return A(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Gt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Ae(s,o),f=Ae(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),A(a,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),x&&(b=Math.max(b,x)),m.width=b,c-=b+f*b,h--}else{var b=v;y&&y<b&&(b=Math.min(y,c)),x&&x>b&&(b=x),b!==v&&(m.width=b,c-=b+f*b,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,g;A(a,function(m,y){m.width||(m.width=v),g=m,d+=m.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;A(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:p,width:m.width},p+=m.width*(1+f)})}),r}function wk(e,t,r){if(e&&t){var n=e[DS(t)];return n!=null&&r!=null?n[AS(r)]:n}}function Sk(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Tk(e){return e.pipelineContext&&e.pipelineContext.large}var Ck=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},MS=function(e){q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Os(r.value,hy[$L(La(this._minLevelUnit))]||hy.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return XL(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=Rk(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=fr,n[1]+=fr),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-fr}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=xl.length,l=Math.min(Ck(xl,this._approxInterval,0,s),s-1);this._interval=xl[l][1],this._minLevelUnit=xl[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Ut(r)?r:+vr(r)},t.prototype.contain=function(r){return Sf(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Tf(this.parse(r),this._extent)},t.prototype.scale=function(r){return Cf(r,this._extent)},t.type="time",t}(Ya),xl=[["second",ap],["minute",op],["hour",Fo],["quarter-day",Fo*6],["half-day",Fo*12],["day",fr*1.2],["half-week",fr*3.5],["week",fr*7],["month",fr*31],["quarter",fr*95],["half-year",cy/2],["year",cy]];function Ak(e,t,r,n){var i=vr(t),a=vr(r),o=function(d){return vy(i,d,n)===vy(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function Dk(e,t){return e/=fr,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Mk(e){var t=30*fr;return e/=t,e>6?6:e>3?3:e>2?2:1}function Ek(e){return e/=Fo,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function w0(e,t){return e/=t?op:ap,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Pk(e){return Nd(e,!0)}function Lk(e,t,r){var n=new Date(e);switch(La(t)){case"year":case"month":n[Jb(r)](0);case"day":n[Qb(r)](1);case"hour":n[tw(r)](0);case"minute":n[ew(r)](0);case"second":n[rw(r)](0),n[nw(r)](0)}return n.getTime()}function Rk(e,t,r,n){var i=1e4,a=jb,o=0;function s(E,P,L,I,k,F,N){for(var J=new Date(P),W=P,Z=J[I]();W<L&&W<=n[1];)N.push({value:W}),Z+=E,J[k](Z),W=J.getTime();N.push({value:W,notAdd:!0})}function l(E,P,L){var I=[],k=!P.length;if(!Ak(La(E),n[0],n[1],r)){k&&(P=[{value:Lk(new Date(n[0]),E,r)},{value:n[1]}]);for(var F=0;F<P.length-1;F++){var N=P[F].value,J=P[F+1].value;if(N!==J){var W=void 0,Z=void 0,ct=void 0,xt=!1;switch(E){case"year":W=Math.max(1,Math.round(t/fr/365)),Z=sp(r),ct=qL(r);break;case"half-year":case"quarter":case"month":W=Mk(t),Z=Ra(r),ct=Jb(r);break;case"week":case"half-week":case"day":W=Dk(t),Z=vf(r),ct=Qb(r),xt=!0;break;case"half-day":case"quarter-day":case"hour":W=Ek(t),Z=ss(r),ct=tw(r);break;case"minute":W=w0(t,!0),Z=df(r),ct=ew(r);break;case"second":W=w0(t,!1),Z=pf(r),ct=rw(r);break;case"millisecond":W=Pk(t),Z=gf(r),ct=nw(r);break}s(W,N,J,Z,ct,xt,I),E==="year"&&L.length>1&&F===0&&L.unshift({value:L[0].value-W})}}for(var F=0;F<I.length;F++)L.push(I[F]);return I}}for(var u=[],f=[],c=0,h=0,v=0;v<a.length&&o++<i;++v){var d=La(a[v]);if(YL(a[v])){l(a[v],u[u.length-1]||[],f);var g=a[v+1]?La(a[v+1]):null;if(d!==g){if(f.length){h=c,f.sort(function(E,P){return E.value-P.value});for(var p=[],m=0;m<f.length;++m){var y=f[m].value;(m===0||f[m-1].value!==y)&&(p.push(f[m]),y>=n[0]&&y<=n[1]&&c++)}var x=(n[1]-n[0])/t;if(c>x*1.5&&h>x/1.5||(u.push(p),c>x||e===a[v]))break}f=[]}}}for(var b=ee(et(u,function(E){return ee(E,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(E){return E.length>0}),w=[],_=b.length-1,v=0;v<b.length;++v)for(var T=b[v],C=0;C<T.length;++C)w.push({value:T[C].value,level:_-v});w.sort(function(E,P){return E.value-P.value});for(var D=[],v=0;v<w.length;++v)(v===0||w[v].value!==w[v-1].value)&&D.push(w[v]);return D}qr.registerClass(MS);var S0=qr.prototype,Go=Ya.prototype,Ik=qt,Ok=Math.floor,kk=Math.ceil,bl=Math.pow,yr=Math.log,Pp=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ya,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Go.getTicks.call(this,r);return et(o,function(s){var l=s.value,u=qt(bl(this.base,l));return u=l===i[0]&&this._fixMin?wl(u,a[0]):u,u=l===i[1]&&this._fixMax?wl(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=yr(this.base);r=yr(Math.max(0,r))/i,n=yr(Math.max(0,n))/i,Go.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=S0.getExtent.call(this);n[0]=bl(r,n[0]),n[1]=bl(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=wl(n[0],a[0])),this._fixMax&&(n[1]=wl(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=yr(r[0])/yr(n),r[1]=yr(r[1])/yr(n),S0.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=eb(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[qt(kk(n[0]/a)*a),qt(Ok(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Go.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=yr(r)/yr(this.base),Sf(r,this._extent)},t.prototype.normalize=function(r){return r=yr(r)/yr(this.base),Tf(r,this._extent)},t.prototype.scale=function(r){return r=Cf(r,this._extent),bl(this.base,r)},t.type="log",t}(qr),ES=Pp.prototype;ES.getMinorTicks=Go.getMinorTicks;ES.getLabel=Go.getLabel;function wl(e,t){return Ik(e,Hr(t))}qr.registerClass(Pp);var Bk=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;ft(o)?this._modelMinNum=Sl(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Sl(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(ft(s)?this._modelMaxNum=Sl(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Sl(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=Q(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Wi(u[0],1),Wi(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Jo(s)||Jo(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[Fk[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Nk[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Nk={min:"_determinedMin",max:"_determinedMax"},Fk={min:"_dataMin",max:"_dataMax"};function zk(e,t,r){var n=e.rawExtentInfo;return n||(n=new Bk(e,t,r),e.rawExtentInfo=n,n)}function Sl(e,t){return t==null?null:Jo(t)?NaN:e.parse(t)}function PS(e,t){var r=e.type,n=zk(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=yk("bar",o),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=xk(s),f=Hk(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function Hk(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=wk(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;A(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;A(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,h=f/c-f;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function Du(e,t){var r=t,n=PS(e,r),i=n.extent,a=r.get("splitNumber");e instanceof Pp&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Lp(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Ep({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new MS({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(qr.getClass(t)||Ya)}}function Vk(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function $a(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):tt(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):ft(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(Rp(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Rp(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Gk(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Ep?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=$a(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var c=n?n[f]:{value:a[0]+f},h=s(c,f),v=o.getTextRect(h),d=Uk(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function Uk(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new _t(e.x,e.y,a,o);return s}function Ip(e){var t=e.get("interval");return t??"auto"}function LS(e){return e.type==="category"&&Ip(e.getLabelModel())===0}function Wk(e,t){var r={};return A(e.mapDimensionsAll(t),function(n){r[wS(e,n)]=!0}),Gt(r)}var Op=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function Yk(e){return SS(null,e)}var $k={isDimensionStacked:Fa,enableDataStack:bS,getStackedDimension:wS};function Xk(e,t){var r=t;t instanceof Vt||(r=new Vt(t));var n=Lp(r);return n.setExtent(e[0],e[1]),Du(n,r),n}function qk(e){Qe(e,Op)}function Kk(e,t){return t=t||{},vn(e,null,null,t.state!=="normal")}const jk=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:tk,createList:Yk,createScale:Xk,createSymbol:Ki,createTextStyle:Kk,dataStack:$k,enableHoverEmphasis:hu,getECData:Tt,getLayoutRect:qi,mixinAxisModelCommonMethods:qk},Symbol.toStringTag,{value:"Module"}));var T0=[],Zk={registerPreprocessor:Cp,registerProcessor:Ap,registerPostInit:sS,registerPostUpdate:lS,registerUpdateLifecycle:wf,registerAction:jn,registerCoordinateSystem:uS,registerLayout:fS,registerVisual:Zn,registerTransform:hS,registerLoading:Mp,registerMap:cS,registerImpl:gO,PRIORITY:Jw,ComponentModel:wt,ComponentView:_e,SeriesModel:Ar,ChartView:Je,registerComponentModel:function(e){wt.registerClass(e)},registerComponentView:function(e){_e.registerClass(e)},registerSeriesModel:function(e){Ar.registerClass(e)},registerChartView:function(e){Je.registerClass(e)},registerSubTypeDefaulter:function(e,t){wt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Kx(e,t)}};function dn(e){if(Q(e)){A(e,function(t){dn(t)});return}Mt(T0,e)>=0||(T0.push(e),ft(e)&&(e={install:e}),e.install(Zk))}var Jk=1e-8;function C0(e,t){return Math.abs(e-t)<Jk}function A0(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];n+=en(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!C0(i[0],s[0])||!C0(i[1],s[1]))&&(n+=en(i[0],i[1],s[0],s[1],t,r)),n!==0}var Qk=[];function eh(e,t){for(var r=0;r<e.length;r++)Me(e[r],e[r],t)}function D0(e,t,r,n){for(var i=0;i<e.length;i++){var a=e[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Bn(t,t,a),Nn(r,r,a))}}function tB(e){for(var t=0,r=0,n=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],f=a*u-l*o;t+=f,r+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var RS=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),M0=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),E0=function(){function e(t){this.type="linestring",this.points=t}return e}(),eB=function(e){q(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return tB(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?D0(s.exterior,i,a,r):A(s.points,function(l){D0(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new _t(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(A0(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(A0(u[f],r[0],r[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new _t(r,n,i,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var h=f[c];h.type==="polygon"?(eh(h.exterior,u),A(h.interiors,function(v){eh(v,u)})):A(h.points,function(v){eh(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(RS);(function(e){q(t,e);function t(r,n){var i=e.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=ws(Qk),o=r;o&&!o.isGeoSVGGraphicRoot;)Vn(a,o.getLocalTransform(),a),o=o.parent;return Ts(a,a),Me(i,i,a),i},t})(RS);function rB(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return A(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=IS(s,o,r);break;case"Polygon":rh(s,o,r);break;case"MultiLineString":rh(s,o,r);break;case"MultiPolygon":A(s,function(l,u){return rh(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function rh(e,t,r){for(var n=0;n<e.length;n++)e[n]=IS(e[n],t[n],r)}function IS(e,t,r){for(var n=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function P0(e,t){return e=rB(e),et(ee(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new M0(o[0],o.slice(1)));break;case"MultiPolygon":A(i.coordinates,function(l){l[0]&&a.push(new M0(l[0],l.slice(1)))});break;case"LineString":a.push(new E0([i.coordinates]));break;case"MultiLineString":a.push(new E0(i.coordinates))}var s=new eB(n[t||"name"],a,n.cp);return s.properties=n,s})}const nB=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:rE,asc:Jx,getPercentWithPrecision:QM,getPixelPrecision:tb,getPrecision:Hr,getPrecisionSafe:Qx,isNumeric:rb,isRadianAroundZero:ns,linearMap:nv,nice:Nd,numericToNumber:is,parseDate:vr,quantile:iE,quantity:eb,quantityExponent:Zu,reformIntervals:aE,remRadian:Bd,round:qt},Symbol.toStringTag,{value:"Module"})),iB=Object.freeze(Object.defineProperty({__proto__:null,format:Os,parse:vr},Symbol.toStringTag,{value:"Module"})),aB=Object.freeze(Object.defineProperty({__proto__:null,Arc:Is,BezierCurve:sf,BoundingRect:_t,Circle:Es,CompoundPath:Ob,Ellipse:af,Group:Jt,Image:gn,IncrementalDisplayable:Nb,Line:cn,LinearGradient:Yd,Polygon:Ls,Polyline:Rs,RadialGradient:Bb,Rect:jt,Ring:of,Sector:Ps,Text:oe,clipPointsByRect:Zd,clipRectByRect:Wb,createIcon:ff,extendPath:zb,extendShape:Fb,getShapeClass:Hb,getTransform:Kd,initProps:Ua,makeImage:Xd,makePath:lf,mergePath:Gb,registerShape:dr,resizePath:qd,updateProps:hn},Symbol.toStringTag,{value:"Module"})),oB=Object.freeze(Object.defineProperty({__proto__:null,addCommas:lp,capitalFirst:ZL,encodeHTML:Oe,formatTime:jL,formatTpl:fp,getTextRect:KL,getTooltipMarker:iw,normalizeCssArray:ks,toCamelCase:up,truncateText:cb},Symbol.toStringTag,{value:"Module"})),sB=Object.freeze(Object.defineProperty({__proto__:null,bind:Lt,clone:ut,curry:Ht,defaults:St,each:A,extend:Y,filter:ee,indexOf:Mt,inherits:Td,isArray:Q,isFunction:ft,isObject:nt,isString:tt,map:et,merge:pt,reduce:Wr},Symbol.toStringTag,{value:"Module"}));var vs=te();function OS(e,t){var r=et(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function lB(e){var t=e.getLabelModel().get("customValues");if(t){var r=$a(e);return{labels:OS(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?fB(e):hB(e)}function uB(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:OS(e,r)}:e.type==="category"?cB(e,t):{ticks:et(e.scale.getTicks(),function(n){return n.value})}}function fB(e){var t=e.getLabelModel(),r=kS(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function kS(e,t){var r=BS(e,"labels"),n=Ip(t),i=NS(r,n);if(i)return i;var a,o;return ft(n)?a=HS(e,n):(o=n==="auto"?vB(e):n,a=zS(e,o)),FS(r,n,{labels:a,labelCategoryInterval:o})}function cB(e,t){var r=BS(e,"ticks"),n=Ip(t),i=NS(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ft(n))a=HS(e,n,!0);else if(n==="auto"){var s=kS(e,e.getLabelModel());o=s.labelCategoryInterval,a=et(s.labels,function(l){return l.tickValue})}else o=n,a=zS(e,o,!0);return FS(r,n,{ticks:a,tickCategoryInterval:o})}function hB(e){var t=e.scale.getTicks(),r=$a(e);return{labels:et(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function BS(e,t){return vs(e)[t]||(vs(e)[t]=[])}function NS(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function FS(e,t,r){return e.push({key:t,value:r}),r}function vB(e){var t=vs(e).autoInterval;return t??(vs(e).autoInterval=e.calculateCategoryInterval())}function dB(e){var t=pB(e),r=$a(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,g=0,p=Od(r({value:l}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,h=Math.max(h,d,7),v=Math.max(v,g,7)}var m=h/f,y=v/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),b=vs(e.model),w=e.getExtent(),_=b.lastAutoInterval,T=b.lastTickCount;return _!=null&&T!=null&&Math.abs(_-x)<=1&&Math.abs(T-o)<=1&&_>x&&b.axisExtent0===w[0]&&b.axisExtent1===w[1]?x=_:(b.lastTickCount=o,b.lastAutoInterval=x,b.axisExtent0=w[0],b.axisExtent1=w[1]),x}function pB(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function zS(e,t,r){var n=$a(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=LS(e),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);v&&d-l!==a[1]&&g(a[1]);function g(p){var m={value:p};s.push(r?p:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:p})}return s}function HS(e,t,r){var n=e.scale,i=$a(e),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var L0=[0,1],kp=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return tb(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),R0(n,i.count())),nv(t,L0,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),R0(n,i.count()));var a=nv(t,n,L0,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=uB(this,r),i=n.ticks,a=et(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return gB(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=et(n,function(a){return et(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return lB(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return dB(this)},e}();function R0(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function gB(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;A(t,function(v){v.coord-=u/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var c=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(v,d){return v=qt(v),d=qt(d),c?v>d:v<d}}function mB(e){var t=wt.extend(e);return wt.registerClass(t),t}function yB(e){var t=_e.extend(e);return _e.registerClass(t),t}function _B(e){var t=Ar.extend(e);return Ar.registerClass(t),t}function xB(e){var t=Je.extend(e);return Je.registerClass(t),t}function bB(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 vu(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 wB(e){var t=[];e.sort(function(g,p){return p.priority-g.priority});var r=new _t(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.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,v=0;v<t.length;v++){var d=t[v];if(r.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new vu(d.localRect,d.transform)),c||(c=new vu(s,l)),c.intersect(d.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))}}const I0=Object.freeze(Object.defineProperty({__proto__:null,Axis:kp,ChartView:Je,ComponentModel:wt,ComponentView:_e,List:_S,Model:Vt,PRIORITY:Jw,SeriesModel:Ar,color:yM,connect:BO,dataTool:UO,dependencies:yO,disConnect:NO,disconnect:oS,dispose:FO,env:lt,extendChartView:xB,extendComponentModel:mB,extendComponentView:yB,extendSeriesModel:_B,format:oB,getCoordinateSystemDimensions:HO,getInstanceByDom:Sp,getInstanceById:zO,getMap:GO,graphic:aB,helper:jk,init:kO,innerDrawElementOnCanvas:_p,matrix:$5,number:nB,parseGeoJSON:P0,parseGeoJson:P0,registerAction:jn,registerCoordinateSystem:uS,registerLayout:fS,registerLoading:Mp,registerLocale:ip,registerMap:cS,registerPostInit:sS,registerPostUpdate:lS,registerPreprocessor:Cp,registerProcessor:Ap,registerTheme:Tp,registerTransform:hS,registerUpdateLifecycle:wf,registerVisual:Zn,setCanvasCreator:VO,setPlatformAPI:dx,throttle:mp,time:iB,use:dn,util:sB,vector:P5,version:mO,zrUtil:_5,zrender:ZM},Symbol.toStringTag,{value:"Module"}));var SB=function(e){q(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.getInitialData=function(r){return SS(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Jt,i=Ki("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Ki(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ar);function VS(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Na(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Na(e,t,r[o]));return a.join(" ")}}function TB(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!Q(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var Bp=function(e){q(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=Ki(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=CB,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(){fu(this.childAt(0))},t.prototype.downplay=function(){cu(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 v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):hn(h,v,s,n),yL(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ua(h,v,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,v,d,g,p,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=x.get("focus"),v=x.get("blurScope"),d=x.get("disabled"),g=ep(y),p=x.getShallow("scale"),m=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var w=Hw(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),m&&s.attr("cursor",m);var _=r.getItemVisual(n,"style"),T=_.fill;if(s instanceof gn){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},_))}else s.__isEmptyBrush?s.useStyle(Y({},_)):s.useStyle(_),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),E=this._z2;D!=null?E==null&&(this._z2=s.z2,s.z2+=D):E!=null&&(s.z2=E,this._z2=null);var P=o&&o.useNameLabel;tp(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:T,defaultOpacity:_.opacity});function L(F){return P?r.getName(F):VS(r,F)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var k=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*k,I.scaleY=this._sizeY*k,this.setSymbolScale(1),uv(this,h,v,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Tt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&du(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();du(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return QI(r.getItemVisual(n,"symbolSize"))},t}(Jt);function CB(e,t){this.parent.drift(e,t)}function nh(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 O0(e){return e!=null&&!nt(e)&&(e={isIgnore:e}),e||{}}function k0(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:ep(t),cursorStyle:t.get("cursor")}}var AB=function(){function e(t){this.group=new Jt,this._SymbolCtor=t||Bp}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=O0(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=k0(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(nh(t,h,c,r)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=a.getItemGraphicEl(h),d=f(c);if(!nh(t,d,c,r)){n.remove(v);return}var g=t.getItemVisual(c,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):hn(v,m,i)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=t},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=k0(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=O0(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(nh(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){Qd(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}();function GS(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=DB(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=et(e.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Fa(t,c[0])&&(h=!0,c[0]=v),Fa(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function DB(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Ut(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function US(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function MB(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function EB(e,t,r,n,i,a,o,s){for(var l=MB(e,t),u=[],f=[],c=[],h=[],v=[],d=[],g=[],p=GS(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x<l.length;x++){var b=l[x],w=!0,_=void 0,T=void 0;switch(b.cmd){case"=":_=b.idx*2,T=b.idx1*2;var C=m[_],D=m[_+1],E=y[T],P=y[T+1];(isNaN(C)||isNaN(D))&&(C=E,D=P),u.push(C,D),f.push(E,P),c.push(r[_],r[_+1]),h.push(n[T],n[T+1]),g.push(t.getRawIndex(b.idx1));break;case"+":var L=b.idx,I=p.dataDimsForPoint,k=i.dataToPoint([t.get(I[0],L),t.get(I[1],L)]);T=L*2,u.push(k[0],k[1]),f.push(y[T],y[T+1]);var F=US(p,i,t,L);c.push(F[0],F[1]),h.push(n[T],n[T+1]),g.push(t.getRawIndex(L));break;case"-":w=!1}w&&(v.push(b),d.push(d.length))}d.sort(function(xe,Et){return g[xe]-g[Et]});for(var N=u.length,J=ba(N),W=ba(N),Z=ba(N),ct=ba(N),xt=[],x=0;x<d.length;x++){var yt=d[x],Rt=x*2,Ft=yt*2;J[Rt]=u[Ft],J[Rt+1]=u[Ft+1],W[Rt]=f[Ft],W[Rt+1]=f[Ft+1],Z[Rt]=c[Ft],Z[Rt+1]=c[Ft+1],ct[Rt]=h[Ft],ct[Rt+1]=h[Ft+1],xt[x]=v[yt]}return{current:J,next:W,stackedOnCurrent:Z,stackedOnNext:ct,status:xt}}var Mn=Math.min,En=Math.max;function zi(e,t){return isNaN(e)||isNaN(t)}function Pv(e,t,r,n,i,a,o,s,l){for(var u,f,c,h,v,d,g=r,p=0;p<n;p++){var m=t[g*2],y=t[g*2+1];if(g>=i||g<0)break;if(zi(m,y)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](m,y),c=m,h=y;else{var x=m-u,b=y-f;if(x*x+b*b<.5){g+=a;continue}if(o>0){for(var w=g+a,_=t[w*2],T=t[w*2+1];_===m&&T===y&&p<n;)p++,w+=a,g+=a,_=t[w*2],T=t[w*2+1],m=t[g*2],y=t[g*2+1],x=m-u,b=y-f;var C=p+1;if(l)for(;zi(_,T)&&C<n;)C++,w+=a,_=t[w*2],T=t[w*2+1];var D=.5,E=0,P=0,L=void 0,I=void 0;if(C>=n||zi(_,T))v=m,d=y;else{E=_-u,P=T-f;var k=m-u,F=_-m,N=y-f,J=T-y,W=void 0,Z=void 0;if(s==="x"){W=Math.abs(k),Z=Math.abs(F);var ct=E>0?1:-1;v=m-ct*W*o,d=y,L=m+ct*Z*o,I=y}else if(s==="y"){W=Math.abs(N),Z=Math.abs(J);var xt=P>0?1:-1;v=m,d=y-xt*W*o,L=m,I=y+xt*Z*o}else W=Math.sqrt(k*k+N*N),Z=Math.sqrt(F*F+J*J),D=Z/(Z+W),v=m-E*o*(1-D),d=y-P*o*(1-D),L=m+E*o*D,I=y+P*o*D,L=Mn(L,En(_,m)),I=Mn(I,En(T,y)),L=En(L,Mn(_,m)),I=En(I,Mn(T,y)),E=L-m,P=I-y,v=m-E*W/Z,d=y-P*W/Z,v=Mn(v,En(u,m)),d=Mn(d,En(f,y)),v=En(v,Mn(u,m)),d=En(d,Mn(f,y)),E=m-v,P=y-d,L=m+E*Z/W,I=y+P*Z/W}e.bezierCurveTo(c,h,v,d,m,y),c=L,h=I}else e.lineTo(m,y)}u=m,f=y,g+=a}return p}var WS=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),PB=function(e){q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new WS},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&zi(i[o*2-2],i[o*2-1]);o--);for(;a<o&&zi(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Pv(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=$i.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var h=a[c++],v=void 0,d=void 0,g=void 0,p=void 0,m=void 0,y=void 0,x=void 0;switch(h){case o.M:s=a[c++],l=a[c++];break;case o.L:if(v=a[c++],d=a[c++],x=u?(r-s)/(v-s):(r-l)/(d-l),x<=1&&x>=0){var b=u?(d-l)*x+l:(v-s)*x+s;return u?[r,b]:[b,r]}s=v,l=d;break;case o.C:v=a[c++],d=a[c++],g=a[c++],p=a[c++],m=a[c++],y=a[c++];var w=u?au(s,v,g,m,r,f):au(l,d,p,y,r,f);if(w>0)for(var _=0;_<w;_++){var T=f[_];if(T<=1&&T>=0){var b=u?se(l,d,p,y,T):se(s,v,g,m,T);return u?[r,b]:[b,r]}}s=m,l=y;break}}},t}(Nt),LB=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(WS),RB=function(e){q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new LB},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&zi(i[s*2-2],i[s*2-1]);s--);for(;o<s&&zi(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Pv(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Pv(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(Nt);function IB(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new jt({shape:{x:o,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var g=ft(i)?function(p){i(p,c)}:null;Ua(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,g)}return c}function OB(e,t,r){var n=e.getArea(),i=qt(n.r0,1),a=qt(n.r,1),o=new Ps({shape:{cx:qt(e.cx,1),cy:qt(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Ua(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function kB(e,t){return e.type===t}function B0(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function N0(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function F0(e,t){var r=N0(e),n=r[0],i=r[1],a=N0(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function z0(e){return Ut(e)?e:e?.5:0}function BB(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=ba(n*2),a=0;a<n;a++){var o=US(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Pn(e,t,r,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],c=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&c.push(e[s],e[s+1]);e=c}for(s=0;s<e.length-2;s+=2)switch(f[0]=e[s+2],f[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[a]=f[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var h=(u[a]+f[a])/2,v=[];l[a]=v[a]=h,l[1-a]=u[1-a],v[1-a]=f[1-a],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[a]=u[a],l[1-a]=f[1-a],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function NB(e,t){var r=[],n=e.length,i,a;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),g=Ld(d,[f.color,c.color]);return{coord:h,color:g}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function FB(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=et(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=NB(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,g=h[0].coord-d,p=h[v-1].coord+d,m=p-g;if(m<.001)return"transparent";A(h,function(x){x.offset=(x.coord-g)/m}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var y=new Yd(0,0,0,0,h,!0);return y[i]=g,y[i+"2"]=p,y}}}function zB(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&HB(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function HB(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Bp.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function VB(e,t){return isNaN(e)||isNaN(t)}function GB(e){for(var t=e.length/2;t>0&&VB(e[t*2-2],e[t*2-1]);t--);return t-1}function H0(e,t){return[e[t*2],e[t*2+1]]}function UB(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function YS(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<$r.length;t++)if(e.get([$r[t],"endLabel","show"]))return!0;return!1}function ih(e,t,r,n){if(kB(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=YS(n)?function(v,d){e._endLabelOnDuring(v,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=IB(t,r,n,function(){var v=e._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return OB(t,r,n)}function WB(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var YB=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Jt,n=new AB;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),f=r.getModel("areaStyle"),c=l.getLayout("points")||[],h=o.type==="polar",v=this._coordSys,d=this._symbolDraw,g=this._polyline,p=this._polygon,m=this._lineGroup,y=!n.ssr&&r.get("animation"),x=!f.isEmpty(),b=f.get("origin"),w=GS(o,l,b),_=x&&BB(o,l,w),T=r.get("showSymbol"),C=r.get("connectNulls"),D=T&&!h&&zB(r,l,o),E=this._data;E&&E.eachItemGraphicEl(function(Et,Le){Et.__temp&&(s.remove(Et),E.setItemGraphicEl(Le,null))}),T||d.remove(),s.add(m);var P=h?!1:r.get("step"),L;o&&o.getArea&&r.get("clip",!0)&&(L=o.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var I=FB(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&v.type===o.type&&P===this._step))T&&d.updateData(l,{isIgnore:D,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Et){return[c[Et*2],c[Et*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,L),P&&(c=Pn(c,o,P,C),_&&(_=Pn(_,o,P,C))),g=this._newPolyline(c),x?p=this._newPolygon(c,_):p&&(m.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,Xi(I)),m.setClipPath(ih(this,o,!0,r));else{x&&!p?p=this._newPolygon(c,_):p&&!x&&(m.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,Xi(I));var k=m.getClipPath();if(k){var F=ih(this,o,!1,r);Ua(k,{shape:F.shape},r)}else m.setClipPath(ih(this,o,!0,r));T&&d.updateData(l,{isIgnore:D,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Et){return[c[Et*2],c[Et*2+1]]}}),(!B0(this._stackedOnPoints,_)||!B0(this._points,c))&&(y?this._doUpdateAnimation(l,_,o,i,P,b,C):(P&&(c=Pn(c,o,P,C),_&&(_=Pn(_,o,P,C))),g.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:_})))}var N=r.getModel("emphasis"),J=N.get("focus"),W=N.get("blurScope"),Z=N.get("disabled");if(g.useStyle(St(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),qm(g,r,"lineStyle"),g.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var ct=g.getState("emphasis").style;ct.lineWidth=+g.style.lineWidth+1}Tt(g).seriesIndex=r.seriesIndex,uv(g,J,W,Z);var xt=z0(r.get("smooth")),yt=r.get("smoothMonotone");if(g.setShape({smooth:xt,smoothMonotone:yt,connectNulls:C}),p){var Rt=l.getCalculationInfo("stackedOnSeries"),Ft=0;p.useStyle(St(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Rt&&(Ft=z0(Rt.get("smooth"))),p.setShape({smooth:xt,stackedOnSmooth:Ft,smoothMonotone:yt,connectNulls:C}),qm(p,r,"areaStyle"),Tt(p).seriesIndex=r.seriesIndex,uv(p,J,W,Z)}var xe=function(Et){a._changePolyState(Et)};l.eachItemGraphicEl(function(Et){Et&&(Et.onHoverStateChange=xe)}),this._polyline.onHoverStateChange=xe,this._data=l,this._coordSys=o,this._stackedOnPoints=_,this._points=c,this._step=P,this._valueOrigin=b,r.get("triggerLineEvent")&&(this.packEventData(r,g),p&&this.packEventData(r,p))},t.prototype.packEventData=function(r,n){Tt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Yi(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=r.get("zlevel")||0,v=r.get("z")||0;u=new Bp(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Je.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Yi(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Je.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;Um(this._polyline,r),n&&Um(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new PB({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new RB({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");ft(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=ft(c)?c(null):c;r.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],m=void 0,y=void 0,x=void 0;if(i)if(o){var b=i,w=n.pointToCoord(p);a?(m=b.startAngle,y=b.endAngle,x=-w[1]/180*Math.PI):(m=b.r0,y=b.r,x=w[0])}else{var _=i;a?(m=_.x,y=_.x+_.width,x=v.x):(m=_.y+_.height,y=_.y,x=v.y)}var T=y===m?0:(x-m)/(y-m);l&&(T=1-T);var C=ft(c)?c(d):f*T+h,D=g.getSymbolPath(),E=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:C}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(YS(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new oe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=GB(l);f>=0&&(tp(s,ep(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?TB(o,v):VS(o,c)},enableTextSetter:!0},WB(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),y=p.inverse,x=n.shape,b=y?m?x.x:x.y+x.height:m?x.x+x.width:x.y,w=(m?g:0)*(y?-1:1),_=(m?0:-g)*(y?-1:1),T=m?"x":"y",C=UB(c,b,T),D=C.range,E=D[1]-D[0],P=void 0;if(E>=1){if(E>1&&!v){var L=H0(c,D[0]);u.attr({x:L[0]+w,y:L[1]+_}),o&&(P=h.getRawValue(D[0]))}else{var L=f.getPointOn(b,T);L&&u.attr({x:L[0]+w,y:L[1]+_});var I=h.getRawValue(D[0]),k=h.getRawValue(D[1]);o&&(P=xE(i,d,I,k,C.t))}a.lastFrameIndex=D[0]}else{var F=r===1||a.lastFrameIndex>0?D[0]:0,L=H0(c,F);o&&(P=h.getRawValue(F)),u.attr({x:L[0]+w,y:L[1]+_})}if(o){var N=$b(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,h=EB(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,g=h.next,p=h.stackedOnNext;if(o&&(v=Pn(h.current,i,o,l),d=Pn(h.stackedOnCurrent,i,o,l),g=Pn(h.next,i,o,l),p=Pn(h.stackedOnNext,i,o,l)),F0(v,g)>3e3||f&&F0(d,p)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:g}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),hn(u,m,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),hn(f,{shape:{stackedOnPoints:p}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],x=h.status,b=0;b<x.length;b++){var w=x[b].cmd;if(w==="="){var _=r.getItemGraphicEl(x[b].idx1);_&&y.push({el:_,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<y.length;C++){var D=y[C].el,E=y[C].ptIdx*2;D.x=T[E],D.y=T[E+1],D.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Je);function $B(e,t){return{seriesType:e,plan:Lw(),reset:function(r){var n=r.getData(),i=r.coordinateSystem;if(r.pipelineContext,!!i){var a=et(i.dimensions,function(c){return n.mapDimension(c)}).slice(0,2),o=a.length,s=n.getCalculationInfo("stackResultDimension");Fa(n,a[0])&&(a[0]=s),Fa(n,a[1])&&(a[1]=s);var l=n.getStore(),u=n.getDimensionIndex(a[0]),f=n.getDimensionIndex(a[1]);return o&&{progress:function(c,h){for(var v=c.end-c.start,d=ba(v*o),g=[],p=[],m=c.start,y=0;m<c.end;m++){var x=void 0;if(o===1){var b=l.get(u,m);x=i.dataToPoint(b,null,p)}else g[0]=l.get(u,m),g[1]=l.get(f,m),x=i.dataToPoint(g,null,p);d[y++]=x[0],d[y++]=x[1]}h.setLayout("points",d)}}}}}}var XB={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,r=-1/0,n=0;n<e.length;n++){var i=e[n],a=Math.abs(i);a>t&&(t=a,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},qB=function(e){return Math.round(e.length/2)};function KB(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;tt(a)?d=XB[a]:ft(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,qB))}}}}}function jB(e){e.registerChartView(YB),e.registerSeriesModel(SB),e.registerLayout($B("line")),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,KB("line"))}var ZB=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(wt),Lv=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cr).models[0]},t.type="cartesian2dAxis",t}(wt);Qe(Lv,Op);var $S={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},JB=pt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},$S),Np=pt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},$S),QB=pt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Np),tN=St({logBase:10},Np);const eN={category:JB,value:Np,time:QB,log:tN};var rN={value:1,category:1,time:1,log:1};function Rv(e,t,r,n){A(rN,function(i,a){var o=pt(pt({},eN[a],!0),n,!0),s=function(l){q(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=ls(this),v=h?mf(f):{},d=c.getTheme();pt(f,d.get(a+"Axis")),pt(f,this.getDefaultOption()),f.type=V0(f),h&&Ba(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Mv.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",V0)}function V0(e){return e.type||(e.data?"category":"value")}var nN=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return et(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ee(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),Iv=["x","y"];function G0(e){return e.type==="interval"||e.type==="time"}var iN=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Iv,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!G0(r)||!G0(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-i[0]*f,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=Ts([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new _t(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Me(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Me(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new _t(a,o,s,l)},t}(nN),aN=function(e){q(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(kp);function Ov(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},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Oa(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}function U0(e){return e.get("coordinateSystem")==="cartesian2d"}function W0(e){var t={xAxisModel:null,yAxisModel:null};return A(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,cr).models[0];t[n]=a}),t}var ah=Math.log;function oN(e,t,r){var n=Ya.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=PS(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(e.type==="log"){var h=ah(e.base);u=[ah(u[0])/h,ah(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(e);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(e),g=u[0],p=u[1];if(f&&c)d=(p-g)/o;else if(f)for(p=u[0]+d*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)d=th(d),p=u[0]+d*o;else if(c)for(g=u[1]-d*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=th(d),g=u[1]-d*o;else{var m=e.getTicks().length-1;m>o&&(d=th(d));var y=d*o;p=Math.ceil(u[1]/d)*d,g=qt(p-y),g<0&&u[0]>=0?(g=0,p=qt(y)):p>0&&u[1]<=0&&(p=0,g=-qt(y))}var x=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;n.setExtent.call(e,g+d*x,p+d*b),n.setInterval.call(e,d),(x||b)&&n.setNiceExtent.call(e,g+d,p-d)}var sN=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Iv,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Gt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,g=v.scale;Ev(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Du(g,d),Ev(g)&&(s=v))}f.length&&(s||(s=f.pop(),Du(s.scale,s.model)),A(f,function(p){oN(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){Y0(n,"y",o,a)}),A(n.y,function(o){Y0(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=qi(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=Gk(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),lN(u,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}nt(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",cr).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",cr).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Mt(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,c){A(s.y,function(h,v){var d="x"+c+"y"+v,g=new iN(d);g.master=i,g.model=t,i._coordsMap[d]=g,i._coordsList.push(g),g.addAxis(f),g.addAxis(h)})});function u(f){return function(c,h){if(oh(c,t)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new aN(f,Lp(c),[0,0],c.get("type"),v),g=d.type==="category";d.onBand=g&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=h,a._axesList.push(d),s[f][h]=d,l[f]++}}}},e.prototype._updateScale=function(t,r){A(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(U0(i)){var a=W0(i),o=a.xAxisModel,s=a.yAxisModel;if(!oh(o,r)||!oh(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(i,a){A(Wk(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return A(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);Mt(r,a)<0&&r.push(a),Mt(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(U0(i)){var a=W0(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=Iv,e}();function oh(e,t){return e.getCoordSysModel()===t}function Y0(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)$0(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&$0(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function $0(e){return e&&e.type!=="category"&&e.type!=="time"&&Vk(e)}function lN(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var Hn=Math.PI,ln=function(){function e(t,r){this.group=new Jt,this.opt=r,this.axisModel=t,St(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Jt({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!X0[t]},e.prototype.add=function(t){X0[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=Bd(r-t),a,o;return ns(i)?(o=n>0?"top":"bottom",a="center"):ns(i-Hn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Hn?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}(),X0={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&&(Me(s,s,o),Me(l,l,o));var f=Y({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new cn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});os(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);tt(h)&&(h=[h,h]),(tt(v)||Ut(v))&&(v=[v,v]);var d=Hw(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];A([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var x=Ki(h[y],-g/2,-p/2,g,p,f.stroke,!0),b=m.r+m.offset,w=u?l:s;x.attr({rotation:m.rotate,x:w[0]+b*Math.cos(e.rotation),y:w[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),r.add(x)}})}}},axisTickLabel:function(e,t,r,n){var i=cN(r,n,t,e),a=vN(r,n,t,e);if(fN(t,a,i),hN(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=bB(et(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));wB(o)}},axisName:function(e,t,r,n){var i=Oa(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,K0(a)?e.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Hn/180);var d;K0(a)?h=ln.innerTextLayout(e.rotation,v??e.rotation,o):(h=uN(e.rotation,a,v||0,u),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},m=p.ellipsis,y=Oa(e.nameTruncateMaxWidth,p.maxWidth,d),x=new oe({x:c[0],y:c[1],rotation:h.rotation,silent:ln.isLabelSilent(t),style:vn(s,{text:i,font:g,overflow:"truncate",width:y,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(Jd({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var b=ln.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,Tt(x).eventData=b}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function uN(e,t,r,n){var i=Bd(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return ns(i-Hn/2)?(o=l?"bottom":"top",a="center"):ns(i-Hn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Hn*1.5&&i>Hn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function fN(e,t,r){if(!LS(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?(rr(a),rr(u)):q0(a,o)&&(n?(rr(o),rr(f)):(rr(a),rr(u))),i===!1?(rr(s),rr(c)):q0(l,s)&&(i?(rr(l),rr(h)):(rr(s),rr(c)))}}function rr(e){e&&(e.ignore=!0)}function q0(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=ws([]);return Ss(i,i,-e.rotation),r.applyTransform(Vn([],i,e.getLocalTransform())),n.applyTransform(Vn([],i,t.getLocalTransform())),r.intersect(n)}}function K0(e){return e==="middle"||e==="center"}function XS(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&&(Me(o,o,t),Me(s,s,t));var f=new cn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});os(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,a.push(f)}return a}function cN(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=XS(u,t.transform,l,St(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}}function hN(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=St(s.getLineStyle(),St(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=XS(o[f],t.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)e.add(c[h])}}function vN(e,t,r,n){var i=r.axis,a=Oa(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Oa(n.labelRotate,o.get("rotate"))||0)*Hn/180,f=ln.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),h=[],v=ln.isLabelSilent(r),d=r.get("triggerEvent");return A(l,function(g,p){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,y=g.formattedLabel,x=g.rawLabel,b=o;if(c&&c[m]){var w=c[m];nt(w)&&w.textStyle&&(b=new Vt(w.textStyle,o,r.ecModel))}var _=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=i.dataToCoord(m),C=b.getShallow("align",!0)||f.textAlign,D=mt(b.getShallow("alignMinLabel",!0),C),E=mt(b.getShallow("alignMaxLabel",!0),C),P=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||f.textVerticalAlign,L=mt(b.getShallow("verticalAlignMinLabel",!0),P),I=mt(b.getShallow("verticalAlignMaxLabel",!0),P),k=new oe({x:T,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(g.level||0),style:vn(b,{text:y,align:p===0?D:p===l.length-1?E:C,verticalAlign:p===0?L:p===l.length-1?I:P,fill:ft(_)?_(i.type==="category"?x:i.type==="value"?m+"":m,p):_})});if(k.anid="label_"+m,d){var F=ln.makeAxisEventDataBase(r);F.targetType="axisLabel",F.value=x,F.tickIndex=p,i.type==="category"&&(F.dataIndex=m),Tt(k).eventData=F}t.add(k),k.updateTransform(),h.push(k),e.add(k),k.decomposeTransform()}),h}}function dN(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return pN(r,e,t),r.seriesInvolved&&mN(r,e),r}function pN(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];A(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ds(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(A(s.getAxes(),Ht(g,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&A(d.baseAxes,Ht(g,v?"cross":!0,h)),v&&A(d.otherAxes,Ht(g,"cross",!1))}function g(p,m,y){var x=y.model.getModel("axisPointer",i),b=x.get("show");if(!(!b||b==="auto"&&!p&&!kv(x))){m==null&&(m=x.get("triggerTooltip")),x=p?gN(y,c,i,t,p,m):x;var w=x.get("snap"),_=x.get("triggerEmphasis"),T=ds(y.model),C=m||w||y.type==="category",D=e.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:m,triggerEmphasis:_,involveSeries:C,snap:w,useHandle:kv(x),seriesModels:[],linkGroup:null};u[T]=D,e.seriesInvolved=e.seriesInvolved||C;var E=yN(a,y);if(E!=null){var P=o[E]||(o[E]={axesInfo:{}});P.axesInfo[T]=D,P.mapper=a[E].mapper,D.linkGroup=P}}}})}function gN(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(h){l[h]=ut(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&&St(u,c.textStyle)}}return e.model.getModel("axisPointer",new Vt(l,r,n))}function mN(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||A(e.coordSysAxesInfo[ds(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 yN(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(sh(a[n+"AxisId"],r.id)||sh(a[n+"AxisIndex"],r.componentIndex)||sh(a[n+"AxisName"],r.name))return i}}function sh(e,t){return e==="all"||Q(e)&&Mt(e,t)>=0||e===t}function _N(e){var t=Fp(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=kv(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 Fp(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ds(e)]}function xN(e){var t=Fp(e);return t&&t.axisPointerModel}function kv(e){return!!e.get(["handle","show"])}function ds(e){return e.type+"||"+e.id}var j0={},qS=function(e){q(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&&_N(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=xN(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){j0[r]=n},t.getAxisPointerClass=function(r){return r&&j0[r]},t.type="axis",t}(_e),Bv=te();function bN(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,c=Bv(e).splitAreaColors,h=dt(),v=0;if(c)for(var d=0;d<u.length;d++){var g=c.get(u[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var p=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=Q(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),x=void 0,b=void 0,w=void 0,_=void 0;i.isHorizontal()?(x=p,b=l.y,w=y-x,_=l.height,p=x+w):(x=l.x,b=p,w=l.width,_=y-b,p=b+_);var T=u[d-1].tickValue;T!=null&&h.set(T,v),t.add(new jt({anid:T!=null?"area_"+T:null,shape:{x,y:b,width:w,height:_},style:St({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}Bv(e).splitAreaColors=h}}}function wN(e){Bv(e).splitAreaColors=null}var SN=["axisLine","axisTickLabel","axisName"],TN=["splitArea","splitLine","minorSplitLine"],KS=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Jt,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Ov(s,r),u=new ln(r,Y({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(Ev(h[v].getOtherAxis(r.axis).scale))return!0;return!1}},l));A(SN,u.add,u),this._axisGroup.add(u.getGroup()),A(TN,function(c){r.get([c,"show"])&&CN[c](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||jd(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){wN(this)},t.type="cartesianAxis",t}(qS),CN={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=Q(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,c=i.getTicksCoords({tickModel:a}),h=[],v=[],d=o.getLineStyle(),g=0;g<c.length;g++){var p=i.toGlobalCoord(c[g].coord);u?(h[0]=p,h[1]=l.y,v[0]=p,v[1]=l.y+l.height):(h[0]=l.x,h[1]=p,v[0]=l.x+l.width,v[1]=p);var m=f++%s.length,y=c[g].tickValue,x=new cn({anid:y!=null?"line_"+c[g].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:St({stroke:s[m]},d),silent:!0});os(x.shape,d.lineWidth),t.add(x)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var f=[],c=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var g=i.toGlobalCoord(u[v][d].coord);l?(f[0]=g,f[1]=s.y,c[0]=g,c[1]=s.y+s.height):(f[0]=s.x,f[1]=g,c[0]=s.x+s.width,c[1]=g);var p=new cn({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});os(p.shape,h.lineWidth),t.add(p)}},splitArea:function(e,t,r,n){bN(e,t,r,n)}},jS=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(KS),AN=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=jS.type,r}return t.type="yAxis",t}(KS),DN=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new jt({shape:r.coordinateSystem.getRect(),style:St({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(_e),Z0={offset:0};function MN(e){e.registerComponentView(DN),e.registerComponentModel(ZB),e.registerCoordinateSystem("cartesian2d",sN),Rv(e,"x",Lv,Z0),Rv(e,"y",Lv,Z0),e.registerComponentView(jS),e.registerComponentView(AN),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var J0="\0_ec_interaction_mutex";function EN(e,t,r){var n=ZS(e);n[t]=r}function PN(e,t,r){var n=ZS(e),i=n[t];i===r&&(n[t]=null)}function ZS(e){return e[J0]||(e[J0]={})}jn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},me);var LN={axisPointer:1,tooltip:1,brush:1};function RN(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!LN.hasOwnProperty(n.mainType)&&i&&i.model!==r}function IN(e){ON(e),kN(e)}function ON(e){if(!e.parallel){var t=!1;A(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function kN(e){var t=ie(e.parallelAxis);A(t,function(r){if(nt(r)){var n=r.parallelIndex||0,i=ie(e.parallel)[n];i&&i.parallelAxisDefault&&pt(r,i.parallelAxisDefault,!1)}})}var BN=5,NN=function(e){q(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){this._model=r,this._api=i,this._handlers||(this._handlers={},A(FN,function(a,o){i.getZr().on(o,this._handlers[o]=Lt(a,this))},this)),yp(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){_u(this,"_throttledDispatchExpand"),A(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(Y({type:"parallelAxisExpand"},r))},t.type="parallel",t}(_e),FN={mousedown:function(e){lh(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(lh(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>BN)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!lh(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function lh(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var zN=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&pt(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ee(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);A(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(wt),HN=function(e){q(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(kp);function VN(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=da(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=da(s,[0,o]),i=a=da(s,[i,a]),n=0}t[0]=da(t[0],r),t[1]=da(t[1],r);var l=uh(t,n);t[n]+=e;var u=i||0,f=r.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=da(t[n],f);var c;return c=uh(t,n),i!=null&&(c.sign!==l.sign||c.span<i)&&(t[1-n]=t[n]+l.sign*i),c=uh(t,n),a!=null&&c.span>a&&(t[1-n]=t[n]+c.sign*a),t}function uh(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function da(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var fh=A,JS=Math.min,QS=Math.max,Q0=Math.floor,GN=Math.ceil,t_=qt,UN=Math.PI,WN=function(){function e(t,r,n){this.type="parallel",this._axesMap=dt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;fh(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),f=this._axesMap.set(o,new HN(o,Lp(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();fh(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Du(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=qi(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,f=Tl(t.get("axisExpandWidth"),l),c=Tl(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=Tl(v[1]-v[0],l),v[1]=v[0]+d;else{d=Tl(f*(c-1),l);var g=t.get("axisExpandCenter")||Q0(u/2);v=[f*g-d/2],v[1]=v[0]+d}var p=(s-d)/(u-c);p<3&&(p=0);var m=[Q0(t_(v[0]/f,1))+1,GN(t_(v[1]/f,1))-1],y=p/f*v[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:p,axisExpandWindow:v,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),fh(n,function(o,s){var l=(i.axisExpandable?$N:YN)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:UN/2,vertical:0},c=[u[a].x+t.x,u[a].y+t.y],h=f[a],v=on();Ss(v,v,h),Qo(v,v,c),this._axesLayout[o]={position:c,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(p){s.push(t.mapDimension(p)),l.push(a.get(p).model)});for(var u=this.hasAxisBrushed(),f=n;f<i;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=t.getValues(s,f),v=0,d=o.length;v<d;v++){var g=l[v].getActiveState(h[v]);if(g==="inactive"){c="inactive";break}}}r(c,f)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)r.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return uf([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return ut(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,i=r.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",f=r.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=c[0]!=null;if(f)h&&f&&s<a*c[0]?(u="jump",l=s-a*c[2]):h&&f&&s>a*(1-c[0])?(u="jump",l=s-a*(1-c[2])):(l=s-a*c[1])>=0&&(l=s-a*(1-c[1]))<=0&&(l=0),l*=r.axisExpandWidth/f,l?VN(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[QS(0,d-v/2)],i[1]=JS(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},e}();function Tl(e,t){return JS(QS(e,t[0]),t[1])}function YN(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function $N(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,f;return e<o[0]?(s=e*a,f=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(i-1-e)*a,f=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function XN(e,t){var r=[];return e.eachComponent("parallel",function(n,i){var a=new WN(n,e,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",cr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}var qN={create:XN},Nv=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return ka([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=ut(r);if(n)for(var i=n.length-1;i>=0;i--)Jx(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=r&&r<=n[a][1])return"active";return"inactive"},t}(wt);Qe(Nv,Op);var ji=!0,ps=Math.min,za=Math.max,KN=Math.pow,jN=1e4,ZN=6,JN=6,e_="globalPan",QN={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},tF={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},r_={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},eF=0,rF=function(e){q(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new Jt,n._uid="brushController_"+eF++,A(uF,function(i,a){this._handlers[a]=Lt(i,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||EN(n,e_,this._uid),A(this._handlers,function(i,a){n.on(a,i)}),this._brushType=r.brushType,this._brushOption=pt(ut(r_),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;PN(r,e_,this._uid),A(this._handlers,function(n,i){r.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};A(r,function(i){n[i.panelId]=ut(i)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=et(r,function(h){return pt(ut(r_),h,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new vS(i,r,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=r[h];if(v!=null&&i[v]===s)a[h]=i[v];else{var g=a[h]=v!=null?(i[v].__brushOption=d,i[v]):eT(o,tT(o,d));zp(o,g)}}function c(h){i[h]!==s&&o.group.remove(i[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Fv(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Mr);function tT(e,t){var r=Af[t.brushType].createCover(e,t);return r.__brushOption=t,nT(r,t),e.group.add(r),r}function eT(e,t){var r=Hp(t);return r.endCreating&&(r.endCreating(e,t),nT(t,t.__brushOption)),t}function rT(e,t){var r=t.__brushOption;Hp(t).updateCoverShape(e,t,r.range,r)}function nT(e,t){var r=t.z;r==null&&(r=jN),e.traverse(function(n){n.z=r,n.z2=r})}function zp(e,t){Hp(t).updateCommon(e,t),rT(e,t)}function Hp(e){return Af[e.__brushOption.brushType]}function Vp(e,t,r){var n=e._panels;if(!n)return ji;var i,a=e._transform;return A(n,function(o){o.isTargetByCursor(t,r,a)&&(i=o)}),i}function iT(e,t){var r=e._panels;if(!r)return ji;var n=t.__brushOption.panelId;return n!=null?r[n]:ji}function Fv(e){var t=e._covers,r=t.length;return A(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function Zi(e,t){var r=et(e._covers,function(n){var i=n.__brushOption,a=ut(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function nF(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],i=r[0]-n[0],a=r[1]-n[1],o=KN(i*i+a*a,.5);return o>ZN}function aT(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function oT(e,t,r,n){var i=new Jt;return i.add(new jt({name:"main",style:Gp(r),silent:!0,draggable:!0,cursor:"move",drift:Ht(n_,e,t,i,["n","s","w","e"]),ondragend:Ht(Zi,t,{isEnd:!0})})),A(n,function(a){i.add(new jt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ht(n_,e,t,i,a),ondragend:Ht(Zi,t,{isEnd:!0})}))}),i}function sT(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=za(i,JN),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,f=r[0][1],c=r[1][1],h=f-a+i/2,v=c-a+i/2,d=f-o,g=c-s,p=d+i,m=g+i;Jr(e,t,"main",o,s,d,g),n.transformable&&(Jr(e,t,"w",l,u,a,m),Jr(e,t,"e",h,u,a,m),Jr(e,t,"n",l,u,p,a),Jr(e,t,"s",l,v,p,a),Jr(e,t,"nw",l,u,a,a),Jr(e,t,"ne",h,u,a,a),Jr(e,t,"sw",l,v,a,a),Jr(e,t,"se",h,v,a,a))}function zv(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(Gp(r)),i.attr({silent:!n,cursor:n?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Hv(e,a[0]):aF(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?tF[s]+"-resize":null})})}function Jr(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(sF(Up(e,t,[[n,i],[n+a,i+o]])))}function Gp(e){return St({strokeNoScale:!0},e.brushStyle)}function lT(e,t,r,n){var i=[ps(e,r),ps(t,n)],a=[za(e,r),za(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function iF(e){return Kd(e.group)}function Hv(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Ub(r[t],iF(e));return n[i]}function aF(e,t){var r=[Hv(e,t[0]),Hv(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function n_(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=uT(t,i,a);A(n,function(u){var f=QN[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=e.fromRectRange(lT(s[0][0],s[1][0],s[0][1],s[1][1])),zp(t,r),Zi(t,{isEnd:!1})}function oF(e,t,r,n){var i=t.__brushOption.range,a=uT(e,r,n);A(i,function(o){o[0]+=a[0],o[1]+=a[1]}),zp(e,t),Zi(e,{isEnd:!1})}function uT(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Up(e,t,r){var n=iT(e,t);return n&&n!==ji?n.clipPath(r,e._transform):ut(r)}function sF(e){var t=ps(e[0][0],e[1][0]),r=ps(e[0][1],e[1][1]),n=za(e[0][0],e[1][0]),i=za(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function lF(e,t,r){if(!(!e._brushType||fF(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=Vp(e,t,r);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===ji||s.panelId===a.panelId)&&Af[s.brushType].contain(i[o],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function Vv(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Gv(e,t,r){return e.childOfName("main").contain(t,r)}function fT(e,t,r,n){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),nF(e)||i){if(a&&!i){o.brushMode==="single"&&Fv(e);var l=ut(o);l.brushType=i_(l.brushType,a),l.panelId=a===ji?null:a.panelId,i=e._creatingCover=tT(e,l),e._covers.push(i)}if(i){var u=Af[i_(e._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(Up(e,i,e._track)),n&&(eT(e,i),u.updateCommon(e,i)),rT(e,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Vp(e,t,r)&&Fv(e)&&(s={isEnd:n,removeOnClick:!0});return s}function i_(e,t){return e==="auto"?t.defaultBrushType:e}var uF={mousedown:function(e){if(this._dragging)a_(this,e);else if(!e.target||!e.target.draggable){Vv(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=Vp(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(lF(this,e,n),this._dragging){Vv(e);var i=fT(this,e,n,!1);i&&Zi(this,i)}},mouseup:function(e){a_(this,e)}};function a_(e,t){if(e._dragging){Vv(t);var r=t.offsetX,n=t.offsetY,i=e.group.transformCoordToLocal(r,n),a=fT(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&Zi(e,a)}}function fF(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var Af={lineX:o_(0),lineY:o_(1),rect:{createCover:function(e,t){function r(n){return n}return oT({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=aT(e);return lT(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){sT(e,t,r,n)},updateCommon:zv,contain:Gv},polygon:{createCover:function(e,t){var r=new Jt;return r.add(new Rs({name:"main",style:Gp(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ls({name:"main",draggable:!0,drift:Ht(oF,e,t),ondragend:Ht(Zi,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:Up(e,t,r)})},updateCommon:zv,contain:Gv}};function o_(e){return{createCover:function(t,r){return oT({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=aT(t),n=ps(r[0][e],r[1][e]),i=za(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=iT(t,r);if(o!==ji&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),sT(t,r,l,i)},updateCommon:zv,contain:Gv}}function cF(e){return e=Wp(e),function(t){return Zd(t,e)}}function hF(e,t){return e=Wp(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function vF(e,t,r){var n=Wp(e);return function(i,a){return n.contain(a[0],a[1])&&!RN(i,t,r)}}function Wp(e){return _t.create(e)}var dF=["axisLine","axisTickLabel","axisName"],pF=function(e){q(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){e.prototype.init.apply(this,arguments),(this._brushController=new rF(n.getZr())).on("brush",Lt(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!gF(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Jt,this.group.add(this._axisGroup),!!r.get("show")){var s=yF(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),f=u.width,c=r.axis.dim,h=l.getAxisLayout(c),v=Y({strokeContainThreshold:f},h),d=new ln(r,v);A(dF,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,r,s,f,i),jd(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=_t.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:cF(c),isTargetByCursor:vF(c,s,a),getLinearBrushOtherExtent:hF(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(mF(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=et(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(_e);function gF(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function mF(e){var t=e.axis;return et(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function yF(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var _F={type:"axisAreaSelect",event:"axisAreaSelected"};function xF(e){e.registerAction(_F,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var bF={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function wF(e){e.registerComponentView(NN),e.registerComponentModel(zN),e.registerCoordinateSystem("parallel",qN),e.registerPreprocessor(IN),e.registerComponentModel(Nv),e.registerComponentView(pF),Rv(e,"parallel",Nv,bF),xF(e)}var Ai=te(),s_=ut,ch=Lt,SF=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 Jt,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=Ht(l_,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}f_(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=Fp(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=Ai(t).pointerEl=new CL[a.type](s_(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ai(t).labelEl=new oe(s_(r.label));t.add(a),u_(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ai(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=Ai(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),u_(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=ff(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Px(u.event)},onmousedown:ch(this._onHandleDragMove,this,0,0),drift:ch(this._onHandleDragMove,this),ondragend:ch(this._onHandleDragEnd,this)}),n.add(i)),f_(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,yp(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){l_(this._axisPointerModel,!r&&this._moveAnimation,this._handle,hh(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(hh(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(hh(i)),Ai(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),_u(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 l_(e,t,r,n){cT(Ai(r).lastProp,n)||(Ai(r).lastProp=n,t?hn(r,n,e):(r.stopAnimation(),r.attr(n)))}function cT(e,t){if(nt(e)&&nt(t)){var r=!0;return A(t,function(n,i){r=r&&cT(e[i],n)}),!!r}else return e===t}function u_(e,t){e[t.get(["label","show"])?"show":"hide"]()}function hh(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function f_(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 TF(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 CF(e,t,r,n,i){var a=r.get("value"),o=hT(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=ks(s.get("padding")||0),u=s.getFont(),f=Od(o,u),c=i.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(c[1]-=v),g==="middle"&&(c[1]-=v/2),AF(c,h,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:vn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function AF(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 hT(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:Rp(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),tt(o)?a=o.replace("{value}",a):ft(o)&&(a=o(s))}return a}function vT(e,t,r){var n=on();return Ss(n,n,r.rotation),Qo(n,n,r.position),uf([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function DF(e,t,r,n,i,a){var o=ln.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),CF(t,n,i,a,{position:vT(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function MF(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function EF(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var PF=function(e){q(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=c_(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=TF(a),v=LF[u](s,c,f);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=Ov(l.model,i);DF(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=Ov(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=vT(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=c_(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,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(SF);function c_(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var LF={line:function(e,t,r){var n=MF([t,r[0]],[t,r[1]],h_(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:EF([t-n/2,r[0]],[n,i],h_(e))}}};function h_(e){return e.dim==="x"?0:1}var RF=function(e){q(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}(wt),nn=te(),IF=A;function dT(e,t,r){if(!lt.node){var n=t.getZr();nn(n).records||(nn(n).records={}),OF(n,t);var i=nn(n).records[e]||(nn(n).records[e]={});i.handler=r}}function OF(e,t){if(nn(e).initialized)return;nn(e).initialized=!0,r("click",Ht(v_,"click")),r("mousemove",Ht(v_,"mousemove")),r("globalout",BF);function r(n,i){e.on(n,function(a){var o=NF(t);IF(nn(e).records,function(s){s&&i(s,a,o.dispatchAction)}),kF(o.pendings,t)})}}function kF(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 BF(e,t,r){e.handler("leave",null,r)}function v_(e,t,r,n){t.handler(e,r,n)}function NF(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 Uv(e,t){if(!lt.node){var r=t.getZr(),n=(nn(r).records||{})[e];n&&(nn(r).records[e]=null)}}var FF=function(e){q(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";dT("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){Uv("axisPointer",n)},t.prototype.dispose=function(r,n){Uv("axisPointer",n)},t.type="axisPointer",t}(_e);function pT(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Yi(a,e);if(o==null||o<0||Q(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,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(et(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var d_=te();function zF(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Lt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Yl(i)&&(i=pT({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Yl(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Yl(i),h={},v={},d={list:[],map:{}},g={showPointer:Ht(VF,v),showTooltip:Ht(GF,d)};A(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);A(s.coordSysAxesInfo[y],function(b,w){var _=b.axis,T=$F(u,b);if(!c&&x&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=_.pointToData(i)),C!=null&&p_(b,C,g,!1,h)}})});var p={};return A(f,function(m,y){var x=m.linkGroup;x&&!v[y]&&A(x.axesInfo,function(b,w){var _=v[w];if(b!==m&&_){var T=_.value;x.mapper&&(T=m.axis.scale.parse(x.mapper(T,g_(b),g_(m)))),p[m.key]=T}})}),A(p,function(m,y){p_(f[y],m,g,!0,h)}),UF(v,f,h),WF(d,i,e,o),YF(f,o,r),h}}function p_(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=HF(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function HF(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,e,r);h=v.dataIndices,c=v.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 d=e-c,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,i=c,a.length=0),A(h,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function VF(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function GF(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=ds(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 UF(e,t,r){var n=r.axesInfo=[];A(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 WF(e,t,r,n){if(Yl(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 YF(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=d_(n)[i]||{},o=d_(n)[i]={};A(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&A(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];A(a,function(u,f){!o[f]&&l.push(u)}),A(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 $F(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 g_(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 Yl(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function gT(e){qS.registerAxisPointerClass("CartesianAxisPointer",PF),e.registerComponentModel(RF),e.registerComponentView(FF),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=dN(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zF)}function XF(e){dn(MN),dn(gT)}function qF(e,t){var r=ks(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new jt({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 KF=function(e){q(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}(wt);function mT(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function yT(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 _T=yT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),jF=yT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function xT(e,t){if(!e)return t;t=up(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function ZF(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var JF=xT(jF,"transition"),Yp=xT(_T,"transform"),QF="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(lt.transform3dSupported?"will-change:transform;":"");function t4(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function e4(e,t,r){if(!tt(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Xi(t);var a=t4(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Yp+":",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)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function r4(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?","+Yp+n:",left"+n+",top"+n),JF+":"+i}function m_(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;"+Yp+":"+o+";":[["top",0],["left",0],[_T,o]]}function n4(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),A(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function i4(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=Pw(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(r4(i,r)),a&&n.push("background-color:"+a),A(["width","color","radius"],function(v){var d="border-"+v,g=up(d),p=e.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(n4(f)),c!=null&&n.push("padding:"+ks(c).join("px ")+"px"),n.join(";")+";"}function y_(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&I5(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 a4=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&&(tt(a)?document.querySelector(a):Ia(a)?a:ft(a)&&a(t.getDom()));y_(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();ir(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=ZF(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=QF+i4(t,!this._firstShow,this._longHide)+m_(a[0],a[1],!0)+("border-color:"+Xi(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(tt(a)&&n.get("trigger")==="item"&&!mT(n)&&(s=e4(n,i,a)),tt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Q(t)||(t=[t]);for(var l=0;l<t.length;l++)Ia(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.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(y_(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=m_(n[0],n[1]);A(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(Lt(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}(),o4=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),x_(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;nt(t)&&Be(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new oe({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Pw(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),A(["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=__(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;x_(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Rn(a.borderWidth||0),s=__(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(Lt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Rn(e){return Math.max(0,e)}function __(e){var t=Rn(e.shadowBlur||0),r=Rn(e.shadowOffsetX||0),n=Rn(e.shadowOffsetY||0);return{left:Rn(t-r),right:Rn(t+r),top:Rn(t-n),bottom:Rn(t+n)}}function x_(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var s4=new jt({shape:{x:-1,y:-1,width:2,height:2}}),l4=function(e){q(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=_E(i.get("renderMode"));this._tooltipContent=a==="richText"?new o4(n):new a4(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")?yp(this,"_updatePosition",50,"fixRate"):_u(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");dT("itemTooltip",this._api,Lt(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=b_(a,i);this._ticket="";var s=a.dataByCoordSys,l=h4(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=s4;f.x=a.x,f.y=a.y,f.update(),Tt(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=pT(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(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(b_(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=go([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=Tt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ao(i,function(f){if(Tt(f).dataIndex!=null)return l=f,!0;if(Tt(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=Lt(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=go([n.tooltipOption],a),l=this._renderMode,u=[],f=fs("section",{blocks:[],noHeader:!0}),c=[],h=new Gc;A(r,function(y){A(y.dataByAxis,function(x){var b=i.getComponent(x.axisDim+"Axis",x.axisIndex),w=x.value;if(!(!b||w==null)){var _=hT(w,b.axis,i,x.seriesDataIndices,x.valueLabelOpt),T=fs("section",{header:_,noHeader:!wr(_),sortBlocks:!0,blocks:[]});f.blocks.push(T),A(x.seriesDataIndices,function(C){var D=i.getSeriesByIndex(C.seriesIndex),E=C.dataIndexInside,P=D.getDataParams(E);if(!(P.dataIndex<0)){P.axisDim=x.axisDim,P.axisIndex=x.axisIndex,P.axisType=x.axisType,P.axisId=x.axisId,P.axisValue=Rp(b.axis,{value:w}),P.axisValueLabel=_,P.marker=h.makeTooltipMarker("item",Xi(P.color),l);var L=Oy(D.formatTooltip(E,!0,null)),I=L.frag;if(I){var k=go([D],a).get("valueFormatter");T.blocks.push(k?Y({valueFormatter:k},I):I)}L.text&&c.push(L.text),u.push(P)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),g=zy(f,h,l,d,i.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var p=l==="richText"?`
`:"<br/>",m=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Tt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=r.positionDefault,g=go([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(f,c),y=new Gc;m.marker=y.makeTooltipMarker("item",Xi(m.color),v);var x=Oy(u.formatTooltip(f,!1,c)),b=g.get("order"),w=g.get("valueFormatter"),_=x.frag,T=_?zy(w?Y({valueFormatter:w},_):_,y,v,b,a.get("useUTC"),g.get("textStyle")):x.text,C="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,T,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),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=Tt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(tt(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=ut(l),l.content=Oe(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=r.positionDefault,d=go(c,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",m=new Gc;this._showOrMove(d,function(){var y=ut(d.get("formatterParams")||{});this._showTooltipContent(d,g,y,p,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 v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=d.color;if(h)if(tt(h)){var p=r.ecModel.get("useUTC"),m=Q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Os(m.axisValue,v,p)),v=fp(v,i,!0)}else if(ft(h)){var x=Lt(function(b,w){b===this._ticket&&(c.setContent(w,f,r,g,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,v=h(i,a,x)}else v=h;c.setContent(v,f,r,g,l),c.show(r,g),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Q(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"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ft(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),Q(n))i=Ae(n[0],u),a=Ae(n[1],f);else if(nt(n)){var g=n;g.width=c[0],g.height=c[1];var p=qi(g,{width:u,height:f});i=p.x,a=p.y,h=null,v=null}else if(tt(n)&&l){var m=c4(n,d,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=u4(i,a,o,u,f,h?null:20,v?null:20);i=m[0],a=m[1]}if(h&&(i-=w_(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=w_(v)?c[1]/2:v==="bottom"?c[1]:0),mT(r)){var m=f4(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&&A(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&A(u,function(h,v){var d=c[v]||{},g=h.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&g.length===p.length,o&&A(g,function(m,y){var x=p[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&A(h.seriesDataIndices,function(m){var y=m.seriesIndex,x=n[y],b=a[y];x&&b&&b.data!==x.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()||(_u(this,"_updatePosition"),this._tooltipContent.dispose(),Uv("itemTooltip",n))},t.type="tooltip",t}(_e);function go(e,t,r){var n=t.ecModel,i;r?(i=new Vt(r,n,n),i=new Vt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Vt&&(o=o.get("tooltip",!0)),tt(o)&&(o={formatter:o}),o&&(i=new Vt(o,i,n)))}return i}function b_(e,t){return e.dispatchAction||Lt(t.dispatchAction,t)}function u4(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 f4(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 c4(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 w_(e){return e==="center"||e==="middle"}function h4(e,t,r){var n=zd(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ds(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=Tt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function v4(e){dn(gT),e.registerComponentModel(KF),e.registerComponentView(l4),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},me),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},me)}var d4=function(e){q(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}(wt),p4=function(e){q(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=mt(r.get("textBaseline"),r.get("textVerticalAlign")),f=new oe({style:vn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),v=new oe({style:vn(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){py(d,"_"+r.get("target"))}),g&&v.on("click",function(){py(g,"_"+r.get("subtarget"))}),Tt(f).eventData=Tt(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(v);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=qi(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),v.setStyle(b),m=a.getBoundingRect();var w=x.margin,_=r.getItemStyle(["color","opacity"]);_.fill=r.get("backgroundColor");var T=new jt({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});a.add(T)}},t.type="title",t}(_e);function g4(e){e.registerComponentModel(d4),e.registerComponentView(p4)}var m4=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"])}},Wv=function(e){q(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"]),Q(n)&&A(n,function(a,o){tt(a)&&(a={type:a}),n[o]=pt(a,m4(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&&Fd(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=dt(),s=et(a,function(l){return(tt(l)||Ut(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Vt(l,this,this.ecModel))},this);this._data=ee(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;A(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;A(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;A(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}(wt),pa=Ht,Yv=A,Cl=Jt,bT=function(e){q(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 Cl),this.group.add(this._selectorGroup=new Cl),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"),v=qi(f,c,h),d=this.layoutInner(r,o,v,a,l,u),g=qi(St({width:d.width,height:d.height},f),c,h);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=qF(d,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=dt(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Yv(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
`)){var p=new Cl;p.newline=!0,u.add(p);return}var m=i.getSeriesByName(g)[0];if(!f.get(g))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),w=y.getVisual("style"),_=this._createItem(m,g,d,v,n,r,x,w,b,c,a);_.on("click",pa(S_,g,null,a,h)).on("mouseover",pa($v,m.name,null,a,h)).on("mouseout",pa(Xv,m.name,null,a,h)),i.ssr&&_.eachChild(function(T){var C=Tt(T);C.seriesIndex=m.seriesIndex,C.dataIndex=d,C.ssrType="legend"}),f.set(g,!0)}else i.eachRawSeries(function(T){if(!f.get(g)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(g))return;var D=C.indexOfName(g),E=C.getItemVisual(D,"style"),P=C.getItemVisual(D,"legendIcon"),L=je(E.fill);L&&L[3]===0&&(L[3]=.2,E=Y(Y({},E),{fill:Kn(L,"rgba")}));var I=this._createItem(T,g,d,v,n,r,{},E,P,c,a);I.on("click",pa(S_,null,g,a,h)).on("mouseover",pa($v,null,g,a,h)).on("mouseout",pa(Xv,null,g,a,h)),i.ssr&&I.eachChild(function(k){var F=Tt(k);F.seriesIndex=T.seriesIndex,F.dataIndex=d,F.ssrType="legend"}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Yv(r,function(u){var f=u.type,c=new oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);tp(c,{normal:h,emphasis:v},{defaultText:u.title}),hu(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,h){var v=r.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");f=x||f||"roundRect";var b=y4(f,a,l,u,v,p,h),w=new Cl,_=a.getModel("textStyle");if(ft(r.getLegendIcon)&&(!x||x==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var T=x==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;w.add(_4({itemWidth:d,itemHeight:g,icon:f,iconRotate:T,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,D=s,E=o.get("formatter"),P=n;tt(E)&&E?P=E.replace("{name}",n??""):ft(E)&&(P=E(n));var L=p?_.getTextColor():a.get("inactiveColor");w.add(new oe({style:vn(_,{text:P,x:C,y:g/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var I=new jt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),k=a.getModel("tooltip");return k.get("show")&&Jd({el:I,componentModel:o,itemName:n,itemTooltipOption:k.option}),w.add(I),w.eachChild(function(F){F.silent=!0}),I.silent=!c,this.getContentGroup().add(w),hu(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();zo(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){zo("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:c[g]+=h[p]+d,v[1-g]+=f[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var x={x:0,y:0};return x[p]=f[p]+d+h[p],x[m]=Math.max(f[m],h[m]),x[y]=Math.min(0,h[y]+v[1-g]),x}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}(_e);function y4(e,t,r,n,i,a,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),Yv(p,function(y,x){p[x]==="inherit"&&(p[x]=m[x])})}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:Tv(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"),v=h.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function _4(e){var t=e.icon||"roundRect",r=Ki(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 S_(e,t,r,n){Xv(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),$v(e,t,r,n)}function wT(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 $v(e,t,r,n){wT(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Xv(e,t,r,n){wT(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function x4(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 mo(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();A(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function b4(e){e.registerAction("legendToggleSelect","legendselectchanged",Ht(mo,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ht(mo,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ht(mo,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ht(mo,"select")),e.registerAction("legendUnSelect","legendunselected",Ht(mo,"unSelect"))}function ST(e){e.registerComponentModel(Wv),e.registerComponentView(bT),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,x4),e.registerSubTypeDefaulter("legend",function(){return"plain"}),b4(e)}var w4=function(e){q(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=mf(r);e.prototype.init.call(this,r,n,i),T_(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),T_(this,this.option,r)},t.type="legend.scroll",t.defaultOption=zL(Wv.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}(Wv);function T_(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ba(t,r,{type:"box",ignoreSize:!!i})}var C_=Jt,vh=["width","height"],dh=["x","y"],S4=function(e){q(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 C_),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new C_)},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=Q(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new oe({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var m=g+"DataIndex",y=ff(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:Lt(u._pageGo,u,m,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=g,f.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=vh[u],c=dh[u],h=vh[1-u],v=dh[1-u];o&&zo("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],m=ut(i);o&&(m[f]=i[f]-g[f]-d);var y=this._layoutContentAndController(r,a,m,u,f,h,v,c);if(o){if(s==="end")p[u]+=y[f]+d;else{var x=g[f]+d;p[u]-=x,y[c]-=x}y[f]+=g[f]+d,p[1-u]+=y[v]+y[h]/2-g[h]/2,y[h]=Math.max(y[h],g[h]),y[v]=Math.min(y[v],g[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;zo(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),zo("horizontal",h,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),g=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],x=mt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+x}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),c.setPosition(m),h.setPosition(y);var w={x:0,y:0};if(w[o]=g?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],g){var _={x:0,y:0};_[o]=Math.max(i[o]-d[o]-x,0),_[s]=w[s],c.setClipPath(new jt({shape:_})),c.__rectSize=_[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&hn(f,{x:T.contentPosition[0],y:T.contentPosition[1]},g?r:null),this._updatePageInfoView(r,T),w},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;A(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.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",tt(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=vh[o],l=dh[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var g=b(c);d.contentPosition[o]=-g.s;for(var p=u+1,m=g,y=g,x=null;p<=h;++p)x=b(f[p]),(!x&&y.e>m.s+a||x&&!w(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=x;for(var p=u-1,m=g,y=g,x=null;p>=-1;--p)x=b(f[p]),(!x||!w(y,x.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=x;return d;function b(_){if(_){var T=_.getBoundingRect(),C=T[l]+_[l];return{s:C,e:C+T[s],i:_.__legendDataIndex}}}function w(_,T){return _.e>=T&&_.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}(bT);function T4(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 C4(e){dn(ST),e.registerComponentModel(w4),e.registerComponentView(S4),T4(e)}function A4(e){dn(ST),dn(C4)}var D4={label:{enabled:!0},decal:{show:!1}},A_=te(),M4={};function E4(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=ut(D4);pt(n.label,e.getLocaleModel().get("aria"),!1),pt(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),f=u.get("show");if(f){var c=dt();e.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),A_(h).scope=v}}),e.eachRawSeries(function(h){if(e.isSeriesFiltered(h))return;if(ft(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=my(h.ecModel,h.name,M4,e.getSeriesCount()),x=v.getVisual("decal");v.setVisual("decal",b(x,y))}else{var d=h.getRawData(),g={},p=A_(h).scope;v.each(function(w){var _=v.getRawIndex(w);g[_]=w});var m=d.count();d.each(function(w){var _=g[w],T=d.getName(w)||w+"",C=my(h.ecModel,T,p,m),D=v.getItemVisual(_,"decal");v.setItemVisual(_,"decal",b(D,C))})}function b(w,_){var T=w?Y(Y({},_),w):_;return T.dirty=!0,T}})}}function a(){var u=t.getZr().dom;if(u){var f=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=St(c.option,f),!!c.get("enabled")){if(c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=e.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,g=Math.min(h,d),p;if(!(h<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);p=o(y,{title:m})}else p=c.get(["general","withoutTitle"]);var x=[],b=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);p+=o(b,{seriesCount:h}),e.eachSeries(function(C,D){if(D<g){var E=void 0,P=C.get("name"),L=P?"withName":"withoutName";E=h>1?c.get(["series","multiple",L]):c.get(["series","single",L]),E=o(E,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>v){var k=c.get(["data","partialData"]);E+=o(k,{displayCnt:v})}else E+=c.get(["data","allData"]);for(var F=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),J=[],W=0;W<I.count();W++)if(W<v){var Z=I.getName(W),ct=I.getValues(W),xt=c.get(["data",Z?"withName":"withoutName"]);J.push(o(xt,{name:Z,value:ct.join(F)}))}E+=J.join(F)+N,x.push(E)}});var w=c.getModel(["series","multiple","separator"]),_=w.get("middle"),T=w.get("end");p+=x.join(_)+T,u.setAttribute("aria-label",p)}}}}function o(u,f){if(!tt(u))return u;var c=u;return A(f,function(h,v){c=c.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),c}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=e.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function P4(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},A(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function L4(e){e.registerPreprocessor(P4),e.registerVisual(e.PRIORITY.VISUAL.ARIA,E4)}dn([jB,XF,g4,v4,wF,A4,L4]);function D_(e,t,r){var n=fn.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 ph=function(e){q(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||lu,typeof r=="string"?o=D_(r,n,i):nt(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Ad(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=D_("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 _t(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var x=new _t(0,0,0,0);x.copy(y),o.push(x)}else{for(var b=!1,w=1/0,_=0,T=0;T<o.length;++T){var C=o[T];if(C.intersect(y)){var D=new _t(0,0,0,0);D.copy(C),D.union(y),o[T]=D,b=!0;break}else if(l){u.copy(y),u.union(C);var E=y.width*y.height,P=C.width*C.height,L=u.width*u.height,I=L-E-P;I<w&&(w=I,_=T)}}if(l&&(o[_].union(y),b=!0),!b){var x=new _t(0,0,0,0);x.copy(y),o.push(x)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=r[c];if(h){var v=h.shouldBePainted(i,a,!0,!0),d=h.__isRendered&&(h.__dirty&Xe||!v)?h.getPrevPaintRect():null;d&&f(d);var g=v&&(h.__dirty&Xe||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],v=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var p;do{p=!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])?(p=!0,o[c].union(o[m]),o.splice(m,1)):m++;c++}}while(p);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 v=this.domBack;function d(g,p,m,y){if(o.clearRect(g,p,m,y),n&&n!=="transparent"){var x=void 0;if(xs(n)){var b=n.global||n.__width===m&&n.__height===y;x=b&&n.__canvasGradient||wv(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=x,n.__width=m,n.__height=y}else mx(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,x=Sv(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=x||n,o.fillRect(g,p,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,m,y),o.restore())}!i||u?d(0,0,s,l):i.length&&A(i,function(g){d(g.x*c,g.y*c,g.width*c,g.height*c)})},t}(Mr),M_=1e5,wi=314159,Al=.01,R4=.001;function I4(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function O4(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 k4=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=Y({},n||{}),this.dpr=n.devicePixelRatio||lu,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Ad(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 v=new ph(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[wi]=v,v.zlevel=wi,s.push(wi),this._domRoot=t}else{this._width=pl(t,0,n),this._height=pl(t,1,n);var u=this._domRoot=O4(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(M_)),a||(a=n.ctx,a.save()),Li(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(M_)},e.prototype.paintOne=function(t,r){_p(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;nu(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(wi).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(g){var p=a[g],m=p.ctx,y=o&&p.createRepaintRects(t,r,v._width,v._height),x=n?p.__startIndex:p.__drawIndex,b=!n&&p.incremental&&Date.now,w=b&&Date.now(),_=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,_,y);else if(x===p.__startIndex){var T=t[x];(!T.incremental||!T.notClear||n)&&p.clear(!1,_,y)}x===-1&&(console.error("For some unknown reason. drawIndex is -1"),x=p.__startIndex);var C,D=function(I){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=x;C<p.__endIndex;C++){var F=t[C];if(F.__inHover&&(c=!0),i._doPaintEl(F,p,o,I,k,C===p.__endIndex-1),b){var N=Date.now()-w;if(N>15)break}}k.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=p.__endIndex;else for(var E=v.dpr,P=0;P<y.length;++P){var L=y[P];m.save(),m.beginPath(),m.rect(L.x*E,L.y*E,L.width*E,L.height*E),m.clip(),D(L),m.restore()}else m.save(),D(),m.restore();p.__drawIndex=C,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)h(d);return lt.wxa&&A(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.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))&&(Li(s,t,a,o),t.setPrevPaintRect(l))}else Li(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=wi);var n=this._layers[t];return n||(n=new ph("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?pt(n,this._layerConfig[t],!0):this._layerConfig[t-Al]&&pt(n,this._layerConfig[t-Al],!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]&&I4(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+R4,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Al:0),this._needsManuallyCompositing),f.__builtin__||qu("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&Xe&&!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,A(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?pt(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+Al){var o=this._layers[a];pt(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=pl(a,0,i),r=pl(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(wi).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[wi].dom;var r=new ph("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];Li(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 B4(e){e.registerPainter("canvas",k4)}function N4(e,t=!0,r=!0){I0.use(B4);let n=null;const i=()=>{const c=Nr(e);!c||!Nr(e)||(n=I0.init(c,"default"))},a=c=>{e1(()=>{!n&&(i(),!n)||(n.setOption({...c}),f())})};function o(){return n||i(),n}function s(){n==null||n.resize()}function l(){r&&(e.value.style.transition="width 1s, height 1s"),new ResizeObserver(h=>s()).observe(e.value)}function u(){n||i(),n==null||n.showLoading()}function f(){n||i(),n==null||n.hideLoading()}return Nu(()=>{window.addEventListener("resize",s),t&&l()}),cd(()=>{window.removeEventListener("resize",s)}),{setOption:a,getInstance:o,showLoading:u,hideLoading:f}}const F4=[{left:778,top:187,num:"43"},{left:854,top:230,num:"42"},{left:969,top:302,num:"41"},{left:1142,top:404,num:"40"},{left:1322,top:513,num:"39"},{left:689,top:275,num:"35"},{left:837,top:369,num:"36"},{left:1008,top:474,num:"37"},{left:1188,top:590,num:"38"},{left:579,top:335,num:"34"},{left:716,top:427,num:"33"},{left:882,top:535,num:"32"},{left:1064,top:658,num:"31"},{left:770,top:594,num:"30"},{left:158,top:97,num:"14"},{left:214,top:113,num:"13"},{left:268,top:130,num:"12"},{left:326,top:149,num:"11"},{left:386,top:165,num:"10"},{left:255,top:82,num:"18"},{left:308,top:98,num:"17"},{left:372,top:116,num:"16"},{left:454,top:132,num:"15"}];function z4(e=[]){const t=ve([]);return(()=>{for(let n of e){const i=F4.find(a=>a.num==n.num);i&&t.value.push({...n,...i})}})(),{positionInfoArr:t}}const E_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAACCAYAAABxPuuRAAAAAXNSR0IArs4c6QAAAMtJREFUWEftlkcOhDAQBBtM3P//FYMDqwneNR/g1JasYTwBqU41pFzv4yo4zoKYJFZEya+CeFWPVv+9nRkxSc17pdbP6x7ZV5FyBQ8JkAAJkAAJkAAJkAAJvEVgnkZs84htGbGvE/ZFvgN2uWvQmkXL5X2VXq9LlFmdX2xe+33H0ATapLkTYhXoJs7VhPnMT7EWSXbJ7oX7L9sFudxvseJ/SIAESIAESIAESIAESABTGFSGVXhdkHshNjEO+LgUt9wE+SnLTZxVul3Iv8rnl+ubeSAXAAAAAElFTkSuQmCC",H4={class:"bg-[rgba(1,29,61,.9)] p-36 wh-full"},V4={class:"py-10 flex items-center j-b"},G4={class:"flex items-center"},U4={class:"font-[ysbt] text-20 text-#707070",style:{"background-image":"linear-gradient(to bottom, #FFFFFF, #64CCFF)","background-clip":"text",color:"transparent"}},gh={__name:"CardItem",props:{title:{type:String}},setup(e){return(t,r)=>(Ot(),$t("div",H4,[r[2]||(r[2]=S("img",{class:"w-full h-[1px]",src:E_,alt:""},null,-1)),S("div",V4,[S("div",G4,[r[0]||(r[0]=S("img",{class:"w-15 h-15 mr-10",src:V1,alt:""},null,-1)),S("div",U4,U(e.title),1)]),r[1]||(r[1]=S("img",{class:"w-28 h-10",src:G1,alt:""},null,-1))]),r[3]||(r[3]=S("img",{class:"w-full h-[1px]",src:E_,alt:""},null,-1)),BC(t.$slots,"default")]))}},W4={__name:"LineChart",props:["optionData","xData"],setup(e){const t=ve(null),{setOption:r}=N4(t),n=e;return console.log(n.optionData,"0000"),r({grid:{top:"20%",right:"1%",bottom:"1%",left:"1%",containLabel:!0},tooltip:{trigger:"axis"},legend:{data:n.optionData.map(i=>i.name),icon:"circle",itemWidth:14,itemHeight:14,left:"left",textStyle:{color:"#fff",fontSize:13}},xAxis:{type:"category",data:n.xData,axisLabel:{show:!0,textStyle:{color:"#B6CCE3",fontSize:14}},axisLine:{lineStyle:{color:"#3B4E78",width:1,type:"dashed"}}},yAxis:{type:"value",axisLabel:{show:!0,textStyle:{color:"#B6CCE3",fontSize:14}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#3B4E78"}}},series:n.optionData}),(i,a)=>(Ot(),$t("div",{class:"wh-full",ref_key:"lineChart",ref:t},null,512))}},Y4={class:"wh-full"},$4={class:"flex h-8 relative"},X4={key:0,class:"w-14 h-14 bg-white p-2 rounded-1/2 absolute top-1/2 -translate-y-1/2 left-12/100"},q4={class:"text-10 text-white absolute -top-20"},K4={key:1,class:"w-14 h-14 bg-white p-2 rounded-1/2 absolute top-1/2 -translate-y-1/2 left-44/100"},j4={class:"text-10 text-white absolute -top-20"},Z4={key:2,class:"w-14 h-14 bg-white p-2 rounded-1/2 absolute top-1/2 -translate-y-1/2 left-76/100"},J4={class:"text-10 text-white absolute -top-20"},Q4={class:"flex text-10 text-#697B8F mt-4"},t3={class:"flex-1"},e3={class:"flex-1"},r3={class:"flex-1 text-right"},n3={__name:"Ruler",props:{start:{type:Number,default:0},mid:{type:Number},end:{type:Number},cur:{type:Number}},setup(e){return(t,r)=>(Ot(),$t("div",Y4,[S("div",$4,[r[3]||(r[3]=S("div",{class:"flex-1 bg-#56C648"},null,-1)),r[4]||(r[4]=S("div",{class:"flex-1 bg-#F5BB23"},null,-1)),r[5]||(r[5]=S("div",{class:"flex-1 bg-#D53031"},null,-1)),e.cur>0&&e.cur<=e.mid?(Ot(),$t("div",X4,[S("div",q4,U(e.cur),1),r[0]||(r[0]=S("div",{class:"wh-full rounded-1/2 bg-#19324F"},null,-1))])):e.cur>e.mid&&e.cur<=e.end?(Ot(),$t("div",K4,[S("div",j4,U(e.cur),1),r[1]||(r[1]=S("div",{class:"wh-full rounded-1/2 bg-#19324F"},null,-1))])):e.cur>e.end?(Ot(),$t("div",Z4,[S("div",J4,U(e.cur),1),r[2]||(r[2]=S("div",{class:"wh-full rounded-1/2 bg-#19324F"},null,-1))])):_o("",!0)]),S("div",Q4,[S("div",t3,U(e.start),1),S("div",e3,U(e.mid),1),S("div",r3,U(e.end),1),r[6]||(r[6]=S("div",{class:"flex-1 text-right"},"-",-1))])]))}},i3={class:"w-100% h-100% rounded-20 img relative"},a3=["src"],o3={__name:"Modal",props:["htmlContent"],emits:["close"],setup(e,{emit:t}){const r=t,n=e,i="https://grain.gynhc.com";function a(){r("close")}const o=JSON.parse(n.htmlContent),s=ve(0);function l(){s.value!==0&&(s.value-=1)}function u(){s.value!==o.length-1&&(s.value+=1)}return(f,c)=>(Ot(),$t("div",{class:"fixed wh-full bg-[rgba(0,0,0,.7)] z-998 top-0 right-0 bottom-0 left-0 flex items-center j-c overflow-y-auto",onClick:a},[S("div",i3,[S("i",{onClick:Pg(l,["stop"]),class:Uo(["i-material-symbols:chevron-left text-100 left-0 absolute top-1/2 -translate-y-1/2",Nr(s)===0?"text-gray-500 cursor-not-allowed":"text-white cursor-pointer"])},null,2),S("img",{class:"object-contain w-100% h-100%",src:Nr(i)+Nr(o)[Nr(s)].url,alt:""},null,8,a3),S("i",{onClick:Pg(u,["stop"]),class:Uo(["i-material-symbols:chevron-right text-100 right-0 absolute top-1/2 -translate-y-1/2",Nr(s)===Nr(o).length-1?"text-gray-500 cursor-not-allowed":"text-white cursor-pointer"])},null,2)])]))}},s3={key:0,class:"absolute w-22.5/100 left-20 top-112 z-667"},l3=["src"],u3={class:"text-20 font-bold text-white mt-4"},f3={class:"flex items-center mt-8"},c3={class:"text-14 text-[rgba(255,255,255,.8)]"},h3={class:"flex items-center mt-4 pb-16",style:{"border-bottom":"1px solid #fff"}},v3={class:"text-14 text-[rgba(255,255,255,.8)]"},d3={key:0,class:"pt-20 flex"},p3={class:"flex-1"},g3={class:"flex items-cente mb-6r"},m3={class:"text-[rgba(255,255,255,.8)] text-14"},y3={class:"flex items-center mb-6"},_3={class:"text-[rgba(255,255,255,.8)] text-14"},x3={class:"flex items-center mb-6"},b3={class:"text-[rgba(255,255,255,.8)] text-14"},w3={class:"flex items-center mb-6"},S3={class:"text-[rgba(255,255,255,.8)] text-14"},T3={class:"flex items-center mb-6"},C3={class:"text-[rgba(255,255,255,.8)] text-14"},A3={class:"flex items-center mb-6"},D3={class:"text-[rgba(255,255,255,.8)] text-14"},M3={class:"flex items-center mb-6"},E3={class:"text-[rgba(255,255,255,.8)] text-14"},P3={class:"flex items-center mb-6"},L3={class:"text-[rgba(255,255,255,.8)] text-14"},R3={class:"flex items-center mb-6"},I3={class:"text-[rgba(255,255,255,.8)] text-14"},O3={class:"flex items-center mb-6"},k3={class:"text-[rgba(255,255,255,.8)] text-14"},B3={class:"flex items-center mb-6"},N3={class:"text-[rgba(255,255,255,.8)] text-14"},F3={class:"flex"},z3={class:"text-[rgba(255,255,255,.8)] text-14"},H3={class:"flex-1"},V3={class:"flex items-center mb-6"},G3={class:"text-[rgba(255,255,255,.8)] text-14"},U3={class:"flex items-center mb-6"},W3={class:"text-[rgba(255,255,255,.8)] text-14"},Y3={class:"flex items-center mb-6"},$3={class:"text-[rgba(255,255,255,.8)] text-14"},X3={class:"flex items-center mb-6"},q3={class:"text-[rgba(255,255,255,.8)] text-14"},K3={class:"flex items-center mb-6"},j3={class:"text-[rgba(255,255,255,.8)] text-14"},Z3={class:"flex items-center mb-6"},J3={class:"text-[rgba(255,255,255,.8)] text-14"},Q3={class:"flex items-center mb-6"},tz={class:"text-[rgba(255,255,255,.8)] text-14"},ez={class:"flex items-center mb-6"},rz={class:"text-[rgba(255,255,255,.8)] text-14"},nz={class:"flex items-center mb-6"},iz={class:"text-[rgba(255,255,255,.8)] text-14"},az={class:"flex items-center mb-6"},oz={class:"text-[rgba(255,255,255,.8)] text-14"},sz={class:"flex items-center mb-6"},lz={class:"text-[rgba(255,255,255,.8)] text-14"},uz={class:"flex items-center"},fz={class:"text-[rgba(255,255,255,.8)] text-14"},cz={key:1,class:"pt-20 flex"},hz={class:"flex-1"},vz={class:"flex items-cente mb-6r"},dz={class:"text-[rgba(255,255,255,.8)] text-14"},pz={class:"flex items-center mb-6"},gz={class:"text-[rgba(255,255,255,.8)] text-14"},mz={class:"flex items-center mb-6"},yz={class:"text-[rgba(255,255,255,.8)] text-14"},_z={class:"flex items-center mb-6"},xz={class:"text-[rgba(255,255,255,.8)] text-14"},bz={class:"flex items-center mb-6"},wz={class:"text-[rgba(255,255,255,.8)] text-14"},Sz={class:"flex items-center mb-6"},Tz={class:"text-[rgba(255,255,255,.8)] text-14"},Cz={class:"flex items-center mb-6"},Az={class:"text-[rgba(255,255,255,.8)] text-14"},Dz={class:"flex items-center mb-6"},Mz={class:"text-[rgba(255,255,255,.8)] text-14"},Ez={class:"flex items-center mb-6"},Pz={class:"text-[rgba(255,255,255,.8)] text-14"},Lz={class:"flex items-center mb-6"},Rz={class:"text-[rgba(255,255,255,.8)] text-14"},Iz={class:"flex items-center mb-6"},Oz={class:"text-[rgba(255,255,255,.8)] text-14"},kz={class:"flex items-center"},Bz={class:"text-[rgba(255,255,255,.8)] text-14"},Nz={class:"flex-1"},Fz={class:"flex items-center mb-6"},zz={class:"text-[rgba(255,255,255,.8)] text-14"},Hz={class:"flex items-center mb-6"},Vz={class:"text-[rgba(255,255,255,.8)] text-14"},Gz={class:"flex items-center mb-6"},Uz={class:"text-[rgba(255,255,255,.8)] text-14"},Wz={class:"flex items-center mb-6"},Yz={class:"text-[rgba(255,255,255,.8)] text-14"},$z={class:"flex items-center mb-6"},Xz={class:"text-[rgba(255,255,255,.8)] text-14"},qz={class:"flex items-center mb-6"},Kz={class:"text-[rgba(255,255,255,.8)] text-14"},jz={class:"flex items-center mb-6"},Zz={class:"text-[rgba(255,255,255,.8)] text-14"},Jz={class:"flex items-center mb-6"},Qz={class:"text-[rgba(255,255,255,.8)] text-14"},tH={class:"flex items-center mb-6"},eH={class:"text-[rgba(255,255,255,.8)] text-14"},rH={class:"flex items-center mb-6"},nH={class:"text-[rgba(255,255,255,.8)] text-14"},iH={class:"flex items-center"},aH={class:"text-[rgba(255,255,255,.8)] text-14"},oH={key:2,class:"pt-20 flex"},sH={class:"flex-1"},lH={class:"flex items-cente mb-6r"},uH={class:"text-[rgba(255,255,255,.8)] text-14"},fH={class:"flex items-center mb-6"},cH={class:"text-[rgba(255,255,255,.8)] text-14"},hH={class:"flex items-center mb-6"},vH={class:"text-[rgba(255,255,255,.8)] text-14"},dH={class:"flex items-center mb-6"},pH={class:"text-[rgba(255,255,255,.8)] text-14"},gH={class:"flex items-center mb-6"},mH={class:"text-[rgba(255,255,255,.8)] text-14"},yH={class:"flex items-center mb-6"},_H={class:"text-[rgba(255,255,255,.8)] text-14"},xH={class:"flex items-center mb-6"},bH={class:"text-[rgba(255,255,255,.8)] text-14"},wH={class:"flex items-center mb-6"},SH={class:"text-[rgba(255,255,255,.8)] text-14"},TH={class:"flex items-center mb-6"},CH={class:"text-[rgba(255,255,255,.8)] text-14"},AH={class:"flex items-center mb-6"},DH={class:"text-[rgba(255,255,255,.8)] text-14"},MH={class:"flex items-center mb-6"},EH={class:"text-[rgba(255,255,255,.8)] text-14"},PH={class:"flex items-center"},LH={class:"text-[rgba(255,255,255,.8)] text-14"},RH={class:"flex-1"},IH={class:"flex items-center mb-6"},OH={class:"text-[rgba(255,255,255,.8)] text-14"},kH={class:"flex items-center mb-6"},BH={class:"text-[rgba(255,255,255,.8)] text-14"},NH={class:"flex items-center mb-6"},FH={class:"text-[rgba(255,255,255,.8)] text-14"},zH={class:"flex items-center mb-6"},HH={class:"text-[rgba(255,255,255,.8)] text-14"},VH={class:"flex items-center mb-6"},GH={class:"text-[rgba(255,255,255,.8)] text-14"},UH={class:"flex items-center mb-6"},WH={class:"text-[rgba(255,255,255,.8)] text-14"},YH={class:"flex items-center mb-6"},$H={class:"text-[rgba(255,255,255,.8)] text-14"},XH={class:"flex items-center mb-6"},qH={class:"text-[rgba(255,255,255,.8)] text-14"},KH={class:"flex items-center mb-6"},jH={class:"text-[rgba(255,255,255,.8)] text-14"},ZH={class:"flex items-center mb-6"},JH={class:"text-[rgba(255,255,255,.8)] text-14"},QH={class:"flex items-center"},t8={class:"text-[rgba(255,255,255,.8)] text-14"},e8={class:"pt-13 flex flex-wrap gap-8 overflow-y-auto max-h-100"},r8=["onClick"],n8={key:0,class:"w-full flex justify-center absolute bottom-20 z-666"},i8={class:"w-48/100 bg-[rgba(1,29,61,.9)]"},a8={class:"p-20"},o8={class:"h-300 w-full"},s8={key:0,class:"absolute w-23/100 right-20 top-112 h-8.8/10"},l8={class:"absolute flex w-full items-center j-b -top-34"},u8={class:"text-14 text-gray"},f8={class:"pt-13"},c8={class:"flex text-14 text-white px-16 py-13"},h8={class:"flex-5/11"},v8={class:"flex-2/11 text-center"},d8={class:"flex-4/11 flex items-center justify-center"},p8={class:"flex-5/11"},g8={class:"flex-2/11 text-center"},m8={class:"flex-4/11 text-center"},y8=["onClick"],_8={class:"top text-center pr20 line-height-26"},x8={class:"font-[ysbt] text-18",style:{"background-image":"linear-gradient(to bottom, #FFFFFF, #64CCFF)","background-clip":"text",color:"transparent"}},b8={__name:"App",setup(e){const t="https://grain.gynhc.com",r=(w=1920,_=1080)=>{let T=window.innerWidth/w,C=window.innerHeight/_;return T<C?T:C};function n(w){console.log(w.pageX-56,w.pageY-74)}const i=()=>{a.value&&(a.value.style.transform=`scale(${r()}) translate(-50%,-50%)`)},a=ve(null);Nu(()=>{a.value&&(a.value.style.transform=`scale(${r()}) translate(-50%,-50%)`,a.value.style.width="1920px",a.value.style.height="1080px"),window.addEventListener("resize",i)});const o=ve(!1),s=ve(!1),l=ve([]),u=ve(""),f=ve([]);c();async function c(){s.value=!0;const w=await Kf.getGranaryList();l.value=w.data.list,u.value=l.value.find(C=>C.granary_type===1);const _=l.value,{positionInfoArr:T}=z4(_);f.value=T.value,console.log(T.value,"pos---"),s.value=!1}const h=ve(""),v=ve(""),d=ve([]),g=ve(""),p=ve("");async function m(w,_){s.value=!0,o.value=!1;const T=await Kf.getDetail({params:{id:w,type:_}});h.value=T.data.granary,v.value=T.data.test,d.value=T.data.contentList,p.value=T.data.xAxisData,g.value=T.data.seriesData.map(C=>({...C,type:"line"})),s.value=!1,o.value=!0}const y=ve(!1),x=ve("");async function b(w){s.value=!0;const _=await Kf.getContent({params:{id:w.id}});x.value=_.data.content.content,s.value=!1,y.value=!0}return(w,_)=>{const T=OC("loading");return mC((Ot(),$t("div",{class:"screen-container",onClick:_[2]||(_[2]=C=>n(C))},[S("div",{ref_key:"screenContent",ref:a,class:"content fixed top-1/2 left-1/2 z-9 overflow-hidden relative"},[_[80]||(_[80]=S("div",{class:"header h-17/100 w-full font-[ysbt] text-center text-44 text-white line-height-80"},"中央储备粮遵义直属库有限公司",-1)),Xt(Hf,{duration:1e3,"leave-active-class":"animate__animated animate__fadeOutLeft","enter-active-class":"animate__animated animate__fadeInLeft"},{default:Ti(()=>[o.value?(Ot(),$t("div",s3,[Xt(gh,{title:"仓库介绍"},{default:Ti(()=>[S("div",null,[S("img",{class:"w-360 h-170 mt-12",src:Nr(t)+h.value.image,alt:""},null,8,l3),_[75]||(_[75]=S("div",{class:"text-14 mt-16 text-[rgba(255,255,255,.8)]"},"粮权单位",-1)),S("div",u3,U(h.value.name),1),S("div",f3,[_[3]||(_[3]=S("img",{class:"w-16 h-16 mr-4",src:s2,alt:""},null,-1)),S("span",c3,"储存库点: "+U(h.value.storage),1)]),S("div",h3,[_[4]||(_[4]=S("img",{class:"w-16 h-16 mr-4",src:l2,alt:""},null,-1)),S("span",v3,"填卡日期: "+U(h.value.create_time),1)]),h.value.varieties==="菜籽油"||h.value.varieties==="大豆油"?(Ot(),$t("div",d3,[S("div",p3,[S("div",g3,[_[5]||(_[5]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right mb-6"},"油罐号:",-1)),S("div",m3,U(h.value.num),1)]),S("div",y3,[_[6]||(_[6]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"设计罐容:",-1)),S("div",_3,U(h.value.content.tankCapacity),1)]),S("div",x3,[_[7]||(_[7]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"油罐类型:",-1)),S("div",b3,U(h.value.content.tankType),1)]),S("div",w3,[_[8]||(_[8]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"诸存品种:",-1)),S("div",S3,U(h.value.content.varieties),1)]),S("div",T3,[_[9]||(_[9]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存性质:",-1)),S("div",C3,U(h.value.content.nature),1)]),S("div",A3,[_[10]||(_[10]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"原料产地:",-1)),S("div",D3,U(h.value.content.productArea),1)]),S("div",M3,[_[11]||(_[11]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"加工地:",-1)),S("div",E3,U(h.value.content.addr),1)]),S("div",P3,[_[12]||(_[12]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"加工年度:",-1)),S("div",L3,U(h.value.content.machiningYear),1)]),S("div",R3,[_[13]||(_[13]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"入罐时间:",-1)),S("div",I3,U(h.value.content.enterTime),1)]),S("div",O3,[_[14]||(_[14]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"等级:",-1)),S("div",k3,U(h.value.content.level),1)]),S("div",B3,[_[15]||(_[15]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"色泽:",-1)),S("div",N3,U(h.value.content.color),1)]),S("div",F3,[_[16]||(_[16]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right flex-shrink-0"},"气味、滋味:",-1)),S("div",z3,U(h.value.content.odorAndTaste),1)])]),S("div",H3,[S("div",V3,[_[17]||(_[17]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"水分挥发物:",-1)),S("div",G3,U(h.value.content.waterVolatileCompounds),1)]),S("div",U3,[_[18]||(_[18]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"不溶性杂质:",-1)),S("div",W3,U(h.value.content.insolubleImpurities),1)]),S("div",Y3,[_[19]||(_[19]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"酸价:",-1)),S("div",$3,U(h.value.content.acidValue),1)]),S("div",X3,[_[20]||(_[20]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"过氧化值:",-1)),S("div",q3,U(h.value.content.peroxideValue),1)]),S("div",K3,[_[21]||(_[21]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"加热试验:",-1)),S("div",j3,U(h.value.content.heating),1)]),S("div",Z3,[_[22]||(_[22]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"溶剂残留里:",-1)),S("div",J3,U(h.value.content.residualSolventContent),1)]),S("div",Q3,[_[23]||(_[23]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"罐内直径:",-1)),S("div",tz,U(h.value.content.TankDiameter),1)]),S("div",ez,[_[24]||(_[24]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"装油高度:",-1)),S("div",rz,U(h.value.content.oilLoadingHeight),1)]),S("div",nz,[_[25]||(_[25]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"扣除体积:",-1)),S("div",iz,U(h.value.content.volume),1)]),S("div",az,[_[26]||(_[26]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"油脂体积:",-1)),S("div",oz,U(h.value.content.oilVolume),1)]),S("div",sz,[_[27]||(_[27]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"管理形式:",-1)),S("div",lz,U(h.value.content.managementForm),1)]),S("div",uz,[_[28]||(_[28]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"保管员:",-1)),S("div",fz,U(h.value.content.custodian),1)])])])):h.value.varieties==="稻谷"?(Ot(),$t("div",cz,[S("div",hz,[S("div",vz,[_[29]||(_[29]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right mb-6"},"货位编号:",-1)),S("div",dz,U(h.value.num),1)]),S("div",pz,[_[30]||(_[30]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"仓型:",-1)),S("div",gz,U(h.value.content.warehouseType),1)]),S("div",mz,[_[31]||(_[31]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"核定仓容:",-1)),S("div",yz,U(h.value.content.capacity),1)]),S("div",_z,[_[32]||(_[32]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存品种:",-1)),S("div",xz,U(h.value.content.varieties),1)]),S("div",bz,[_[33]||(_[33]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存性质:",-1)),S("div",wz,U(h.value.content.nature),1)]),S("div",Sz,[_[34]||(_[34]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"产地:",-1)),S("div",Tz,U(h.value.content.addr),1)]),S("div",Cz,[_[35]||(_[35]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"收获年度:",-1)),S("div",Az,U(h.value.content.harvestYear),1)]),S("div",Dz,[_[36]||(_[36]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"入仓时间:",-1)),S("div",Mz,U(h.value.content.enterTime),1)]),S("div",Ez,[_[37]||(_[37]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存数量:",-1)),S("div",Pz,U(h.value.content.storageNum),1)]),S("div",Lz,[_[38]||(_[38]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"等级:",-1)),S("div",Rz,U(h.value.content.level),1)]),S("div",Iz,[_[39]||(_[39]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"出糙率:",-1)),S("div",Oz,U(h.value.content.roughnessRate),1)]),S("div",kz,[_[40]||(_[40]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"杂质:",-1)),S("div",Bz,U(h.value.content.impurity),1)])]),S("div",Nz,[S("div",Fz,[_[41]||(_[41]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"拆合水分:",-1)),S("div",zz,U(h.value.content.water),1)]),S("div",Hz,[_[42]||(_[42]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"散存粮体积:",-1)),S("div",Vz,U(h.value.content.volume),1)]),S("div",Gz,[_[43]||(_[43]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"扣除体积:",-1)),S("div",Uz,U(h.value.content.decVolume),1)]),S("div",Wz,[_[44]||(_[44]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"整精米粒:",-1)),S("div",Yz,U(h.value.content.riceGrains),1)]),S("div",$z,[_[45]||(_[45]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"管理形式:",-1)),S("div",Xz,U(h.value.content.managementForm),1)]),S("div",qz,[_[46]||(_[46]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"长(米):",-1)),S("div",Kz,U(h.value.content.length),1)]),S("div",jz,[_[47]||(_[47]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"宽(米):",-1)),S("div",Zz,U(h.value.content.tankDiameter),1)]),S("div",Jz,[_[48]||(_[48]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"直径(米):",-1)),S("div",Qz,U(h.value.content.diam),1)]),S("div",tH,[_[49]||(_[49]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"高(米):",-1)),S("div",eH,U(h.value.content.height),1)]),S("div",rH,[_[50]||(_[50]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"保管方式:",-1)),S("div",nH,U(h.value.content.storageMethod),1)]),S("div",iH,[_[51]||(_[51]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"保管员:",-1)),S("div",aH,U(h.value.content.custodian),1)])])])):(Ot(),$t("div",oH,[S("div",sH,[S("div",lH,[_[52]||(_[52]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right mb-6"},"仓号:",-1)),S("div",uH,U(h.value.num),1)]),S("div",fH,[_[53]||(_[53]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"仓型:",-1)),S("div",cH,U(h.value.granary_type==1?"圆形":"方形"),1)]),S("div",hH,[_[54]||(_[54]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存品种:",-1)),S("div",vH,U(h.value.varieties),1)]),S("div",dH,[_[55]||(_[55]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"产地:",-1)),S("div",pH,U(h.value.content.addr),1)]),S("div",gH,[_[56]||(_[56]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"入仓时间:",-1)),S("div",mH,U(h.value.content.enterTime),1)]),S("div",yH,[_[57]||(_[57]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"等级:",-1)),S("div",_H,U(h.value.content.level),1)]),S("div",xH,[_[58]||(_[58]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"杂质:",-1)),S("div",bH,U(h.value.content.impurity),1)]),S("div",wH,[_[59]||(_[59]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"散存粮体积:",-1)),S("div",SH,U(h.value.content.volume),1)]),S("div",TH,[_[60]||(_[60]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"不完善粒:",-1)),S("div",CH,U(h.value.content.imperfect),1)]),S("div",AH,[_[61]||(_[61]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"保管方式:",-1)),S("div",DH,U(h.value.content.storageMethod),1)]),S("div",MH,[_[62]||(_[62]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"长:",-1)),S("div",EH,U(h.value.content.length),1)]),S("div",PH,[_[63]||(_[63]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"粮高:",-1)),S("div",LH,U(h.value.content.height),1)])]),S("div",RH,[S("div",IH,[_[64]||(_[64]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"货位编号:",-1)),S("div",OH,U(h.value.content.code),1)]),S("div",kH,[_[65]||(_[65]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"核定仓容:",-1)),S("div",BH,U(h.value.content.capacity),1)]),S("div",NH,[_[66]||(_[66]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储存性质:",-1)),S("div",FH,U(h.value.content.nature),1)]),S("div",zH,[_[67]||(_[67]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"收获年度:",-1)),S("div",HH,U(h.value.content.harvestYear),1)]),S("div",VH,[_[68]||(_[68]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"储藏数量:",-1)),S("div",GH,U(h.value.content.storageNum),1)]),S("div",UH,[_[69]||(_[69]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"容量:",-1)),S("div",WH,U(h.value.content.weight),1)]),S("div",YH,[_[70]||(_[70]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"折合水分:",-1)),S("div",$H,U(h.value.content.water),1)]),S("div",XH,[_[71]||(_[71]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"扣除体积:",-1)),S("div",qH,U(h.value.content.decVolume),1)]),S("div",KH,[_[72]||(_[72]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"管理形式:",-1)),S("div",jH,U(h.value.content.managementForm),1)]),S("div",ZH,[_[73]||(_[73]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"保管员:",-1)),S("div",JH,U(h.value.content.custodian),1)]),S("div",QH,[_[74]||(_[74]=S("div",{class:"w-84 text-[rgba(255,255,255,.8)] text-14 text-right"},"宽:",-1)),S("div",t8,U(h.value.content.width),1)])])]))])]),_:1}),Xt(gh,{"mt-16":"",title:"质检报告"},{default:Ti(()=>[S("div",e8,[(Ot(!0),$t(re,null,Of(d.value,C=>(Ot(),$t("div",{onClick:D=>b(C),class:"w-114 h-50 bg-#142840 flex items-center j-c text-14 text-white cursor-pointer",style:{border:"1px solid #485666"}},U(C.title),9,r8))),256))])]),_:1})])):_o("",!0)]),_:1}),Xt(Hf,{duration:1e3,"leave-active-class":"animate__animated animate__fadeOutDown","enter-active-class":"animate__animated animate__fadeInUp"},{default:Ti(()=>[o.value?(Ot(),$t("div",n8,[S("div",i8,[_[76]||(_[76]=S("div",{class:"h-34 flex j-b items-center px-12",style:{background:"linear-gradient( 180deg, #304A85 0%, #0B3081 100%)"}},[S("div",{class:"flex items-center"},[S("img",{class:"w-15 h-15 mr-10",src:V1,alt:""}),S("div",{class:"font-[ysbt] text-20 text-#707070",style:{"background-image":"linear-gradient(to bottom, #FFFFFF, #64CCFF)","background-clip":"text",color:"transparent"}},"参数走势折线图")]),S("img",{class:"w-28 h-10",src:G1,alt:""})],-1)),S("div",a8,[S("div",o8,[Xt(W4,{optionData:g.value,xData:p.value},null,8,["optionData","xData"])])])])])):_o("",!0)]),_:1}),Xt(Hf,{duration:1e3,"leave-active-class":"animate__animated animate__fadeOutRight","enter-active-class":"animate__animated animate__fadeInRight"},{default:Ti(()=>[o.value?(Ot(),$t("div",s8,[S("div",l8,[S("div",{class:"flex items-center cursor-pointer",onClick:_[0]||(_[0]=C=>o.value=!1)},_[77]||(_[77]=[S("img",{class:"w24 h24 mr6",src:u2,alt:""},null,-1),S("span",{class:"text-14 text-gray"},"关闭",-1)])),S("div",u8,U(v.value.test_date),1)]),Xt(gh,{title:`检测项参数(${v.value.test_date})`,class:"overflow-y-auto overflow-hidden h-full"},{default:Ti(()=>[S("div",f8,[_[78]||(_[78]=S("div",{class:"w-full h-40 bg-[rgba(0,0,0,.2)] px-16 flex items-center j-b"},[S("div",{class:"flex-5/11 text-16 text-white"},"检测项目"),S("div",{class:"flex-2/11 text-16 text-white text-center"},"单位"),S("div",{class:"flex-4/11 text-16 text-white text-center"},"结果")],-1)),(Ot(!0),$t(re,null,Of(v.value.testing_params,C=>(Ot(),$t("div",c8,[C.is_number==1?(Ot(),$t(re,{key:0},[S("div",h8,U(C.num)+" "+U(C.name),1),S("div",v8,U(C.unit),1),S("div",d8,[Xt(n3,{class:"w-8/10",mid:C.warning*1,end:C.alert*1,cur:C.val*1},null,8,["mid","end","cur"])])],64)):(Ot(),$t(re,{key:1},[S("div",p8,U(C.num)+" "+U(C.name),1),S("div",g8,U(C.unit),1),S("div",m8,U(C.val),1)],64))]))),256))])]),_:1},8,["title"])])):_o("",!0)]),_:1}),(Ot(!0),$t(re,null,Of(f.value,C=>(Ot(),$t("div",{class:"point-title absolute cursor-pointer",style:Lu({left:C.left+"px",top:C.top+"px"}),onClick:D=>m(C.id,C.varieties.type)},[S("div",_8,[S("span",x8,U(C.num)+U(C.varieties.name),1)]),_[79]||(_[79]=S("div",{class:"flex flex-col items-center pr30"},[S("img",{class:"w-16 h-62",src:f2,alt:""}),S("img",{class:"w38 h20 absolute bottom-0",src:c2,alt:""})],-1))],12,y8))),256))],512),y.value?(Ot(),Kl(o3,{key:0,onClose:_[1]||(_[1]=C=>y.value=!1),"html-content":x.value},null,8,["html-content"])):_o("",!0)])),[[T,s.value]])}}},w8=vx(b8,[["__scopeId","data-v-4f523861"]]);function S8(){const e=i2(w8);ZD(e),e.mount("#app")}S8();